@riverbankcms/sdk 0.174.1 → 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-YRmc-Yxz.d.ts → BlocksIslandsHydrator-hb2IWD8K.d.ts} +1 -1
- package/dist/_dts/{Page-Du0zX1B-.d.ts → Page-BlY68ZF-.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-4L8v3FkY.d.ts → SdkPreviewMode-CA8hU7hW.d.ts} +2 -2
- package/dist/_dts/{client-B1J6Akyf.d.ts → client-B6tCvmG4.d.ts} +487 -11
- package/dist/_dts/{content-types-CGGYI0u_.d.ts → content-types-B9qryk4R.d.ts} +2 -2
- package/dist/_dts/{contracts-CHMlw9hT.d.ts → contracts-DWoaRxj1.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DIHSU1Vr.d.ts → footerPageOutline-Djdrhp5s.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-JITXD6BU.d.ts → generatePageMetadata-CFi0vxov.d.ts} +2 -2
- package/dist/_dts/{index-yWDbUojb.d.ts → index-Bl5_pjmq.d.ts} +1 -1
- package/dist/_dts/{index-CF62FntA.d.ts → index-Btp5nIoz.d.ts} +2 -2
- package/dist/_dts/{index-BLEKFHt1.d.ts → index-CQUzwOxO.d.ts} +1 -1
- package/dist/_dts/{index-D9ZYmGAJ.d.ts → index-DmhFb6R1.d.ts} +1 -1
- package/dist/_dts/{index-CXZSy_9M.d.ts → index-OtazQE3U.d.ts} +2 -2
- package/dist/_dts/{index-BgOr1Xyz.d.ts → index-YRQulWB4.d.ts} +3 -3
- package/dist/_dts/{index-DpJm0NpL.d.ts → index-_pXaCO12.d.ts} +4 -4
- package/dist/_dts/{loadContent-M-s0p0rq.d.ts → loadContent-Hcuvs4pz.d.ts} +7 -7
- package/dist/_dts/{request-BK-pHf0P.d.ts → request-BT8i_vH-.d.ts} +1621 -385
- package/dist/_dts/{resolveBlockData-DZAlnhwt.d.ts → resolveBlockData-B-dJrunl.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DXUCWJ3y.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-DjVNADXR.d.ts → types-C0XZnjXz.d.ts} +3 -3
- package/dist/_dts/{types-CwmB2NHU.d.ts → types-CXL1QJSY.d.ts} +7 -7
- package/dist/_dts/{types-Dmow_FI6.d.ts → types-OKzbqRBx.d.ts} +2 -2
- package/dist/_dts/{validation-h8t1HLlL.d.ts → validation-Bxi66FtQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DRVx_XLi.mjs → BlocksIslandsHydrator-2xzlERTG.mjs} +17 -16
- package/dist/client/{BookingMailingListNote-CwrMzj-k.mjs → BookingMailingListNote-qsohSEdQ.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-C2_hFT6K.mjs → BookingPanelArrangement-DrdtON0q.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-CUFxBaTM.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-Az1-TIEI.mjs → CalendarNavigationChevron-Ch0w0Utn.mjs} +34 -9
- package/dist/client/DemoBookingPortalAccess-DGgsjqXK.mjs +545 -0
- package/dist/client/{EventCalendar.client-CDkkP-Lv.mjs → EventCalendar.client-Dg4PHFJJ.mjs} +15 -25
- package/dist/client/{EventCombined.client-DK3aaz62.mjs → EventCombined.client-tky8JcnQ.mjs} +25 -17
- package/dist/client/{EventItem-WeUipfIP.mjs → EventItem-BybMSKNL.mjs} +4 -3
- package/dist/client/{EventListWeekNavigation-D3sbAeDo.mjs → EventListWeekNavigation-uvWRE5wi.mjs} +1 -1
- package/dist/client/{EventListing.client-DL3gGGmF.mjs → EventListing.client-DQx9dohz.mjs} +3 -3
- package/dist/client/{EventListing.view-DKFImKOx.mjs → EventListing.view-r31k8Icz.mjs} +8 -7
- package/dist/client/{EventRegistrationPayment-Dn9TpWyL.mjs → EventRegistrationPayment-BMmPDmSf.mjs} +635 -359
- 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-BpeP9xdt.mjs → Page-CWN_8cLZ.mjs} +601 -579
- package/dist/client/{DemoBookingPortalAccess-1p-pJ1lg.mjs → SiteTermsAgreementField-Dr5lj4oY.mjs} +4 -301
- package/dist/client/{StepIndicator-CP6zrwkl.mjs → StepIndicator-C7RJBOW3.mjs} +37 -12
- package/dist/client/{accordion-nR7D4m1a.mjs → accordion-uUi_N6mZ.mjs} +1 -1
- package/dist/client/{booking-form.client-Ce-mQZ7W.mjs → booking-form.client-CKHgxvsh.mjs} +229 -42
- package/dist/client/{bookingForm-B-qT_AQB.mjs → bookingForm-Bi74dmiS.mjs} +4 -4
- package/dist/client/bookings.mjs +22 -15
- package/dist/client/{boxStyleClassNames-CrE3TDpW.mjs → boxStyleClassNames-C-gFwhnO.mjs} +2 -1
- package/dist/client/{carousel-CVUOatsY.mjs → carousel-C0_BqMA0.mjs} +1 -1
- package/dist/client/{cart-DE0K6E0R.mjs → cart-BOHuppVu.mjs} +3 -3
- package/dist/client/{cart.client-C23E6WQ5.mjs → cart.client-IfJE1zAp.mjs} +1 -1
- package/dist/client/{checkout-76cdHyPL.mjs → checkout-C3Aj-aNa.mjs} +3 -3
- package/dist/client/{checkout.client-DJOzqb26.mjs → checkout.client-Tg9lfeYf.mjs} +1 -1
- package/dist/client/{checkoutUrls-CvIP5DCO.mjs → checkoutUrls-OLqQdAXD.mjs} +1 -1
- package/dist/client/client.mjs +112 -21
- package/dist/client/{context-CNlesLfF.mjs → context-D8TpQXjX.mjs} +76 -58
- package/dist/client/{course-DHIrXqNT.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-5GD5o4Mt.mjs → enhanceHeaderSection-Ciuhsk0E.mjs} +3 -3
- package/dist/client/{event-details.client-D7Oz1q2L.mjs → event-details.client-CJapNbTv.mjs} +1 -1
- package/dist/client/{event-registration.client-zbuX36aA.mjs → event-registration.client-CAdcpnLc.mjs} +176 -75
- package/dist/client/{eventCalendar-uZrksODt.mjs → eventCalendar-BlsD5R8M.mjs} +4 -4
- package/dist/client/{eventCombined-DxhvNAx8.mjs → eventCombined-B9Ly3024.mjs} +4 -4
- package/dist/client/{eventDetails-DCIH4BYG.mjs → eventDetails-CbEGI4jO.mjs} +2 -2
- package/dist/client/{eventListing-B9KrnPvc.mjs → eventListing-ZSmvhWII.mjs} +4 -4
- package/dist/client/{eventRegistration-TjnURMKl.mjs → eventRegistration-D-yUcIyO.mjs} +4 -4
- package/dist/client/{form-CfqIAhfN.mjs → form-DG_YZSNn.mjs} +3 -3
- package/dist/client/{form.client-CL6fF0cW.mjs → form.client-BU6dM0-C.mjs} +4 -4
- package/dist/client/{form.parts-Bf-L66Gg.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-WVXtOcuW.mjs → headerSection-D91EzlOR.mjs} +2 -2
- package/dist/client/{display-Cf_j5stk.mjs → lookSurfaces-BDZLALxj.mjs} +2951 -14395
- package/dist/client/{newsletter-form.client-Bb7GAZpO.mjs → newsletter-form.client-BMGRiRpo.mjs} +7 -5
- package/dist/client/{newsletter-form.parts-BqOVRdIc.mjs → newsletter-form.parts-D5UfUaD3.mjs} +3 -3
- package/dist/client/{newsletterForm-DOVe-qY3.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-CNzeFnFf.mjs → product-detail.client-D-XNir0m.mjs} +1 -1
- package/dist/client/{product-list.client-LKpzC7pj.mjs → product-list.client-BLfYQ-qi.mjs} +1 -1
- package/dist/client/{productDetail-D2JNeEgx.mjs → productDetail-W0_0lDGe.mjs} +3 -3
- package/dist/client/{productList-DTgZXOEq.mjs → productList-ayAtPJdb.mjs} +3 -3
- package/dist/client/{propsDecoder-mpBQt2AT.mjs → propsDecoder-ChYKWjLA.mjs} +4 -3
- package/dist/client/{registry.server-DdTJyar2.mjs → registry.server-B1EEZkcr.mjs} +307 -240
- package/dist/client/rendering/client.mjs +25 -491
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -6
- package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-CDAfpMQU.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-8cfSgT0E.mjs → routeIslandApiConfig-CcGWvyht.mjs} +1 -1
- package/dist/client/{shop-5LBhftWx.mjs → shop-DbUUoHFJ.mjs} +3 -3
- package/dist/client/{shop-discount-apply.state-D0ifS6KX.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
- package/dist/client/{shop-commerce-DkValjZj.mjs → shop-commerce-aQqcDmyZ.mjs} +64 -32
- package/dist/client/{shop-commerce-store-BOmXFmk_.mjs → shop-commerce-store-Cd7USpuY.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DGvPBmVP.mjs +83 -0
- package/dist/client/{shop.client-BTtZqNmv.mjs → shop.client-BNZ9M8cG.mjs} +56 -19
- package/dist/client/{shop.interactive-DNRqG4aX.mjs → shop.interactive-CJAINJr3.mjs} +113 -35
- package/dist/client/{shopShared-Nky6kPYr.mjs → shopShared-DwVAuGsx.mjs} +2 -2
- package/dist/client/{timetableModel-DZArznD_.mjs → timetableModel-DBTIFWTb.mjs} +10 -10
- package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BomyyKeo.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-d7viY_mu.mjs → useDiscountCodeUi-CCxHMWlU.mjs} +32 -17
- package/dist/client/{useEventPagination-Da2JqxGC.mjs → useEventPagination-Bjin_qaN.mjs} +7 -6
- package/dist/client/{view-BvuYmQJ5.mjs → view-BTk470k0.mjs} +3 -2
- package/dist/client/{view-D9ObkFtz.mjs → view-Cw4EmEPv.mjs} +99 -30
- package/dist/preview-next/client/{PageSectionToolbar-DwxHT-2k.mjs → PageSectionToolbar-bq7gbKvn.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D4SBxGU6.mjs → PreviewEditorSidebar-DVsPNcos.mjs} +28 -25
- package/dist/preview-next/client/{PreviewEditorUI-D8mUct32.mjs → PreviewEditorUI-B-pq3aZc.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-L2AEdNUQ.mjs → PreviewShell-ChyjB96e.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-bhVAU2D2.mjs → SdkPreviewModeRuntime-D_czeC0l.mjs} +84 -101
- package/dist/preview-next/client/{previewAssistantSlot-Jpj_HDra.mjs → previewAssistantSlot-B61mZd81.mjs} +4141 -2677
- package/dist/preview-next/client/{previewChromeRoot-CYTDvx4u.mjs → previewChromeRoot-dwOn9XtM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CZHX6J_4.mjs → sdk-runtime-DZDfOxoW.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-DmGIG9Hk.mjs → siteStyleAccess-BZDIC-fA.mjs} +527 -236
- package/dist/preview-next/client/{useAutosaveStatus-DQCyswQ-.mjs → useAutosaveStatus-BbzLMf-l.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-LwE5yXvL.mjs → useOpenBlockForSetup-BEXcWQeI.mjs} +13 -4
- 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-BOuNcOcN.mjs → route-contract-0gSlK9S0.mjs} +86 -12
- package/dist/server/{Block.shared-wfJfhs08.mjs → Block.shared-DeXXycg8.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-BtrJNHTB.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
- package/dist/server/{bindings-P1CF2Gm6.mjs → bindings-7L3pC5Os.mjs} +13 -34
- package/dist/server/{client-CGtU5fHI.mjs → client-CgghATBm.mjs} +111 -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-ChnkJSay.mjs → loadContent-D7M5Vcug.mjs} +5 -5
- package/dist/server/{loadPage-DesHhgxj.mjs → loadPage-CiTId05y.mjs} +2 -2
- package/dist/server/{lookMediaFrame-BBr0mkze.mjs → lookMediaFrame-CaH018pK.mjs} +24 -5
- package/dist/server/next.mjs +35 -9
- package/dist/server/{overrideResolution-DHEkHcZs.mjs → overrideResolution-CJ3MRI5Q.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-0jvm0RBk.mjs → pageRenderPlan-Cuos4Xcd.mjs} +97 -39
- package/dist/server/{pageRuntimeSupport-8-f1Zr9e.mjs → pageRuntimeSupport-CuVj3bkd.mjs} +4 -3
- package/dist/server/{pageShared-CuVFoV4z.mjs → pageShared-JxlV8_Bo.mjs} +1261 -1129
- package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
- package/dist/server/{prebuild-Bms_Y7wQ.mjs → prebuild-BDhlJbAx.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-5oC5kyHe.mjs → prefetchBlockData-kERh_c0v.mjs} +2 -2
- package/dist/server/{registry-DmqxC8th.mjs → registry-cQ9N5W-n.mjs} +20432 -20165
- 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-EYogtwQc.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-Bt_8IL1g.mjs → validation-3puM5SM8.mjs} +3 -3
- package/dist/server/{version-DT_efohp.mjs → version-B8g-Wx57.mjs} +1 -1
- package/dist/styles/index.css +295 -37
- package/package.json +1 -1
- package/dist/client/useDiscountApply-BBnStWXU.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 {
|
|
@@ -64,6 +71,10 @@ function getPublicReadCachePolicy(endpoint) {
|
|
|
64
71
|
function publicReadFreshnessSeconds(endpoint) {
|
|
65
72
|
return getPublicReadCachePolicy(endpoint).freshness === "availability" ? 60 : PUBLIC_CONTENT_FRESHNESS_SECONDS;
|
|
66
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
|
+
}
|
|
67
78
|
//#endregion
|
|
68
79
|
//#region ../core/src/committed-write-proof.ts
|
|
69
80
|
/** Positive atomic storage evidence survives a failed response projection. */
|
|
@@ -658,16 +669,19 @@ function buildPublicReadFetchTags(endpoint, params) {
|
|
|
658
669
|
function buildPublicReadMemoryCacheTags(endpoint, params) {
|
|
659
670
|
return getPublicReadCachePolicy(endpoint).kind === "live" ? [] : buildPublicReadFetchTags(endpoint, params);
|
|
660
671
|
}
|
|
661
|
-
|
|
662
|
-
function buildPublicReadFetchPolicy(siteId, reads) {
|
|
672
|
+
function buildFetchPolicy(siteId, reads, freshnessSeconds) {
|
|
663
673
|
return {
|
|
664
674
|
tags: normalizeRevalidateTags(reads.flatMap(({ endpoint, params }) => isPublicReadEndpoint(endpoint) ? buildPublicReadFetchTags(endpoint, {
|
|
665
675
|
...params,
|
|
666
676
|
siteId
|
|
667
677
|
}) : buildCacheReadTags([], { siteId }))),
|
|
668
|
-
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))
|
|
669
679
|
};
|
|
670
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
|
+
}
|
|
671
685
|
//#endregion
|
|
672
686
|
//#region ../api/src/sdkEntryReadEndpoints.ts
|
|
673
687
|
const SDK_ENTRY_READ_ENDPOINTS = {
|
|
@@ -1266,6 +1280,42 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1266
1280
|
"server:internal_error"
|
|
1267
1281
|
]
|
|
1268
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
|
+
},
|
|
1269
1319
|
createTeamMemberProfile: {
|
|
1270
1320
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile",
|
|
1271
1321
|
method: "POST",
|
|
@@ -1900,6 +1950,18 @@ const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
|
|
|
1900
1950
|
"server:internal_error"
|
|
1901
1951
|
]
|
|
1902
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
|
+
},
|
|
1903
1965
|
correctBookingCheckIn: {
|
|
1904
1966
|
path: "/sites/{siteId}/bookings/attendees/{attendeeId}/check-in",
|
|
1905
1967
|
method: "PATCH",
|
|
@@ -4168,6 +4230,18 @@ const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
4168
4230
|
"server:internal_error"
|
|
4169
4231
|
]
|
|
4170
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
|
+
},
|
|
4171
4245
|
lookupBookingPersonByEmail: {
|
|
4172
4246
|
path: "/sites/{siteId}/bookings/people/lookup-email",
|
|
4173
4247
|
method: "POST",
|
|
@@ -4180,6 +4254,18 @@ const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
4180
4254
|
"server:internal_error"
|
|
4181
4255
|
]
|
|
4182
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
|
+
},
|
|
4183
4269
|
getBookingPerson: {
|
|
4184
4270
|
path: "/sites/{siteId}/bookings/people/{personId}",
|
|
4185
4271
|
method: "GET",
|
|
@@ -4682,18 +4768,6 @@ const API_ENDPOINTS$1 = {
|
|
|
4682
4768
|
"server:internal_error"
|
|
4683
4769
|
]
|
|
4684
4770
|
},
|
|
4685
|
-
turnOnCourses: {
|
|
4686
|
-
path: "/sites/{siteId}/bookings/settings/courses",
|
|
4687
|
-
method: "POST",
|
|
4688
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteBookingSettings],
|
|
4689
|
-
auth: "user",
|
|
4690
|
-
responseKind: "json",
|
|
4691
|
-
errors: [
|
|
4692
|
-
"auth:forbidden",
|
|
4693
|
-
"resource:conflict",
|
|
4694
|
-
"server:internal_error"
|
|
4695
|
-
]
|
|
4696
|
-
},
|
|
4697
4771
|
sendTestEmail: {
|
|
4698
4772
|
path: "/sites/{siteId}/settings/emails/test",
|
|
4699
4773
|
method: "POST",
|
|
@@ -6091,6 +6165,19 @@ const API_ENDPOINTS$1 = {
|
|
|
6091
6165
|
],
|
|
6092
6166
|
responseKind: "json"
|
|
6093
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
|
+
},
|
|
6094
6181
|
accountDismissTwoStepPrompt: {
|
|
6095
6182
|
path: "/account/two-step-prompt/dismiss",
|
|
6096
6183
|
method: "POST",
|
|
@@ -8470,6 +8557,7 @@ const API_ENDPOINTS$1 = {
|
|
|
8470
8557
|
responseKind: "json",
|
|
8471
8558
|
errors: [
|
|
8472
8559
|
"validation:invalid_input",
|
|
8560
|
+
"auth:forbidden",
|
|
8473
8561
|
"resource:already_exists",
|
|
8474
8562
|
"server:internal_error"
|
|
8475
8563
|
]
|
|
@@ -10424,7 +10512,7 @@ function resolveBatchReadFetchPolicy(params, body) {
|
|
|
10424
10512
|
if (params?.stage === "preview" || typeof params?.siteId !== "string") return null;
|
|
10425
10513
|
const parsed = batchReadPolicyBodySchema.safeParse(body);
|
|
10426
10514
|
if (!parsed.success) return null;
|
|
10427
|
-
return
|
|
10515
|
+
return buildPublicReadBatchFetchPolicy(params.siteId, parsed.data.requests);
|
|
10428
10516
|
}
|
|
10429
10517
|
function batchReadRequestOptions(params, body, options) {
|
|
10430
10518
|
if (options.cache === "no-store") return options;
|
|
@@ -11452,7 +11540,7 @@ function deriveGetSiteKey(params) {
|
|
|
11452
11540
|
};
|
|
11453
11541
|
const normalizedParams = {
|
|
11454
11542
|
...identity,
|
|
11455
|
-
currentPath: normalizeRuntimePublicPath(params.currentPath)
|
|
11543
|
+
...toNonEmptyString(params.currentPath) === null ? {} : { currentPath: normalizeRuntimePublicPath(params.currentPath) }
|
|
11456
11544
|
};
|
|
11457
11545
|
return {
|
|
11458
11546
|
ok: true,
|
|
@@ -11551,7 +11639,7 @@ function hasExpectedPublishedRuntimeCacheKeyParams(endpoint, normalizedParams) {
|
|
|
11551
11639
|
"domain",
|
|
11552
11640
|
"id",
|
|
11553
11641
|
"slug"
|
|
11554
|
-
].filter((key) => normalizedParams[key] !== void 0).length === 1 &&
|
|
11642
|
+
].filter((key) => normalizedParams[key] !== void 0).length === 1 && keys.every((key) => [
|
|
11555
11643
|
"currentPath",
|
|
11556
11644
|
"domain",
|
|
11557
11645
|
"id",
|
|
@@ -12736,7 +12824,10 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12736
12824
|
...includeOccurrenceId && { includeOccurrenceId }
|
|
12737
12825
|
}
|
|
12738
12826
|
}] },
|
|
12739
|
-
options: {
|
|
12827
|
+
options: {
|
|
12828
|
+
signal: sig,
|
|
12829
|
+
next: { revalidate: 60 }
|
|
12830
|
+
}
|
|
12740
12831
|
}), requestId);
|
|
12741
12832
|
}, {
|
|
12742
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;
|
|
@@ -600,6 +601,14 @@ function resolveBlockAppearancePresetDesign(preset, layoutProfile = null) {
|
|
|
600
601
|
const photoShapeFrames = [{
|
|
601
602
|
knob: "imageShape",
|
|
602
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
|
+
},
|
|
603
612
|
circle: {
|
|
604
613
|
kind: "fixed",
|
|
605
614
|
aspectRatio: "1/1",
|
|
@@ -2398,6 +2407,10 @@ const blockAppearancePresets = [
|
|
|
2398
2407
|
}],
|
|
2399
2408
|
styleFallback: [id("location-map-beside-address")]
|
|
2400
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
|
+
}),
|
|
2401
2414
|
{
|
|
2402
2415
|
...defineCardListLook("team-members-tall-portraits", "Tall portraits in a row", "cards", [
|
|
2403
2416
|
"media",
|
|
@@ -2596,13 +2609,19 @@ function resolveLookMediaFrame(frames, skin, knobs = {}) {
|
|
|
2596
2609
|
const base = (skin ? frames.bySkin?.[skin] : void 0) ?? frames.default;
|
|
2597
2610
|
return (frames.byKnob ?? []).reduce((frame, rule) => {
|
|
2598
2611
|
const value = knobs[rule.knob];
|
|
2599
|
-
|
|
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;
|
|
2600
2618
|
}, base);
|
|
2601
2619
|
}
|
|
2602
2620
|
function frameVars(frame) {
|
|
2621
|
+
if (frame.kind === "corners") return `--rb-look-media-radius: ${frame.borderRadius};`;
|
|
2603
2622
|
return [
|
|
2604
2623
|
`--rb-look-media-ratio: ${frame.aspectRatio};`,
|
|
2605
|
-
...frame.
|
|
2624
|
+
...frame.borderRadius ? [`--rb-look-media-radius: ${frame.borderRadius};`] : [],
|
|
2606
2625
|
...frame.kind === "variable" && frame.firstAspectRatio ? [`--rb-look-media-first-ratio: ${frame.firstAspectRatio};`] : [],
|
|
2607
2626
|
...frame.kind === "variable" && frame.height ? [`--rb-look-media-height: ${frame.height};`] : [],
|
|
2608
2627
|
...frame.kind === "variable" && frame.mobileAspectRatio ? [`--rb-look-media-mobile-ratio: ${frame.mobileAspectRatio};`] : []
|
|
@@ -2623,4 +2642,4 @@ function generateLookMediaFrameCss(themeId) {
|
|
|
2623
2642
|
}).join("\n");
|
|
2624
2643
|
}
|
|
2625
2644
|
//#endregion
|
|
2626
|
-
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";
|