@riverbankcms/sdk 0.175.0 → 0.176.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-hb2IWD8K.d.ts → BlocksIslandsHydrator-DvoTk7Py.d.ts} +1 -1
- package/dist/_dts/{Page-BlY68ZF-.d.ts → Page-D-l374tU.d.ts} +8 -16
- package/dist/_dts/{SdkPreviewMode-CA8hU7hW.d.ts → SdkPreviewMode-22DdQAj5.d.ts} +2 -2
- package/dist/_dts/{client-B6tCvmG4.d.ts → client-D4p0J1lK.d.ts} +1 -1
- package/dist/_dts/{content-types-B9qryk4R.d.ts → content-types-0WWR6dC4.d.ts} +2 -2
- package/dist/_dts/{contracts-DWoaRxj1.d.ts → contracts-f_ZG_SwY.d.ts} +8 -8
- package/dist/_dts/{footerPageOutline-Djdrhp5s.d.ts → footerPageOutline-DSeZvOaj.d.ts} +85 -8
- package/dist/_dts/{generatePageMetadata-CFi0vxov.d.ts → generatePageMetadata-BlitPA2D.d.ts} +2 -2
- package/dist/_dts/{index-CQUzwOxO.d.ts → index-CKkkCgb6.d.ts} +1 -1
- package/dist/_dts/{index-Bl5_pjmq.d.ts → index-CoLcwjqJ.d.ts} +1 -1
- package/dist/_dts/{index-_pXaCO12.d.ts → index-D-ai8IQd.d.ts} +4 -4
- package/dist/_dts/{index-OtazQE3U.d.ts → index-DDsfmM4d.d.ts} +2 -2
- package/dist/_dts/{index-Btp5nIoz.d.ts → index-EJMo-KSo.d.ts} +2 -2
- package/dist/_dts/{index-DmhFb6R1.d.ts → index-ZKEDvLuN.d.ts} +1 -1
- package/dist/_dts/{index-YRQulWB4.d.ts → index-tcPtGdag.d.ts} +3 -3
- package/dist/_dts/{loadContent-Hcuvs4pz.d.ts → loadContent-Ci932ORy.d.ts} +7 -7
- package/dist/_dts/{request-BT8i_vH-.d.ts → request-B8jVdvgI.d.ts} +374 -24
- package/dist/_dts/{resolveBlockData-B-dJrunl.d.ts → resolveBlockData-DrSMuD76.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-CVLYWcoI.d.ts → resolvePageContent-Be4iL6-F.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/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 +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/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 +5 -177
- 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 +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 +1 -1
- package/dist/_dts/{types-CXL1QJSY.d.ts → types-BXMX4z2j.d.ts} +7 -7
- package/dist/_dts/{types-C0XZnjXz.d.ts → types-DXY64Xh4.d.ts} +4 -4
- package/dist/_dts/{types-OKzbqRBx.d.ts → types-lwSgCWZ4.d.ts} +11 -2
- package/dist/_dts/{validation-Bxi66FtQ.d.ts → validation-C5xp--Fu.d.ts} +7 -4
- package/dist/client/{BlocksIslandsHydrator-2xzlERTG.mjs → BlocksIslandsHydrator-CeYQQQs7.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qsohSEdQ.mjs → BookingMailingListNote-CDDWrY_W.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-DrdtON0q.mjs → BookingPanelArrangement-BShQSial.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CUFxBaTM.mjs → BookingQuestionFields-MbvIo2jS.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-Ch0w0Utn.mjs → CalendarNavigationChevron-C6CSVfEB.mjs} +9 -9
- package/dist/client/{DemoBookingPortalAccess-DGgsjqXK.mjs → DemoBookingPortalAccess-C9Ggcfx3.mjs} +3 -3
- package/dist/client/{EventCalendar.client-Dg4PHFJJ.mjs → EventCalendar.client-BSMuSqg0.mjs} +9 -9
- package/dist/client/{EventCombined.client-tky8JcnQ.mjs → EventCombined.client-BTrmSyUB.mjs} +8 -8
- package/dist/client/{EventItem-BybMSKNL.mjs → EventItem-B0WjGXsH.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-uvWRE5wi.mjs → EventListWeekNavigation-8Ij7vuxY.mjs} +1 -1
- package/dist/client/{EventListing.client-DQx9dohz.mjs → EventListing.client-CWk2NEwd.mjs} +3 -3
- package/dist/client/{EventListing.view-r31k8Icz.mjs → EventListing.view-BEH4UbSL.mjs} +17 -8
- package/dist/client/{EventRegistrationPayment-BMmPDmSf.mjs → EventRegistrationPayment-B2EikR3f.mjs} +9 -9
- package/dist/client/{LocationMapActions-BecH-qhI.mjs → LocationMapActions-myIQIvQL.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-BJzmFdcn.mjs → MapDrawingSvg-BfsVyPvB.mjs} +2 -37
- package/dist/client/{Page-CWN_8cLZ.mjs → Page-F3lhDvw1.mjs} +329 -268
- package/dist/client/{SiteTermsAgreementField-Dr5lj4oY.mjs → SiteTermsAgreementField-BYACYP0T.mjs} +2 -2
- package/dist/client/{StepIndicator-C7RJBOW3.mjs → StepIndicator-Bb7rPtSq.mjs} +5 -5
- package/dist/client/{accordion-uUi_N6mZ.mjs → accordion-BfsOiweL.mjs} +1 -1
- package/dist/client/{booking-form.client-CKHgxvsh.mjs → booking-form.client-B8ohIj13.mjs} +13 -13
- package/dist/client/{bookingForm-Bi74dmiS.mjs → bookingForm-CXsck2oH.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-C-gFwhnO.mjs → boxStyleClassNames-B_hcuT06.mjs} +2 -2
- package/dist/client/{carousel-C0_BqMA0.mjs → carousel-Cz5Ddbsx.mjs} +1 -1
- package/dist/client/{cart-BOHuppVu.mjs → cart-CTC2oS3p.mjs} +3 -3
- package/dist/client/{cart.client-IfJE1zAp.mjs → cart.client-c1YkTC-Q.mjs} +1 -1
- package/dist/client/{checkout-C3Aj-aNa.mjs → checkout-BeW1ufaH.mjs} +3 -3
- package/dist/client/{checkout.client-Tg9lfeYf.mjs → checkout.client-BeU32khQ.mjs} +1 -1
- package/dist/client/{checkoutUrls-OLqQdAXD.mjs → checkoutUrls-DVfSUSKp.mjs} +1 -1
- package/dist/client/client.mjs +36 -3
- package/dist/client/{context-D8TpQXjX.mjs → context-R9p5c8IH.mjs} +1 -1
- package/dist/client/{course-DHmeQAvq.mjs → course-CUFVJEAc.mjs} +1 -1
- package/dist/client/{dateFormatting-ABCZWkpT.mjs → dateFormatting-CF6FWCoo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BdcuW_pa.mjs → demoPortalMagicLink-tZxIm3RL.mjs} +1 -1
- package/dist/client/{display-DMqotaGU.mjs → display-4HYOb-AK.mjs} +51 -4
- package/dist/client/{enhanceHeaderSection-Ciuhsk0E.mjs → enhanceHeaderSection-DEYDI54E.mjs} +3 -3
- package/dist/client/{event-details.client-CJapNbTv.mjs → event-details.client-BwjBJP-f.mjs} +1 -1
- package/dist/client/{event-registration.client-CAdcpnLc.mjs → event-registration.client-DWvSODTI.mjs} +11 -11
- package/dist/client/{eventCalendar-BlsD5R8M.mjs → eventCalendar-C9Pn9eeZ.mjs} +4 -4
- package/dist/client/{eventCombined-B9Ly3024.mjs → eventCombined-Bdhk0fp0.mjs} +4 -4
- package/dist/client/{eventDetails-CbEGI4jO.mjs → eventDetails-C2LfNW_o.mjs} +2 -2
- package/dist/client/{eventListing-ZSmvhWII.mjs → eventListing-B-bJOQUk.mjs} +4 -4
- package/dist/client/{eventRegistration-D-yUcIyO.mjs → eventRegistration-CbdmUiDT.mjs} +4 -4
- package/dist/client/{form-DG_YZSNn.mjs → form-BbUUt784.mjs} +3 -3
- package/dist/client/{form.client-BU6dM0-C.mjs → form.client-BVlz-9_t.mjs} +4 -4
- package/dist/client/{form.parts-Db0Iq7nx.mjs → form.parts-TB4UIrML.mjs} +1 -1
- package/dist/client/{formatDate-DFfWHpQB.mjs → formatDate-TDHhFjFN.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -4
- package/dist/client/{gifting-DMrsN4B4.mjs → gifting-CbNSrp7C.mjs} +4 -4
- package/dist/client/{gifting.client-BVa2XYJB.mjs → gifting.client-B__bGhFc.mjs} +4 -4
- package/dist/client/{gifting.parts-C2u4Y-pf.mjs → gifting.parts-CTA1sDW6.mjs} +2 -2
- package/dist/client/{headerSection-D91EzlOR.mjs → headerSection-5Wn9nUW_.mjs} +2 -2
- package/dist/client/{lookSurfaces-BDZLALxj.mjs → lookSurfaces-BwiNdgMU.mjs} +1 -1
- package/dist/client/{newsletter-form.client-BMGRiRpo.mjs → newsletter-form.client-B17WYHxZ.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-D5UfUaD3.mjs → newsletter-form.parts-DN9wD1ZG.mjs} +1 -1
- package/dist/client/{newsletterForm-B_67sNwa.mjs → newsletterForm-DLMlxInp.mjs} +3 -3
- package/dist/client/{noop-DF8_EiFt.mjs → noop-CaQxI-Js.mjs} +2 -9
- package/dist/client/portal/client.mjs +7 -7
- package/dist/client/{product-detail.client-D-XNir0m.mjs → product-detail.client-Di_anRGR.mjs} +1 -1
- package/dist/client/{product-list.client-BLfYQ-qi.mjs → product-list.client-Duhl6rtL.mjs} +1 -1
- package/dist/client/{productDetail-W0_0lDGe.mjs → productDetail-BgKmCwA8.mjs} +3 -3
- package/dist/client/{productList-ayAtPJdb.mjs → productList-C_wMKsYS.mjs} +3 -3
- package/dist/client/{propsDecoder-ChYKWjLA.mjs → propsDecoder-y3LvxaiG.mjs} +4 -4
- package/dist/client/{registry.server-B1EEZkcr.mjs → registry.server-CIWYKz1V.mjs} +83 -27
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +87 -22
- package/dist/client/{richText-coerce-CDAfpMQU.mjs → richText-coerce-DkPBFb_a.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CcGWvyht.mjs → routeIslandApiConfig-BgO0rZce.mjs} +1 -1
- package/dist/client/{shop-DbUUoHFJ.mjs → shop-CFbWlv_W.mjs} +3 -3
- package/dist/client/{shop-commerce-aQqcDmyZ.mjs → shop-commerce-C-I29eaA.mjs} +12 -12
- package/dist/client/{shop-commerce-store-Cd7USpuY.mjs → shop-commerce-store-DGcc7twO.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DGvPBmVP.mjs → shop-discount-apply.state-DOm7vx0X.mjs} +2 -2
- package/dist/client/{shop.client-BNZ9M8cG.mjs → shop.client-GHTWUKD6.mjs} +12 -12
- package/dist/client/{shop.interactive-CJAINJr3.mjs → shop.interactive-CxDJ8P2r.mjs} +3 -3
- package/dist/client/{shopShared-DwVAuGsx.mjs → shopShared-Be9QJJpT.mjs} +2 -2
- package/dist/client/{timetableModel-DBTIFWTb.mjs → timetableModel--R0zVzZO.mjs} +8 -8
- package/dist/client/{useAvailableSlots-BomyyKeo.mjs → useAvailableSlots-BGu_2F50.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CCxHMWlU.mjs → useDiscountCodeUi-I_mXI9Yd.mjs} +1 -1
- package/dist/client/{useEventPagination-Bjin_qaN.mjs → useEventPagination-DxIJ--JZ.mjs} +7 -7
- package/dist/client/{view-BTk470k0.mjs → view-3foOzGWR.mjs} +3 -3
- package/dist/client/{view-Cw4EmEPv.mjs → view-BbzH5MQb.mjs} +61 -34
- package/dist/preview-next/client/{PageSectionToolbar-bq7gbKvn.mjs → PageSectionToolbar-0xyUPWUB.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-DVsPNcos.mjs → PreviewEditorSidebar-D8vUzXtI.mjs} +38 -35
- package/dist/preview-next/client/{PreviewEditorUI-B-pq3aZc.mjs → PreviewEditorUI-CRjS4gAu.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-ChyjB96e.mjs → PreviewShell-BvdBdeH_.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-D_czeC0l.mjs → SdkPreviewModeRuntime-DWTyKbFj.mjs} +77 -47
- package/dist/preview-next/client/{previewAssistantSlot-B61mZd81.mjs → previewAssistantSlot-BqY2TTcZ.mjs} +436 -278
- package/dist/preview-next/client/{previewChromeRoot-dwOn9XtM.mjs → previewChromeRoot-BuRYe2iL.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DZDfOxoW.mjs → sdk-runtime-BnK5kH9f.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BZDIC-fA.mjs → siteStyleAccess-DbKozRSn.mjs} +1 -1
- package/dist/preview-next/client/{useAutosaveStatus-BbzLMf-l.mjs → useAutosaveStatus-D9s6dyMW.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BEXcWQeI.mjs → useOpenBlockForSetup-Ce4WCxpT.mjs} +16 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-0gSlK9S0.mjs → route-contract-BYezcMx5.mjs} +8 -0
- package/dist/server/{Block.shared-DeXXycg8.mjs → Block.shared-Cn7gg13_.mjs} +84 -16
- package/dist/server/{bindings-7L3pC5Os.mjs → bindings-VGgS6UvF.mjs} +3 -3
- package/dist/server/{client-CgghATBm.mjs → client-Bvag5OtW.mjs} +35 -3
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-D7M5Vcug.mjs → loadContent-CxASA3PE.mjs} +5 -8
- package/dist/server/{loadPage-CiTId05y.mjs → loadPage-CQgde5DN.mjs} +2 -2
- package/dist/server/mapLocation-BM5WX7FY.mjs +315 -0
- package/dist/server/next.mjs +6 -6
- package/dist/server/{overrideResolution-CJ3MRI5Q.mjs → overrideResolution-BqVLO4gX.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-Cuos4Xcd.mjs → pageRenderPlan-CfSnAkCO.mjs} +10 -41
- package/dist/server/{pageRuntimeSupport-CuVj3bkd.mjs → pageRuntimeSupport-uz4gzBOo.mjs} +4 -13
- package/dist/server/{pageShared-JxlV8_Bo.mjs → pageShared-D23o5QgC.mjs} +111 -66
- package/dist/server/{prebuild-BDhlJbAx.mjs → prebuild-BuoXWT9y.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-kERh_c0v.mjs → prefetchBlockData-CCiYV8_s.mjs} +21 -6
- package/dist/server/{registry-cQ9N5W-n.mjs → registry-CXRXsFSx.mjs} +346 -513
- 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 +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CN4UmmTK.mjs → resolveBlockData-yfe8WLEA.mjs} +1 -1
- package/dist/server/{responseMedia-DpBC1hTM.mjs → responseMedia-F-ElH2Rd.mjs} +1 -0
- package/dist/server/server.mjs +3 -3
- package/dist/server/{validation-3puM5SM8.mjs → validation-CozQ7wE0.mjs} +4 -4
- package/dist/server/{version-B8g-Wx57.mjs → version-CgCWRFEY.mjs} +1 -1
- package/package.json +1 -1
- package/dist/server/identity-DQD_8lNO.mjs +0 -6
package/dist/preview-next/client/{previewChromeRoot-dwOn9XtM.mjs → previewChromeRoot-BuRYe2iL.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { bc as PortalContainerProvider, cn as SURFACE_DOCUMENT_DATA_ATTRIBUTE, ln as resolveSurfaceDocumentAttributes, ul as cn } from "./previewAssistantSlot-BqY2TTcZ.mjs";
|
|
3
3
|
import { createContext, useContext, useEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../ui/src/fixed-bottom-surface.tsx
|
|
@@ -6,13 +6,13 @@ import React from "react";
|
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/preview-next/client/runtime.tsx
|
|
8
8
|
const LazySdkPreviewMode = React.lazy(async () => {
|
|
9
|
-
return { default: (await import("./SdkPreviewModeRuntime-
|
|
9
|
+
return { default: (await import("./SdkPreviewModeRuntime-DWTyKbFj.mjs")).SdkPreviewModeRuntime };
|
|
10
10
|
});
|
|
11
11
|
const LazyPreviewShell = React.lazy(async () => {
|
|
12
|
-
return { default: (await import("./sdk-runtime-
|
|
12
|
+
return { default: (await import("./sdk-runtime-BnK5kH9f.mjs")).PreviewShell };
|
|
13
13
|
});
|
|
14
14
|
const LazyPreviewShellLayout = React.lazy(async () => {
|
|
15
|
-
return { default: (await import("./sdk-runtime-
|
|
15
|
+
return { default: (await import("./sdk-runtime-BnK5kH9f.mjs")).PreviewShellLayout };
|
|
16
16
|
});
|
|
17
17
|
function SdkPreviewMode(props) {
|
|
18
18
|
return /* @__PURE__ */ jsx(React.Suspense, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./PreviewLayoutContext-Dy0LwcHc.mjs";
|
|
3
3
|
import "./PreviewQueryProvider-BgIucg_5.mjs";
|
|
4
|
-
import { n as PreviewShellLayout, t as PreviewShell } from "./PreviewShell-
|
|
5
|
-
import "./SdkPreviewModeRuntime-
|
|
4
|
+
import { n as PreviewShellLayout, t as PreviewShell } from "./PreviewShell-BvdBdeH_.mjs";
|
|
5
|
+
import "./SdkPreviewModeRuntime-DWTyKbFj.mjs";
|
|
6
6
|
export { PreviewShell, PreviewShellLayout };
|
package/dist/preview-next/client/{siteStyleAccess-BZDIC-fA.mjs → siteStyleAccess-DbKozRSn.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as useOptionalPreviewLayout } from "./PreviewLayoutContext-Dy0LwcHc.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { $c as composeEventHandlers, $i as themeRuntimeScopeProps, $u as unsafeAsEditorBlockId, Ar as LocationMapView, Bc as Root2$1, Co as buildThemeRuntime, Do as getResponsiveScopeSpec, Eo as DEFAULT_THEME_RESPONSIVE_MODE, Fc as Presence, Fn as renderSourceFor, Gc as useFocusGuards, Go as componentRuntimeRulesForTheme, Hc as useSize, Hs as ApiEnvelopeError, Ic as Portal, Il as mapDrawingStyle, Io as restoreCompiledRuntimeFieldsFromContent, Ir as withValueAtPath, Jc as useDirection, Jo as headerStyleRecipeForTheme, Js as VISUALLY_HIDDEN_STYLES, K as siteChromeHeaderLogoMayBeHardToSee, Kc as DismissableLayer, Ko as designRuntimeRulesForTheme, Lc as Anchor, Ll as parseSurfaceTree, Ln as resolveRenderedValues, Lo as formatSiteChromeBackgroundTokenLabel, Mc as Item, Ml as surfaceForegroundStyle, Nc as Root, No as applyCompiledRuntimeFieldsToContent, Ns as isRecord$1, Pc as createRovingFocusGroupScope, Pl as rgbColorValue, Pn as remoteDraftValues, Po as compileEditorModelRuntime, Qc as createContextScope, Qo as surfaceResolutionContextFromTheme, Rc as Arrow, Rl as resolveSurfaceForeground, Sc as ReactRemoveScroll, Uc as useId$1, Us as extractApiEnvelopeErrorDetails, Vc as createPopperScope, Vl as expandPalette, Wc as FocusScope, Ws as unwrapResponse, Xc as useControllableState, Yc as createCollection, Ys as Callout, Zc as useLayoutEffect2, Zi as buildThemeDataAttrs, Zo as compiledRuntimeStyleFieldNames, as as getSiteFontsStorageUrl, c as usePreviewShownTheme, cc as DialogClose, cd as assertNever, co as coerceInlineTextWithFallback, dd as unsafeAsPositiveByteCount, ds as resolveCompiledSectionContextFromContent, el as Primitive, fa as measureSiteTopChromeBottomPx, fc as DialogPortal, fd as unsafeAsPositiveSeconds, fr as planArrangementContent, h as composePreviewTheme, il as useControlReadiness, is as generateFontFaceCss, iu as getFontWidthRange, jc as hideOthers, jl as surfaceForegroundInputFromResolved, ko as heroPhotoPaintsGround, lc as DialogContent, ll as useComposedRefs, lo as deriveInlineTextFieldChanges, ma as siteTopChromeMeasurementTargets$1, mc as DialogTrigger, ni as getBlockDefinition, nl as Button, ol as createSlot, pc as DialogTitle, qc as useCallbackRef, rs as buildGoogleFontFamilyQuery, s as usePreviewPageDesignRenderState, sa as SITE_CHROME_VISIBLE_HEADER_SELECTOR, sc as Dialog, su as asDesignBlockId, u as useSiteChromeCustomizeOptional, ul as cn$1, un as ApiRequestError, uu as authoredValuesEqual, vc as menuItemInteractionClassName, wo as escapeStyleContent, xc as usePortalContainer, xn as useOptionalEditorUiStoreInstance, xr as resolveBlockVariantKey, y as applyBindingsToContent, zc as Content$1 } from "./previewAssistantSlot-BqY2TTcZ.mjs";
|
|
4
4
|
import { At as sameMeaningfulAddress, C as Move, Ct as LOCATION_MATCH_THRESHOLDS_METRES, D as MapPin, Dt as editLocationValue, Et as decideLocationSave, Ft as locationPinSchema, I as Info, Kt as err, Mt as decideLocationSourcePermission, Nt as formatLocationAddress, Ot as locationDistanceMetres, Pt as locationAddressSchema, Q as ExternalLink, Rt as parseLocationValue, Tt as decideLocationRelationship, V as House, at as Circle, c as Trash2, ct as CircleCheck, dt as ChevronRight, et as Crosshair, ft as ChevronLeft, g as RotateCcw, gt as Building2, h as Route, kt as sameLocationSpatialPair, l as Store, mt as Check, n as X, p as Search, pt as ChevronDown, qt as ok, r as WifiOff, s as TriangleAlert, ut as ChevronUp, v as Plus, w as Mountain, wt as confirmLocationPair, y as Pencil } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
5
5
|
import { a as NO_EDIT_MAP_OVERLAY, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, r as useLocationPickerWidgetContext, t as LocationDashboardLink } from "./LocationPickerEnvironment-8iKKoYZr.mjs";
|
|
6
6
|
import * as React$1 from "react";
|
package/dist/preview-next/client/{useAutosaveStatus-BbzLMf-l.mjs → useAutosaveStatus-D9s6dyMW.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { On as selectAutosaveStatus, Rn as useStore,
|
|
2
|
+
import { On as selectAutosaveStatus, Rn as useStore, dl as useShallow, el as Primitive, kn as selectEditorWriteState, mt as useSessionJournal, ul as cn, yn as useEditorUiStore } from "./previewAssistantSlot-BqY2TTcZ.mjs";
|
|
3
3
|
import { A as LoaderCircle } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { $c as composeEventHandlers, Bc as Root2$1, Bt as derivePromotedFieldPlan, Fc as Presence, Fi as systemCustomizeFacetDefinitionForBlock, Fo as resolveEditorArrangementLook, Gc as useFocusGuards, Gn as createManifestFormAdapter, Ho as lookDefinitionForId, I as lookTilesFor, Ic as Portal$2, Ii as systemCustomizeFacetDefinitionsForBlock, Jc as useDirection, Kc as DismissableLayer, Ku as syncStateOf, Lc as Anchor, Li as systemCustomizeFacetStoredValue, M as usePreviewRenderReadiness, Mc as Item, Mi as resolveArrangementKnobs, Mo as sectionPhotoPresence, Nc as Root, Ni as isSystemCustomizeFacetId, Oo as resolveVisiblePromotedFieldPathsForEditorBlock, Pc as createRovingFocusGroupScope, Pi as systemCustomizeFacetAppliesToLayoutVariant, Qc as createContextScope, Rc as Arrow, Sc as ReactRemoveScroll, Uc as useId$1, Uo as readStoredMode, Vc as createPopperScope, Wc as FocusScope, Wr as fieldsNotShownIn, Xc as useControllableState, Yc as createCollection, _r as createCustomBlockRegistry, al as cva, ar as parseBackgroundColorToken, ba as eventCalendarListGroupingDecision, bn as useEditorUiStoreInstance, cl as composeRefs, ei as fieldPathsOwnedBy, el as Primitive, fs as isThemeV2NormalEditorRawStyleFieldName, hs as lookModes, i as usePreviewSidebarNavigation, jc as hideOthers, ji as arrangementKnobChoices, jo as decideSectionPhoto, js as augmentManifestWithStyleGroups, ll as useComposedRefs, lu as asSiteStyleId, ni as getBlockDefinition, o as usePreviewPageDesignEditorState, ol as createSlot, pi as eventCalendarPagingFields, ps as isThemeV2NormalEditorRawStylePath, qc as useCallbackRef, qn as manifestFieldSectionOptions, qo as getCuratedSiteStyle, qs as Root$1, sl as createSlottable, sr as parseCanonicalSectionBackground, ti as resolveFieldOwnership, tl as dispatchDiscreteCustomEvent, ul as cn, vc as menuItemInteractionClassName, vr as mergeBlockDescriptorsWithRegistry, wn as shouldRevealAllBlockFieldValidation, xc as usePortalContainer, yc as menuTriggerInteractionClassName, yr as mergeManifestWithSdkOptions, zc as Content } from "./previewAssistantSlot-BqY2TTcZ.mjs";
|
|
3
3
|
import { at as Circle, dt as ChevronRight, mt as Check } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import { createContext, useContext, useMemo } from "react";
|
|
@@ -1038,11 +1038,25 @@ const DropdownMenuSubContent = React$1.forwardRef(({ className, ...props }, ref)
|
|
|
1038
1038
|
...props
|
|
1039
1039
|
}));
|
|
1040
1040
|
DropdownMenuSubContent.displayName = SubContent2.displayName;
|
|
1041
|
-
|
|
1041
|
+
/**
|
|
1042
|
+
* A menu hands focus back to its button once it has finished closing, which is
|
|
1043
|
+
* after a dialog opened from one of its items has taken focus. That would pull
|
|
1044
|
+
* focus out of the dialog, closing a search dropdown someone has started typing
|
|
1045
|
+
* into, so the button only gets it if nothing else has.
|
|
1046
|
+
*/
|
|
1047
|
+
function focusMovedPastMenu(event) {
|
|
1048
|
+
const active = document.activeElement;
|
|
1049
|
+
return active instanceof HTMLElement && active !== document.body && event.currentTarget instanceof Node && !event.currentTarget.contains(active);
|
|
1050
|
+
}
|
|
1051
|
+
const DropdownMenuContent = React$1.forwardRef(({ className, sideOffset = 4, container, onCloseAutoFocus, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPortal, {
|
|
1042
1052
|
container,
|
|
1043
1053
|
children: /* @__PURE__ */ jsx(Content2$1, {
|
|
1044
1054
|
ref,
|
|
1045
1055
|
sideOffset,
|
|
1056
|
+
onCloseAutoFocus: (event) => {
|
|
1057
|
+
onCloseAutoFocus?.(event);
|
|
1058
|
+
if (focusMovedPastMenu(event)) event.preventDefault();
|
|
1059
|
+
},
|
|
1046
1060
|
className: cn("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-[var(--item-radius)] border border-border/60 bg-popover p-1 text-popover-foreground shadow-md", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]", className),
|
|
1047
1061
|
...props
|
|
1048
1062
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as PREVIEW_REFRESH_COOKIE_NAME, r as PREVIEW_COOKIE_NAME } from "./constants-Bf-vqdKH.mjs";
|
|
2
|
-
import { n as buildPreviewAuthRefreshUrl, r as setPreviewAuthCookies } from "./route-contract-
|
|
2
|
+
import { n as buildPreviewAuthRefreshUrl, r as setPreviewAuthCookies } from "./route-contract-BYezcMx5.mjs";
|
|
3
3
|
import { t as decodeJwtPayload } from "./jwt-BHfnwjzx.mjs";
|
|
4
4
|
import { NextResponse } from "next/server";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as PREVIEW_CODE_PARAM } from "./constants-Bf-vqdKH.mjs";
|
|
2
|
-
import { i as setPreviewTilesKeyCookie, r as setPreviewAuthCookies, t as buildPreviewAuthExchangeUrl } from "./route-contract-
|
|
2
|
+
import { i as setPreviewTilesKeyCookie, r as setPreviewAuthCookies, t as buildPreviewAuthExchangeUrl } from "./route-contract-BYezcMx5.mjs";
|
|
3
3
|
import { NextResponse } from "next/server";
|
|
4
4
|
//#region ../preview-next/src/middleware.ts
|
|
5
5
|
const EXCHANGE_CODE_PATTERN = /^[A-Za-z0-9_-]{40,256}$/;
|
|
@@ -1354,6 +1354,13 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1354
1354
|
auth: "user",
|
|
1355
1355
|
responseKind: "json"
|
|
1356
1356
|
},
|
|
1357
|
+
makeAppointmentServiceStudio: {
|
|
1358
|
+
path: "/sites/{siteId}/bookings/services/{serviceId}/make-studio",
|
|
1359
|
+
method: "POST",
|
|
1360
|
+
auth: "user",
|
|
1361
|
+
responseKind: "json",
|
|
1362
|
+
errors: []
|
|
1363
|
+
},
|
|
1357
1364
|
listAvailabilityRules: {
|
|
1358
1365
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/availability",
|
|
1359
1366
|
method: "GET",
|
|
@@ -4009,6 +4016,7 @@ const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
4009
4016
|
errors: [
|
|
4010
4017
|
"auth:forbidden",
|
|
4011
4018
|
"validation:invalid_input",
|
|
4019
|
+
"rate_limit:exceeded",
|
|
4012
4020
|
"server:internal_error"
|
|
4013
4021
|
]
|
|
4014
4022
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as parseBlocksTheme, a as planLayoutThemeRuntime, b as getDefaultComponentRegistry, c as solvedInksForThemeRuntime, f as PageRenderer, g as buildThemeRuntime, m as toBlocksImageResolveContextInput, o as renderWithOverrideOnlyRuntime, s as renderWithSdkThemeRuntime, v as makeDefaultBlockComponent, y as renderBlock } from "./pageShared-
|
|
3
|
-
import { f as resolveSiteCustomBlocks, n as buildRenderablePageOutline } from "./pageRuntimeSupport-
|
|
1
|
+
import { Jn as siteHeaderManifest, Ks as toUtcIsoDateTimeString, ft as buildResolveImageUrlContext, mt as setContextResolveImageUrlContext, nr as readRuntimeNow, qn as siteFooterManifest, rr as resolveDateRuntimeContext, t as getBlockDefinition } from "./registry-CXRXsFSx.mjs";
|
|
2
|
+
import { _ as parseBlocksTheme, a as planLayoutThemeRuntime, b as getDefaultComponentRegistry, c as solvedInksForThemeRuntime, f as PageRenderer, g as buildThemeRuntime, m as toBlocksImageResolveContextInput, o as renderWithOverrideOnlyRuntime, s as renderWithSdkThemeRuntime, v as makeDefaultBlockComponent, y as renderBlock } from "./pageShared-D23o5QgC.mjs";
|
|
3
|
+
import { f as resolveSiteCustomBlocks, n as buildRenderablePageOutline, o as projectRenderablePageOutline } from "./pageRuntimeSupport-uz4gzBOo.mjs";
|
|
4
4
|
import { n as buildFooterMenu, r as buildFooterMenuForRole, s as buildMenu, t as buildChromeLogoContent } from "./navigation-iC_hXjJI.mjs";
|
|
5
5
|
import { n as resolveSdkFooterMode, t as resolveFooterRenderPlan } from "./mode-bkFS8glh.mjs";
|
|
6
|
-
import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-
|
|
6
|
+
import { n as prefetchBlockDataWithFailures, r as planBlockDataRequests, t as SUPPORTED_LOADER_ENDPOINTS } from "./prefetchBlockData-CCiYV8_s.mjs";
|
|
7
7
|
import { r as requireSdkTheme } from "./themeAdmission-DGSAlFUK.mjs";
|
|
8
8
|
import { a as defaultOverrideOnlyRuntime, c as getRiverbankEnv } from "./overrides-CD4d-1w7.mjs";
|
|
9
9
|
import "react";
|
|
@@ -27,6 +27,36 @@ function buildFooterRenderablePageOutline(siteData, blocks) {
|
|
|
27
27
|
customBlocks: resolveSiteCustomBlocks(siteData)
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
+
function footerLoaderInputs(siteData, options) {
|
|
31
|
+
return {
|
|
32
|
+
page: projectRenderablePageOutline(buildFooterRenderablePageOutline(siteData, siteData.footerBlocks ?? [])),
|
|
33
|
+
context: {
|
|
34
|
+
siteId: siteData.site.id,
|
|
35
|
+
previewStage: options.previewStage ?? "published",
|
|
36
|
+
root: {
|
|
37
|
+
now: toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString()),
|
|
38
|
+
bookingTimeZone: siteData.bookingTimeZone
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Run the loaders of a site's footer blocks, for a footer `PageRenderer`.
|
|
45
|
+
*
|
|
46
|
+
* A custom footer callback calls this itself and passes the result in its data
|
|
47
|
+
* context, or hands it to `Layout` as `footerBlockData`. Without it, a map in the
|
|
48
|
+
* footer that needs a venue or the business address is left out for visitors.
|
|
49
|
+
*/
|
|
50
|
+
async function prefetchFooterBlockData(client, siteData, options = {}) {
|
|
51
|
+
const { page, context } = footerLoaderInputs(siteData, options);
|
|
52
|
+
return prefetchBlockDataWithFailures(page, context, client, { customBlocks: resolveSiteCustomBlocks(siteData) });
|
|
53
|
+
}
|
|
54
|
+
/** Whether a footer needs `prefetchFooterBlockData`, for the warning `Layout` gives when it can't run it. */
|
|
55
|
+
function footerBlocksNeedLoaders(siteData, options = {}) {
|
|
56
|
+
const { page, context } = footerLoaderInputs(siteData, options);
|
|
57
|
+
const supported = SUPPORTED_LOADER_ENDPOINTS;
|
|
58
|
+
return planBlockDataRequests(page, context, { isValidEndpoint: (endpoint) => supported.includes(endpoint) }).blocks.some((block) => block.requests.length > 0);
|
|
59
|
+
}
|
|
30
60
|
//#endregion
|
|
31
61
|
//#region src/rendering/components/Layout.tsx
|
|
32
62
|
/**
|
|
@@ -117,7 +147,7 @@ async function Layout(props) {
|
|
|
117
147
|
const header = props.header ?? true;
|
|
118
148
|
const footer = props.footer ?? true;
|
|
119
149
|
const siteData = await resolveLayoutSiteData(props);
|
|
120
|
-
const { site, navigation, layout, routes
|
|
150
|
+
const { site, navigation, layout, routes } = siteData;
|
|
121
151
|
const navigationOptions = {
|
|
122
152
|
hasPortalSession,
|
|
123
153
|
previewStage,
|
|
@@ -143,7 +173,8 @@ async function Layout(props) {
|
|
|
143
173
|
legalFooterMenu: legalFooterMenuViewModel,
|
|
144
174
|
...chromeLogoContent,
|
|
145
175
|
site,
|
|
146
|
-
routes
|
|
176
|
+
routes,
|
|
177
|
+
footerBlocks: await prepareFooterBlocks(props, siteData, previewStage)
|
|
147
178
|
};
|
|
148
179
|
if (isOverrideOnlyLayout(props)) return renderOverrideOnlyLayout(props, {
|
|
149
180
|
header: props.header ?? true,
|
|
@@ -179,10 +210,9 @@ async function Layout(props) {
|
|
|
179
210
|
} : theme;
|
|
180
211
|
const blocksThemeWithVariant = themeWithVariant;
|
|
181
212
|
const blocksTheme = theme;
|
|
182
|
-
const apiBaseUrl = resolveLayoutApiBaseUrl();
|
|
183
213
|
const sharedViewModelOverrides = {
|
|
184
214
|
$root: buildLayoutRootContext(siteData, {
|
|
185
|
-
apiBaseUrl,
|
|
215
|
+
apiBaseUrl: resolveLayoutApiBaseUrl(),
|
|
186
216
|
previewStage,
|
|
187
217
|
theme: themeWithVariant
|
|
188
218
|
}),
|
|
@@ -217,17 +247,16 @@ async function Layout(props) {
|
|
|
217
247
|
isSdkSite: Boolean(site.is_sdk_site),
|
|
218
248
|
mode: resolveSdkFooterMode(siteData.sdkConfig)
|
|
219
249
|
});
|
|
220
|
-
const
|
|
250
|
+
const footerBlocks = customFooterData.footerBlocks;
|
|
251
|
+
const footerBlocksElement = footerBlocks ? /* @__PURE__ */ jsx(PageRenderer, {
|
|
221
252
|
theme,
|
|
222
253
|
themeTokens: builtThemeRuntime.tokens,
|
|
223
254
|
headingScope: "region",
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
apiBaseUrl,
|
|
228
|
-
previewStage,
|
|
255
|
+
...footerBlocks,
|
|
256
|
+
dataContext: {
|
|
257
|
+
...footerBlocks.dataContext,
|
|
229
258
|
theme: themeWithVariant
|
|
230
|
-
}
|
|
259
|
+
},
|
|
231
260
|
sdkConfig: siteData.sdkConfig ?? null
|
|
232
261
|
}) : null;
|
|
233
262
|
if (footerPlan.renderFooterBlocks && !footerBlocksElement && process.env.NODE_ENV !== "production") console.debug("[sdk] Footer mode renders blocks, but footerBlocks is empty/missing", {
|
|
@@ -257,6 +286,44 @@ async function Layout(props) {
|
|
|
257
286
|
] })
|
|
258
287
|
});
|
|
259
288
|
}
|
|
289
|
+
/** Footer data is loaded once here, for the built-in footer and a custom callback alike. */
|
|
290
|
+
async function prepareFooterBlocks(props, siteData, previewStage) {
|
|
291
|
+
const footer = props.footer ?? true;
|
|
292
|
+
const blocks = siteData.footerBlocks ?? [];
|
|
293
|
+
if (footer === false || blocks.length === 0) return null;
|
|
294
|
+
if (footer === true && !siteRendersFooterBlocks(siteData)) return null;
|
|
295
|
+
return {
|
|
296
|
+
page: buildFooterRenderablePageOutline(siteData, blocks),
|
|
297
|
+
routeMap: siteData.routes,
|
|
298
|
+
dataContext: {
|
|
299
|
+
...buildLayoutRootContext(siteData, {
|
|
300
|
+
apiBaseUrl: resolveLayoutApiBaseUrl(),
|
|
301
|
+
previewStage
|
|
302
|
+
}),
|
|
303
|
+
...footerLoaderContext(await resolveFooterBlockData(props, siteData, previewStage))
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
function siteRendersFooterBlocks(siteData) {
|
|
308
|
+
return resolveFooterRenderPlan({
|
|
309
|
+
isSdkSite: Boolean(siteData.site.is_sdk_site),
|
|
310
|
+
mode: resolveSdkFooterMode(siteData.sdkConfig)
|
|
311
|
+
}).renderFooterBlocks;
|
|
312
|
+
}
|
|
313
|
+
function footerLoaderContext(data) {
|
|
314
|
+
return data ? {
|
|
315
|
+
resolvedData: data.resolvedData,
|
|
316
|
+
loaderFailures: data.loaderFailures,
|
|
317
|
+
loaderSnapshot: data.loaderSnapshot,
|
|
318
|
+
prefetchedBlockData: data
|
|
319
|
+
} : {};
|
|
320
|
+
}
|
|
321
|
+
/** Requiring a client would break every `siteData` caller, so an unloaded footer block is left out instead. */
|
|
322
|
+
async function resolveFooterBlockData(props, siteData, previewStage) {
|
|
323
|
+
if (props.footerBlockData) return props.footerBlockData;
|
|
324
|
+
if (props.client) return prefetchFooterBlockData(props.client, siteData, { previewStage });
|
|
325
|
+
if (process.env.NODE_ENV !== "production" && footerBlocksNeedLoaders(siteData, { previewStage })) console.warn("[sdk] Layout has footer blocks that load data, but no client or footerBlockData, so they will not show. Pass client, or footerBlockData from prefetchFooterBlockData.");
|
|
326
|
+
}
|
|
260
327
|
/** Shared public facts for SDK chrome; no customer acceptance is present. */
|
|
261
328
|
function buildLayoutRootContext(siteData, input) {
|
|
262
329
|
return {
|
|
@@ -272,6 +339,7 @@ function buildLayoutRootContext(siteData, input) {
|
|
|
272
339
|
siteTerms: siteData.siteTerms,
|
|
273
340
|
mailingList: siteData.mailingList,
|
|
274
341
|
interactionContext: siteData.interactionContext,
|
|
342
|
+
siteCountry: siteData.site.siteCountry ?? null,
|
|
275
343
|
theme: input.theme
|
|
276
344
|
};
|
|
277
345
|
}
|
|
@@ -440,4 +508,4 @@ async function BlockContent(props) {
|
|
|
440
508
|
});
|
|
441
509
|
}
|
|
442
510
|
//#endregion
|
|
443
|
-
export { buildFooterRenderablePageOutline as a, UnsupportedOverrideOnlyLayoutChromeError as i, toBlockHydrationBootstrapConfig as n, Layout as r, BlockContent as t };
|
|
511
|
+
export { buildFooterRenderablePageOutline as a, UnsupportedOverrideOnlyLayoutChromeError as i, toBlockHydrationBootstrapConfig as n, prefetchFooterBlockData as o, Layout as r, BlockContent as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { et as parseStoredVariant, nt as lookFillPartsFromContent, rt as resolveRuntimeSection, t as buildPageRenderPlan } from "./pageRenderPlan-CfSnAkCO.mjs";
|
|
2
|
+
import { Aa as arrangementStyleAvailability, Ao as resolveSectionBackground, Co as spaciousBoundaryOption, Fa as resolveLookForBlock, Ga as filterLookIdsForPolicy, Gi as plainTextToInlineText, Ja as getCuratedSiteStyle, Ma as compileArrangementLookRuntime, Mo as defaultHeroImageSurfaceTreatment, Na as getCompatibleBlockAppearancePresets, Oa as arrangementAppearancePresets, Pa as resolveArrangementLookForBlock, Qi as isRecord, Ra as readStoredMode, So as softBoundaryOption, Ua as deriveSiteStyleBlockPolicy, Wa as filterLayoutProfilesForPolicy, Xa as compilePageRuntimeFields, Za as stripCompiledRuntimeStyleFields, _o as boundaryOptions, bo as isDecorativeTransitionIntent, do as resolvePageDesignBlockLookChoice, dr as formatDate, dt as systemCustomizeFacetDefinitionsForBlock, fo as resolvePageDesignBoundaryChoice, go as boundaryOptionForTransitionIntent, ja as automaticArrangementLook, jr as resolveDeclaredBlockDesignCapability, ko as parseCanonicalRuntimeBackground, t as getBlockDefinition, wo as transitionIntentForTreatment, xo as noneBoundaryOption, yo as boundaryTreatmentForBoundaryOptionId, za as resolveEffectiveArrangement } from "./registry-CXRXsFSx.mjs";
|
|
3
3
|
import { E as asPageFlowPresetId, O as makeBoundaryId, T as asLayoutVariantKey, _ as isArrangementMode } from "./customCss-BZ8YSrQg.mjs";
|
|
4
4
|
import { r as sectionStylesOverrideSchema } from "./schema-BpsqaSSU.mjs";
|
|
5
|
-
import { h as registeredManifestContentContract, p as admitTransportedRenderableManifestContent } from "./pageRuntimeSupport-
|
|
5
|
+
import { h as registeredManifestContentContract, p as admitTransportedRenderableManifestContent } from "./pageRuntimeSupport-uz4gzBOo.mjs";
|
|
6
6
|
import { a as isRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
|
|
7
7
|
import { E as toNonEmptyReadonlyArray, S as plainFrame, _ as designIssueSeverityForPolicy, d as lookModes, f as assertNever, p as defineBlockDesignCapability, w as sectionBackgroundPaintValues } from "./lookMediaFrame-CaH018pK.mjs";
|
|
8
8
|
import { t as BINDING_TRANSFORMS } from "./bindings-DhmIW3Er.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
2
|
-
import { o as isSupportedLoaderEndpoint, r as encodePublicProductCategorySelector, t as materializeEntriesMedia } from "./responseMedia-
|
|
3
|
-
import {
|
|
4
|
-
import { t as SDK_VERSION } from "./version-
|
|
2
|
+
import { o as isSupportedLoaderEndpoint, r as encodePublicProductCategorySelector, t as materializeEntriesMedia } from "./responseMedia-F-ElH2Rd.mjs";
|
|
3
|
+
import { f as parseSiteId, t as publicMapLocationParamsSchema } from "./mapLocation-BM5WX7FY.mjs";
|
|
4
|
+
import { t as SDK_VERSION } from "./version-CgCWRFEY.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
/**
|
|
7
7
|
* How long a rendered page may hold availability it read through the batch
|
|
@@ -1597,6 +1597,13 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1597
1597
|
auth: "user",
|
|
1598
1598
|
responseKind: "json"
|
|
1599
1599
|
},
|
|
1600
|
+
makeAppointmentServiceStudio: {
|
|
1601
|
+
path: "/sites/{siteId}/bookings/services/{serviceId}/make-studio",
|
|
1602
|
+
method: "POST",
|
|
1603
|
+
auth: "user",
|
|
1604
|
+
responseKind: "json",
|
|
1605
|
+
errors: []
|
|
1606
|
+
},
|
|
1600
1607
|
listAvailabilityRules: {
|
|
1601
1608
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/availability",
|
|
1602
1609
|
method: "GET",
|
|
@@ -4251,6 +4258,7 @@ const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
4251
4258
|
errors: [
|
|
4252
4259
|
"auth:forbidden",
|
|
4253
4260
|
"validation:invalid_input",
|
|
4261
|
+
"rate_limit:exceeded",
|
|
4254
4262
|
"server:internal_error"
|
|
4255
4263
|
]
|
|
4256
4264
|
},
|
|
@@ -12793,6 +12801,30 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12793
12801
|
cacheTags: buildPublicReadMemoryCacheTags("listPublicEvents", { siteId })
|
|
12794
12802
|
});
|
|
12795
12803
|
},
|
|
12804
|
+
async getPublicMapLocation(params) {
|
|
12805
|
+
const { siteId, stage, signal } = params;
|
|
12806
|
+
if (!siteId) throw new Error("getPublicMapLocation() requires siteId");
|
|
12807
|
+
const request = publicMapLocationParamsSchema.parse(params);
|
|
12808
|
+
return resilientFetchData("getPublicMapLocation", `public-map-location:${siteId}:${stage ?? ""}:${request.source}:${request.source === "venue" ? request.venueId : ""}`, async (sig) => {
|
|
12809
|
+
const requestId = "mapLocation";
|
|
12810
|
+
return normalizeBatchBlockLoaderResult(await apiClient({
|
|
12811
|
+
endpoint: "batchBlockLoaders",
|
|
12812
|
+
params: {
|
|
12813
|
+
siteId,
|
|
12814
|
+
...stage && { stage }
|
|
12815
|
+
},
|
|
12816
|
+
body: { requests: [{
|
|
12817
|
+
id: requestId,
|
|
12818
|
+
endpoint: "getPublicMapLocation",
|
|
12819
|
+
params: request
|
|
12820
|
+
}] },
|
|
12821
|
+
options: { signal: sig }
|
|
12822
|
+
}), requestId);
|
|
12823
|
+
}, {
|
|
12824
|
+
signal,
|
|
12825
|
+
cacheTags: buildPublicReadMemoryCacheTags("getPublicMapLocation", { siteId })
|
|
12826
|
+
});
|
|
12827
|
+
},
|
|
12796
12828
|
async getPublicEventDetails(params) {
|
|
12797
12829
|
const { siteId, limit, from, to, afterStartsAt, afterId, stage, categoryIds, venueId, staffMemberId, kind, eventSurface, eventPresets, scheduleScope, seriesId, includeOccurrenceId, signal } = params;
|
|
12798
12830
|
if (!siteId) throw new Error("getPublicEventDetails() requires siteId");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-
|
|
1
|
+
import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-CozQ7wE0.mjs";
|
|
2
2
|
export { activeThemeSchema, blockFieldConfigSchema, blockFieldExtensionSchema, blockFieldExtensionsSchema, blockFieldOptionsSchema, containerAlignmentSchema, containerMaxWidthSchema, containerOptionsSchema, contentConfigSchema, deployConfigSchema, fieldSelectOptionSchema, layoutConfigSchema, loaderParamBindingSchema, loaderParamValueSchema, loaderWhenValueSchema, riverbankSiteConfigSchema, sdkConfigLoaderSchema, sdkCustomBlockSchema, sdkDataLoadersSchema, sdkLoaderEndpointSchema, sdkSiteUrlSchema, sdkThemeConfigSchema, sdkThemePaletteSchema, sdkWorkflowConfigSchema, sdkWorkflowConfirmationSchema, sdkWorkflowEndpointSchema, sdkWorkflowIdSchema, sdkWorkflowTriggerSchema, sdkWorkflowsSchema, sectionBackgroundSchema, sectionOptionsSchema, sectionSpacingSchema, siteStyleConfigSchema, syncConfigSchema, themeSourceSchema, validateFieldIdConflicts };
|
package/dist/server/config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-
|
|
1
|
+
import { js as isCanonicalRichTextDoc } from "./registry-CXRXsFSx.mjs";
|
|
2
|
+
import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-CozQ7wE0.mjs";
|
|
3
3
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
4
4
|
//#region src/config/bindings.ts
|
|
5
5
|
function fieldBinding(path) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-
|
|
1
|
+
import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-yfe8WLEA.mjs";
|
|
2
2
|
export { CONFIG_ONLY_BLOCK_DATA_POLICY, DEFAULT_RESOLVE_BLOCK_DATA_DEPS, createBlockDataLoadPolicy, hasRegisteredDataLoaders, resolveBlockData, resolveBlockDataWithDeps, warnHostDataLoaderFailure };
|
package/dist/server/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as parseMediaIdentifier, a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, g as parseCanonicalMediaIdentifier, h as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
2
|
-
import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, g as getResilienceStatusFromError, h as RiverbankApiError, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-
|
|
2
|
+
import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, g as getResilienceStatusFromError, h as RiverbankApiError, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-Bvag5OtW.mjs";
|
|
3
3
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
4
4
|
import { t as SDK_CORRELATION_HEADER_NAMES } from "./types-C2eBBV6E.mjs";
|
|
5
|
-
import { t as prebuildCache } from "./prebuild-
|
|
5
|
+
import { t as prebuildCache } from "./prebuild-BuoXWT9y.mjs";
|
|
6
6
|
import * as path from "path";
|
|
7
7
|
import * as fs from "fs";
|
|
8
8
|
//#region src/prebuild/loader.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as blockDesignCapabilityMapFromDefinitions, Fo as appearancePresets, Gi as plainTextToInlineText, Ha as buildInitialPolicyPageDesignIntent, Hi as inlineTextToPlainText, Jn as siteHeaderManifest, Jo as resolveRepeaterGridSpanFieldId, Ka as componentRuntimeRulesForSiteStyle, Ko as resolveRepeaterGridColumnFieldId, Qa as surfaceResolutionContextFromTheme, Qi as isRecord, Wi as parseInlineTextFromUnknown, Ya as requireCuratedSiteStyle, ba as parseListLook, i as systemBlockDefinitions, ic as unsafeAsEventCategoryId, js as isCanonicalRichTextDoc, li as parseBackgroundContent, qa as designRuntimeRulesForSiteStyle, qi as parseFieldDefinition, qo as resolveRepeaterGridRowFieldId, qs as offeringLabelForPageSurfaceSubject, rc as unsafeAsContentEntryId, rr as resolveDateRuntimeContext, t as getBlockDefinition, uo as parsePageDesignIntent, xs as EVENT_PRESET_VALUES } from "./registry-CXRXsFSx.mjs";
|
|
2
2
|
import { S as asDesignBlockId, T as asLayoutVariantKey, b as asAppearancePresetId } from "./customCss-BZ8YSrQg.mjs";
|
|
3
|
-
import { C as normalizeRepeaterGridSpan, S as flowRepeaterGridItems, a as invalidRenderableBlock$1, d as siteBlockRenderContext, h as registeredManifestContentContract, i as collectMediaAssetSidecar, j as readPublishedBlockPlacement, l as resolveSdkBlockManifest, m as compileManifestContentContract, n as buildRenderablePageOutline, o as projectRenderablePageOutline, p as admitTransportedRenderableManifestContent, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, u as sanitizeSdkRuntimeBlockContent, v as deriveFieldValidationPlan, w as resolveRepeaterGridAcceptedSpans, y as fieldPlanToZod } from "./pageRuntimeSupport-
|
|
3
|
+
import { C as normalizeRepeaterGridSpan, S as flowRepeaterGridItems, a as invalidRenderableBlock$1, d as siteBlockRenderContext, h as registeredManifestContentContract, i as collectMediaAssetSidecar, j as readPublishedBlockPlacement, l as resolveSdkBlockManifest, m as compileManifestContentContract, n as buildRenderablePageOutline, o as projectRenderablePageOutline, p as admitTransportedRenderableManifestContent, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, u as sanitizeSdkRuntimeBlockContent, v as deriveFieldValidationPlan, w as resolveRepeaterGridAcceptedSpans, y as fieldPlanToZod } from "./pageRuntimeSupport-uz4gzBOo.mjs";
|
|
4
4
|
import { i as createRichTextDoc, o as isRecord$1, r as buildRichTextSchema } from "./richTextSchema-QLaQrbII.mjs";
|
|
5
|
-
import { a as buildPageDesignEditorReadModel, i as blockDesignInputsForDefinition, n as isEntryBoundBlockEmpty, o as applyCompiledRuntimeFieldsToContent, r as resolveRuntimeJoinFacts, s as compileEditorModelRuntime, t as applyBindingsToContent } from "./bindings-
|
|
5
|
+
import { a as buildPageDesignEditorReadModel, i as blockDesignInputsForDefinition, n as isEntryBoundBlockEmpty, o as applyCompiledRuntimeFieldsToContent, r as resolveRuntimeJoinFacts, s as compileEditorModelRuntime, t as applyBindingsToContent } from "./bindings-VGgS6UvF.mjs";
|
|
6
6
|
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
|
|
7
|
-
import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-
|
|
7
|
+
import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-yfe8WLEA.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
//#region ../theme-core/src/site-styles/contentTemplateDesignIntent.ts
|
|
10
10
|
function asContentTemplateDesignBlockId(value) {
|
|
@@ -2083,7 +2083,7 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
2083
2083
|
const { client, siteId, site, contentResponse, preview = false, dataLoaderOverrides, searchParams } = params;
|
|
2084
2084
|
const previewStage = preview ? "preview" : "published";
|
|
2085
2085
|
const blockDataPolicy = createBlockDataLoadPolicy(dataLoaderOverrides, normalizeDataLoaderSearchParams(searchParams));
|
|
2086
|
-
const support = buildSiteRenderSupport(site, collectMediaAssetSidecar(contentResponse.mediaAssets)
|
|
2086
|
+
const support = buildSiteRenderSupport(site, collectMediaAssetSidecar(contentResponse.mediaAssets));
|
|
2087
2087
|
const templateContentSupport = toTemplateContentRenderSupport(support, siteId);
|
|
2088
2088
|
if (isEntryResponse(contentResponse)) {
|
|
2089
2089
|
const entryData = contentResponse.entry;
|
|
@@ -2306,8 +2306,5 @@ function isEntryResponse(response) {
|
|
|
2306
2306
|
function isPageSurfaceResponse(response) {
|
|
2307
2307
|
return response.type === "pageSurface";
|
|
2308
2308
|
}
|
|
2309
|
-
function contentLocationSupport(response) {
|
|
2310
|
-
return "page" in response ? response.locationMapSupport : void 0;
|
|
2311
|
-
}
|
|
2312
2309
|
//#endregion
|
|
2313
2310
|
export { loadContent as i, isPageContent as n, isPageSurfaceContent as r, isEntryContent as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as siteBlockRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-
|
|
1
|
+
import { d as siteBlockRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-uz4gzBOo.mjs";
|
|
2
2
|
import { r as requireSdkTheme } from "./themeAdmission-DGSAlFUK.mjs";
|
|
3
3
|
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
|
|
4
|
-
import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-
|
|
4
|
+
import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-yfe8WLEA.mjs";
|
|
5
5
|
//#region src/rendering/helpers/loadPage.ts
|
|
6
6
|
/**
|
|
7
7
|
* Server-side helper to fetch all data needed for <Page> component.
|