@riverbankcms/sdk 0.163.0 → 0.165.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/dist/_dts/{BlocksIslandsHydrator-DYPGA_qh.d.ts → BlocksIslandsHydrator-CdsSMQEv.d.ts} +1 -1
- package/dist/_dts/{Page-zwnvFBPu.d.ts → Page-D6gp2Ipb.d.ts} +15 -12
- package/dist/_dts/{SdkPreviewMode-DukuJzGr.d.ts → SdkPreviewMode-DNXAvnet.d.ts} +83 -72
- package/dist/_dts/{client-Chh3bnXC.d.ts → client-BkkExozE.d.ts} +13 -41
- package/dist/_dts/{content-types-Bbzqw9J2.d.ts → content-types-CXNAD7ef.d.ts} +2 -2
- package/dist/_dts/{contracts-GJ1kGBsi.d.ts → contracts-XRXhbLWP.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-BNMKhyvo.d.ts → footerPageOutline-BP2bJYdY.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Ce0m1P3B.d.ts → generatePageMetadata-DcMtbztV.d.ts} +2 -2
- package/dist/_dts/{index-CyQhZuhM.d.ts → index-B4ozSzFP.d.ts} +48377 -47862
- package/dist/_dts/{index-DRxgeK8L.d.ts → index-BdkHhyf8.d.ts} +2 -2
- package/dist/_dts/{index-CdSNXLOx.d.ts → index-CQfJhOEA.d.ts} +2 -2
- package/dist/_dts/{index-C3mJvn27.d.ts → index-CRRiddNp.d.ts} +4 -4
- package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
- package/dist/_dts/{index-rhMSu0oY.d.ts → index-C_3kdrUb.d.ts} +2 -2
- package/dist/_dts/{index-CaL0nKkl.d.ts → index-DAPTSmBM.d.ts} +31097 -31047
- package/dist/_dts/{index-FstkyqQB.d.ts → index-DKNEgSOS.d.ts} +2 -2
- package/dist/_dts/{index-G2p-HOrK.d.ts → index-RXkE3a7M.d.ts} +3 -3
- package/dist/_dts/{loadContent-DiLZoInK.d.ts → loadContent-B9vJMq3s.d.ts} +15 -30
- package/dist/_dts/{resolvePageContent-CWUnipv8.d.ts → resolvePageContent-DIQyYUi-.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +6 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +32 -52
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BmtrA45p.d.ts → types-BDF73NzM.d.ts} +3 -2
- package/dist/_dts/{types-DFOqkClJ.d.ts → types-Cl0nP6al.d.ts} +3 -3
- package/dist/_dts/{types-CalL7aKP.d.ts → types-mstFvhK4.d.ts} +7 -7
- package/dist/_dts/{validation-G8MRoIhq.d.ts → validation-DVWqSvjK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DLCXwe30.mjs → BlocksIslandsHydrator-CzKpH9Pm.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-BV5-50F0.mjs → BookingMailingListNote-rUqsBN7L.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CVLAHdZG.mjs → CalendarNavigationChevron-YGzw2IPB.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Dtgp3OU8.mjs → CheckboxChoice-DlTC4J2a.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-B3caCnTT.mjs → DemoBookingPortalAccess-D2LyS_Bi.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-Ct8JMKW0.mjs → DemoPortalSignInLink-BaFg2Uit.mjs} +1 -1
- package/dist/client/{EventCalendar.client-ffa6920T.mjs → EventCalendar.client-tRrhPscX.mjs} +17 -10
- package/dist/client/{EventCombined.client-zm0W2G79.mjs → EventCombined.client-6cfAVtnZ.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CPPE2rWS.mjs → EventEmbeddedCheckoutStep-CDNUpI0S.mjs} +2 -1
- package/dist/client/{EventItem-CND3mfra.mjs → EventItem-dILw2PN_.mjs} +27 -17
- package/dist/client/{EventListWeekNavigation-D8QdxL_f.mjs → EventListWeekNavigation-ClgLtjNY.mjs} +1 -1
- package/dist/client/{EventListing.client-CaoRZUI9.mjs → EventListing.client-BNueAHmU.mjs} +3 -3
- package/dist/client/{EventListing.view-BfnOmxYD.mjs → EventListing.view-DtVbKVkt.mjs} +56 -12
- package/dist/client/{EventRegistrationPayment-Dfu3RSL2.mjs → EventRegistrationPayment-CzkG0NSJ.mjs} +18 -22
- package/dist/client/{LocationMapActions-wlyxASdT.mjs → LocationMapActions-zWQsJhE5.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-B9oKSitp.mjs → MapDrawingSvg-D1AO_o4h.mjs} +1 -1
- package/dist/client/{Page-BEF9HrAy.mjs → Page-DUr2YhFR.mjs} +1949 -418
- package/dist/client/ProtectedSubmitButton-2fJqT_NR.mjs +14 -0
- package/dist/client/SpamProtectionWidget-CCF6YLUX.mjs +141 -0
- package/dist/client/{StepIndicator-Bjx4faaw.mjs → StepIndicator-udNHcpOT.mjs} +2 -2
- package/dist/client/{TabBarFragment-Cu7k_VSl.mjs → TabBarFragment-C_kt-PXh.mjs} +1 -1
- package/dist/client/{ThemedButton-DclwabI7.mjs → ThemedButton-Cfbo1bfh.mjs} +2 -898
- package/dist/client/{accordion-lzM2nSZB.mjs → accordion-3CYNWzTS.mjs} +1 -1
- package/dist/client/altchaProtection-DjIV9A5n.mjs +12 -0
- package/dist/client/{booking-form.client-Bll4QwBi.mjs → booking-form.client-BSbWgLyx.mjs} +23 -56
- package/dist/client/{bookingForm-Cq5fQ-vo.mjs → bookingForm-2MoFBWSt.mjs} +4 -4
- package/dist/client/bookings.mjs +23 -32
- package/dist/client/{carousel-CxerQwIx.mjs → carousel-Cu5mcpO-.mjs} +2 -2
- package/dist/client/{carousel.client-CVUXq8Mb.mjs → carousel.client-CQLV8_Al.mjs} +1 -1
- package/dist/client/{cart-X-m0isoI.mjs → cart-CDc6x9cR.mjs} +3 -3
- package/dist/client/{cart.client-CJbzWIl0.mjs → cart.client-BWS2r5Ef.mjs} +1 -1
- package/dist/client/{checkout-Gd0O_fGH.mjs → checkout-CkxPqSwD.mjs} +3 -3
- package/dist/client/{checkout.client-Baee6Jsm.mjs → checkout.client-DJfomKQc.mjs} +1 -1
- package/dist/client/client.mjs +216 -109
- package/dist/client/{context-Bg0SFWcM.mjs → context-CBV21-9L.mjs} +17 -3
- package/dist/client/{cta-HffyM4MA.mjs → cta-Bw-al3cs.mjs} +26 -2
- package/dist/client/{dateFormatting-CV45BH5M.mjs → dateFormatting-CFIUJ4Uf.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CDWheSjI.mjs → demoPortalMagicLink-D0veHJyi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BqVDXL0D.mjs → enhanceHeaderSection-CEqqq92r.mjs} +3 -3
- package/dist/client/{event-details.client-SFtS9OkF.mjs → event-details.client-Bk2kQ7ax.mjs} +1 -1
- package/dist/client/{event-registration.client-CguNVIFY.mjs → event-registration.client-QMqtIywj.mjs} +47 -56
- package/dist/client/{eventCalendar-DSGG35jd.mjs → eventCalendar-BTDTMosr.mjs} +4 -4
- package/dist/client/{eventCombined-Oe-PiChx.mjs → eventCombined-BC7a709c.mjs} +4 -4
- package/dist/client/{eventDetails-BhcTT6P3.mjs → eventDetails-DL08GpUc.mjs} +2 -2
- package/dist/client/{eventListing-BS0kBEgI.mjs → eventListing-BfzuEQp_.mjs} +4 -4
- package/dist/client/{eventRegistration-B82SHv7j.mjs → eventRegistration-Lfyzh1Ab.mjs} +4 -4
- package/dist/client/{form-DAIUrVXb.mjs → form-L-xZOBUS.mjs} +3 -3
- package/dist/client/{form.client-BoAkhoh_.mjs → form.client-BtpK3TZW.mjs} +33 -24
- package/dist/client/{form.parts-1VnasOK8.mjs → form.parts-Djos5Un4.mjs} +6 -5
- package/dist/client/{formatDate-BKil_Psb.mjs → formatDate-DGmrm7YB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -4
- package/dist/client/{headerSection-CyuHk8Ei.mjs → headerSection-f16OGkz-.mjs} +2 -2
- package/dist/client/{mediaAssets-CGJE1Omu.mjs → mediaAssets-DHAmrVIi.mjs} +1 -1
- package/dist/client/{mediaContext-DIkX2S-X.mjs → mediaContext-CwT6ZOm7.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CCdyHx0B.mjs → newsletter-form.client-DpHNZc7k.mjs} +100 -85
- package/dist/client/{newsletter-form.parts-Dl8AjsXW.mjs → newsletter-form.parts-CLGH20PL.mjs} +11 -7
- package/dist/client/{newsletterForm-qFWLZJui.mjs → newsletterForm-BEU0Ocu9.mjs} +3 -3
- package/dist/client/{noop-4XFGzJpT.mjs → noop-CQU7tiMg.mjs} +8 -4
- package/dist/client/portal/client.mjs +13 -12
- package/dist/client/{product-detail.client-Tq4S99ce.mjs → product-detail.client-Be-om1BT.mjs} +1 -1
- package/dist/client/{product-list.client-CuL5jB1w.mjs → product-list.client-DR7hD5Vs.mjs} +1 -1
- package/dist/client/{productDetail-BRqgcotZ.mjs → productDetail-BD42UOmG.mjs} +3 -3
- package/dist/client/{productList-EK9Um-oh.mjs → productList-CSk8sXCl.mjs} +3 -3
- package/dist/client/{propsDecoder-VD4arFq1.mjs → propsDecoder-C_Y6VYnF.mjs} +3 -3
- package/dist/client/protection-C0PoH1lT.mjs +104 -0
- package/dist/client/purchase-BV5xfaZH.mjs +894 -0
- package/dist/client/{registry.server-qYbsatxH.mjs → registry.server-CIKtTsCl.mjs} +197 -167
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +11 -7
- package/dist/client/{richText-coerce-CW8CFk8v.mjs → richText-coerce-spWtx86G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CnZ_1ol2.mjs → routeIslandApiConfig-CROHPlYS.mjs} +1 -1
- package/dist/client/{schema-BFwQDvJL.mjs → schema-BdSglH2X.mjs} +2690 -2500
- package/dist/client/{shop-CTUaT57E.mjs → shop-DscvMz86.mjs} +3 -3
- package/dist/client/{shop-commerce-BWwbsm_-.mjs → shop-commerce-CDUohm_2.mjs} +11 -11
- package/dist/client/{shop-commerce-store-15UII0y3.mjs → shop-commerce-store-B9nw4lRP.mjs} +1 -1
- package/dist/client/{shop.client-UWgdmJBm.mjs → shop.client-M3kNsVPi.mjs} +12 -12
- package/dist/client/{shop.interactive-Cf_kASpd.mjs → shop.interactive-BGmkdIAZ.mjs} +268 -31
- package/dist/client/{shopShared-Bi8d584P.mjs → shopShared-BdWp6LHa.mjs} +2 -2
- package/dist/client/{site-styles-dy54AUdz.mjs → site-styles-CWHmlVT5.mjs} +2630 -461
- package/dist/client/spam-protection.mjs +4 -69
- package/dist/client/{timetableModel-Bi8ruFgB.mjs → timetableModel-Dynh5-j4.mjs} +10 -10
- package/dist/client/{useAvailableSlots-DiLbDqM3.mjs → useAvailableSlots-Cw9paRPY.mjs} +3 -3
- package/dist/client/{useBookingNowIso-CWIiqPd0.mjs → useBookingNowIso-C9SF2rC6.mjs} +1 -1
- package/dist/client/{useDiscountApply-ChtszhF9.mjs → useDiscountApply-B-QJfBg0.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-B0Z7n2tZ.mjs → useDiscountCodeUi-Uvum8q9d.mjs} +1 -1
- package/dist/client/{useEventPagination-DRrATQHQ.mjs → useEventPagination-BfM3xk6j.mjs} +9 -156
- package/dist/client/{view-yUIfWX3S.mjs → view-DXOuduIr.mjs} +4 -4
- package/dist/client/{view-OvsxzgxP.mjs → view-DlkCDfuN.mjs} +45 -32
- package/dist/client/{wizardSteps-kbONzKUv.mjs → wizardSteps-DManVJpc.mjs} +57 -47
- package/dist/preview-next/before-render.mjs +2 -2
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DzoFjIqB.mjs → EventEmbeddedCheckoutStep-Die6Y25O.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-Bp4BHLCL.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-Cb0JhM9p.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-BhgPyyUW.mjs → PreviewEditorSidebar-DEP3xD9K.mjs} +3478 -3109
- package/dist/preview-next/client/{PreviewEditorUI-lndKKBtB.mjs → PreviewEditorUI-CxwlLBGw.mjs} +577 -172
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DCDDXDlt.mjs → SdkPreviewModeRuntime-Cpe-XP8e.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bk7On_EM.mjs → SdkPreviewModeRuntime-QDkMPASV.mjs} +3761 -4769
- package/dist/preview-next/client/{siteStyleAccess-Chq5KKKh.mjs → SiteChromeCustomizeButton-1JaoGOKX.mjs} +3862 -8657
- package/dist/preview-next/client/{ThemedButton-nUnE3iMv.mjs → ThemedButton-Dc6aJ34Z.mjs} +274 -68
- package/dist/preview-next/client/editorStatusDecision-DR4BBKhy.mjs +101 -0
- package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CqxuVAyz.mjs} +1 -1
- package/dist/preview-next/client/{previewChromeSurface-CxQ6dZ8D.mjs → previewChromeSurface-yuwnDP3B.mjs} +49 -6
- package/dist/preview-next/client/{previewAuthStore-DHtSQIBE.mjs → previewSidebarNavigation-AXUj9-qQ.mjs} +186449 -173608
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DSZv7Vfm.mjs → sdk-runtime-O-eA9-rV.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +3 -3
- package/dist/preview-next/middleware.mjs +2 -2
- package/dist/preview-next/{route-contract-CxCstfkP.mjs → route-contract-BBAJjFIz.mjs} +42 -50
- package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-Dz9k8vCX.mjs → Block.shared-ClFI3qpX.mjs} +5 -4
- package/dist/server/{bindings-S-gCHhj5.mjs → bindings-Bi8EoRZD.mjs} +2 -2
- package/dist/server/{client-C2Q56xqV.mjs → client-DfMDbZ41.mjs} +215 -109
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-DLzJPcDL.mjs → effectiveNavLinkStyle-BHIYPVG1.mjs} +2362 -217
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-D7ItMsEl.mjs → loadContent-dEEhQxL7.mjs} +6 -4
- package/dist/server/loadPage-CnVB-aeL.mjs +2 -0
- package/dist/server/{loadPage-DaPiPYUL.mjs → loadPage-DBFBad8A.mjs} +3 -2
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next/revalidate.mjs +1 -1
- package/dist/server/next.mjs +11 -11
- package/dist/server/{overrideResolution-anoB3Kbn.mjs → overrideResolution-BIJbiXYc.mjs} +1 -1
- package/dist/server/{overrides-W1Cc6srh.mjs → overrides-DhF87Vsd.mjs} +352 -141
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-BF9yNfCS.mjs → prebuild-DaemmWQL.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Cn9k3DW6.mjs → prefetchBlockData-FwcsT5H2.mjs} +334 -110
- package/dist/server/{publicProducts-BVcJ6TG7.mjs → publicProducts-Bz8loTRn.mjs} +87 -78
- package/dist/server/{registry-4ZF3bUuJ.mjs → registry-Cdvz1OtL.mjs} +539 -401
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BKQ1Fc0M.mjs → resolveBlockData-CLpAJWWf.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-DgrigZq9.mjs → schema-uSA_x1Zh.mjs} +247 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-CxE9F3hj.mjs → site-styles-CntHn2KI.mjs} +61 -37
- package/dist/server/{siteChromeOverlayClearance-OhS6f830.mjs → siteChromeOverlayClearance-DqP40Ka0.mjs} +32 -36
- package/dist/server/{src-C44_fMy5.mjs → src-DsYPhTbs.mjs} +1289 -90
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CVc04B9m.mjs → themeAdmission-CSknYpxk.mjs} +3 -2
- package/dist/server/{validation-BrbY0nxR.mjs → validation-DYxhLzqQ.mjs} +2 -2
- package/dist/server/{version-BBSk8uM6.mjs → version-Beu4q-Gv.mjs} +1 -1
- package/dist/styles/index.css +1173 -72
- package/package.json +2 -3
- package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
- package/dist/_dts/index-D2y4Iy-d.d.ts +0 -77
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
- package/dist/client/src-BNZzXgWu.mjs +0 -102
- package/dist/preview-next/client/spinner-CjxE3uws.mjs +0 -67
- package/dist/server/loadPage-D2qvYV5g.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { t as SDK_VERSION } from "./version-
|
|
1
|
+
import { _ as isPublicReadEndpoint, a as setSdkVersion, c as isApiError, d as TAG_TEMPLATES, f as buildPublicReadMemoryCacheTags, g as getPublicReadCachePolicy, h as isSupportedLoaderEndpoint, i as createInternalAPIClient, l as unwrapResponse, o as ApiRequestError, p as buildSiteReadTags, r as createBearerAPIClient, s as ApiEnvelopeError, t as encodePublicProductCategorySelector, u as PUBLIC_READ_ENDPOINT_DEFINITIONS, v as publicReadFreshnessSeconds } from "./publicProducts-Bz8loTRn.mjs";
|
|
2
|
+
import { t as SDK_VERSION } from "./version-Beu4q-Gv.mjs";
|
|
3
3
|
//#region src/client/error.ts
|
|
4
4
|
let _Symbol$for;
|
|
5
5
|
_Symbol$for = Symbol.for("nodejs.util.inspect.custom");
|
|
@@ -470,6 +470,49 @@ var CircuitOpenError = class extends Error {
|
|
|
470
470
|
}
|
|
471
471
|
};
|
|
472
472
|
//#endregion
|
|
473
|
+
//#region src/client/entryListReadRequest.ts
|
|
474
|
+
const entryOrder = {
|
|
475
|
+
newest: "published_at.desc",
|
|
476
|
+
oldest: "published_at.asc",
|
|
477
|
+
title: "title.asc",
|
|
478
|
+
manual: "manual.asc"
|
|
479
|
+
};
|
|
480
|
+
function entrySelection(input) {
|
|
481
|
+
return input.mode === "manual" && input.entryIds?.length ? {
|
|
482
|
+
keyPart: input.entryIds.join(","),
|
|
483
|
+
params: {
|
|
484
|
+
mode: "manual",
|
|
485
|
+
entryIds: JSON.stringify(input.entryIds)
|
|
486
|
+
}
|
|
487
|
+
} : {
|
|
488
|
+
keyPart: "",
|
|
489
|
+
params: {}
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
function entryListMemoryKey(input, selection) {
|
|
493
|
+
const { siteId, contentType, limit, offset, order, mode, includeMeta, preview = false } = input;
|
|
494
|
+
return `entries:${siteId}:${contentType}:${limit ?? ""}:${offset ?? ""}:${order ?? ""}:${preview}:${mode ?? ""}:${selection.keyPart}:${includeMeta ?? ""}`;
|
|
495
|
+
}
|
|
496
|
+
/** One interpretation of pagination, selection and preview for the transport and memory key. */
|
|
497
|
+
function buildEntryListReadRequest(input) {
|
|
498
|
+
const { siteId, contentType, limit, offset, order, includeMeta, preview = false } = input;
|
|
499
|
+
const selection = entrySelection(input);
|
|
500
|
+
const orderParam = order ? entryOrder[order] : void 0;
|
|
501
|
+
return {
|
|
502
|
+
cacheKey: entryListMemoryKey(input, selection),
|
|
503
|
+
params: {
|
|
504
|
+
siteId,
|
|
505
|
+
type: contentType,
|
|
506
|
+
...typeof limit === "number" && { limit: String(limit) },
|
|
507
|
+
...typeof offset === "number" && { offset: String(offset) },
|
|
508
|
+
...includeMeta && { meta: "true" },
|
|
509
|
+
...orderParam && { order: orderParam },
|
|
510
|
+
...preview && { stage: "preview" },
|
|
511
|
+
...selection.params
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
//#endregion
|
|
473
516
|
//#region src/client/cache.ts
|
|
474
517
|
var SimpleCache = class {
|
|
475
518
|
constructor(options = {}) {
|
|
@@ -516,6 +559,7 @@ var SimpleCache = class {
|
|
|
516
559
|
while (this.cache.size >= this.maxSize && !this.cache.has(key)) this.evictOne(now);
|
|
517
560
|
this.cache.set(key, {
|
|
518
561
|
value,
|
|
562
|
+
tags: options?.tags ?? [],
|
|
519
563
|
createdAt: now,
|
|
520
564
|
freshUntil: now + ttl,
|
|
521
565
|
staleUntil: now + ttl + staleTtl
|
|
@@ -552,6 +596,14 @@ var SimpleCache = class {
|
|
|
552
596
|
/**
|
|
553
597
|
* Clear all entries
|
|
554
598
|
*/
|
|
599
|
+
clearForTags(tags) {
|
|
600
|
+
if (tags.includes("riverbank")) {
|
|
601
|
+
this.clear();
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
const selected = new Set(tags);
|
|
605
|
+
[...this.cache.entries()].filter(([, entry]) => entry.tags.some((tag) => selected.has(tag))).forEach(([key]) => this.cache.delete(key));
|
|
606
|
+
}
|
|
555
607
|
clear() {
|
|
556
608
|
this.cache.clear();
|
|
557
609
|
}
|
|
@@ -1174,73 +1226,95 @@ function planPublishedRuntimeCache(input) {
|
|
|
1174
1226
|
siteId: input.siteId ?? null
|
|
1175
1227
|
};
|
|
1176
1228
|
}
|
|
1177
|
-
function
|
|
1229
|
+
function siteApiParams(params) {
|
|
1178
1230
|
return {
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
return input.apiClient({
|
|
1203
|
-
endpoint: "getSite",
|
|
1204
|
-
params: apiParams,
|
|
1205
|
-
options: {
|
|
1206
|
-
signal: requestSignal,
|
|
1207
|
-
...force ? { cache: "no-store" } : {}
|
|
1208
|
-
}
|
|
1209
|
-
});
|
|
1210
|
-
}, {
|
|
1211
|
-
signal,
|
|
1212
|
-
force,
|
|
1213
|
-
publishedRuntimeCache,
|
|
1214
|
-
prebuildFallback: input.prebuildLoader && siteId ? () => input.prebuildLoader?.loadSite(siteId) ?? null : void 0
|
|
1215
|
-
});
|
|
1216
|
-
},
|
|
1217
|
-
async getPageWithResilience(params) {
|
|
1218
|
-
const { siteId, path, preview = false, signal } = params;
|
|
1219
|
-
const publishedRuntimeCache = planPublishedRuntimeCache({
|
|
1220
|
-
endpoint: "getContentByPath",
|
|
1221
|
-
params: {
|
|
1222
|
-
siteId,
|
|
1223
|
-
path,
|
|
1224
|
-
preview
|
|
1225
|
-
},
|
|
1226
|
-
siteId
|
|
1227
|
-
});
|
|
1228
|
-
const cacheKey = publishedRuntimeCache?.cacheKey ?? `page:${siteId}:${path}:${preview}`;
|
|
1229
|
-
return input.resilientFetch(cacheKey, (requestSignal) => input.apiClient({
|
|
1230
|
-
endpoint: "getContentByPath",
|
|
1231
|
-
params: {
|
|
1232
|
-
siteId,
|
|
1233
|
-
path,
|
|
1234
|
-
preview: String(preview)
|
|
1235
|
-
},
|
|
1236
|
-
options: { signal: requestSignal }
|
|
1237
|
-
}), {
|
|
1238
|
-
preview,
|
|
1239
|
-
signal,
|
|
1240
|
-
publishedRuntimeCache,
|
|
1241
|
-
prebuildFallback: void 0
|
|
1242
|
-
});
|
|
1231
|
+
...params.slug ? { slug: params.slug } : {},
|
|
1232
|
+
...params.domain ? { domain: params.domain } : {},
|
|
1233
|
+
...params.id ? { id: params.id } : {},
|
|
1234
|
+
...params.currentPath ? { currentPath: params.currentPath } : {},
|
|
1235
|
+
...params.force ? { force: "true" } : {}
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
function siteReadIdentity(params) {
|
|
1239
|
+
const identifier = params.slug || params.domain || params.id;
|
|
1240
|
+
if (!identifier) throw new Error(`getSite() requires at least one identifier: slug, domain, or id. Received: ${JSON.stringify(params)}`);
|
|
1241
|
+
return identifier;
|
|
1242
|
+
}
|
|
1243
|
+
function planSiteRead(params) {
|
|
1244
|
+
const identifier = siteReadIdentity(params);
|
|
1245
|
+
const { slug, domain, id, currentPath, force } = params;
|
|
1246
|
+
const publishedRuntimeCache = planPublishedRuntimeCache({
|
|
1247
|
+
endpoint: "getSite",
|
|
1248
|
+
params: {
|
|
1249
|
+
slug,
|
|
1250
|
+
domain,
|
|
1251
|
+
id,
|
|
1252
|
+
currentPath,
|
|
1253
|
+
force
|
|
1243
1254
|
}
|
|
1255
|
+
});
|
|
1256
|
+
return {
|
|
1257
|
+
publishedRuntimeCache,
|
|
1258
|
+
prebuildIdentifier: id || slug || domain,
|
|
1259
|
+
cacheKey: publishedRuntimeCache?.cacheKey ?? `site:${identifier}:${currentPath ?? ""}`
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
async function readSiteWithResilience(input, params) {
|
|
1263
|
+
const { slug, domain, id, signal, force } = params;
|
|
1264
|
+
const plan = planSiteRead(params);
|
|
1265
|
+
const prebuildId = plan.prebuildIdentifier;
|
|
1266
|
+
const prebuild = input.prebuildLoader;
|
|
1267
|
+
return input.resilientFetch(plan.cacheKey, (requestSignal) => input.apiClient({
|
|
1268
|
+
endpoint: "getSite",
|
|
1269
|
+
params: siteApiParams(params),
|
|
1270
|
+
options: {
|
|
1271
|
+
signal: requestSignal,
|
|
1272
|
+
...force ? { cache: "no-store" } : {}
|
|
1273
|
+
}
|
|
1274
|
+
}), {
|
|
1275
|
+
signal,
|
|
1276
|
+
force,
|
|
1277
|
+
publishedRuntimeCache: plan.publishedRuntimeCache,
|
|
1278
|
+
cacheTags: buildSiteReadTags({
|
|
1279
|
+
slug,
|
|
1280
|
+
domain,
|
|
1281
|
+
id
|
|
1282
|
+
}),
|
|
1283
|
+
prebuildFallback: prebuild && prebuildId ? () => prebuild.loadSite(prebuildId) : void 0
|
|
1284
|
+
});
|
|
1285
|
+
}
|
|
1286
|
+
async function readPageWithResilience(input, params) {
|
|
1287
|
+
const { siteId, path, preview = false, signal } = params;
|
|
1288
|
+
const publishedRuntimeCache = planPublishedRuntimeCache({
|
|
1289
|
+
endpoint: "getContentByPath",
|
|
1290
|
+
params: {
|
|
1291
|
+
siteId,
|
|
1292
|
+
path,
|
|
1293
|
+
preview
|
|
1294
|
+
},
|
|
1295
|
+
siteId
|
|
1296
|
+
});
|
|
1297
|
+
const cacheKey = publishedRuntimeCache?.cacheKey ?? `page:${siteId}:${path}:${preview}`;
|
|
1298
|
+
return input.resilientFetch(cacheKey, (requestSignal) => input.apiClient({
|
|
1299
|
+
endpoint: "getContentByPath",
|
|
1300
|
+
params: {
|
|
1301
|
+
siteId,
|
|
1302
|
+
path,
|
|
1303
|
+
preview: String(preview)
|
|
1304
|
+
},
|
|
1305
|
+
options: { signal: requestSignal }
|
|
1306
|
+
}), {
|
|
1307
|
+
preview,
|
|
1308
|
+
signal,
|
|
1309
|
+
publishedRuntimeCache,
|
|
1310
|
+
cacheTags: buildSiteReadTags({ siteId }),
|
|
1311
|
+
prebuildFallback: void 0
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
function createContentReadOperations(input) {
|
|
1315
|
+
return {
|
|
1316
|
+
getSiteWithResilience: (params) => readSiteWithResilience(input, params),
|
|
1317
|
+
getPageWithResilience: (params) => readPageWithResilience(input, params)
|
|
1244
1318
|
};
|
|
1245
1319
|
}
|
|
1246
1320
|
//#endregion
|
|
@@ -1261,7 +1335,10 @@ function createPublicAppointmentReadOperations(deps) {
|
|
|
1261
1335
|
params: apiParams,
|
|
1262
1336
|
options: { signal: requestSignal }
|
|
1263
1337
|
});
|
|
1264
|
-
}, {
|
|
1338
|
+
}, {
|
|
1339
|
+
signal,
|
|
1340
|
+
cacheTags: buildPublicReadMemoryCacheTags("getPublicBookingServices", { siteId })
|
|
1341
|
+
});
|
|
1265
1342
|
},
|
|
1266
1343
|
async getPublicWeeklySlotAvailability(params) {
|
|
1267
1344
|
const { siteId, serviceId, resourceId, horizonWeeks, timezone, signal } = params;
|
|
@@ -1287,7 +1364,10 @@ function createPublicAppointmentReadOperations(deps) {
|
|
|
1287
1364
|
params: apiParams,
|
|
1288
1365
|
options: { signal: requestSignal }
|
|
1289
1366
|
});
|
|
1290
|
-
}, {
|
|
1367
|
+
}, {
|
|
1368
|
+
signal,
|
|
1369
|
+
cacheTags: buildPublicReadMemoryCacheTags("getPublicWeeklySlotAvailability", { siteId })
|
|
1370
|
+
});
|
|
1291
1371
|
}
|
|
1292
1372
|
};
|
|
1293
1373
|
}
|
|
@@ -1311,7 +1391,8 @@ function createPublicEventReadOperations(deps) {
|
|
|
1311
1391
|
options: { signal: requestSignal }
|
|
1312
1392
|
}), {
|
|
1313
1393
|
signal,
|
|
1314
|
-
preview
|
|
1394
|
+
preview,
|
|
1395
|
+
cacheTags: buildPublicReadMemoryCacheTags("resolveEventSubroute", { siteId })
|
|
1315
1396
|
});
|
|
1316
1397
|
}
|
|
1317
1398
|
return {
|
|
@@ -1323,7 +1404,10 @@ function createPublicEventReadOperations(deps) {
|
|
|
1323
1404
|
limit: params.limit === void 0 ? void 0 : String(params.limit)
|
|
1324
1405
|
},
|
|
1325
1406
|
options: { signal: requestSignal }
|
|
1326
|
-
}), {
|
|
1407
|
+
}), {
|
|
1408
|
+
signal,
|
|
1409
|
+
cacheTags: buildPublicReadMemoryCacheTags("listPublicEventCalendarWindow", { siteId: params.siteId })
|
|
1410
|
+
});
|
|
1327
1411
|
},
|
|
1328
1412
|
async resolveEventOccurrence(params) {
|
|
1329
1413
|
const response = await resolveEventSubroute(params, "event-occurrence");
|
|
@@ -1838,7 +1922,7 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
1838
1922
|
} catch (error) {
|
|
1839
1923
|
convertToTypedError(error);
|
|
1840
1924
|
}
|
|
1841
|
-
if (shouldWrite(cacheEnabled, options.force)) cache.set(cacheKey, data);
|
|
1925
|
+
if (shouldWrite(cacheEnabled, options.force)) cache.set(cacheKey, data, { tags: options.cacheTags });
|
|
1842
1926
|
if (allowFallbacks && !isPreview) await writePublishedRuntimeCache(options.publishedRuntimeCache, data);
|
|
1843
1927
|
return emitStatus("live", data, statusDetails());
|
|
1844
1928
|
} catch (error) {
|
|
@@ -1890,34 +1974,16 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
1890
1974
|
resilientFetchData
|
|
1891
1975
|
});
|
|
1892
1976
|
async function getEntriesInternal(params) {
|
|
1893
|
-
const { siteId,
|
|
1894
|
-
const
|
|
1895
|
-
return resilientFetchData("listPublishedEntries",
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
else if (order === "manual") orderParam = "manual.asc";
|
|
1901
|
-
return await apiClient({
|
|
1902
|
-
endpoint: "listPublishedEntries",
|
|
1903
|
-
params: {
|
|
1904
|
-
siteId,
|
|
1905
|
-
type: contentType,
|
|
1906
|
-
...typeof limit === "number" && { limit: String(limit) },
|
|
1907
|
-
...typeof offset === "number" && { offset: String(offset) },
|
|
1908
|
-
...includeMeta && { meta: "true" },
|
|
1909
|
-
...orderParam && { order: orderParam },
|
|
1910
|
-
...preview && { stage: "preview" },
|
|
1911
|
-
...mode === "manual" && entryIds?.length && {
|
|
1912
|
-
mode: "manual",
|
|
1913
|
-
entryIds: JSON.stringify(entryIds)
|
|
1914
|
-
}
|
|
1915
|
-
},
|
|
1916
|
-
options: { signal: sig }
|
|
1917
|
-
});
|
|
1918
|
-
}, {
|
|
1977
|
+
const { siteId, preview = false, signal } = params;
|
|
1978
|
+
const request = buildEntryListReadRequest(params);
|
|
1979
|
+
return resilientFetchData("listPublishedEntries", request.cacheKey, (sig) => apiClient({
|
|
1980
|
+
endpoint: "listPublishedEntries",
|
|
1981
|
+
params: request.params,
|
|
1982
|
+
options: { signal: sig }
|
|
1983
|
+
}), {
|
|
1919
1984
|
preview,
|
|
1920
1985
|
signal,
|
|
1986
|
+
cacheTags: buildPublicReadMemoryCacheTags("listPublishedEntries", { siteId }),
|
|
1921
1987
|
prebuildFallback: prebuildLoader && !preview ? () => prebuildLoader.loadEntries(siteId, params) : void 0
|
|
1922
1988
|
});
|
|
1923
1989
|
}
|
|
@@ -1962,7 +2028,10 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
1962
2028
|
},
|
|
1963
2029
|
options: { signal: sig }
|
|
1964
2030
|
});
|
|
1965
|
-
}, {
|
|
2031
|
+
}, {
|
|
2032
|
+
signal,
|
|
2033
|
+
cacheTags: buildPublicReadMemoryCacheTags("getPublishedEntryPreview", { siteId })
|
|
2034
|
+
});
|
|
1966
2035
|
},
|
|
1967
2036
|
async getPublicFormById(params) {
|
|
1968
2037
|
const { formId, siteId, signal } = params;
|
|
@@ -1976,7 +2045,13 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
1976
2045
|
},
|
|
1977
2046
|
options: { signal: sig }
|
|
1978
2047
|
}));
|
|
1979
|
-
}, {
|
|
2048
|
+
}, {
|
|
2049
|
+
signal,
|
|
2050
|
+
cacheTags: buildPublicReadMemoryCacheTags("getPublicFormById", {
|
|
2051
|
+
siteId,
|
|
2052
|
+
formId
|
|
2053
|
+
})
|
|
2054
|
+
});
|
|
1980
2055
|
},
|
|
1981
2056
|
async getForms(params) {
|
|
1982
2057
|
const { siteId, signal } = params;
|
|
@@ -1989,6 +2064,7 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
1989
2064
|
}));
|
|
1990
2065
|
}, {
|
|
1991
2066
|
signal,
|
|
2067
|
+
cacheTags: buildPublicReadMemoryCacheTags("listPublicForms", { siteId }),
|
|
1992
2068
|
prebuildFallback: prebuildLoader ? () => {
|
|
1993
2069
|
const result = prebuildLoader.loadForms();
|
|
1994
2070
|
if (result) return {
|
|
@@ -2038,7 +2114,10 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
2038
2114
|
},
|
|
2039
2115
|
options: { signal: sig }
|
|
2040
2116
|
});
|
|
2041
|
-
}, {
|
|
2117
|
+
}, {
|
|
2118
|
+
signal,
|
|
2119
|
+
cacheTags: buildPublicReadMemoryCacheTags("listPublicEvents", { siteId })
|
|
2120
|
+
});
|
|
2042
2121
|
},
|
|
2043
2122
|
async getPublicEventDetails(params) {
|
|
2044
2123
|
const { siteId, limit, from, to, afterStartsAt, afterId, stage, categoryIds, venueId, staffMemberId, kind, eventSurface, eventPresets, scheduleScope, seriesId, includeOccurrenceId, signal } = params;
|
|
@@ -2073,7 +2152,10 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
2073
2152
|
}] },
|
|
2074
2153
|
options: { signal: sig }
|
|
2075
2154
|
}), requestId);
|
|
2076
|
-
}, {
|
|
2155
|
+
}, {
|
|
2156
|
+
signal,
|
|
2157
|
+
cacheTags: buildPublicReadMemoryCacheTags("getPublicEventDetails", { siteId })
|
|
2158
|
+
});
|
|
2077
2159
|
},
|
|
2078
2160
|
async listPublicTeamMembers(params) {
|
|
2079
2161
|
const { siteId, stage, signal } = params;
|
|
@@ -2087,7 +2169,10 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
2087
2169
|
},
|
|
2088
2170
|
options: { signal: sig }
|
|
2089
2171
|
});
|
|
2090
|
-
}, {
|
|
2172
|
+
}, {
|
|
2173
|
+
signal,
|
|
2174
|
+
cacheTags: buildPublicReadMemoryCacheTags("listPublicTeamMembers", { siteId })
|
|
2175
|
+
});
|
|
2091
2176
|
},
|
|
2092
2177
|
async listPublicProducts(params) {
|
|
2093
2178
|
const { siteId, stage, categorySelector, signal } = params;
|
|
@@ -2103,7 +2188,10 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
2103
2188
|
},
|
|
2104
2189
|
options: { signal: sig }
|
|
2105
2190
|
});
|
|
2106
|
-
}, {
|
|
2191
|
+
}, {
|
|
2192
|
+
signal,
|
|
2193
|
+
cacheTags: buildPublicReadMemoryCacheTags("listPublicProducts", { siteId })
|
|
2194
|
+
});
|
|
2107
2195
|
},
|
|
2108
2196
|
async listPublicPasses(params) {
|
|
2109
2197
|
const { siteId, categories, signal } = params;
|
|
@@ -2117,7 +2205,10 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
2117
2205
|
},
|
|
2118
2206
|
options: { signal: sig }
|
|
2119
2207
|
});
|
|
2120
|
-
}, {
|
|
2208
|
+
}, {
|
|
2209
|
+
signal,
|
|
2210
|
+
cacheTags: buildPublicReadMemoryCacheTags("listPublicPasses", { siteId })
|
|
2211
|
+
});
|
|
2121
2212
|
},
|
|
2122
2213
|
async listPublicMemberships(params) {
|
|
2123
2214
|
const { siteId, categories, signal } = params;
|
|
@@ -2131,7 +2222,10 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
2131
2222
|
},
|
|
2132
2223
|
options: { signal: sig }
|
|
2133
2224
|
});
|
|
2134
|
-
}, {
|
|
2225
|
+
}, {
|
|
2226
|
+
signal,
|
|
2227
|
+
cacheTags: buildPublicReadMemoryCacheTags("listPublicMemberships", { siteId })
|
|
2228
|
+
});
|
|
2135
2229
|
},
|
|
2136
2230
|
...eventReads,
|
|
2137
2231
|
async checkRedirect(params) {
|
|
@@ -2146,7 +2240,10 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
2146
2240
|
},
|
|
2147
2241
|
options: { signal: sig }
|
|
2148
2242
|
});
|
|
2149
|
-
}, {
|
|
2243
|
+
}, {
|
|
2244
|
+
signal,
|
|
2245
|
+
cacheTags: buildPublicReadMemoryCacheTags("checkRedirect", { site: siteId })
|
|
2246
|
+
});
|
|
2150
2247
|
},
|
|
2151
2248
|
async resolveRouteOutcome(params) {
|
|
2152
2249
|
const { siteId, path, preview = false, signal } = params;
|
|
@@ -2186,7 +2283,10 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
2186
2283
|
},
|
|
2187
2284
|
options: { signal: sig }
|
|
2188
2285
|
});
|
|
2189
|
-
}, {
|
|
2286
|
+
}, {
|
|
2287
|
+
signal,
|
|
2288
|
+
cacheTags: buildPublicReadMemoryCacheTags("getPublicRoutableContent", { siteId })
|
|
2289
|
+
});
|
|
2190
2290
|
},
|
|
2191
2291
|
async getSitemapRoutes(params) {
|
|
2192
2292
|
const { siteId, page, pageSize, signal } = params;
|
|
@@ -2201,7 +2301,13 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
2201
2301
|
},
|
|
2202
2302
|
options: { signal: sig }
|
|
2203
2303
|
});
|
|
2204
|
-
}, {
|
|
2304
|
+
}, {
|
|
2305
|
+
signal,
|
|
2306
|
+
cacheTags: buildPublicReadMemoryCacheTags("getPublicSitemapRoutes", { siteId })
|
|
2307
|
+
});
|
|
2308
|
+
},
|
|
2309
|
+
clearCacheForTags(tags) {
|
|
2310
|
+
cache.clearForTags(tags);
|
|
2205
2311
|
},
|
|
2206
2312
|
clearCache() {
|
|
2207
2313
|
cache.clear();
|
|
@@ -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-DYxhLzqQ.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,6 +1,6 @@
|
|
|
1
|
-
import { O as isCanonicalRichTextDoc } from "./prefetchBlockData-
|
|
1
|
+
import { O as isCanonicalRichTextDoc } from "./prefetchBlockData-FwcsT5H2.mjs";
|
|
2
2
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-CdI7NvAW.mjs";
|
|
3
|
-
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-
|
|
3
|
+
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-DYxhLzqQ.mjs";
|
|
4
4
|
//#region src/config/bindings.ts
|
|
5
5
|
function fieldBinding(path) {
|
|
6
6
|
return {
|