@riverbankcms/sdk 0.162.0 → 0.164.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/CHANGELOG.md +9 -0
- package/README.md +12 -1
- package/dist/_dts/{BlocksIslandsHydrator-PZUoA872.d.ts → BlocksIslandsHydrator-CubPwupc.d.ts} +1 -1
- package/dist/_dts/{Page-CdQS6C7i.d.ts → Page-CDzsagB2.d.ts} +15 -12
- package/dist/_dts/{SdkPreviewMode-CNGO-5f1.d.ts → SdkPreviewMode-CPRQbRCI.d.ts} +2 -3
- package/dist/_dts/{client-DGa53rjL.d.ts → client-CbeYTSry.d.ts} +13 -41
- package/dist/_dts/{content-types-K9R7P-KF.d.ts → content-types--uYRIcIF.d.ts} +2 -2
- package/dist/_dts/{contracts-CyBaPaIq.d.ts → contracts-DJQYAOsv.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-B6jmKmon.d.ts → footerPageOutline-CKkhBwgJ.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-iemoR3AN.d.ts → generatePageMetadata--qd7NCIA.d.ts} +2 -2
- package/dist/_dts/{index-DEu85xBt.d.ts → index-BZE-1azr.d.ts} +1 -1
- package/dist/_dts/{index-Wm62sXf2.d.ts → index-BpEbwDM7.d.ts} +4 -4
- package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
- package/dist/_dts/{index-8CN0Nd-Z.d.ts → index-CjdIn9-_.d.ts} +2 -2
- package/dist/_dts/{index-BtnsA14K.d.ts → index-DYQFmf--.d.ts} +4 -3
- package/dist/_dts/{index-Dbd0Sn0G.d.ts → index-D_pQO-AS.d.ts} +21723 -21361
- package/dist/_dts/{index-Du1IRglc.d.ts → index-DriYVLfT.d.ts} +2 -2
- package/dist/_dts/{index-DI2yaSPY.d.ts → index-JS8WYgD3.d.ts} +31248 -30975
- package/dist/_dts/{index-Jlcq6w69.d.ts → index-wegfy7lf.d.ts} +3 -3
- package/dist/_dts/{loadContent-BPfAAZDW.d.ts → loadContent-DUi94Qfk.d.ts} +15 -30
- package/dist/_dts/{resolvePageContent-DWbrtKf8.d.ts → resolvePageContent-JDE0ry6T.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 +13 -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-ClZ-BQL_.d.ts → types-DiciZDrk.d.ts} +3 -3
- package/dist/_dts/{types-CVv2H4AT.d.ts → types-DubJnBnI.d.ts} +7 -7
- package/dist/_dts/{types-CfNG5koF.d.ts → types-W40f2olO.d.ts} +3 -2
- package/dist/_dts/{validation-BJ6Lf_Dr.d.ts → validation-BF4_zNkR.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-COqlgWYU.mjs → BlocksIslandsHydrator-64hFxF02.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-CFYPDEHH.mjs → BookingMailingListNote-CSQyFm9J.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-COBVxgHb.mjs → CalendarNavigationChevron-Bvkx8Z7Y.mjs} +6 -6
- package/dist/client/{CheckboxChoice-C7X9dJ8A.mjs → CheckboxChoice-3PhxDxgR.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CvT0E9AR.mjs → DemoBookingPortalAccess-pt2xXBQp.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-EBOBN5dT.mjs → DemoPortalSignInLink-Qw780EfW.mjs} +1 -1
- package/dist/client/{EventCalendar.client-U6pKcntV.mjs → EventCalendar.client-DWoboRW5.mjs} +9 -9
- package/dist/client/{EventCombined.client-CNzwEHws.mjs → EventCombined.client-C98ucpcP.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B9yAWV_k.mjs → EventEmbeddedCheckoutStep-DHRlFfkp.mjs} +2 -1
- package/dist/client/{EventItem-M5rpaHxi.mjs → EventItem-hrSyTApW.mjs} +102 -22
- package/dist/client/{EventListWeekNavigation-D4ieBLDY.mjs → EventListWeekNavigation-C3t7H13W.mjs} +1 -1
- package/dist/client/{EventListing.client-B8F40Rmn.mjs → EventListing.client-Cp11sBX_.mjs} +3 -3
- package/dist/client/{EventListing.view-k4lhuCn5.mjs → EventListing.view-Dd5QHIAf.mjs} +7 -56
- package/dist/client/{EventRegistrationPayment-C3g8_Hqb.mjs → EventRegistrationPayment-ByT88VHR.mjs} +18 -22
- package/dist/client/{LocationMapActions-CAjt7qVo.mjs → LocationMapActions-BsepG5Vv.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-_aIK2ojv.mjs → MapDrawingSvg-R4JMT4yd.mjs} +1 -1
- package/dist/client/{Page-DJBIQBOw.mjs → Page-Dub71o3c.mjs} +956 -378
- package/dist/client/ProtectedSubmitButton-DGbgGvdh.mjs +14 -0
- package/dist/client/SpamProtectionWidget-CRsKTQV-.mjs +139 -0
- package/dist/client/{StepIndicator-CFacB1z6.mjs → StepIndicator-Bp7MyutT.mjs} +2 -2
- package/dist/client/{TabBarFragment-BLsfQskO.mjs → TabBarFragment-C4WJyybx.mjs} +1 -1
- package/dist/client/{ThemedButton-BWsDgjMC.mjs → ThemedButton-BGVwNwE-.mjs} +2 -898
- package/dist/client/{accordion-CtO2XF7M.mjs → accordion-vCG_JC5t.mjs} +1 -1
- package/dist/client/altchaProtection-BWchRM3v.mjs +12 -0
- package/dist/client/{booking-form.client-RICCQ0h2.mjs → booking-form.client-CHTbcZJM.mjs} +23 -56
- package/dist/client/{bookingForm-SvjLPx8i.mjs → bookingForm-BxbUbzUr.mjs} +4 -4
- package/dist/client/bookings.mjs +23 -32
- package/dist/client/{carousel-BR-zCD3O.mjs → carousel-FM1mkkL0.mjs} +2 -2
- package/dist/client/{carousel.client-CEWtoZd3.mjs → carousel.client-ChoLiWwD.mjs} +1 -1
- package/dist/client/{cart-C6YpKbZZ.mjs → cart-BDFhbh9j.mjs} +3 -3
- package/dist/client/{cart.client-dC938WrX.mjs → cart.client-x3HOke6T.mjs} +1 -1
- package/dist/client/{checkout-Dy9RlREI.mjs → checkout-BibhwnTd.mjs} +3 -3
- package/dist/client/{checkout.client-CefG0d2F.mjs → checkout.client-CE4jUi0G.mjs} +1 -1
- package/dist/client/client.mjs +216 -109
- package/dist/client/{context-BFwxgZpB.mjs → context-BNAM7NsW.mjs} +17 -3
- package/dist/client/{cta-DtA42Xio.mjs → cta-ChiN1Vgg.mjs} +1 -1
- package/dist/client/{dateFormatting-yP1B7F0O.mjs → dateFormatting-QwBSo0hK.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-WOiT5Ryi.mjs → demoPortalMagicLink-NwKJk6gn.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Dh8c_Lq-.mjs → enhanceHeaderSection-D4zqEBDl.mjs} +3 -3
- package/dist/client/{event-details.client-BFgsLqTj.mjs → event-details.client-jFyFjOIC.mjs} +1 -1
- package/dist/client/{event-registration.client-BaXZ1-Ky.mjs → event-registration.client-BK_jVv3R.mjs} +37 -55
- package/dist/client/{eventCalendar-COLwF80U.mjs → eventCalendar-DSkzejQh.mjs} +4 -4
- package/dist/client/{eventCombined-D3Ltwu03.mjs → eventCombined-BG-BEaYh.mjs} +4 -4
- package/dist/client/{eventDetails-CBrkimXu.mjs → eventDetails-BhIwXAKe.mjs} +2 -2
- package/dist/client/{eventListing-CedKVA1S.mjs → eventListing-DQtyO1Xj.mjs} +4 -4
- package/dist/client/{eventRegistration-DkQQfR1b.mjs → eventRegistration-DRTz8X0M.mjs} +4 -4
- package/dist/client/{form-XFy9uXSJ.mjs → form-GXqjObPC.mjs} +3 -3
- package/dist/client/{form.client-B0iancFK.mjs → form.client-CoKNba2e.mjs} +33 -24
- package/dist/client/{form.parts-DMbolu9Y.mjs → form.parts-magB_epJ.mjs} +6 -5
- package/dist/client/{formatDate-Jm5MQOCA.mjs → formatDate-BiloOyjS.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -3
- package/dist/client/{headerSection-WjlECjtV.mjs → headerSection-BMQCPHT3.mjs} +2 -2
- package/dist/client/mediaAssets-BX-vWwQc.mjs +43 -0
- package/dist/client/{mediaContext-CNzWmoA4.mjs → mediaContext-CdqGYlWl.mjs} +1 -1
- package/dist/client/{newsletter-form.client-D-XwJTjN.mjs → newsletter-form.client-8orCez1z.mjs} +99 -84
- package/dist/client/{newsletter-form.parts-H92f30y0.mjs → newsletter-form.parts-D8NgHY_F.mjs} +11 -7
- package/dist/client/{newsletterForm-DMuxzu6I.mjs → newsletterForm-BhBNsS3n.mjs} +3 -3
- package/dist/client/{noop-B3RNPVrt.mjs → noop-C2vZse15.mjs} +3 -3
- package/dist/client/portal/client.mjs +13 -12
- package/dist/client/{product-detail.client-B3HuuykE.mjs → product-detail.client-CQ0k0fbH.mjs} +1 -1
- package/dist/client/{product-list.client-CzsDrHQO.mjs → product-list.client-Xlr1P0x9.mjs} +1 -1
- package/dist/client/{productDetail-CbBUVWgd.mjs → productDetail-BsCao6X4.mjs} +3 -3
- package/dist/client/{productList-vqOKH2mh.mjs → productList-Cc-PmbEe.mjs} +3 -3
- package/dist/client/{propsDecoder-CkSUep5a.mjs → propsDecoder-DikkDJ9x.mjs} +3 -3
- package/dist/client/protection-C0PoH1lT.mjs +104 -0
- package/dist/client/purchase-BMsWpx8y.mjs +894 -0
- package/dist/client/{registry.server-cZ24QwtW.mjs → registry.server-BpLZo3bC.mjs} +27 -24
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -19
- package/dist/client/{richText-coerce-DDcCKvBJ.mjs → richText-coerce-WuMYrBm3.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DYBioANh.mjs → routeIslandApiConfig-DNx6b07x.mjs} +1 -1
- package/dist/client/{schema-DNHLlze-.mjs → schema-DMUkBtIO.mjs} +3517 -3147
- package/dist/client/{shop-CF0dhnfH.mjs → shop-DyXtB5TD.mjs} +3 -3
- package/dist/client/{shop-commerce-store-Ba8zPlIg.mjs → shop-commerce-store-CbBsS1kD.mjs} +1 -1
- package/dist/client/{shop-commerce-DQznNBEo.mjs → shop-commerce-xjWH7-Ym.mjs} +11 -11
- package/dist/client/{shop.client-DqfYoqWH.mjs → shop.client-QOKqQPgK.mjs} +12 -12
- package/dist/client/{shop.interactive-CreQ0I7i.mjs → shop.interactive-BQdm441g.mjs} +62 -34
- package/dist/client/{shopShared-D-yh-P7g.mjs → shopShared-CyW6MU48.mjs} +2 -2
- package/dist/client/{site-styles-B9HgmY07.mjs → site-styles-BLHYJ8S7.mjs} +755 -35
- package/dist/client/spam-protection.mjs +4 -69
- package/dist/client/{timetableModel-DCdVErTJ.mjs → timetableModel-BgdkhRuA.mjs} +10 -10
- package/dist/client/{useAvailableSlots-Cvgdp2DH.mjs → useAvailableSlots-wmdo6uZ8.mjs} +3 -3
- package/dist/client/{useBookingNowIso-DrTnGNzD.mjs → useBookingNowIso-CUExAee1.mjs} +1 -1
- package/dist/client/{useDiscountApply-CULjnXGl.mjs → useDiscountApply-BRM-OoTN.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-Gn_m7e0o.mjs → useDiscountCodeUi-BEIvL31G.mjs} +1 -1
- package/dist/client/{useEventPagination-CsysCF22.mjs → useEventPagination-Dk3g64we.mjs} +6 -6
- package/dist/client/{view-DMyTchi7.mjs → view-BnaOmrap.mjs} +4 -4
- package/dist/client/{view-BpBjo9Te.mjs → view-vhKGFfC3.mjs} +7 -7
- package/dist/client/{wizardSteps-BO2OmMO9.mjs → wizardSteps-xqU4q63H.mjs} +14 -14
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/chrome.css +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DLsSmZbO.mjs → EventEmbeddedCheckoutStep-43wIAWr4.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-ChrW9VEo.mjs → PreviewEditorSidebar-C3AQVxQt.mjs} +74 -72
- package/dist/preview-next/client/{PreviewEditorUI-VaHvYtrA.mjs → PreviewEditorUI-C-1zDCR_.mjs} +151 -126
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DWwktlWs.mjs → SdkPreviewModeRuntime-B47yHFL0.mjs} +371 -1433
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bz7jR6nl.mjs → SdkPreviewModeRuntime-C6Rhm2NQ.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-CHKOWXxl.mjs → ThemedButton-g7NPrsGp.mjs} +462 -110
- package/dist/preview-next/client/{previewAuthStore-C0VUwEHz.mjs → previewAuthStore-By_zfrS5.mjs} +164988 -163471
- package/dist/preview-next/client/{previewChromeSurface-Dhyx2YrS.mjs → previewChromeSurface-Cjwxv90x.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C2GWOCyj.mjs → sdk-runtime-BG2HYvQj.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-DHyzUpv4.mjs → siteStyleAccess-BiSyYyyr.mjs} +10854 -9509
- package/dist/preview-next/client/{spinner-BeR2S8oG.mjs → spinner-DnWpeDp2.mjs} +1 -1
- package/dist/preview-next/edit-map.css +37 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/maplibre-gl.css +1 -0
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CkrFDMrl.mjs → route-contract-D5tHZEz5.mjs} +40 -42
- package/dist/preview-next/upload-structure.css +18 -0
- package/dist/server/{Block.shared-DxvNGDig.mjs → Block.shared-Iy7g11iP.mjs} +17 -16
- package/dist/server/{bindings-BuhKvYkE.mjs → bindings-BVJGgUT0.mjs} +2 -2
- package/dist/server/{client-BobW6DOz.mjs → client-CiKaE8ms.mjs} +215 -109
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-B-MKSt0p.mjs → effectiveNavLinkStyle-EDSdd_oK.mjs} +725 -18
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-CCG_3mbY.mjs → loadContent-BuintpdO.mjs} +6 -4
- package/dist/server/loadPage-BwjncpJf.mjs +2 -0
- package/dist/server/{loadPage-jntGoMrf.mjs → loadPage-Dk4wea8M.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-BBOlgn4Z.mjs → overrideResolution-BDiQWM7D.mjs} +1 -1
- package/dist/server/{overrides-DByQwIyW.mjs → overrides-DVemf-GV.mjs} +231 -114
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-DrwcTk2t.mjs → prebuild-DubLNgRH.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-LfgxSJYE.mjs → prefetchBlockData-Bnbwoe5n.mjs} +53 -28
- package/dist/server/{publicProducts-8A3T5v4M.mjs → publicProducts-D3Fc5TKk.mjs} +85 -70
- package/dist/server/{registry-Digv02oV.mjs → registry-zjd1P2Dl.mjs} +127 -59
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-C23t8-77.mjs → resolveBlockData-CZJ--nH6.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-BiqpDRwB.mjs → schema-BlTWmTSl.mjs} +4163 -3793
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-DrkprQPL.mjs → site-styles-yHytcXIB.mjs} +33 -20
- package/dist/server/{siteChromeOverlayClearance-BmKKkkbh.mjs → siteChromeOverlayClearance-D0uCNZ7E.mjs} +159 -107
- package/dist/server/{src-08GY1njw.mjs → src-cbbK3Bho.mjs} +547 -147
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CSd_Vusz.mjs → themeAdmission-BdY8lP-K.mjs} +3 -2
- package/dist/server/{validation-DdUTkBOZ.mjs → validation-CGH-Xs4E.mjs} +2 -2
- package/dist/server/{version-DdIOqIDe.mjs → version-DoOG6F13.mjs} +1 -1
- package/dist/styles/index.css +399 -112
- package/package.json +2 -3
- package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
- package/dist/_dts/index-C39F9KaB.d.ts +0 -77
- package/dist/client/mediaAssets-BkoW_PEn.mjs +0 -16
- package/dist/client/src-BNZzXgWu.mjs +0 -102
- package/dist/server/loadPage-Bk9HDh9K.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-D3Fc5TKk.mjs";
|
|
2
|
+
import { t as SDK_VERSION } from "./version-DoOG6F13.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-CGH-Xs4E.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-Bnbwoe5n.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-CGH-Xs4E.mjs";
|
|
4
4
|
//#region src/config/bindings.ts
|
|
5
5
|
function fieldBinding(path) {
|
|
6
6
|
return {
|