@riverbankcms/sdk 0.160.0 → 0.162.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-CoqeotCL.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
- package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-CdQS6C7i.d.ts} +211 -9
- package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +59 -92
- package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
- package/dist/_dts/{client-uMMuPq9V.d.ts → client-DGa53rjL.d.ts} +11 -3
- package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
- package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-CyBaPaIq.d.ts} +17 -5
- package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
- package/dist/_dts/{index-BaaGBY1v.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
- package/dist/_dts/{index-nVoi_74l.d.ts → index-BtnsA14K.d.ts} +10 -20
- package/dist/_dts/{index-lkpjIg5i.d.ts → index-C39F9KaB.d.ts} +13 -2
- package/dist/_dts/{index-C5xslEBn.d.ts → index-DEu85xBt.d.ts} +1 -1
- package/dist/_dts/{schema-D0bNcPWK.d.ts → index-DI2yaSPY.d.ts} +22873 -19918
- package/dist/_dts/{types-D8czmbQF.d.ts → index-Dbd0Sn0G.d.ts} +4356 -1827
- package/dist/_dts/{index-CEaKil7G.d.ts → index-Du1IRglc.d.ts} +2 -2
- package/dist/_dts/{index-DahMwisK.d.ts → index-Jlcq6w69.d.ts} +3 -3
- package/dist/_dts/{index-Bg64CkV-.d.ts → index-Wm62sXf2.d.ts} +4 -4
- package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-BPfAAZDW.d.ts} +13 -10
- package/dist/_dts/{resolvePageContent-DqnxChOs.d.ts → resolvePageContent-DWbrtKf8.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +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/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
- package/dist/_dts/{types-DSgmJ15W.d.ts → types-CVv2H4AT.d.ts} +7 -7
- package/dist/_dts/{types-CFrYuXYP.d.ts → types-CfNG5koF.d.ts} +4 -2
- package/dist/_dts/{types-Dm-KW7nj.d.ts → types-ClZ-BQL_.d.ts} +3 -3
- package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +23 -21
- package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
- package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
- package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-M5rpaHxi.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
- package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
- package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-k4lhuCn5.mjs} +15 -6
- package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +25 -13
- package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
- package/dist/client/MapDrawingSvg-_aIK2ojv.mjs +200 -0
- package/dist/client/{Page-7PkzO04N.mjs → Page-DJBIQBOw.mjs} +2555 -536
- package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
- package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
- package/dist/client/ThemedButton-BWsDgjMC.mjs +2243 -0
- package/dist/client/{accordion-2m27DsIk.mjs → accordion-CtO2XF7M.mjs} +1 -1
- package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
- package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-D7nj9I0y.mjs → carousel-BR-zCD3O.mjs} +2 -2
- package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
- package/dist/client/{cart-PN6yCw1H.mjs → cart-C6YpKbZZ.mjs} +3 -3
- package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-dC938WrX.mjs} +1 -1
- package/dist/client/{checkout-CsTwXVSb.mjs → checkout-Dy9RlREI.mjs} +3 -3
- package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-CefG0d2F.mjs} +1 -1
- package/dist/client/client.mjs +37 -71
- package/dist/client/{context-BLAvalAa.mjs → context-BFwxgZpB.mjs} +28 -1
- package/dist/client/{cta-CUXhX_D7.mjs → cta-DtA42Xio.mjs} +1 -1
- package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
- package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-BFgsLqTj.mjs} +3 -17
- package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-BaXZ1-Ky.mjs} +16 -16
- package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-COLwF80U.mjs} +4 -4
- package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
- package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-CBrkimXu.mjs} +2 -2
- package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-CedKVA1S.mjs} +4 -4
- package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
- package/dist/client/{form-C-B5O_ko.mjs → form-XFy9uXSJ.mjs} +3 -3
- package/dist/client/{form.client-DoZVcl8d.mjs → form.client-B0iancFK.mjs} +4 -4
- package/dist/client/{form.parts-mttKpgif.mjs → form.parts-DMbolu9Y.mjs} +3 -3
- package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-WjlECjtV.mjs} +2 -2
- package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
- package/dist/client/{mediaContext-DThoeEBU.mjs → mediaContext-CNzWmoA4.mjs} +1 -1
- package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
- package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
- package/dist/client/{noop-B610YKEx.mjs → noop-B3RNPVrt.mjs} +313 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
- package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
- package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-CbBUVWgd.mjs} +3 -3
- package/dist/client/{productList-BKN4D-1z.mjs → productList-vqOKH2mh.mjs} +3 -3
- package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-CkSUep5a.mjs} +4 -28
- package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-cZ24QwtW.mjs} +607 -210
- package/dist/client/rendering/client.mjs +28 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +18 -9
- package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
- package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-DNHLlze-.mjs} +7307 -8363
- package/dist/client/{shop-DZNC0VKk.mjs → shop-CF0dhnfH.mjs} +3 -3
- package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
- package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
- package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-DqfYoqWH.mjs} +12 -12
- package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CreQ0I7i.mjs} +38 -183
- package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-D-yh-P7g.mjs} +2 -2
- package/dist/client/site-styles-B9HgmY07.mjs +11619 -0
- package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-DCdVErTJ.mjs} +149 -8
- package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
- package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
- package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
- package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CsysCF22.mjs} +8 -21
- package/dist/client/{view-CseyBW07.mjs → view-BpBjo9Te.mjs} +71 -59
- package/dist/client/{view-CkUn3Y0Y.mjs → view-DMyTchi7.mjs} +4 -4
- package/dist/client/wizardSteps-BO2OmMO9.mjs +6604 -0
- package/dist/preview-next/before-render.mjs +7 -6
- package/dist/preview-next/chrome.css +2 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +2 -1
- package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
- package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
- package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +269 -1100
- package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-VaHvYtrA.mjs} +10 -190
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +639 -536
- package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-CHKOWXxl.mjs} +1706 -692
- package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
- package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
- package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → previewAuthStore-C0VUwEHz.mjs} +81363 -136296
- package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
- package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
- package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
- package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-BeR2S8oG.mjs} +2 -1
- package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
- package/dist/preview-next/editor-base.css +2 -2
- package/dist/preview-next/keepAlive.mjs +3 -3
- package/dist/preview-next/middleware.mjs +7 -3
- package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
- package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-CkrFDMrl.mjs} +434 -203
- package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-DxvNGDig.mjs} +4 -4
- package/dist/server/{bindings-CFmJg5lm.mjs → bindings-BuhKvYkE.mjs} +2 -1
- package/dist/server/{client-DPsi0Dai.mjs → client-BobW6DOz.mjs} +39 -72
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +2060 -1680
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-CCG_3mbY.mjs} +14 -5
- package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
- package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-jntGoMrf.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
- package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-DByQwIyW.mjs} +803 -412
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-B_1vrSru.mjs → prebuild-DrwcTk2t.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-LfgxSJYE.mjs} +156 -89
- package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-8A3T5v4M.mjs} +685 -166
- package/dist/server/{registry-eFjKtEhF.mjs → registry-Digv02oV.mjs} +780 -1052
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-C3dJ5UkL.mjs → schema-BiqpDRwB.mjs} +4805 -3561
- package/dist/server/server.mjs +3 -3
- package/dist/server/site-styles-DrkprQPL.mjs +755 -0
- package/dist/server/siteChromeOverlayClearance-BmKKkkbh.mjs +750 -0
- package/dist/server/{src-C5Mu-z0F.mjs → src-08GY1njw.mjs} +1060 -44
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-CSd_Vusz.mjs} +151 -53
- package/dist/server/{validation-B-Xar8QS.mjs → validation-DdUTkBOZ.mjs} +2 -2
- package/dist/server/{version-Bg7VHK3i.mjs → version-DdIOqIDe.mjs} +1 -1
- package/dist/styles/index.css +1029 -41
- package/package.json +1 -1
- package/dist/_dts/index-Blwl7yl6.d.ts +0 -13
- package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
- package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
- package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
- package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
- package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
- package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
- package/dist/server/loadPage-DUPP51C-.mjs +0 -2
- package/dist/server/media-CcHwZkdJ.mjs +0 -243
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ThemeScopeCore, t as buildThemeBridgeRuntime } from "./src-
|
|
1
|
+
import { i as ThemeScopeCore, t as buildThemeBridgeRuntime } from "./src-08GY1njw.mjs";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/theme-bridge/generateCssVars.ts
|
package/dist/server/theme.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as parseThemeForPersistence, r as themeSchema$1 } from "./schema-
|
|
1
|
+
import { R as parseThemeForPersistence, r as themeSchema$1 } from "./schema-BiqpDRwB.mjs";
|
|
2
2
|
import * as fs from "fs/promises";
|
|
3
3
|
import * as path from "path";
|
|
4
4
|
//#region src/theme/loader.ts
|
|
@@ -1,8 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { at as boxBackgroundSchema, ot as runtimeBoxBackgroundSchema } from "./schema-C3dJ5UkL.mjs";
|
|
1
|
+
import { Dt as mediaIdentifierSchema, St as runtimeMediaSchema, bt as mediaSchema, gr as parseContentVersionId, ht as runtimeBoxBackgroundSchema, mt as boxBackgroundSchema } from "./schema-BiqpDRwB.mjs";
|
|
2
|
+
import { Bi as buildRepeaterGridLayout, Da as toUtcIsoDateTimeString, Di as normalizeSelectSource, Gi as resolveRepeaterGridSpanFieldId, Hi as resolveRepeaterGridColumnFieldId, Ii as linkSchema, Si as PUBLIC_FILE_FIELD_KINDS, Ui as resolveRepeaterGridColumnsForBreakpoint, Vi as parseRepeaterGridInteger, Wi as resolveRepeaterGridRowFieldId, _i as inlineTextToPlainText, bi as plainTextToInlineText, c as sanitizeNewsletterSignupPublicContent, da as projectPublicLocation, fa as publicLocationSchema, ii as parseBlockIconValue, ki as parseFieldDefinitions, la as locationValueSchema, qi as isRecord$1, t as getBlockDefinition, wa as resolveBookingBusinessTimeZone, xi as DEFAULT_MEDIA_FIELD_KINDS, yi as parseInlineTextFromUnknown, zi as projectRepeaterGridLayoutForRendering } from "./registry-Digv02oV.mjs";
|
|
4
3
|
import { r as isRichTextDoc } from "./richTextSchema-YYc85FX4.mjs";
|
|
5
4
|
import { z } from "zod";
|
|
5
|
+
//#region ../core/src/location-relationship.ts
|
|
6
|
+
/** Initial bounded policy; Opus can tune these values without changing callers. */
|
|
7
|
+
const LOCATION_MATCH_THRESHOLDS_METRES = {
|
|
8
|
+
building: 100,
|
|
9
|
+
street: 300,
|
|
10
|
+
area: 1e3
|
|
11
|
+
};
|
|
12
|
+
function locationDistanceMetres(a, b) {
|
|
13
|
+
const radians = Math.PI / 180;
|
|
14
|
+
const haversine = Math.sin((b.lat - a.lat) * radians / 2) ** 2 + Math.cos(a.lat * radians) * Math.cos(b.lat * radians) * Math.sin((b.lng - a.lng) * radians / 2) ** 2;
|
|
15
|
+
return 6371e3 * 2 * Math.asin(Math.sqrt(Math.min(1, Math.max(0, haversine))));
|
|
16
|
+
}
|
|
17
|
+
/** Arrival pins are never substituted for missing provider address points. */
|
|
18
|
+
function decideLocationRelationship(location) {
|
|
19
|
+
if (location === null) return { kind: "empty" };
|
|
20
|
+
if (location.pin === null) return { kind: "address_only" };
|
|
21
|
+
if (location.address === null) return { kind: "pin_only" };
|
|
22
|
+
if (location.addressMatch === null) return { kind: "unchecked" };
|
|
23
|
+
const { point, precision } = location.addressMatch;
|
|
24
|
+
const distanceMetres = locationDistanceMetres(point, location.pin);
|
|
25
|
+
const thresholdMetres = LOCATION_MATCH_THRESHOLDS_METRES[precision === "unknown" ? "building" : precision];
|
|
26
|
+
return {
|
|
27
|
+
kind: distanceMetres > thresholdMetres * (1 + 8 * Number.EPSILON) ? "far" : precision === "building" || precision === "unknown" ? "near" : "approximate",
|
|
28
|
+
distanceMetres,
|
|
29
|
+
thresholdMetres,
|
|
30
|
+
precision
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/** Forms receive the decided save value, rather than a collection of flags. */
|
|
34
|
+
function decideLocationSave(location, activity) {
|
|
35
|
+
if (activity === "address-check") return {
|
|
36
|
+
kind: "blocked",
|
|
37
|
+
reason: "pending_address_check"
|
|
38
|
+
};
|
|
39
|
+
if (activity === "reverse") return {
|
|
40
|
+
kind: "blocked",
|
|
41
|
+
reason: "pending_reverse"
|
|
42
|
+
};
|
|
43
|
+
return decideLocationRelationship(location).kind === "far" && location?.ownerConfirmedPinAndAddress !== true ? {
|
|
44
|
+
kind: "blocked",
|
|
45
|
+
reason: "unconfirmed_mismatch"
|
|
46
|
+
} : {
|
|
47
|
+
kind: "ready",
|
|
48
|
+
location
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
6
52
|
//#region ../core/src/block-content-identity.ts
|
|
7
53
|
function readContentVersionId(value) {
|
|
8
54
|
const parsed = parseContentVersionId(value);
|
|
@@ -76,7 +122,9 @@ function canonicalizeObjectForWrite(plans, value) {
|
|
|
76
122
|
function canonicalizeFieldValue(plan, value) {
|
|
77
123
|
switch (plan.kind) {
|
|
78
124
|
case "media": return canonicalizeMedia(value);
|
|
79
|
-
case "group":
|
|
125
|
+
case "group":
|
|
126
|
+
if (plan.valueContract === "location") return value;
|
|
127
|
+
return plan.childSelection.kind === "discriminatedTabs" ? canonicalizeDiscriminatedGroup(plan, value) : canonicalizeObjectForWrite(plan.childSelection.fields, value);
|
|
80
128
|
case "repeater": return canonicalizeRepeater(plan, value);
|
|
81
129
|
case "string":
|
|
82
130
|
case "number":
|
|
@@ -282,7 +330,7 @@ function pluralize(label, count) {
|
|
|
282
330
|
return label.endsWith("s") ? label : `${label}s`;
|
|
283
331
|
}
|
|
284
332
|
function valueContractForField(field) {
|
|
285
|
-
return field.ui?.valueContract
|
|
333
|
+
return field.ui?.valueContract !== void 0 ? { valueContract: field.ui.valueContract } : {};
|
|
286
334
|
}
|
|
287
335
|
function deriveTabGroupValidationPlan(field, path, required) {
|
|
288
336
|
return {
|
|
@@ -391,7 +439,8 @@ function deriveFieldValidationPlan(field, path = [field.id]) {
|
|
|
391
439
|
kind: "all",
|
|
392
440
|
fields: deriveNestedFieldPlans(field.schema?.fields ?? [], path)
|
|
393
441
|
},
|
|
394
|
-
allowNullChildren: field.type === "group" && field.ui?.widget === "locationPicker"
|
|
442
|
+
allowNullChildren: field.type === "group" && field.ui?.widget === "locationPicker",
|
|
443
|
+
...valueContractForField(field)
|
|
395
444
|
};
|
|
396
445
|
case "tabGroup": return deriveTabGroupValidationPlan(field, path, required);
|
|
397
446
|
case "presetOrCustom":
|
|
@@ -526,7 +575,9 @@ function normalizeManifestContentForWrite(plans, content, options = {}) {
|
|
|
526
575
|
function normalizeStoredFieldValueWithContext(plan, value, ctx) {
|
|
527
576
|
if (value === null && !plan.required) return;
|
|
528
577
|
switch (plan.kind) {
|
|
529
|
-
case "group":
|
|
578
|
+
case "group":
|
|
579
|
+
if (plan.valueContract === "location") return normalizeLocationContract(value, ctx.mode);
|
|
580
|
+
return normalizeStoredObjectChildren(selectedGroupChildPlans(plan, value), value, childValidationContext(plan, ctx));
|
|
530
581
|
case "repeater": return normalizeStoredRepeaterItems(plan, value, ctx);
|
|
531
582
|
case "string":
|
|
532
583
|
case "number":
|
|
@@ -562,7 +613,9 @@ function normalizeFieldValue(plan, value, ctx) {
|
|
|
562
613
|
switch (plan.kind) {
|
|
563
614
|
case "number": return normalizeNumberInput(value, ctx.allowNull);
|
|
564
615
|
case "string": return acceptsOptionalBlankAsMissing(plan, value) ? void 0 : value;
|
|
565
|
-
case "group":
|
|
616
|
+
case "group":
|
|
617
|
+
if (plan.valueContract === "location") return normalizeLocationContract(value, ctx.mode);
|
|
618
|
+
return normalizeObjectChildren(selectedGroupChildPlans(plan, value), value, childValidationContext(plan, ctx));
|
|
566
619
|
case "repeater": return normalizeRepeaterItems(plan, value, ctx);
|
|
567
620
|
case "link":
|
|
568
621
|
case "boolean":
|
|
@@ -652,7 +705,7 @@ function acceptsNullValue(plan, ctx) {
|
|
|
652
705
|
return ctx.mode === "storable" ? !plan.required : ctx.allowNull || acceptsOptionalNullValue(plan);
|
|
653
706
|
}
|
|
654
707
|
function acceptsOptionalNullValue(plan) {
|
|
655
|
-
return !plan.required && (plan.kind === "media" || plan.kind === "number");
|
|
708
|
+
return !plan.required && (plan.kind === "media" || plan.kind === "number" || plan.kind === "group" && plan.valueContract === "location");
|
|
656
709
|
}
|
|
657
710
|
function isMissingForPlan(plan, value, mode) {
|
|
658
711
|
if (value === void 0) return true;
|
|
@@ -812,6 +865,7 @@ function validateFlattenedGroupContainers(groupIds, item, plan, index, ctx) {
|
|
|
812
865
|
}] : []);
|
|
813
866
|
}
|
|
814
867
|
function validateGroupPlan(plan, value, ctx) {
|
|
868
|
+
if (plan.valueContract === "location") return validateLocationGroupContract(plan, value, ctx);
|
|
815
869
|
if (!isPlainObject(value)) return [issue(plan, "wrongType", { expected: "an object" })];
|
|
816
870
|
if (plan.childSelection.kind === "discriminatedTabs") {
|
|
817
871
|
const selectedType = value[plan.childSelection.activeTabField];
|
|
@@ -825,8 +879,7 @@ function validateGroupPlan(plan, value, ctx) {
|
|
|
825
879
|
const childCtx = childValidationContext(plan, ctx);
|
|
826
880
|
const childIssues = selectedGroupChildPlans(plan, value).flatMap((childPlan) => validateNormalizedFieldValue(childPlan, value[childPlan.fieldId], childCtx));
|
|
827
881
|
if (childIssues.length > 0) return childIssues;
|
|
828
|
-
|
|
829
|
-
return [];
|
|
882
|
+
return validateGroupBackgroundContract(plan, value, ctx);
|
|
830
883
|
}
|
|
831
884
|
function childValidationContext(plan, ctx) {
|
|
832
885
|
return plan.allowNullChildren ? {
|
|
@@ -936,12 +989,12 @@ function fieldPlanToStrictObjectPropertyZod(plan, mode = "strict", layoutGridCoo
|
|
|
936
989
|
}),
|
|
937
990
|
layoutGridCoordinates
|
|
938
991
|
};
|
|
939
|
-
const
|
|
992
|
+
const projected = z.any().superRefine((value, zodCtx) => {
|
|
940
993
|
validateNormalizedFieldValue(plan, value, ctx).forEach((validationIssue) => {
|
|
941
994
|
addFieldIssueToZodContext(zodCtx, validationIssue, plan.path);
|
|
942
995
|
});
|
|
943
|
-
});
|
|
944
|
-
return plan.required ?
|
|
996
|
+
}).transform((value) => mode === "render" && plan.kind === "group" && plan.valueContract === "location" ? normalizeLocationContract(value, "render") : value);
|
|
997
|
+
return plan.required ? projected : projected.optional();
|
|
945
998
|
}
|
|
946
999
|
function fieldIssueToZodDetail(issue) {
|
|
947
1000
|
if (issue.kind === "required") return issue.emptyOrigin ? {
|
|
@@ -1071,6 +1124,28 @@ function isEmptyRichTextDoc(value) {
|
|
|
1071
1124
|
const first = content[0];
|
|
1072
1125
|
return first?.type === "paragraph" && (!Array.isArray(first.content) || first.content.length === 0);
|
|
1073
1126
|
}
|
|
1127
|
+
function normalizeLocationContract(value, mode) {
|
|
1128
|
+
const canonical = locationValueSchema.safeParse(value);
|
|
1129
|
+
if (canonical.success) return mode === "render" ? projectPublicLocation(canonical.data) : canonical.data;
|
|
1130
|
+
const publicValue = mode === "render" ? publicLocationSchema.safeParse(value) : null;
|
|
1131
|
+
return publicValue?.success ? publicValue.data : value;
|
|
1132
|
+
}
|
|
1133
|
+
function validateLocationGroupContract(plan, value, ctx) {
|
|
1134
|
+
if (isRenderLocationRecovery(value, ctx.mode)) return [];
|
|
1135
|
+
if (!(ctx.mode === "render" || ctx.mode === "render-source" ? z.union([locationValueSchema, publicLocationSchema]) : locationValueSchema).safeParse(value).success) return [issue(plan, "wrongType", { expected: "a valid location" })];
|
|
1136
|
+
if (ctx.mode === "storable" || ctx.mode === "strict") {
|
|
1137
|
+
const canonical = locationValueSchema.safeParse(value);
|
|
1138
|
+
if (canonical.success && decideLocationSave(canonical.data, "idle").kind === "blocked") return [issue(plan, "wrongType", { expected: "a confirmed address and pin" })];
|
|
1139
|
+
}
|
|
1140
|
+
return [];
|
|
1141
|
+
}
|
|
1142
|
+
function validateGroupBackgroundContract(plan, value, ctx) {
|
|
1143
|
+
if (plan.valueContract === "boxBackground" && !(ctx.mode === "render" ? runtimeBoxBackgroundSchema : boxBackgroundSchema).safeParse(value).success) return [issue(plan, "invalidBoxBackground")];
|
|
1144
|
+
return [];
|
|
1145
|
+
}
|
|
1146
|
+
function isRenderLocationRecovery(value, mode) {
|
|
1147
|
+
return (mode === "render" || mode === "render-source") && z.strictObject({ kind: z.literal("needs_place") }).safeParse(value).success;
|
|
1148
|
+
}
|
|
1074
1149
|
//#endregion
|
|
1075
1150
|
//#region ../blocks/src/system/manifest/fieldValidation/layoutGridRendering.ts
|
|
1076
1151
|
function invalidCoordinateIds(plan, items, itemIds) {
|
|
@@ -1116,7 +1191,7 @@ function projectLayoutGridPlansForRendering(plans, value, rootValues = layoutGri
|
|
|
1116
1191
|
if (!values) return value;
|
|
1117
1192
|
return plans.reduce((projected, plan) => {
|
|
1118
1193
|
const fieldValue = projected[plan.fieldId];
|
|
1119
|
-
const next = plan.kind === "group" ? projectLayoutGridPlansForRendering(allGroupChildPlans(plan), fieldValue, rootValues) : plan.kind === "repeater" && Array.isArray(fieldValue) ? projectGrid(plan, fieldValue, rootValues).map((item) => {
|
|
1194
|
+
const next = plan.kind === "group" && plan.valueContract === "location" ? recoverUnreadableLocation(fieldValue) : plan.kind === "group" ? projectLayoutGridPlansForRendering(allGroupChildPlans(plan), fieldValue, rootValues) : plan.kind === "repeater" && Array.isArray(fieldValue) ? projectGrid(plan, fieldValue, rootValues).map((item) => {
|
|
1120
1195
|
const row = layoutGridRecord(item);
|
|
1121
1196
|
return row ? projectLayoutGridPlansForRendering(resolveLayoutGridItemPlans(plan, row), row, rootValues) : item;
|
|
1122
1197
|
}) : fieldValue;
|
|
@@ -1126,6 +1201,11 @@ function projectLayoutGridPlansForRendering(plans, value, rootValues = layoutGri
|
|
|
1126
1201
|
};
|
|
1127
1202
|
}, values);
|
|
1128
1203
|
}
|
|
1204
|
+
/** Render recovery drops unreadable meaning rather than interpreting obsolete coordinates. */
|
|
1205
|
+
function recoverUnreadableLocation(value) {
|
|
1206
|
+
if (value == null || locationValueSchema.safeParse(value).success || publicLocationSchema.safeParse(value).success) return value;
|
|
1207
|
+
return { kind: "needs_place" };
|
|
1208
|
+
}
|
|
1129
1209
|
//#endregion
|
|
1130
1210
|
//#region ../blocks/src/system/manifest/validation.ts
|
|
1131
1211
|
const compiledManifestContentContract = Symbol("compiledManifestContentContract");
|
|
@@ -1147,33 +1227,36 @@ function compileManifestContentContract(manifestOrFields, options = {}) {
|
|
|
1147
1227
|
const plans = derivePlansFromManifestOrFields(manifestOrFields);
|
|
1148
1228
|
const strictOptions = { allowNull: false };
|
|
1149
1229
|
const strictStoredSchema = deriveStrictContentZodFromPlans(plans);
|
|
1150
|
-
return Object.freeze({
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1230
|
+
return Object.freeze({
|
|
1231
|
+
fields: Array.isArray(manifestOrFields) ? manifestOrFields : manifestOrFields.fields,
|
|
1232
|
+
[compiledManifestContentContract]: Object.freeze({
|
|
1233
|
+
plans,
|
|
1234
|
+
strictStoredSchema,
|
|
1235
|
+
renderSourceSchema: deriveStrictContentZodFromPlans(plans, "render-source"),
|
|
1236
|
+
writeSchema: deriveNormalizedContentZodFromPlans(plans, strictOptions, normalizeManifestContentForWrite).superRefine((value, ctx) => {
|
|
1237
|
+
if (options.unknownFields !== "reject") return;
|
|
1238
|
+
unknownManifestFieldPaths(plans, value).forEach((path) => {
|
|
1239
|
+
ctx.addIssue({
|
|
1240
|
+
code: "custom",
|
|
1241
|
+
path,
|
|
1242
|
+
message: `Unknown content field: ${path.join(".")}`
|
|
1243
|
+
});
|
|
1161
1244
|
});
|
|
1162
|
-
})
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
})
|
|
1245
|
+
}).transform((value) => canonicalizeObjectForWrite(plans, value)),
|
|
1246
|
+
draftSchema: deriveNormalizedContentZodFromPlans(plans, {
|
|
1247
|
+
allowNull: true,
|
|
1248
|
+
allowIncomplete: true,
|
|
1249
|
+
mode: "draft"
|
|
1250
|
+
}, normalizeStoredContentValues),
|
|
1251
|
+
renderDraftSchema: deriveNormalizedContentZodFromPlans(plans, {
|
|
1252
|
+
allowNull: true,
|
|
1253
|
+
allowIncomplete: true,
|
|
1254
|
+
mode: "draft"
|
|
1255
|
+
}, normalizeStoredContentValues, false),
|
|
1256
|
+
renderSchema: deriveStrictContentZodFromPlans(plans, "render"),
|
|
1257
|
+
findNonPortableMediaPaths: (content) => findNonPortableMediaPaths(plans, content)
|
|
1258
|
+
})
|
|
1259
|
+
});
|
|
1177
1260
|
}
|
|
1178
1261
|
function unknownManifestFieldPaths(plans, value, parent = [], discriminator) {
|
|
1179
1262
|
if (!isPlainRecord(value)) return [];
|
|
@@ -1182,7 +1265,7 @@ function unknownManifestFieldPaths(plans, value, parent = [], discriminator) {
|
|
|
1182
1265
|
}
|
|
1183
1266
|
function nestedUnknownManifestFieldPaths(plan, value, path) {
|
|
1184
1267
|
if (plan.kind === "group") {
|
|
1185
|
-
if (plan.valueContract
|
|
1268
|
+
if (plan.valueContract !== void 0) return [];
|
|
1186
1269
|
const selection = plan.childSelection;
|
|
1187
1270
|
return unknownManifestFieldPaths(allGroupChildPlans(plan), value, path, selection.kind === "discriminatedTabs" ? selection.activeTabField : void 0);
|
|
1188
1271
|
}
|
|
@@ -1191,6 +1274,10 @@ function nestedUnknownManifestFieldPaths(plan, value, path) {
|
|
|
1191
1274
|
return unknownManifestFieldPaths((isPlainRecord(item) ? plan.repeatedItemVariants?.find((entry) => entry.typeId === item._type) : void 0)?.fields ?? plan.repeatedItemPlan ?? [], item, [...path, index], plan.repeatedItemVariants ? "_type" : void 0);
|
|
1192
1275
|
});
|
|
1193
1276
|
}
|
|
1277
|
+
/** Presentation recovery preserves authored payloads and does not admit them for a write. */
|
|
1278
|
+
function projectStoredManifestContentForRendering(contract, content) {
|
|
1279
|
+
return projectLayoutGridPlansForRendering(contract[compiledManifestContentContract].plans, content);
|
|
1280
|
+
}
|
|
1194
1281
|
/** Validates raw editor state without granting a stored-content proof. */
|
|
1195
1282
|
function validateManifestDraft(contract, data) {
|
|
1196
1283
|
const parsed = contract[compiledManifestContentContract].draftSchema.safeParse(data);
|
|
@@ -1214,11 +1301,11 @@ function validateManifestDraft(contract, data) {
|
|
|
1214
1301
|
*/
|
|
1215
1302
|
function admitTransportedRenderableManifestContent(contract, content) {
|
|
1216
1303
|
const state = contract[compiledManifestContentContract];
|
|
1217
|
-
const projected =
|
|
1304
|
+
const projected = projectStoredManifestContentForRendering(contract, content);
|
|
1218
1305
|
const parsed = state.renderSchema.safeParse(projected);
|
|
1219
1306
|
return parsed.success ? {
|
|
1220
1307
|
ok: true,
|
|
1221
|
-
value:
|
|
1308
|
+
value: parsed.data
|
|
1222
1309
|
} : {
|
|
1223
1310
|
ok: false,
|
|
1224
1311
|
error: zodAdmissionError(parsed.error)
|
|
@@ -1244,7 +1331,7 @@ function deriveContentZodFromPlans(plans, options, validateLayoutGrids = true) {
|
|
|
1244
1331
|
});
|
|
1245
1332
|
}
|
|
1246
1333
|
function deriveStrictContentZodFromPlans(plans, mode = "strict") {
|
|
1247
|
-
const shape = Object.fromEntries(plans.map((plan) => [plan.fieldId, fieldPlanToStrictObjectPropertyZod(plan, mode
|
|
1334
|
+
const shape = Object.fromEntries(plans.map((plan) => [plan.fieldId, fieldPlanToStrictObjectPropertyZod(plan, mode, mode === "strict" ? "validate" : "projected")]));
|
|
1248
1335
|
return z.object(shape).catchall(z.unknown()).passthrough().superRefine((values, ctx) => {
|
|
1249
1336
|
if (mode !== "strict") return;
|
|
1250
1337
|
validateLayoutGridPlans(plans, values).forEach((issue) => {
|
|
@@ -1321,7 +1408,7 @@ function visitRepeatedMedia(plan, value, path, visit) {
|
|
|
1321
1408
|
function collectNonPortablePlannedMedia(plans, content, parentPath, paths) {
|
|
1322
1409
|
visitPlannedMedia(plans, content, parentPath, (value, path, kind) => {
|
|
1323
1410
|
if (kind === "richText") collectNonPortableRichTextImages(value, path, paths);
|
|
1324
|
-
else if (
|
|
1411
|
+
else if (value !== null && value !== void 0 && !mediaSchema.safeParse(value).success) paths.add(formatFieldPath(path));
|
|
1325
1412
|
});
|
|
1326
1413
|
}
|
|
1327
1414
|
function collectNonPortableRichTextImages(value, path, paths) {
|
|
@@ -1336,10 +1423,6 @@ function isPlainRecord(value) {
|
|
|
1336
1423
|
function hasEnvironmentSpecificMediaField(value) {
|
|
1337
1424
|
return "assetId" in value || "storageBucket" in value || "storagePath" in value || "src" in value || "mimeType" in value || looksLikeUuid(value.id);
|
|
1338
1425
|
}
|
|
1339
|
-
function hasNonPortablePoster(value) {
|
|
1340
|
-
if (value.poster === void 0) return false;
|
|
1341
|
-
return !mediaPosterSchema.safeParse(value.poster).success;
|
|
1342
|
-
}
|
|
1343
1426
|
//#endregion
|
|
1344
1427
|
//#region src/rendering/helpers/siteCustomBlocks.ts
|
|
1345
1428
|
/**
|
|
@@ -1357,16 +1440,21 @@ function resolveSiteCustomBlocks(site) {
|
|
|
1357
1440
|
}
|
|
1358
1441
|
//#endregion
|
|
1359
1442
|
//#region src/rendering/helpers/pageRuntimeSupport.ts
|
|
1360
|
-
function buildSiteRenderSupport(site, mediaAssets) {
|
|
1443
|
+
function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
1361
1444
|
const customBlocks = resolveSiteCustomBlocks(site);
|
|
1362
1445
|
return {
|
|
1363
1446
|
theme: site.theme,
|
|
1364
|
-
site:
|
|
1447
|
+
site: locationMapSupport ? {
|
|
1448
|
+
...site.site,
|
|
1449
|
+
venuesById: locationMapSupport.venuesById
|
|
1450
|
+
} : site.site,
|
|
1365
1451
|
sdkConfig: site.sdkConfig ?? null,
|
|
1366
1452
|
bookingOfferingPresets: site.bookingOfferingPresets ?? [],
|
|
1367
1453
|
openingHours: site.businessDetails?.openingHours ?? null,
|
|
1368
1454
|
siteTerms: site.siteTerms,
|
|
1369
1455
|
mailingList: site.mailingList,
|
|
1456
|
+
businessLocationPermission: site.site.businessLocationPermission,
|
|
1457
|
+
businessAddressVisibility: site.businessDetails?.addressVisibility ?? "hidden",
|
|
1370
1458
|
bookingTimeZone: resolveBookingBusinessTimeZone(site.bookingTimeZone),
|
|
1371
1459
|
now: toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString()),
|
|
1372
1460
|
...customBlocks ? { customBlocks } : {},
|
|
@@ -1377,6 +1465,16 @@ function buildSiteRenderSupport(site, mediaAssets) {
|
|
|
1377
1465
|
...mediaAssets ? { mediaAssets } : {}
|
|
1378
1466
|
};
|
|
1379
1467
|
}
|
|
1468
|
+
/** Only already-permitted projections reach the block runtime. */
|
|
1469
|
+
function siteLocationRenderContext(support) {
|
|
1470
|
+
return {
|
|
1471
|
+
businessLocationPermission: support.site.businessLocationPermission,
|
|
1472
|
+
businessAddressVisibility: support.businessAddressVisibility ?? "hidden",
|
|
1473
|
+
businessLocation: support.site.businessLocation ?? null,
|
|
1474
|
+
venuesById: support.site.venuesById ?? {},
|
|
1475
|
+
siteCountry: support.site.siteCountry ?? null
|
|
1476
|
+
};
|
|
1477
|
+
}
|
|
1380
1478
|
function collectMediaAssetSidecar(mediaAssets) {
|
|
1381
1479
|
return Array.isArray(mediaAssets) && mediaAssets.length > 0 ? mediaAssets : void 0;
|
|
1382
1480
|
}
|
|
@@ -1539,4 +1637,4 @@ function requireSdkTheme(theme, siteId, reason = "cms_theme_absent") {
|
|
|
1539
1637
|
return theme;
|
|
1540
1638
|
}
|
|
1541
1639
|
//#endregion
|
|
1542
|
-
export {
|
|
1640
|
+
export { validateManifestDraft as _, buildSiteRenderSupport as a, readPublishedBlockPlacement as b, projectRenderablePageOutline as c, resolveSdkBlockManifest as d, sanitizeSdkRuntimeBlockContent as f, compileManifestContentContract as g, admitTransportedRenderableManifestContent as h, buildRenderablePageOutline as i, readInvalidBlockAdmission as l, resolveSiteCustomBlocks as m, MissingSdkThemeError as n, collectMediaAssetSidecar as o, siteLocationRenderContext as p, requireSdkTheme as r, invalidRenderableBlock as s, MISSING_SDK_THEME_ERROR_CODE as t, readSdkPreviewPublishedPlacement as u, admitLayoutGridForPlan as v, deriveFieldValidationPlan as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as SDK_WORKFLOW_ENDPOINT_PATTERN, c as navigationLinkInputSchemaOptions, i as collectPortalLinkStats, l as footerModeSchema, o as SDK_WORKFLOW_ID_PATTERN, r as collectCartLinkStats, s as loaderFallbackScalarSchema, t as SUPPORTED_LOADER_ENDPOINTS, y as builtinTransformDefinitions } from "./prefetchBlockData-
|
|
1
|
+
import { Ai as validateManifestLookField, Ci as blockCategoryEnum, Ei as fieldSchema, Mi as validateSdkBlockDeclaration, Ni as NodeSchema, Ti as builtInBlockKindsSchema, ji as sdkBlockPresentationShape, t as getBlockDefinition, wi as blockSectionDeclarationShape } from "./registry-Digv02oV.mjs";
|
|
2
|
+
import { a as SDK_WORKFLOW_ENDPOINT_PATTERN, c as navigationLinkInputSchemaOptions, i as collectPortalLinkStats, l as footerModeSchema, o as SDK_WORKFLOW_ID_PATTERN, r as collectCartLinkStats, s as loaderFallbackScalarSchema, t as SUPPORTED_LOADER_ENDPOINTS, y as builtinTransformDefinitions } from "./prefetchBlockData-LfgxSJYE.mjs";
|
|
3
3
|
import { a as ALLOWED_TRANSFORM_IDS_SET, r as ALLOWED_NODE_TYPES_SET, t as titleSourceValueSchema } from "./titleSourceSchema-DwKJfMYb.mjs";
|
|
4
4
|
import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-BWRF7509.mjs";
|
|
5
5
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-CdI7NvAW.mjs";
|