@riverbankcms/sdk 0.174.0 → 0.175.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-GqVX3I8E.d.ts → BlocksIslandsHydrator-hb2IWD8K.d.ts} +1 -1
- package/dist/_dts/{Page-BhUH31M-.d.ts → Page-BlY68ZF-.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DBn2x0UL.d.ts → SdkPreviewMode-CA8hU7hW.d.ts} +2 -2
- package/dist/_dts/{client-Cr-sOeSl.d.ts → client-B6tCvmG4.d.ts} +487 -11
- package/dist/_dts/{content-types-DKw1yJdN.d.ts → content-types-B9qryk4R.d.ts} +2 -2
- package/dist/_dts/{contracts-CJ2O03nB.d.ts → contracts-DWoaRxj1.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DoGHHKr_.d.ts → footerPageOutline-Djdrhp5s.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-CJGu4hoa.d.ts → generatePageMetadata-CFi0vxov.d.ts} +2 -2
- package/dist/_dts/{index--39uLjrr.d.ts → index-Bl5_pjmq.d.ts} +1 -1
- package/dist/_dts/{index-DQZ5L0Gb.d.ts → index-Btp5nIoz.d.ts} +2 -2
- package/dist/_dts/{index-Bq-488M7.d.ts → index-CQUzwOxO.d.ts} +1 -1
- package/dist/_dts/{index-DYlfdT1O.d.ts → index-DmhFb6R1.d.ts} +1 -1
- package/dist/_dts/{index-3GzargmS.d.ts → index-OtazQE3U.d.ts} +2 -2
- package/dist/_dts/{index-DYsP4k6S.d.ts → index-YRQulWB4.d.ts} +3 -3
- package/dist/_dts/{index-DdEi2iXd.d.ts → index-_pXaCO12.d.ts} +4 -4
- package/dist/_dts/{loadContent-BVPagYmy.d.ts → loadContent-Hcuvs4pz.d.ts} +7 -7
- package/dist/_dts/{request-Be1E-H-V.d.ts → request-BT8i_vH-.d.ts} +2070 -503
- package/dist/_dts/{resolveBlockData-D1pL25bD.d.ts → resolveBlockData-B-dJrunl.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-B4sbTf96.d.ts → resolvePageContent-CVLYWcoI.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 +13 -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 +3 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +2 -1
- package/dist/_dts/{types-Bm5_3VEd.d.ts → types-C0XZnjXz.d.ts} +3 -3
- package/dist/_dts/{types-5MeDI1w8.d.ts → types-CXL1QJSY.d.ts} +7 -7
- package/dist/_dts/{types-CVoCc_Ia.d.ts → types-OKzbqRBx.d.ts} +2 -2
- package/dist/_dts/{validation-lEtYD-Rh.d.ts → validation-Bxi66FtQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DkflFLGQ.mjs → BlocksIslandsHydrator-2xzlERTG.mjs} +17 -16
- package/dist/client/{BookingMailingListNote-CAyoiAGD.mjs → BookingMailingListNote-qsohSEdQ.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-C7yiJrxm.mjs → BookingPanelArrangement-DrdtON0q.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-CUFxBaTM.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-BPQU5Snc.mjs → CalendarNavigationChevron-Ch0w0Utn.mjs} +34 -9
- package/dist/client/DemoBookingPortalAccess-DGgsjqXK.mjs +545 -0
- package/dist/client/{EventCalendar.client-BiWQc28-.mjs → EventCalendar.client-Dg4PHFJJ.mjs} +15 -25
- package/dist/client/{EventCombined.client-B_ytWQtn.mjs → EventCombined.client-tky8JcnQ.mjs} +25 -17
- package/dist/client/{EventItem-C-mxXpX_.mjs → EventItem-BybMSKNL.mjs} +4 -3
- package/dist/client/{EventListWeekNavigation-Bm3Ap1Rd.mjs → EventListWeekNavigation-uvWRE5wi.mjs} +1 -1
- package/dist/client/{EventListing.client-Bs_8im5_.mjs → EventListing.client-DQx9dohz.mjs} +3 -3
- package/dist/client/{EventListing.view-CN7BjGgC.mjs → EventListing.view-r31k8Icz.mjs} +8 -7
- package/dist/client/{EventRegistrationPayment-DPkRcSdw.mjs → EventRegistrationPayment-BMmPDmSf.mjs} +664 -362
- package/dist/client/{LocationMapActions-BJT7MqP2.mjs → LocationMapActions-BecH-qhI.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCIwlON6.mjs → MapDrawingSvg-BJzmFdcn.mjs} +18 -3
- package/dist/client/{Page--xJ23nA5.mjs → Page-CWN_8cLZ.mjs} +736 -1667
- package/dist/client/{DemoBookingPortalAccess-BnEgvJas.mjs → SiteTermsAgreementField-Dr5lj4oY.mjs} +4 -301
- package/dist/client/{StepIndicator-D391QRNc.mjs → StepIndicator-C7RJBOW3.mjs} +37 -249
- package/dist/client/{accordion-BQtTkDN8.mjs → accordion-uUi_N6mZ.mjs} +1 -1
- package/dist/client/{booking-form.client-D9M7TKGV.mjs → booking-form.client-CKHgxvsh.mjs} +229 -42
- package/dist/client/{bookingForm-BsOS0sl9.mjs → bookingForm-Bi74dmiS.mjs} +4 -4
- package/dist/client/bookings.mjs +22 -15
- package/dist/client/{boxStyleClassNames-CNDLpT06.mjs → boxStyleClassNames-C-gFwhnO.mjs} +3 -29
- package/dist/client/{carousel-CPsW-FPh.mjs → carousel-C0_BqMA0.mjs} +1 -1
- package/dist/client/{cart-CwElmocm.mjs → cart-BOHuppVu.mjs} +3 -3
- package/dist/client/{cart.client-RpqI56w8.mjs → cart.client-IfJE1zAp.mjs} +1 -1
- package/dist/client/{checkout-CfMgqY8H.mjs → checkout-C3Aj-aNa.mjs} +3 -3
- package/dist/client/{checkout.client-BpuPyOuJ.mjs → checkout.client-Tg9lfeYf.mjs} +1 -1
- package/dist/client/{checkoutUrls-VeHY6WYj.mjs → checkoutUrls-OLqQdAXD.mjs} +1 -1
- package/dist/client/client.mjs +113 -21
- package/dist/client/{context-CNlesLfF.mjs → context-D8TpQXjX.mjs} +76 -58
- package/dist/client/{course-q1sA4Cj-.mjs → course-DHmeQAvq.mjs} +2 -2
- package/dist/client/{creditProducts-KYMVIH3J.mjs → creditProducts-BQ1t1erI.mjs} +14 -61
- package/dist/client/{dateFormatting-B73Ll0s4.mjs → dateFormatting-ABCZWkpT.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BVbLD4pi.mjs → demoPortalMagicLink-BdcuW_pa.mjs} +1 -1
- package/dist/client/display-DMqotaGU.mjs +11797 -0
- package/dist/client/{enhanceHeaderSection-BzjY6AiY.mjs → enhanceHeaderSection-Ciuhsk0E.mjs} +3 -3
- package/dist/client/{event-details.client-CseTWUFC.mjs → event-details.client-CJapNbTv.mjs} +1 -1
- package/dist/client/{event-registration.client-b5TLxntR.mjs → event-registration.client-CAdcpnLc.mjs} +295 -188
- package/dist/client/{eventCalendar-C-kJNIc9.mjs → eventCalendar-BlsD5R8M.mjs} +4 -4
- package/dist/client/{eventCombined-BgHJGhwE.mjs → eventCombined-B9Ly3024.mjs} +4 -4
- package/dist/client/{eventDetails-CAwbreD0.mjs → eventDetails-CbEGI4jO.mjs} +2 -2
- package/dist/client/{eventListing-_14atrj8.mjs → eventListing-ZSmvhWII.mjs} +4 -4
- package/dist/client/{eventRegistration-BOqSdstJ.mjs → eventRegistration-D-yUcIyO.mjs} +4 -4
- package/dist/client/{form-DfAB-llc.mjs → form-DG_YZSNn.mjs} +3 -3
- package/dist/client/{form.client-DN-I9_qC.mjs → form.client-BU6dM0-C.mjs} +4 -4
- package/dist/client/{form.parts-t2Q1neM6.mjs → form.parts-Db0Iq7nx.mjs} +1 -1
- package/dist/client/{formatDate-Dp7POa9Y.mjs → formatDate-DFfWHpQB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -3
- package/dist/client/gifting-DMrsN4B4.mjs +28 -0
- package/dist/client/gifting.client-BVa2XYJB.mjs +404 -0
- package/dist/client/gifting.parts-C2u4Y-pf.mjs +86 -0
- package/dist/client/{headerSection-Dces54pb.mjs → headerSection-D91EzlOR.mjs} +2 -2
- package/dist/client/{display-D8MW2b0e.mjs → lookSurfaces-BDZLALxj.mjs} +3084 -12938
- package/dist/client/{newsletter-form.client-D_YFUlR2.mjs → newsletter-form.client-BMGRiRpo.mjs} +7 -5
- package/dist/client/{newsletter-form.parts-URO5Mn_I.mjs → newsletter-form.parts-D5UfUaD3.mjs} +3 -3
- package/dist/client/{newsletterForm-_c9fKIzS.mjs → newsletterForm-B_67sNwa.mjs} +3 -3
- package/dist/client/{noop-D5mFWXtN.mjs → noop-DF8_EiFt.mjs} +93 -28
- package/dist/client/portal/client.mjs +313 -148
- package/dist/client/{product-detail.client-CVW1UIxJ.mjs → product-detail.client-D-XNir0m.mjs} +1 -1
- package/dist/client/{product-list.client-CF9hO23G.mjs → product-list.client-BLfYQ-qi.mjs} +1 -1
- package/dist/client/{productDetail-C_qbmUuP.mjs → productDetail-W0_0lDGe.mjs} +3 -3
- package/dist/client/{productList-Df5qDD0z.mjs → productList-ayAtPJdb.mjs} +3 -3
- package/dist/client/{propsDecoder-BiEyK2ii.mjs → propsDecoder-ChYKWjLA.mjs} +4 -3
- package/dist/client/{registry.server-ClcfWpvM.mjs → registry.server-B1EEZkcr.mjs} +311 -262
- package/dist/client/rendering/client.mjs +25 -491
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -7
- package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-CDAfpMQU.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DAypPzSo.mjs → routeIslandApiConfig-CcGWvyht.mjs} +1 -1
- package/dist/client/{shop-gteEpeO5.mjs → shop-DbUUoHFJ.mjs} +3 -3
- package/dist/client/{shop-discount-apply.state-DidgH7ow.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
- package/dist/client/{shop-commerce-Bw4_BXQg.mjs → shop-commerce-aQqcDmyZ.mjs} +64 -32
- package/dist/client/{shop-commerce-store-Da6Ah-_4.mjs → shop-commerce-store-Cd7USpuY.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DGvPBmVP.mjs +83 -0
- package/dist/client/{shop.client-CbbdjWWd.mjs → shop.client-BNZ9M8cG.mjs} +56 -19
- package/dist/client/{shop.interactive-CKFORzux.mjs → shop.interactive-CJAINJr3.mjs} +118 -39
- package/dist/client/{shopShared-C7QjoywZ.mjs → shopShared-DwVAuGsx.mjs} +2 -2
- package/dist/client/{timetableModel-CtZiIj9q.mjs → timetableModel-DBTIFWTb.mjs} +11 -148
- package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BomyyKeo.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-BuLgof7O.mjs → useDiscountCodeUi-CCxHMWlU.mjs} +32 -17
- package/dist/client/{useEventPagination-B4VPtSEF.mjs → useEventPagination-Bjin_qaN.mjs} +7 -6
- package/dist/client/{view-CvlTplao.mjs → view-BTk470k0.mjs} +3 -2
- package/dist/client/{view-CxUpgcM6.mjs → view-Cw4EmEPv.mjs} +100 -32
- package/dist/preview-next/client/{PageSectionToolbar-BFbSrDbi.mjs → PageSectionToolbar-bq7gbKvn.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-BtpzqQ-i.mjs → PreviewEditorSidebar-DVsPNcos.mjs} +32 -29
- package/dist/preview-next/client/{PreviewEditorUI-z22h-CCY.mjs → PreviewEditorUI-B-pq3aZc.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-BW3Qpoa_.mjs → PreviewShell-ChyjB96e.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BvVeK1hR.mjs → SdkPreviewModeRuntime-D_czeC0l.mjs} +84 -101
- package/dist/preview-next/client/{previewAssistantSlot-BUqAh1FL.mjs → previewAssistantSlot-B61mZd81.mjs} +4981 -3275
- package/dist/preview-next/client/{previewChromeRoot-NCy5zHO8.mjs → previewChromeRoot-dwOn9XtM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CxmKDVGZ.mjs → sdk-runtime-DZDfOxoW.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-B_UaDyJO.mjs → siteStyleAccess-BZDIC-fA.mjs} +529 -238
- package/dist/preview-next/client/{useAutosaveStatus-BqmWvPLY.mjs → useAutosaveStatus-BbzLMf-l.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-LAllV0rU.mjs → useOpenBlockForSetup-BEXcWQeI.mjs} +25 -5
- package/dist/preview-next/container-responsive.css +51 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DV6SeCNv.mjs → route-contract-0gSlK9S0.mjs} +87 -12
- package/dist/server/{Block.shared-Ch2FKAvU.mjs → Block.shared-DeXXycg8.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFvjDVzi.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
- package/dist/server/{bindings-CQg2lzZn.mjs → bindings-7L3pC5Os.mjs} +13 -34
- package/dist/server/{client-aYRTVneD.mjs → client-CgghATBm.mjs} +112 -20
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{customCss-BGB8gMVb.mjs → customCss-BZ8YSrQg.mjs} +1 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-Cgpfr44e.mjs → loadContent-D7M5Vcug.mjs} +5 -5
- package/dist/server/{loadPage-RDk10NMP.mjs → loadPage-CiTId05y.mjs} +2 -2
- package/dist/server/{lookMediaFrame-CQtkvlDn.mjs → lookMediaFrame-CaH018pK.mjs} +129 -12
- package/dist/server/next.mjs +35 -9
- package/dist/server/{overrideResolution-VhhN94d8.mjs → overrideResolution-CJ3MRI5Q.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CkFTsxkd.mjs → pageRenderPlan-Cuos4Xcd.mjs} +105 -357
- package/dist/server/{pageRuntimeSupport-CpAtzNxD.mjs → pageRuntimeSupport-CuVj3bkd.mjs} +4 -3
- package/dist/server/{pageShared-B8yLPjs0.mjs → pageShared-JxlV8_Bo.mjs} +1707 -1811
- package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
- package/dist/server/{prebuild-DOu6QceG.mjs → prebuild-BDhlJbAx.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CfOXFKYG.mjs → prefetchBlockData-kERh_c0v.mjs} +2 -2
- package/dist/server/{registry-34rkAfaU.mjs → registry-cQ9N5W-n.mjs} +21091 -20209
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-D7VeoWgr.mjs → resolveBlockData-CN4UmmTK.mjs} +1 -1
- package/dist/server/{schema-CUDHMirj.mjs → schema-BpsqaSSU.mjs} +2 -2
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-CLVKoJrX.mjs → validation-3puM5SM8.mjs} +3 -3
- package/dist/server/{version-HVfdvBJ0.mjs → version-B8g-Wx57.mjs} +1 -1
- package/dist/styles/index.css +361 -57
- package/package.json +1 -1
- package/dist/client/bookability-CE637yDE.mjs +0 -17
- package/dist/client/useDiscountApply-BZU5DWZQ.mjs +0 -199
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
2
2
|
import { o as isSupportedLoaderEndpoint, r as encodePublicProductCategorySelector, t as materializeEntriesMedia } from "./responseMedia-DpBC1hTM.mjs";
|
|
3
3
|
import { t as parseSiteId } from "./identity-DQD_8lNO.mjs";
|
|
4
|
-
import { t as SDK_VERSION } from "./version-
|
|
4
|
+
import { t as SDK_VERSION } from "./version-B8g-Wx57.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
+
/**
|
|
7
|
+
* How long a rendered page may hold availability it read through the batch
|
|
8
|
+
* transport. Writers purge those pages by tag and batch POSTs never touch the
|
|
9
|
+
* CDN, so this is only the backstop for a purge that failed. Checkout enforces
|
|
10
|
+
* capacity itself, whatever a page showed.
|
|
11
|
+
*/
|
|
12
|
+
const PUBLIC_RENDERED_AVAILABILITY_FRESHNESS_SECONDS = 1800;
|
|
6
13
|
const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
|
|
7
14
|
function availability(fetchTags, transport) {
|
|
8
15
|
return {
|
|
@@ -35,6 +42,7 @@ const PUBLIC_READ_CACHE_POLICIES = {
|
|
|
35
42
|
"public_passes",
|
|
36
43
|
"public_memberships"
|
|
37
44
|
], "batch_only"),
|
|
45
|
+
getPublicMapLocation: availability(["public_events", "public_event_filters"], "batch_only"),
|
|
38
46
|
resolveEventSubroute: availability(["public_events", "public_event_filters"], "direct"),
|
|
39
47
|
listPublicRouteCandidates: content(["published_content"], "batch_only"),
|
|
40
48
|
listPublicTeamMembers: content(["public_team_members"]),
|
|
@@ -63,6 +71,10 @@ function getPublicReadCachePolicy(endpoint) {
|
|
|
63
71
|
function publicReadFreshnessSeconds(endpoint) {
|
|
64
72
|
return getPublicReadCachePolicy(endpoint).freshness === "availability" ? 60 : PUBLIC_CONTENT_FRESHNESS_SECONDS;
|
|
65
73
|
}
|
|
74
|
+
/** The freshness budget of a read made through the uncached batch transport. */
|
|
75
|
+
function publicReadBatchFreshnessSeconds(endpoint) {
|
|
76
|
+
return getPublicReadCachePolicy(endpoint).freshness === "availability" ? PUBLIC_RENDERED_AVAILABILITY_FRESHNESS_SECONDS : PUBLIC_CONTENT_FRESHNESS_SECONDS;
|
|
77
|
+
}
|
|
66
78
|
//#endregion
|
|
67
79
|
//#region ../core/src/committed-write-proof.ts
|
|
68
80
|
/** Positive atomic storage evidence survives a failed response projection. */
|
|
@@ -657,16 +669,19 @@ function buildPublicReadFetchTags(endpoint, params) {
|
|
|
657
669
|
function buildPublicReadMemoryCacheTags(endpoint, params) {
|
|
658
670
|
return getPublicReadCachePolicy(endpoint).kind === "live" ? [] : buildPublicReadFetchTags(endpoint, params);
|
|
659
671
|
}
|
|
660
|
-
|
|
661
|
-
function buildPublicReadFetchPolicy(siteId, reads) {
|
|
672
|
+
function buildFetchPolicy(siteId, reads, freshnessSeconds) {
|
|
662
673
|
return {
|
|
663
674
|
tags: normalizeRevalidateTags(reads.flatMap(({ endpoint, params }) => isPublicReadEndpoint(endpoint) ? buildPublicReadFetchTags(endpoint, {
|
|
664
675
|
...params,
|
|
665
676
|
siteId
|
|
666
677
|
}) : buildCacheReadTags([], { siteId }))),
|
|
667
|
-
revalidate: Math.min(PUBLIC_CONTENT_FRESHNESS_SECONDS, ...reads.map(({ endpoint }) => isPublicReadEndpoint(endpoint) ?
|
|
678
|
+
revalidate: Math.min(PUBLIC_CONTENT_FRESHNESS_SECONDS, ...reads.map(({ endpoint }) => isPublicReadEndpoint(endpoint) ? freshnessSeconds(endpoint) : 60))
|
|
668
679
|
};
|
|
669
680
|
}
|
|
681
|
+
/** A transport batch inherits every dependency and its shortest freshness budget. */
|
|
682
|
+
function buildPublicReadBatchFetchPolicy(siteId, reads) {
|
|
683
|
+
return buildFetchPolicy(siteId, reads, publicReadBatchFreshnessSeconds);
|
|
684
|
+
}
|
|
670
685
|
//#endregion
|
|
671
686
|
//#region ../api/src/sdkEntryReadEndpoints.ts
|
|
672
687
|
const SDK_ENTRY_READ_ENDPOINTS = {
|
|
@@ -1265,6 +1280,42 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1265
1280
|
"server:internal_error"
|
|
1266
1281
|
]
|
|
1267
1282
|
},
|
|
1283
|
+
updateOwnTrainerProfile: {
|
|
1284
|
+
path: "/sites/{siteId}/bookings/my-trainer-profile",
|
|
1285
|
+
method: "PUT",
|
|
1286
|
+
auth: "user",
|
|
1287
|
+
responseKind: "json",
|
|
1288
|
+
errors: [
|
|
1289
|
+
"validation:invalid_input",
|
|
1290
|
+
"auth:forbidden",
|
|
1291
|
+
"resource:not_found",
|
|
1292
|
+
"server:internal_error"
|
|
1293
|
+
]
|
|
1294
|
+
},
|
|
1295
|
+
createOwnTrainerPhotoUploadUrl: {
|
|
1296
|
+
path: "/sites/{siteId}/bookings/my-trainer-profile/photo/upload-url",
|
|
1297
|
+
method: "POST",
|
|
1298
|
+
tags: ["media"],
|
|
1299
|
+
auth: "user",
|
|
1300
|
+
responseKind: "json",
|
|
1301
|
+
errors: [
|
|
1302
|
+
"validation:invalid_input",
|
|
1303
|
+
"auth:forbidden",
|
|
1304
|
+
"server:internal_error"
|
|
1305
|
+
]
|
|
1306
|
+
},
|
|
1307
|
+
finalizeOwnTrainerPhotoUpload: {
|
|
1308
|
+
path: "/sites/{siteId}/bookings/my-trainer-profile/photo/finalize",
|
|
1309
|
+
method: "POST",
|
|
1310
|
+
tags: ["media"],
|
|
1311
|
+
auth: "user",
|
|
1312
|
+
responseKind: "json",
|
|
1313
|
+
errors: [
|
|
1314
|
+
"validation:invalid_input",
|
|
1315
|
+
"auth:forbidden",
|
|
1316
|
+
"server:internal_error"
|
|
1317
|
+
]
|
|
1318
|
+
},
|
|
1268
1319
|
createTeamMemberProfile: {
|
|
1269
1320
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile",
|
|
1270
1321
|
method: "POST",
|
|
@@ -1899,6 +1950,18 @@ const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
|
|
|
1899
1950
|
"server:internal_error"
|
|
1900
1951
|
]
|
|
1901
1952
|
},
|
|
1953
|
+
findTransferRecipient: {
|
|
1954
|
+
path: "/sites/{siteId}/bookings/transfer-recipient",
|
|
1955
|
+
method: "POST",
|
|
1956
|
+
auth: "user",
|
|
1957
|
+
responseKind: "json",
|
|
1958
|
+
demoMutation: DEMO_MUTATION_ALLOWED,
|
|
1959
|
+
errors: [
|
|
1960
|
+
"validation:invalid_input",
|
|
1961
|
+
"auth:forbidden",
|
|
1962
|
+
"server:internal_error"
|
|
1963
|
+
]
|
|
1964
|
+
},
|
|
1902
1965
|
correctBookingCheckIn: {
|
|
1903
1966
|
path: "/sites/{siteId}/bookings/attendees/{attendeeId}/check-in",
|
|
1904
1967
|
method: "PATCH",
|
|
@@ -4167,6 +4230,18 @@ const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
4167
4230
|
"server:internal_error"
|
|
4168
4231
|
]
|
|
4169
4232
|
},
|
|
4233
|
+
exportPersonDataReadable: {
|
|
4234
|
+
path: "/sites/{siteId}/bookings/people/{personId}/export.html",
|
|
4235
|
+
method: "GET",
|
|
4236
|
+
auth: "user",
|
|
4237
|
+
responseKind: "blob",
|
|
4238
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
4239
|
+
errors: [
|
|
4240
|
+
"auth:forbidden",
|
|
4241
|
+
"resource:not_found",
|
|
4242
|
+
"server:internal_error"
|
|
4243
|
+
]
|
|
4244
|
+
},
|
|
4170
4245
|
lookupBookingPersonByEmail: {
|
|
4171
4246
|
path: "/sites/{siteId}/bookings/people/lookup-email",
|
|
4172
4247
|
method: "POST",
|
|
@@ -4179,6 +4254,18 @@ const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
4179
4254
|
"server:internal_error"
|
|
4180
4255
|
]
|
|
4181
4256
|
},
|
|
4257
|
+
addStaffClient: {
|
|
4258
|
+
path: "/sites/{siteId}/bookings/people/add-client",
|
|
4259
|
+
method: "POST",
|
|
4260
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
4261
|
+
auth: "user",
|
|
4262
|
+
responseKind: "json",
|
|
4263
|
+
errors: [
|
|
4264
|
+
"auth:forbidden",
|
|
4265
|
+
"validation:invalid_input",
|
|
4266
|
+
"server:internal_error"
|
|
4267
|
+
]
|
|
4268
|
+
},
|
|
4182
4269
|
getBookingPerson: {
|
|
4183
4270
|
path: "/sites/{siteId}/bookings/people/{personId}",
|
|
4184
4271
|
method: "GET",
|
|
@@ -4681,18 +4768,6 @@ const API_ENDPOINTS$1 = {
|
|
|
4681
4768
|
"server:internal_error"
|
|
4682
4769
|
]
|
|
4683
4770
|
},
|
|
4684
|
-
turnOnCourses: {
|
|
4685
|
-
path: "/sites/{siteId}/bookings/settings/courses",
|
|
4686
|
-
method: "POST",
|
|
4687
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteBookingSettings],
|
|
4688
|
-
auth: "user",
|
|
4689
|
-
responseKind: "json",
|
|
4690
|
-
errors: [
|
|
4691
|
-
"auth:forbidden",
|
|
4692
|
-
"resource:conflict",
|
|
4693
|
-
"server:internal_error"
|
|
4694
|
-
]
|
|
4695
|
-
},
|
|
4696
4771
|
sendTestEmail: {
|
|
4697
4772
|
path: "/sites/{siteId}/settings/emails/test",
|
|
4698
4773
|
method: "POST",
|
|
@@ -6090,6 +6165,19 @@ const API_ENDPOINTS$1 = {
|
|
|
6090
6165
|
],
|
|
6091
6166
|
responseKind: "json"
|
|
6092
6167
|
},
|
|
6168
|
+
accountUpdateName: {
|
|
6169
|
+
path: "/account/name",
|
|
6170
|
+
method: "POST",
|
|
6171
|
+
tags: ["account"],
|
|
6172
|
+
auth: "user",
|
|
6173
|
+
errors: [
|
|
6174
|
+
"auth:unauthenticated",
|
|
6175
|
+
"auth:forbidden",
|
|
6176
|
+
"validation:invalid_input",
|
|
6177
|
+
"server:internal_error"
|
|
6178
|
+
],
|
|
6179
|
+
responseKind: "json"
|
|
6180
|
+
},
|
|
6093
6181
|
accountDismissTwoStepPrompt: {
|
|
6094
6182
|
path: "/account/two-step-prompt/dismiss",
|
|
6095
6183
|
method: "POST",
|
|
@@ -8469,6 +8557,7 @@ const API_ENDPOINTS$1 = {
|
|
|
8469
8557
|
responseKind: "json",
|
|
8470
8558
|
errors: [
|
|
8471
8559
|
"validation:invalid_input",
|
|
8560
|
+
"auth:forbidden",
|
|
8472
8561
|
"resource:already_exists",
|
|
8473
8562
|
"server:internal_error"
|
|
8474
8563
|
]
|
|
@@ -10423,7 +10512,7 @@ function resolveBatchReadFetchPolicy(params, body) {
|
|
|
10423
10512
|
if (params?.stage === "preview" || typeof params?.siteId !== "string") return null;
|
|
10424
10513
|
const parsed = batchReadPolicyBodySchema.safeParse(body);
|
|
10425
10514
|
if (!parsed.success) return null;
|
|
10426
|
-
return
|
|
10515
|
+
return buildPublicReadBatchFetchPolicy(params.siteId, parsed.data.requests);
|
|
10427
10516
|
}
|
|
10428
10517
|
function batchReadRequestOptions(params, body, options) {
|
|
10429
10518
|
if (options.cache === "no-store") return options;
|
|
@@ -11451,7 +11540,7 @@ function deriveGetSiteKey(params) {
|
|
|
11451
11540
|
};
|
|
11452
11541
|
const normalizedParams = {
|
|
11453
11542
|
...identity,
|
|
11454
|
-
currentPath: normalizeRuntimePublicPath(params.currentPath)
|
|
11543
|
+
...toNonEmptyString(params.currentPath) === null ? {} : { currentPath: normalizeRuntimePublicPath(params.currentPath) }
|
|
11455
11544
|
};
|
|
11456
11545
|
return {
|
|
11457
11546
|
ok: true,
|
|
@@ -11550,7 +11639,7 @@ function hasExpectedPublishedRuntimeCacheKeyParams(endpoint, normalizedParams) {
|
|
|
11550
11639
|
"domain",
|
|
11551
11640
|
"id",
|
|
11552
11641
|
"slug"
|
|
11553
|
-
].filter((key) => normalizedParams[key] !== void 0).length === 1 &&
|
|
11642
|
+
].filter((key) => normalizedParams[key] !== void 0).length === 1 && keys.every((key) => [
|
|
11554
11643
|
"currentPath",
|
|
11555
11644
|
"domain",
|
|
11556
11645
|
"id",
|
|
@@ -12735,7 +12824,10 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12735
12824
|
...includeOccurrenceId && { includeOccurrenceId }
|
|
12736
12825
|
}
|
|
12737
12826
|
}] },
|
|
12738
|
-
options: {
|
|
12827
|
+
options: {
|
|
12828
|
+
signal: sig,
|
|
12829
|
+
next: { revalidate: 60 }
|
|
12830
|
+
}
|
|
12739
12831
|
}), requestId);
|
|
12740
12832
|
}, {
|
|
12741
12833
|
signal,
|
|
@@ -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-3puM5SM8.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 { ws as isCanonicalRichTextDoc } from "./registry-cQ9N5W-n.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-3puM5SM8.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-CN4UmmTK.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-CgghATBm.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-BDhlJbAx.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 {
|
|
2
|
-
import { S as asDesignBlockId, T as asLayoutVariantKey, b as asAppearancePresetId } from "./customCss-
|
|
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-
|
|
1
|
+
import { Ba as designRuntimeRulesForSiteStyle, Bi as parseFieldDefinition, Bo as resolveRepeaterGridRowFieldId, Cr as blockDesignCapabilityMapFromDefinitions, Fa as buildInitialPolicyPageDesignIntent, Fi as inlineTextToPlainText, Ga as surfaceResolutionContextFromTheme, Gi as isRecord, Ha as requireCuratedSiteStyle, Ks as offeringLabelForPageSurfaceSubject, Li as parseInlineTextFromUnknown, Oo as appearancePresets, Ri as plainTextToInlineText, Vn as siteHeaderManifest, Vo as resolveRepeaterGridSpanFieldId, Xn as resolveDateRuntimeContext, i as systemBlockDefinitions, ms as EVENT_PRESET_VALUES, nc as unsafeAsContentEntryId, ni as parseBackgroundContent, pa as parseListLook, rc as unsafeAsEventCategoryId, ro as parsePageDesignIntent, t as getBlockDefinition, ws as isCanonicalRichTextDoc, za as componentRuntimeRulesForSiteStyle, zo as resolveRepeaterGridColumnFieldId } from "./registry-cQ9N5W-n.mjs";
|
|
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-CuVj3bkd.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-7L3pC5Os.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-CN4UmmTK.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
//#region ../theme-core/src/site-styles/contentTemplateDesignIntent.ts
|
|
10
10
|
function asContentTemplateDesignBlockId(value) {
|
|
@@ -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-CuVj3bkd.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-CN4UmmTK.mjs";
|
|
5
5
|
//#region src/rendering/helpers/loadPage.ts
|
|
6
6
|
/**
|
|
7
7
|
* Server-side helper to fetch all data needed for <Page> component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $ as SURFACE_FOREGROUND_CSS_VARS, B as preparePaletteColourIndex, Dt as parseThemeColorToken, et as SURFACE_INK_CSS_VARS, j as expandPalette, mt as rgbColorValue, nt as surfaceForegroundDeclarations, st as surfaceInkDeclarations } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
2
|
import { N as freezeOwnedThemeValue, P as ownedThemeSnapshot, _ as contextualButtonSurfaceResetStyles, a as requireResolvedSurface } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
3
|
-
import { _ as isArrangementMode, b as asAppearancePresetId } from "./customCss-
|
|
3
|
+
import { _ as isArrangementMode, b as asAppearancePresetId } from "./customCss-BZ8YSrQg.mjs";
|
|
4
4
|
//#region ../theme-core/src/surfaces/opaqueSurface.ts
|
|
5
5
|
function opaqueSurfaceContextFromTheme(theme) {
|
|
6
6
|
const palette = freezeOwnedThemeValue(expandPalette(theme.palette));
|
|
@@ -287,7 +287,8 @@ const arrangementLookTargets = {
|
|
|
287
287
|
faq: "faq",
|
|
288
288
|
"cta-full": "cta",
|
|
289
289
|
"location-map": "location",
|
|
290
|
-
list: "list"
|
|
290
|
+
list: "list",
|
|
291
|
+
gifting: "gifting"
|
|
291
292
|
};
|
|
292
293
|
function defineArrangementLook(id, block, name, arrangement, knobs, input) {
|
|
293
294
|
const mode = block === "event-calendar" ? "list" : null;
|
|
@@ -596,6 +597,88 @@ function resolveBlockAppearancePresetDesign(preset, layoutProfile = null) {
|
|
|
596
597
|
* for a card role; the style owns its paint. Arrangement Looks own structure
|
|
597
598
|
* and never a section background. Removing an entry retires its pins to auto.
|
|
598
599
|
*/
|
|
600
|
+
/** Shape knobs override the skin's ordinary photo frame. Corner choices keep its ratio. */
|
|
601
|
+
const photoShapeFrames = [{
|
|
602
|
+
knob: "imageShape",
|
|
603
|
+
values: {
|
|
604
|
+
square: {
|
|
605
|
+
kind: "corners",
|
|
606
|
+
borderRadius: "0"
|
|
607
|
+
},
|
|
608
|
+
rounded: {
|
|
609
|
+
kind: "corners",
|
|
610
|
+
borderRadius: "var(--rb-media-shape-radius, 1rem)"
|
|
611
|
+
},
|
|
612
|
+
circle: {
|
|
613
|
+
kind: "fixed",
|
|
614
|
+
aspectRatio: "1/1",
|
|
615
|
+
borderRadius: "50%"
|
|
616
|
+
},
|
|
617
|
+
arch: {
|
|
618
|
+
kind: "fixed",
|
|
619
|
+
aspectRatio: "4/5",
|
|
620
|
+
borderRadius: "9999px 9999px 0.125rem 0.125rem"
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}];
|
|
624
|
+
const naturalPhotoFrame = {
|
|
625
|
+
kind: "variable",
|
|
626
|
+
because: "The photo keeps its own proportions.",
|
|
627
|
+
aspectRatio: "auto"
|
|
628
|
+
};
|
|
629
|
+
const introPhotoFrames = {
|
|
630
|
+
default: naturalPhotoFrame,
|
|
631
|
+
bySkin: {
|
|
632
|
+
haven: {
|
|
633
|
+
kind: "fixed",
|
|
634
|
+
aspectRatio: "1/1"
|
|
635
|
+
},
|
|
636
|
+
brook: {
|
|
637
|
+
kind: "fixed",
|
|
638
|
+
aspectRatio: "4/3"
|
|
639
|
+
},
|
|
640
|
+
orbit: {
|
|
641
|
+
kind: "fixed",
|
|
642
|
+
aspectRatio: "1/1",
|
|
643
|
+
borderRadius: "50%"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
byKnob: photoShapeFrames
|
|
647
|
+
};
|
|
648
|
+
const mediaTextPhotoFrames = {
|
|
649
|
+
default: naturalPhotoFrame,
|
|
650
|
+
bySkin: {
|
|
651
|
+
poster: {
|
|
652
|
+
kind: "fixed",
|
|
653
|
+
aspectRatio: "4/3"
|
|
654
|
+
},
|
|
655
|
+
poise: {
|
|
656
|
+
kind: "fixed",
|
|
657
|
+
aspectRatio: "4/5"
|
|
658
|
+
},
|
|
659
|
+
haven: {
|
|
660
|
+
kind: "fixed",
|
|
661
|
+
aspectRatio: "5/4"
|
|
662
|
+
},
|
|
663
|
+
loom: {
|
|
664
|
+
kind: "fixed",
|
|
665
|
+
aspectRatio: "3/2"
|
|
666
|
+
},
|
|
667
|
+
folio: {
|
|
668
|
+
kind: "fixed",
|
|
669
|
+
aspectRatio: "4/5"
|
|
670
|
+
},
|
|
671
|
+
brook: {
|
|
672
|
+
kind: "fixed",
|
|
673
|
+
aspectRatio: "4/3"
|
|
674
|
+
},
|
|
675
|
+
orbit: {
|
|
676
|
+
kind: "fixed",
|
|
677
|
+
aspectRatio: "4/3"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
byKnob: photoShapeFrames
|
|
681
|
+
};
|
|
599
682
|
const brandScrimOptionGroups = [{
|
|
600
683
|
id: "image-surface-treatment",
|
|
601
684
|
label: "Photo tint",
|
|
@@ -1620,6 +1703,11 @@ const blockAppearancePresets = [
|
|
|
1620
1703
|
styleFallback: [id("image-gallery-square-tiles")]
|
|
1621
1704
|
}),
|
|
1622
1705
|
defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
|
|
1706
|
+
mediaFrame: { default: {
|
|
1707
|
+
kind: "fixed",
|
|
1708
|
+
aspectRatio: "1/1",
|
|
1709
|
+
borderRadius: "50%"
|
|
1710
|
+
} },
|
|
1623
1711
|
thumbnail: sketch.page([sketch.middle([sketch.photo("medium", "circle")], [sketch.title(.8), sketch.text(3)])]),
|
|
1624
1712
|
forcedKnobs: {
|
|
1625
1713
|
imageShape: "circle",
|
|
@@ -2055,6 +2143,7 @@ const blockAppearancePresets = [
|
|
|
2055
2143
|
styleFallback: [id("intro-photo-beside-text")]
|
|
2056
2144
|
}),
|
|
2057
2145
|
defineArrangementLook("intro-photo-beside-text", "intro", "Small photo beside the text", "media-copy", ["imagePosition", "imageShape"], {
|
|
2146
|
+
mediaFrame: introPhotoFrames,
|
|
2058
2147
|
thumbnail: sketch.page([sketch.middle(sketch.weight(1, [sketch.photo("medium")]), sketch.weight(2, [sketch.title(.7), sketch.text(3)]))]),
|
|
2059
2148
|
whenMissing: [{
|
|
2060
2149
|
fact: "photo",
|
|
@@ -2062,6 +2151,7 @@ const blockAppearancePresets = [
|
|
|
2062
2151
|
}]
|
|
2063
2152
|
}),
|
|
2064
2153
|
defineArrangementLook("intro-large-photo-beside-text", "intro", "Large photo beside the text", "media-copy", ["imagePosition"], {
|
|
2154
|
+
mediaFrame: { default: naturalPhotoFrame },
|
|
2065
2155
|
thumbnail: sketch.page([sketch.row(sketch.weight(1, [sketch.photo("tall")]), sketch.weight(1, [sketch.title(.7), sketch.text(5)]))]),
|
|
2066
2156
|
whenMissing: [{
|
|
2067
2157
|
fact: "photo",
|
|
@@ -2069,12 +2159,20 @@ const blockAppearancePresets = [
|
|
|
2069
2159
|
}],
|
|
2070
2160
|
styleFallback: [id("intro-photo-beside-text")]
|
|
2071
2161
|
}),
|
|
2072
|
-
defineArrangementLook("media-text-photo-beside-text", "media-text", "Photo beside the text", "default", ["imagePosition", "imageShape"], {
|
|
2073
|
-
|
|
2074
|
-
sketch.
|
|
2075
|
-
|
|
2076
|
-
|
|
2162
|
+
defineArrangementLook("media-text-photo-beside-text", "media-text", "Photo beside the text", "default", ["imagePosition", "imageShape"], {
|
|
2163
|
+
mediaFrame: mediaTextPhotoFrames,
|
|
2164
|
+
thumbnail: sketch.page([sketch.middle([sketch.photo("tall")], [
|
|
2165
|
+
sketch.rule,
|
|
2166
|
+
sketch.title(.8),
|
|
2167
|
+
sketch.text(3)
|
|
2168
|
+
])])
|
|
2169
|
+
}),
|
|
2077
2170
|
defineArrangementLook("media-text-photo-to-edge", "media-text", "Photo to the edge", "default", ["imagePosition"], {
|
|
2171
|
+
mediaFrame: { default: {
|
|
2172
|
+
kind: "variable",
|
|
2173
|
+
because: "The photo fills the section height, which depends on the text and viewport.",
|
|
2174
|
+
aspectRatio: "auto"
|
|
2175
|
+
} },
|
|
2078
2176
|
thumbnail: sketch.page([sketch.row(sketch.weight(1, [
|
|
2079
2177
|
sketch.rule,
|
|
2080
2178
|
sketch.title(.8),
|
|
@@ -2309,6 +2407,10 @@ const blockAppearancePresets = [
|
|
|
2309
2407
|
}],
|
|
2310
2408
|
styleFallback: [id("location-map-beside-address")]
|
|
2311
2409
|
}),
|
|
2410
|
+
defineArrangementLook("gifting-panel", "gifting", "Gift cards in a panel", "default", [], {
|
|
2411
|
+
thumbnail: sketch.page([sketch.panel([sketch.middle([sketch.title(.7), sketch.text(1, .7)], [sketch.row([sketch.button], [sketch.button])])])]),
|
|
2412
|
+
slotRoles: { panel: "card" }
|
|
2413
|
+
}),
|
|
2312
2414
|
{
|
|
2313
2415
|
...defineCardListLook("team-members-tall-portraits", "Tall portraits in a row", "cards", [
|
|
2314
2416
|
"media",
|
|
@@ -2502,13 +2604,24 @@ const blockAppearancePresets = [
|
|
|
2502
2604
|
];
|
|
2503
2605
|
//#endregion
|
|
2504
2606
|
//#region ../theme-core/src/site-styles/lookMediaFrame.ts
|
|
2505
|
-
function resolveLookMediaFrame(frames, skin) {
|
|
2506
|
-
|
|
2607
|
+
function resolveLookMediaFrame(frames, skin, knobs = {}) {
|
|
2608
|
+
if (!frames) return void 0;
|
|
2609
|
+
const base = (skin ? frames.bySkin?.[skin] : void 0) ?? frames.default;
|
|
2610
|
+
return (frames.byKnob ?? []).reduce((frame, rule) => {
|
|
2611
|
+
const value = knobs[rule.knob];
|
|
2612
|
+
const choice = typeof value === "string" ? rule.values[value] : void 0;
|
|
2613
|
+
if (choice === void 0) return frame;
|
|
2614
|
+
return choice.kind === "corners" ? {
|
|
2615
|
+
...frame,
|
|
2616
|
+
borderRadius: choice.borderRadius
|
|
2617
|
+
} : choice;
|
|
2618
|
+
}, base);
|
|
2507
2619
|
}
|
|
2508
2620
|
function frameVars(frame) {
|
|
2621
|
+
if (frame.kind === "corners") return `--rb-look-media-radius: ${frame.borderRadius};`;
|
|
2509
2622
|
return [
|
|
2510
2623
|
`--rb-look-media-ratio: ${frame.aspectRatio};`,
|
|
2511
|
-
...frame.
|
|
2624
|
+
...frame.borderRadius ? [`--rb-look-media-radius: ${frame.borderRadius};`] : [],
|
|
2512
2625
|
...frame.kind === "variable" && frame.firstAspectRatio ? [`--rb-look-media-first-ratio: ${frame.firstAspectRatio};`] : [],
|
|
2513
2626
|
...frame.kind === "variable" && frame.height ? [`--rb-look-media-height: ${frame.height};`] : [],
|
|
2514
2627
|
...frame.kind === "variable" && frame.mobileAspectRatio ? [`--rb-look-media-mobile-ratio: ${frame.mobileAspectRatio};`] : []
|
|
@@ -2521,8 +2634,12 @@ function generateLookMediaFrameCss(themeId) {
|
|
|
2521
2634
|
if (!frames) return [];
|
|
2522
2635
|
const scope = `:where([data-theme-scope="${themeId}"])`;
|
|
2523
2636
|
const selector = `[data-look="${look.id}"]`;
|
|
2524
|
-
return [
|
|
2637
|
+
return [
|
|
2638
|
+
`${scope} ${selector} { ${frameVars(frames.default)} }`,
|
|
2639
|
+
...Object.entries(frames.bySkin ?? {}).map(([skin, frame]) => `${scope} :is([data-skin="${skin}"], [data-skin="${skin}"] *)${selector} { ${frameVars(frame)} }`),
|
|
2640
|
+
...(frames.byKnob ?? []).flatMap((rule) => Object.entries(rule.values).map(([value, frame]) => `${scope} ${selector}[data-knob-${rule.knob.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}="${value}"] { ${frameVars(frame)} }`))
|
|
2641
|
+
];
|
|
2525
2642
|
}).join("\n");
|
|
2526
2643
|
}
|
|
2527
2644
|
//#endregion
|
|
2528
|
-
export {
|
|
2645
|
+
export { lookKnobBlocks as A, requireNonEmptyReadonlyArray as C, cardListBlockParts as D, toNonEmptyReadonlyArray as E, opaqueSurfaceDeclarations as M, cardListFamilyBlocks as O, plainFrame as S, testimonialsCompositionTreatmentValues as T, designIssueSeverityForPolicy as _, layoutProfileSupportsConstraints as a, noHeadingDecoration as b, isArrangementAppearancePreset as c, lookModes as d, assertNever as f, defineNoBlockDesignCapability as g, defineFrameCapability as h, blockAppearancePresets as i, opaqueSurfaceContextFromTheme as j, cardListKnobBlocks as k, isLookSettingFact as l, defineExactCatalog as m, resolveLookMediaFrame as n, resolveBlockAppearancePresetDesign as o, defineBlockDesignCapability as p, arrangementLookFits as r, resolveEffectiveKnobs as s, generateLookMediaFrameCss as t, isRecipeAppearancePreset as u, featureCardCompositionTreatmentValues as v, sectionBackgroundPaintValues as w, offeringsPreviewCompositionTreatmentValues as x, introCompositionTreatmentValues as y };
|
package/dist/server/next.mjs
CHANGED
|
@@ -1,23 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-
|
|
3
|
-
import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-
|
|
4
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
1
|
+
import { Fs as inferSiteDateLocale, Gs as toUtcIsoDateTimeString, Us as resolveBookingBusinessTimeZone } from "./registry-cQ9N5W-n.mjs";
|
|
2
|
+
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-JxlV8_Bo.mjs";
|
|
3
|
+
import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-CgghATBm.mjs";
|
|
4
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-D7M5Vcug.mjs";
|
|
5
5
|
import { n as MissingSdkThemeError, r as requireSdkTheme, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
|
|
6
6
|
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
|
|
7
7
|
import { l as isPreviewMode, o as normalizeSdkRenderingMode, s as themeRuntimeForRendering } from "./overrides-CD4d-1w7.mjs";
|
|
8
8
|
import { n as generatePreviewMetadata, r as applyPageSurfaceIndexing, t as generatePageMetadata } from "./generatePageMetadata-DB_lbrZ7.mjs";
|
|
9
9
|
import { t as getPortalToken } from "./portal-BjVHMAUC.mjs";
|
|
10
10
|
import { _ as toRoutingInfo, a as resolvePageContent, i as contentNotFound, n as contentFound, o as defaultShouldAttemptEntrySubroute, t as RiverbankContentLoadError } from "./resolvePageContent-CAELMBEJ.mjs";
|
|
11
|
-
import { t as SDK_VERSION } from "./version-
|
|
11
|
+
import { t as SDK_VERSION } from "./version-B8g-Wx57.mjs";
|
|
12
12
|
import { t as appendSearchToRedirectDestination } from "./redirect-destination-Bee5ZEon.mjs";
|
|
13
|
-
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-
|
|
14
|
-
import "react";
|
|
13
|
+
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-CJ3MRI5Q.mjs";
|
|
14
|
+
import { cache } from "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
17
17
|
import { notFound, permanentRedirect, redirect } from "next/navigation";
|
|
18
18
|
import { cookies } from "next/headers";
|
|
19
19
|
import { CustomerPortal, PortalAccessState, PortalDigitalProductView, PortalTicketView } from "#sdk-portal-client";
|
|
20
20
|
import { RedeemGiftCardRouteClient } from "#sdk-gifting-client";
|
|
21
|
+
//#region src/next/requestReadMemo.ts
|
|
22
|
+
/**
|
|
23
|
+
* Metadata and the page both load the same content in one render. Next's fetch dedupe skips
|
|
24
|
+
* any fetch with an abort signal, and every client read carries a timeout signal, so without
|
|
25
|
+
* this each render reads twice. A caller's own signal opts out, as it may abort only its read.
|
|
26
|
+
*
|
|
27
|
+
* Each catch-all owns one memo, so two catch-alls with different clients can't share reads.
|
|
28
|
+
*/
|
|
29
|
+
function createRequestReadMemo() {
|
|
30
|
+
const readsForThisRequest = cache(() => /* @__PURE__ */ new Map());
|
|
31
|
+
function once(key, read) {
|
|
32
|
+
const reads = readsForThisRequest();
|
|
33
|
+
const existing = reads.get(key);
|
|
34
|
+
if (existing) return existing;
|
|
35
|
+
const pending = read();
|
|
36
|
+
reads.set(key, pending);
|
|
37
|
+
return pending;
|
|
38
|
+
}
|
|
39
|
+
return (client) => ({
|
|
40
|
+
...client,
|
|
41
|
+
getPage: (params) => params.signal ? client.getPage(params) : once(`page:${JSON.stringify(params)}`, () => client.getPage(params)),
|
|
42
|
+
getSite: (params) => params.signal ? client.getSite(params) : once(`site:${JSON.stringify(params)}`, () => client.getSite(params))
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
21
46
|
//#region src/next/resolveEventPageSubroute.ts
|
|
22
47
|
async function resolveEventPageSubroute(input) {
|
|
23
48
|
if (!isSupportedKind(input.kind) || !isPageSurfaceContent(input.content)) return null;
|
|
@@ -486,6 +511,7 @@ function createCatchAllRuntime(options) {
|
|
|
486
511
|
return {
|
|
487
512
|
options,
|
|
488
513
|
preview,
|
|
514
|
+
withRequestReadMemo: createRequestReadMemo(),
|
|
489
515
|
enablePortal: options.enablePortal ?? options.config.enablePortal ?? false,
|
|
490
516
|
contentTypes: (options.config.content?.contentTypes ?? []).map(toRoutingInfo),
|
|
491
517
|
rendering,
|
|
@@ -679,7 +705,7 @@ async function renderResolvedCatchAllPage(runtime, input) {
|
|
|
679
705
|
async function renderCatchAllPage(runtime, props) {
|
|
680
706
|
const { path, searchParams } = await readCatchAllRequest(runtime, props);
|
|
681
707
|
if (isReservedStaticPath(path)) return notFound();
|
|
682
|
-
const client = runtime.options.getClient();
|
|
708
|
+
const client = runtime.withRequestReadMemo(runtime.options.getClient());
|
|
683
709
|
const apiBaseUrl = client.getBaseUrl();
|
|
684
710
|
const portalToken = runtime.enablePortal ? getPortalToken(await cookies()) : null;
|
|
685
711
|
let resolution;
|
|
@@ -755,7 +781,7 @@ async function generateCatchAllMetadata(runtime, props) {
|
|
|
755
781
|
try {
|
|
756
782
|
const resolution = await resolveContentForPath(runtime, {
|
|
757
783
|
path,
|
|
758
|
-
client: runtime.options.getClient(),
|
|
784
|
+
client: runtime.withRequestReadMemo(runtime.options.getClient()),
|
|
759
785
|
purpose: {
|
|
760
786
|
kind: "metadata",
|
|
761
787
|
searchParams
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PageContent } from "./pageShared-
|
|
1
|
+
import { t as PageContent } from "./pageShared-JxlV8_Bo.mjs";
|
|
2
2
|
import { t as allOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
3
3
|
import { i as lazyBlockOverrideSymbol } from "./overrides-CD4d-1w7.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as listBlockDescriptors, ni as parseBackgroundContent } from "./registry-cQ9N5W-n.mjs";
|
|
2
2
|
import { i as createRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
|
|
3
3
|
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
4
4
|
import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
|