@riverbankcms/sdk 0.175.0 → 0.177.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 -4
- package/dist/_dts/{BlocksIslandsHydrator-hb2IWD8K.d.ts → BlocksIslandsHydrator-sYraeqm9.d.ts} +1 -1
- package/dist/_dts/{Page-BlY68ZF-.d.ts → Page-Bp7hTDTy.d.ts} +8 -16
- package/dist/_dts/{SdkPreviewMode-CA8hU7hW.d.ts → SdkPreviewMode-CxkCCyKw.d.ts} +2 -2
- package/dist/_dts/{client-B6tCvmG4.d.ts → client-K6UhbL3t.d.ts} +1 -1
- package/dist/_dts/{content-types-B9qryk4R.d.ts → content-types-BLAdIMyr.d.ts} +4 -8
- package/dist/_dts/{contracts-DWoaRxj1.d.ts → contracts-BG7yTZ6t.d.ts} +8 -8
- package/dist/_dts/{footerPageOutline-Djdrhp5s.d.ts → footerPageOutline-DwMHeYmQ.d.ts} +85 -8
- package/dist/_dts/{generatePageMetadata-CFi0vxov.d.ts → generatePageMetadata-X_WpGzZZ.d.ts} +2 -2
- package/dist/_dts/{index-CQUzwOxO.d.ts → index--n-wV8Xd.d.ts} +1 -1
- package/dist/_dts/{index-OtazQE3U.d.ts → index-BLseXObg.d.ts} +2 -2
- package/dist/_dts/{index-Bl5_pjmq.d.ts → index-BMGif2r3.d.ts} +1 -1
- package/dist/_dts/{index-DmhFb6R1.d.ts → index-BpAW9AKB.d.ts} +1 -1
- package/dist/_dts/{index-_pXaCO12.d.ts → index-Bygd2RCg.d.ts} +4 -4
- package/dist/_dts/{index-Btp5nIoz.d.ts → index-CBRbZJ6u.d.ts} +2 -15
- package/dist/_dts/{index-YRQulWB4.d.ts → index-CX9bp60k.d.ts} +3 -3
- package/dist/_dts/{loadContent-Hcuvs4pz.d.ts → loadContent-uhUThWaq.d.ts} +7 -7
- package/dist/_dts/{request-BT8i_vH-.d.ts → request-Bf9YImJw.d.ts} +54398 -54148
- package/dist/_dts/{resolveBlockData-B-dJrunl.d.ts → resolveBlockData-D6M5NMZB.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-CVLYWcoI.d.ts → resolvePageContent-DkzWvFbG.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +5 -177
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-OKzbqRBx.d.ts → types-BdZ5pJSk.d.ts} +20 -3
- package/dist/_dts/{types-C0XZnjXz.d.ts → types-C1l2Sm2h.d.ts} +5 -5
- package/dist/_dts/{types-CXL1QJSY.d.ts → types-DgV8P2mz.d.ts} +7 -7
- package/dist/_dts/{validation-Bxi66FtQ.d.ts → validation-BtbZIT5f.d.ts} +7 -6
- package/dist/client/{BlocksIslandsHydrator-2xzlERTG.mjs → BlocksIslandsHydrator-CeYQQQs7.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qsohSEdQ.mjs → BookingMailingListNote-CDDWrY_W.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-DrdtON0q.mjs → BookingPanelArrangement-BShQSial.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CUFxBaTM.mjs → BookingQuestionFields-MbvIo2jS.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-Ch0w0Utn.mjs → CalendarNavigationChevron-C6CSVfEB.mjs} +9 -9
- package/dist/client/{DemoBookingPortalAccess-DGgsjqXK.mjs → DemoBookingPortalAccess-C9Ggcfx3.mjs} +3 -3
- package/dist/client/{EventCalendar.client-Dg4PHFJJ.mjs → EventCalendar.client-BSMuSqg0.mjs} +9 -9
- package/dist/client/{EventCombined.client-tky8JcnQ.mjs → EventCombined.client-BTrmSyUB.mjs} +8 -8
- package/dist/client/{EventItem-BybMSKNL.mjs → EventItem-B0WjGXsH.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-uvWRE5wi.mjs → EventListWeekNavigation-8Ij7vuxY.mjs} +1 -1
- package/dist/client/{EventListing.client-DQx9dohz.mjs → EventListing.client-CWk2NEwd.mjs} +3 -3
- package/dist/client/{EventListing.view-r31k8Icz.mjs → EventListing.view-BEH4UbSL.mjs} +17 -8
- package/dist/client/{EventRegistrationPayment-BMmPDmSf.mjs → EventRegistrationPayment-B2EikR3f.mjs} +9 -9
- package/dist/client/{LocationMapActions-BecH-qhI.mjs → LocationMapActions-myIQIvQL.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-BJzmFdcn.mjs → MapDrawingSvg-BfsVyPvB.mjs} +2 -37
- package/dist/client/{Page-CWN_8cLZ.mjs → Page-C03rc6jw.mjs} +339 -269
- package/dist/client/{SiteTermsAgreementField-Dr5lj4oY.mjs → SiteTermsAgreementField-BYACYP0T.mjs} +2 -2
- package/dist/client/{StepIndicator-C7RJBOW3.mjs → StepIndicator-Bb7rPtSq.mjs} +5 -5
- package/dist/client/{accordion-uUi_N6mZ.mjs → accordion-BfsOiweL.mjs} +1 -1
- package/dist/client/{booking-form.client-CKHgxvsh.mjs → booking-form.client-B8ohIj13.mjs} +13 -13
- package/dist/client/{bookingForm-Bi74dmiS.mjs → bookingForm-CXsck2oH.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-C-gFwhnO.mjs → boxStyleClassNames-B_hcuT06.mjs} +2 -2
- package/dist/client/{carousel-C0_BqMA0.mjs → carousel-Cz5Ddbsx.mjs} +1 -1
- package/dist/client/{cart-BOHuppVu.mjs → cart-CTC2oS3p.mjs} +3 -3
- package/dist/client/{cart.client-IfJE1zAp.mjs → cart.client-c1YkTC-Q.mjs} +1 -1
- package/dist/client/{checkout-C3Aj-aNa.mjs → checkout-BeW1ufaH.mjs} +3 -3
- package/dist/client/{checkout.client-Tg9lfeYf.mjs → checkout.client-BeU32khQ.mjs} +1 -1
- package/dist/client/{checkoutUrls-OLqQdAXD.mjs → checkoutUrls-DVfSUSKp.mjs} +1 -1
- package/dist/client/client.mjs +70 -10
- package/dist/client/{context-D8TpQXjX.mjs → context-R9p5c8IH.mjs} +1 -1
- package/dist/client/{course-DHmeQAvq.mjs → course-CUFVJEAc.mjs} +1 -1
- package/dist/client/{dateFormatting-ABCZWkpT.mjs → dateFormatting-CF6FWCoo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BdcuW_pa.mjs → demoPortalMagicLink-tZxIm3RL.mjs} +1 -1
- package/dist/client/{display-DMqotaGU.mjs → display-4HYOb-AK.mjs} +51 -4
- package/dist/client/{enhanceHeaderSection-Ciuhsk0E.mjs → enhanceHeaderSection-DEYDI54E.mjs} +3 -3
- package/dist/client/{event-details.client-CJapNbTv.mjs → event-details.client-BwjBJP-f.mjs} +1 -1
- package/dist/client/{event-registration.client-CAdcpnLc.mjs → event-registration.client-DWvSODTI.mjs} +11 -11
- package/dist/client/{eventCalendar-BlsD5R8M.mjs → eventCalendar-C9Pn9eeZ.mjs} +4 -4
- package/dist/client/{eventCombined-B9Ly3024.mjs → eventCombined-Bdhk0fp0.mjs} +4 -4
- package/dist/client/{eventDetails-CbEGI4jO.mjs → eventDetails-C2LfNW_o.mjs} +2 -2
- package/dist/client/{eventListing-ZSmvhWII.mjs → eventListing-B-bJOQUk.mjs} +4 -4
- package/dist/client/{eventRegistration-D-yUcIyO.mjs → eventRegistration-CbdmUiDT.mjs} +4 -4
- package/dist/client/{form-DG_YZSNn.mjs → form-BbUUt784.mjs} +3 -3
- package/dist/client/{form.client-BU6dM0-C.mjs → form.client-BVlz-9_t.mjs} +4 -4
- package/dist/client/{form.parts-Db0Iq7nx.mjs → form.parts-TB4UIrML.mjs} +1 -1
- package/dist/client/{formatDate-DFfWHpQB.mjs → formatDate-TDHhFjFN.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -4
- package/dist/client/{gifting-DMrsN4B4.mjs → gifting-CbNSrp7C.mjs} +4 -4
- package/dist/client/{gifting.client-BVa2XYJB.mjs → gifting.client-B__bGhFc.mjs} +4 -4
- package/dist/client/{gifting.parts-C2u4Y-pf.mjs → gifting.parts-CTA1sDW6.mjs} +2 -2
- package/dist/client/{headerSection-D91EzlOR.mjs → headerSection-5Wn9nUW_.mjs} +2 -2
- package/dist/client/{lookSurfaces-BDZLALxj.mjs → lookSurfaces-BwiNdgMU.mjs} +1 -1
- package/dist/client/{newsletter-form.client-BMGRiRpo.mjs → newsletter-form.client-B17WYHxZ.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-D5UfUaD3.mjs → newsletter-form.parts-DN9wD1ZG.mjs} +1 -1
- package/dist/client/{newsletterForm-B_67sNwa.mjs → newsletterForm-DLMlxInp.mjs} +3 -3
- package/dist/client/{noop-DF8_EiFt.mjs → noop-CaQxI-Js.mjs} +2 -9
- package/dist/client/portal/client.mjs +47 -26
- package/dist/client/{product-detail.client-D-XNir0m.mjs → product-detail.client-Di_anRGR.mjs} +1 -1
- package/dist/client/{product-list.client-BLfYQ-qi.mjs → product-list.client-Duhl6rtL.mjs} +1 -1
- package/dist/client/{productDetail-W0_0lDGe.mjs → productDetail-BgKmCwA8.mjs} +3 -3
- package/dist/client/{productList-ayAtPJdb.mjs → productList-C_wMKsYS.mjs} +3 -3
- package/dist/client/{propsDecoder-ChYKWjLA.mjs → propsDecoder-y3LvxaiG.mjs} +4 -4
- package/dist/client/{registry.server-B1EEZkcr.mjs → registry.server-CIWYKz1V.mjs} +83 -27
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +87 -22
- package/dist/client/{richText-coerce-CDAfpMQU.mjs → richText-coerce-DkPBFb_a.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CcGWvyht.mjs → routeIslandApiConfig-BgO0rZce.mjs} +1 -1
- package/dist/client/{shop-DbUUoHFJ.mjs → shop-CFbWlv_W.mjs} +3 -3
- package/dist/client/{shop-commerce-aQqcDmyZ.mjs → shop-commerce-C-I29eaA.mjs} +12 -12
- package/dist/client/{shop-commerce-store-Cd7USpuY.mjs → shop-commerce-store-DGcc7twO.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DGvPBmVP.mjs → shop-discount-apply.state-DOm7vx0X.mjs} +2 -2
- package/dist/client/{shop.client-BNZ9M8cG.mjs → shop.client-GHTWUKD6.mjs} +12 -12
- package/dist/client/{shop.interactive-CJAINJr3.mjs → shop.interactive-CxDJ8P2r.mjs} +3 -3
- package/dist/client/{shopShared-DwVAuGsx.mjs → shopShared-Be9QJJpT.mjs} +2 -2
- package/dist/client/{timetableModel-DBTIFWTb.mjs → timetableModel--R0zVzZO.mjs} +8 -8
- package/dist/client/{useAvailableSlots-BomyyKeo.mjs → useAvailableSlots-BGu_2F50.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CCxHMWlU.mjs → useDiscountCodeUi-I_mXI9Yd.mjs} +1 -1
- package/dist/client/{useEventPagination-Bjin_qaN.mjs → useEventPagination-DxIJ--JZ.mjs} +7 -7
- package/dist/client/{view-BTk470k0.mjs → view-3foOzGWR.mjs} +3 -3
- package/dist/client/{view-Cw4EmEPv.mjs → view-BbzH5MQb.mjs} +61 -34
- package/dist/preview-next/client/{LocationPickerEnvironment-8iKKoYZr.mjs → LocationPickerEnvironment-BHAT81Wx.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-AIUPN1Zx.mjs → MapLibreEditMap-B52hkdIZ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-bq7gbKvn.mjs → PageSectionToolbar-D6-jojqh.mjs} +52 -8
- package/dist/preview-next/client/{PreviewEditorSidebar-DVsPNcos.mjs → PreviewEditorSidebar-BUVFKZ4k.mjs} +57 -61
- package/dist/preview-next/client/{PreviewEditorUI-B-pq3aZc.mjs → PreviewEditorUI-292pOiSt.mjs} +10 -10
- package/dist/preview-next/client/{PreviewShell-ChyjB96e.mjs → PreviewShell-CW0Yzj3h.mjs} +9 -8
- package/dist/preview-next/client/{SdkPreviewModeRuntime-D_czeC0l.mjs → SdkPreviewModeRuntime-Dba7zoZK.mjs} +87 -48
- package/dist/preview-next/client/{lucide-react-Dfgl3Vtq.mjs → lucide-react-McYZeSMb.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-B61mZd81.mjs → previewAssistantSlot-B-utyhbS.mjs} +506 -282
- package/dist/preview-next/client/{previewChromeRoot-dwOn9XtM.mjs → previewChromeRoot-CCoGydUD.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DZDfOxoW.mjs → sdk-runtime-DCpXVcA0.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BZDIC-fA.mjs → siteStyleAccess-sjOvRAHY.mjs} +27 -17
- package/dist/preview-next/client/{useAutosaveStatus-BbzLMf-l.mjs → useAutosaveStatus-R1rZ9-IZ.mjs} +3 -30
- package/dist/preview-next/client/{useOpenBlockForSetup-BEXcWQeI.mjs → useOpenBlockForSetup-BS7CANPv.mjs} +17 -3
- package/dist/preview-next/container-responsive.css +3 -0
- package/dist/preview-next/editor-chrome.css +4 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-0gSlK9S0.mjs → route-contract-BSSbtz6A.mjs} +24 -3
- package/dist/server/{Block.shared-DeXXycg8.mjs → Block.shared-Dc3DX7Cf.mjs} +84 -16
- package/dist/server/{bindings-7L3pC5Os.mjs → bindings-VGgS6UvF.mjs} +3 -3
- package/dist/server/{client-CgghATBm.mjs → client-BPLLL22F.mjs} +69 -10
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-D7M5Vcug.mjs → loadContent-CxASA3PE.mjs} +5 -8
- package/dist/server/{loadPage-CiTId05y.mjs → loadPage-CQgde5DN.mjs} +2 -2
- package/dist/server/mapLocation-BM5WX7FY.mjs +315 -0
- package/dist/server/next/revalidate.mjs +15 -8
- package/dist/server/next.mjs +6 -6
- package/dist/server/{overrideResolution-CJ3MRI5Q.mjs → overrideResolution-CkpwAHvW.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-Cuos4Xcd.mjs → pageRenderPlan-CfSnAkCO.mjs} +10 -41
- package/dist/server/{pageRuntimeSupport-CuVj3bkd.mjs → pageRuntimeSupport-uz4gzBOo.mjs} +4 -13
- package/dist/server/{pageShared-JxlV8_Bo.mjs → pageShared-6z6JBU41.mjs} +121 -67
- package/dist/server/{prebuild-BDhlJbAx.mjs → prebuild-B4_Llisx.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-kERh_c0v.mjs → prefetchBlockData-CCiYV8_s.mjs} +21 -6
- package/dist/server/{registry-cQ9N5W-n.mjs → registry-CXRXsFSx.mjs} +346 -513
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CN4UmmTK.mjs → resolveBlockData-yfe8WLEA.mjs} +1 -1
- package/dist/server/{responseMedia-DpBC1hTM.mjs → responseMedia-F-ElH2Rd.mjs} +1 -0
- package/dist/server/server.mjs +3 -3
- package/dist/server/{validation-3puM5SM8.mjs → validation-BvHio6QI.mjs} +4 -6
- package/dist/server/{version-B8g-Wx57.mjs → version-SuFlio6n.mjs} +1 -1
- package/dist/styles/index.css +8 -1
- package/package.json +1 -1
- package/dist/server/identity-DQD_8lNO.mjs +0 -6
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ const client = createRiverbankClient({
|
|
|
101
101
|
apiKey: string; // Required: Builder API key
|
|
102
102
|
baseUrl: string; // Required: Full API URL (e.g., 'https://dashboard.example.com/api')
|
|
103
103
|
cache?: {
|
|
104
|
-
enabled?: boolean; //
|
|
104
|
+
enabled?: boolean; // Leave unset on ISR sites; see "SDK memory cache and ISR" below
|
|
105
105
|
ttl?: number; // Default: 300 (seconds)
|
|
106
106
|
maxSize?: number; // Default: 100
|
|
107
107
|
};
|
|
@@ -3007,12 +3007,12 @@ Configure site-wide settings:
|
|
|
3007
3007
|
|
|
3008
3008
|
```typescript
|
|
3009
3009
|
settings: {
|
|
3010
|
-
|
|
3011
|
-
siteTitle: 'My Site', // Site title for metadata
|
|
3012
|
-
siteDescription: 'Welcome', // Site description for metadata
|
|
3010
|
+
siteDescription: 'Welcome', // The site's tagline
|
|
3013
3011
|
}
|
|
3014
3012
|
```
|
|
3015
3013
|
|
|
3014
|
+
The site's name isn't set here. It lives in the dashboard, or in `siteTitle` in `content/settings.json`. The homepage is always the page at `/`.
|
|
3015
|
+
|
|
3016
3016
|
### Sync Behavior
|
|
3017
3017
|
|
|
3018
3018
|
When you run `riverbank push`:
|
|
@@ -3263,6 +3263,14 @@ Set `RIVERBANK_WEBHOOK_SECRET` in the deployed SDK site and configure the matchi
|
|
|
3263
3263
|
|
|
3264
3264
|
The SDK client cache clear is process-local and best-effort. It helps single-process deployments, `next dev`, `next start`, and any runtime where the revalidation route and render path share the same module instance. Serverless platforms such as Vercel can compile `/api/revalidate` and page rendering into separate functions and can run many warm containers; in those deployments, the webhook may clear only the webhook function's local client instance while other render instances keep their SDK response cache until TTL expiry. Use Next tag/path revalidation as the authoritative cross-instance invalidation layer, and disable or shorten SDK response caching for force-dynamic deployments that require immediate freshness across serverless instances.
|
|
3265
3265
|
|
|
3266
|
+
Most webhook events expire their tags immediately, so the first view after a delivered webhook re-renders and shows the change. Bookings are the exception: each one fires `events.updated`, so those pages are served stale once while they refresh in the background. Edits to an event itself, such as a cancellation or a new date, expire at once like everything else.
|
|
3267
|
+
|
|
3268
|
+
#### SDK memory cache and ISR
|
|
3269
|
+
|
|
3270
|
+
A memory cache hit returns before `fetch` runs, so Next never sees that read's tags. An ISR page rebuilt from memory holds old content and loses its CMS tags, and the next publish webhook can't reach it. So inside a Next.js server, with `cache.enabled` left unset, the client doesn't serve fresh memory hits. It still keeps responses for the `staleIfError` fallback during a CMS outage, and Next's tagged fetch cache covers the normal reads.
|
|
3271
|
+
|
|
3272
|
+
Leave `cache.enabled` unset on ISR sites, and remove `enabled: true` if you have it. Keep `enabled: true` only on `force-dynamic` deployments, where Next doesn't cache these fetches and the memory cache saves a CMS read per render.
|
|
3273
|
+
|
|
3266
3274
|
Existing SDK sites should update their revalidation route to pass `getClient: getRiverbankClient`, then redeploy after adding or changing the deployed site's `RIVERBANK_WEBHOOK_SECRET`. The dashboard/CMS environment separately needs `SERVICE_SECRET_KEYRING_JSON` configured so Riverbank can create and store endpoint signing secrets; do not put that dashboard keyring in the SDK site.
|
|
3267
3275
|
|
|
3268
3276
|
The CMS includes a `dispatchId` in signed payloads and sends matching `X-Riverbank-Dispatch-Id` / `X-Riverbank-Correlation-Id` headers. Use the optional callback metadata to join CMS delivery logs with consumer deployment logs without logging secrets:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { It as LinkValue, _ as PageOutline, a as ResolveImageUrlContext, g as OccurrenceContextData, h as EntrySubrouteContextData, l as BindingDateContext, o as ResolveImageUrlContextInput, p as ThemeTokens, r as MediaAssetIndexItem, v as PageRuntimeJoin, xt as SystemBlockShortKind, y as RouteMap, yt as SystemBlockContentByKind } from "./index-
|
|
3
|
-
import { t as ThemeRuntime } from "./index-
|
|
4
|
-
import { d as SdkCustomBlock } from "./types-
|
|
5
|
-
import { P as SiteBookingOfferingPresetSummary } from "./contracts-
|
|
6
|
-
import { _ as RiverbankClient } from "./types-
|
|
7
|
-
import { a as ResolveBlockDataDeps, f as ResolvedBlockData } from "./resolveBlockData-
|
|
1
|
+
import { Bn as BrowserReadAuthority, D as DateRuntimeContext, E as LinkResolverContext, Ei as PageSurfaceSubjectWire, Mi as BlockInteractionContext, Mr as RenderableMediaAsset, Qn as RenderablePageOutline$1, Ri as DeepReadonly, Vn as BlockSiteTerms, di as MailingListRuntimeContext, dr as Theme, fi as WeeklyOpeningHours, h as PrefetchedBlockData, m as BlockLoaderSnapshot, p as BlockLoaderFailures, pr as PageTemplate, u as ThemeResponsiveMode, ui as BusinessPersonNoun, xi as UtcIsoDateTimeString } from "./request-Bf9YImJw.js";
|
|
2
|
+
import { It as LinkValue, _ as PageOutline, a as ResolveImageUrlContext, g as OccurrenceContextData, h as EntrySubrouteContextData, l as BindingDateContext, o as ResolveImageUrlContextInput, p as ThemeTokens, r as MediaAssetIndexItem, v as PageRuntimeJoin, xt as SystemBlockShortKind, y as RouteMap, yt as SystemBlockContentByKind } from "./index-BpAW9AKB.js";
|
|
3
|
+
import { t as ThemeRuntime } from "./index--n-wV8Xd.js";
|
|
4
|
+
import { d as SdkCustomBlock } from "./types-C1l2Sm2h.js";
|
|
5
|
+
import { P as SiteBookingOfferingPresetSummary } from "./contracts-BG7yTZ6t.js";
|
|
6
|
+
import { _ as RiverbankClient } from "./types-BdZ5pJSk.js";
|
|
7
|
+
import { a as ResolveBlockDataDeps, f as ResolvedBlockData } from "./resolveBlockData-D6M5NMZB.js";
|
|
8
8
|
import { DataLoaderOverrides, DataLoaderPreviewStage, DataLoaderSearchParams } from "./sdk/src/data/types.js";
|
|
9
9
|
import { RuntimeSdkConfig } from "./sdk/src/rendering/helpers/pageRuntimeSupport.js";
|
|
10
10
|
import * as React$2 from "react";
|
|
@@ -245,11 +245,7 @@ type MissingBlockOverrideErrorConstructor = Readonly<{
|
|
|
245
245
|
}>;
|
|
246
246
|
declare const MissingBlockOverrideError: MissingBlockOverrideErrorConstructor;
|
|
247
247
|
type PageRendererDataContext = {
|
|
248
|
-
/** Source permission is decided before a business map is prepared. */businessLocationPermission?: BusinessLocationPermission;
|
|
249
|
-
businessAddressVisibility?: 'shown' | 'hidden';
|
|
250
|
-
businessLocation?: PublicLocation | null;
|
|
251
248
|
siteCountry?: string | null;
|
|
252
|
-
venuesById?: Record<string, PublicVenueMapLocation>;
|
|
253
249
|
openingHours?: WeeklyOpeningHours | null;
|
|
254
250
|
siteId?: string;
|
|
255
251
|
demoEmailSuppressed?: boolean;
|
|
@@ -408,11 +404,7 @@ type PageCommonProps = {
|
|
|
408
404
|
demoEmailSuppressed?: boolean;
|
|
409
405
|
siteName?: string; /** What the business calls the people clients book with; null where it names nobody. */
|
|
410
406
|
businessPerson?: BusinessPersonNoun | null;
|
|
411
|
-
|
|
412
|
-
businessAddressVisibility?: 'shown' | 'hidden';
|
|
413
|
-
businessLocation?: PublicLocation | null;
|
|
414
|
-
siteCountry?: string | null;
|
|
415
|
-
venuesById?: Record<string, PublicVenueMapLocation>; /** Mailing-list runtime projected for the placements on this page. */
|
|
407
|
+
siteCountry?: string | null; /** Mailing-list runtime projected for the placements on this page. */
|
|
416
408
|
openingHours?: PageRendererDataContext['openingHours'];
|
|
417
409
|
siteTerms?: PageRendererDataContext['siteTerms'];
|
|
418
410
|
mailingList?: MailingListRuntimeContext;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as ThemeRuntime } from "./index-
|
|
1
|
+
import { At as BlockApiProvider, Dt as BookingOfferingPresetSummary, Ei as PageSurfaceSubjectWire, Gt as ThemeJournalState, Ht as SdkEditorRevision, Kt as ThemeSelectionPreviewProps, Li as ContentTypeSchema, Wt as SdkSiteLayoutConfig, Xn as EditorRenderablePageOutline, bi as BookingTimeZone, c as PreviewPageAdaptationFacts, d as SdkConfigForBlockPicker, dr as Theme, f as EntrySubrouteContextData, k as MediaAssetIndexItem, l as PreviewRenderingOverride, mi as EditorBlockVersions, ni as SiteFooterContent, oi as SurfaceId, pi as EditLeaseScope, sr as HeaderLogoContext, t as ApiClient, u as ThemeResponsiveMode } from "./request-Bf9YImJw.js";
|
|
2
|
+
import { t as ThemeRuntime } from "./index--n-wV8Xd.js";
|
|
3
3
|
import { t as PreviewRuntimeSession } from "./auth-contract-CgJ5nMaH.js";
|
|
4
4
|
import { z as z$1 } from "zod";
|
|
5
5
|
import React$1, { CSSProperties, ComponentProps, ComponentType, ReactElement, ReactNode } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $ as PaymentStepState, $r as PriceReductionSummary, $t as BookingFormData$1, A as BookingFormInteractiveIslandProps, B as PortalCreditState, Bi as BlockButtonRole, Bn as BrowserReadAuthority, Cn as BookingSlotView, Cr as PaymentMethod, Ct as RegistrationPresentation, Di as NonNegativeCents, Er as PublicEvent, Et as TicketSelectionPurpose, Fn as ProtectedSubmission, Ft as DiscountContext, G as EligibilityData, H as EligibilityLookupState, Hn as EventRegistrationPageSurfaceSubject, I as BookingPaymentSelectionViewModel, J as EventTicketSelectionLine, K as EventPaymentState, L as BookingQuestionsModel, M as EventRegistrationDirectPaymentOption, Mn as BookingFieldValue, Mt as BoundBlockApiClient, N as EventRegistrationDirectPaymentSelectionState, Nn as BookingQuestionsPaymentSnapshot, Nt as AutoAppliedDiscountPreview, Oi as PositiveCents, On as LoadState, Ot as EventSourceRecovery, P as EventRegistrationSiteCreditPreview, Pn as getBookingServiceSlidingScale, Pt as DiscountApplyLine, Q as PaymentStatusRecoveryState, Qr as EventRegistrationErrorAction, Qt as BookingFormConfig$1, R as RegistrationFlowState, Si as AppointmentBookingReview, Sn as BookingSlotSelection, Sr as EventRegistrationPaymentSubject, St as SelectionRequirementsLayout, Tn as BookingSubmitOptions, Tt as RegistrationTicketContinuation, U as ExistingRegistrationLookupState, Un as EventEmbeddedCheckout, V as PortalProfile, Vn as BlockSiteTerms, W as SelectableEventTicketType, X as GuestErrors, Xr as BookingQuestionsSubmissionFailure, Y as Guest, Z as PaymentSelection, Zr as CombinationPricePlan, _i as BookingConsent, _n as BookingFlowStatus, _t as SeveralItemsKind, an as BookingPaymentAvailability, at as ThemedButtonProps, bn as BookingFlowView, br as DirectCheckoutCollectionOptionKind, bt as StateUpdate, di as MailingListRuntimeContext, dn as BookingAppointmentPackagesModel, dt as BookingSelection, ei as CurrencyCode, en as BookingFormService, et as RegistrationAttendanceMode, ft as RegistrationSelection, gn as BookingFlowFeedback, gr as SelectionAttendance, gt as SelectionPaymentSummary, hn as BookingFlowActionResult, ht as SelectionPayment, it as RegistrationSubject, jt as BlockApiClient, kt as BookingPageKind, mn as BookingFieldView, mt as RunPricingChoices, nn as BookingFormServiceCategory, nt as RegistrationResult, on as BookingPaymentChoice, ot as FormData, pt as RegistrationSelectionMode, q as EventRegistrationClientProps, rn as BookingFormField$1, rt as RegistrationStep, sn as BookingPurchasablePackagesModel, st as OccurrenceContext, ti as EventRegistrationPricingOption, tn as BookingSelectedCollectionOptionKind, tt as RegistrationEvent, vi as DisplayContext, vn as BookingFlowStep, vt as CombinationWorking, wn as BookingSubmitActionResult, wt as RegistrationAdmission, xi as UtcIsoDateTimeString, xn as BookingResourceView, xr as EventCheckoutReturnRequest, xt as WaitlistInvitation, yi as ZoneLabel, yn as BookingFlowStepId, yr as CustomerEventRegistration, yt as CopyPart, z as PortalAuthState, zn as BlockApiConfig } from "./request-Bf9YImJw.js";
|
|
2
2
|
import { z as z$1 } from "zod";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import React, { ReactNode } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as BindingTransformName } from "./index-
|
|
1
|
+
import { Bt as NavigationAuthoringLinkInput, Vt as NavigationConfigItemInput } from "./request-Bf9YImJw.js";
|
|
2
|
+
import { u as BindingTransformName } from "./index-BpAW9AKB.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/types/block-kinds.d.ts
|
|
5
5
|
/**
|
|
@@ -396,7 +396,7 @@ interface TemplateConfig {
|
|
|
396
396
|
* ```
|
|
397
397
|
*/
|
|
398
398
|
interface ContentTypeConfig {
|
|
399
|
-
/** Unique key for this content type (e.g., 'post', '
|
|
399
|
+
/** Unique key for this content type (e.g., 'post', 'case-study'). Must be lowercase with hyphens. `event`, `course` and `service` are reserved for bookings. */
|
|
400
400
|
key: string;
|
|
401
401
|
/** Display name shown in dashboard UI */
|
|
402
402
|
name: string;
|
|
@@ -563,11 +563,7 @@ interface NavigationMenuConfig {
|
|
|
563
563
|
* Site settings for SDK config.
|
|
564
564
|
*/
|
|
565
565
|
interface SiteSettingsConfig {
|
|
566
|
-
/**
|
|
567
|
-
homepagePath?: string;
|
|
568
|
-
/** Site title (for SEO/metadata) */
|
|
569
|
-
siteTitle?: string;
|
|
570
|
-
/** Site description (for SEO/metadata) */
|
|
566
|
+
/** The site's tagline: a short public description used when a page has no description of its own. */
|
|
571
567
|
siteDescription?: string;
|
|
572
568
|
/** Default template ID per content type key */
|
|
573
569
|
defaultTemplates?: Record<string, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ht as SiteHeaderContent, mt as SiteFooterContent, r as MediaAssetIndexItem } from "./index-
|
|
3
|
-
import { d as SdkCustomBlock, f as SdkThemeConfig, u as RiverbankSiteConfig } from "./types-
|
|
1
|
+
import { Er as PublicEvent, It as SdkBlockContentAdmission, Jt as PublicBookingServicesResponse$1, Lr as Media, Lt as ResolveEventSubrouteQuery, Mi as BlockInteractionContext, Rt as ResolveEventSubrouteResponse$1, Ut as SdkRuntimeEntry$1, Xt as SiteRuntimeSiteTerms, Yt as PublicServiceCategorySummary$1, Zt as RoutableContentItem$1, a as SiteBookingOfferingPresetSummary$1, ai as PageRuntimeJoin, bi as BookingTimeZone, ci as BookingEmbedSettings, di as MailingListRuntimeContext, fi as WeeklyOpeningHours, gi as BusinessAddress, i as SdkRuntimePageSurfaceSubject$1, li as MapDrawing, lr as FooterMode, n as ApiErrorCode$1, o as SiteRuntimeIdentity, or as ResolvedInternalLinkEntityType, qt as PublicBookingServiceCatalogueItem$1, r as SdkRuntimePageSurface$1, s as SiteRuntimeSelectionPayload, si as PageSectionsContext, ui as BusinessPersonNoun, ur as LogoFacts, wr as PublicMapLocationParams, zt as PublicPassesResponse$1 } from "./request-Bf9YImJw.js";
|
|
2
|
+
import { ht as SiteHeaderContent, mt as SiteFooterContent, r as MediaAssetIndexItem } from "./index-BpAW9AKB.js";
|
|
3
|
+
import { d as SdkCustomBlock, f as SdkThemeConfig, u as RiverbankSiteConfig } from "./types-C1l2Sm2h.js";
|
|
4
4
|
|
|
5
5
|
//#region .cache/declarations/sdk/src/public-api/teamMemberContracts.d.ts
|
|
6
6
|
type PublicTeamMemberSummary = {
|
|
@@ -337,9 +337,6 @@ type SiteResponse = SiteRuntimeSelectionPayload & {
|
|
|
337
337
|
deployment_mode?: 'managed' | 'headless_cms' | 'headless_full' | null;
|
|
338
338
|
is_sdk_site?: boolean | null;
|
|
339
339
|
businessAddress?: BusinessAddress | null;
|
|
340
|
-
businessLocationPermission?: BusinessLocationPermission;
|
|
341
|
-
businessLocation?: PublicLocation | null;
|
|
342
|
-
venuesById?: Record<string, PublicVenueMapLocation>;
|
|
343
340
|
};
|
|
344
341
|
favicon?: {
|
|
345
342
|
assetId: string;
|
|
@@ -450,7 +447,6 @@ type SdkRuntimePageSurfaceSubject = SdkRuntimePageSurfaceSubject$1;
|
|
|
450
447
|
type SdkRuntimePageSurface = SdkRuntimePageSurface$1;
|
|
451
448
|
type PageResponse = {
|
|
452
449
|
page: SdkRuntimePage;
|
|
453
|
-
locationMapSupport?: SdkLocationMapSupport;
|
|
454
450
|
templates?: SdkTemplate[];
|
|
455
451
|
mediaAssets?: SdkRuntimeMediaAsset[];
|
|
456
452
|
type?: 'page';
|
|
@@ -746,6 +742,10 @@ type PublicAPIEndpoints = {
|
|
|
746
742
|
}, PublicEventsResponse>;
|
|
747
743
|
batchBlockLoaders: APIEndpointBase<{
|
|
748
744
|
requests: Array<{
|
|
745
|
+
id: string;
|
|
746
|
+
endpoint: 'getPublicMapLocation';
|
|
747
|
+
params: PublicMapLocationParams;
|
|
748
|
+
} | {
|
|
749
749
|
id: string;
|
|
750
750
|
endpoint: 'getPublicEventDetails';
|
|
751
751
|
params?: {
|
|
@@ -822,4 +822,4 @@ type PublicAPIEndpoints = {
|
|
|
822
822
|
}, SitemapRoutesResponse>;
|
|
823
823
|
};
|
|
824
824
|
//#endregion
|
|
825
|
-
export { RoutableContentResponse as A, PublicPassesResponse as C, PublicTeamMembersResponse as D, PublicServiceCategorySummary as E, SiteFooterBlock as F, SiteResponse as I,
|
|
825
|
+
export { RoutableContentResponse as A, ResolveEventRunResponse as B, PublicPassesResponse as C, PublicTeamMembersResponse as D, PublicServiceCategorySummary as E, SiteFooterBlock as F, SiteResponse as I, SiteRouteRecord as L, RouteOutcomeResponse as M, SdkRuntimePageSurfaceSubject as N, PublicWeeklySlotAvailabilityResponse as O, SiteBookingOfferingPresetSummary as P, SitemapRoutesResponse as R, PublicMembershipsResponse as S, PublicProductsResponse as T, PublicEndpointName as _, ContentTypeRoutingInfo as a, PublicFormResponse as b, FieldError as c, NavigationItemRecord as d, NavigationMenuWithItems as f, PublicBookingServicesResponse as g, PublicBookingServiceCatalogueItem as h, CheckRedirectResponse as i, RouteDecisionResponse as j, RedirectHttpStatus as k, HTTPMethod as l, PublicAPIEndpoints as m, ApiErrorCode as n, EntriesResponse as o, PageResponse as p, ApiResult as r, EntryResponse as s, ApiError as t, LinkPayload as u, PublicEventDetailsResponse as v, PublicProductCategorySelector as w, PublicFormsResponse as x, PublicEventsResponse as y, ResolveEventOccurrenceResponse as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { z as BlockKind } from "./content-types-
|
|
3
|
-
import { r as MediaAssetIndexItem, y as RouteMap } from "./index-
|
|
4
|
-
import { F as SiteFooterBlock, I as SiteResponse } from "./contracts-
|
|
5
|
-
import { _ as RiverbankClient } from "./types-
|
|
6
|
-
import { E as BlockOverrideComponent, o as SdkOverrideOnlyRendering, u as SdkThemeRuntime, y as RenderablePageOutline } from "./Page-
|
|
1
|
+
import { Bn as BrowserReadAuthority, D as DateRuntimeContext, O as resolveDateRuntimeContext, Xt as SiteRuntimeSiteTerms, bi as BookingTimeZone, di as MailingListRuntimeContext, dr as Theme, g as ResolvedBlockData, h as PrefetchedBlockData, m as BlockLoaderSnapshot, mr as ReadinessStage, p as BlockLoaderFailures, xi as UtcIsoDateTimeString } from "./request-Bf9YImJw.js";
|
|
2
|
+
import { z as BlockKind } from "./content-types-BLAdIMyr.js";
|
|
3
|
+
import { r as MediaAssetIndexItem, y as RouteMap } from "./index-BpAW9AKB.js";
|
|
4
|
+
import { F as SiteFooterBlock, I as SiteResponse, L as SiteRouteRecord } from "./contracts-BG7yTZ6t.js";
|
|
5
|
+
import { _ as RiverbankClient } from "./types-BdZ5pJSk.js";
|
|
6
|
+
import { E as BlockOverrideComponent, o as SdkOverrideOnlyRendering, u as SdkThemeRuntime, y as RenderablePageOutline } from "./Page-Bp7hTDTy.js";
|
|
7
7
|
import { buildFooterMenu, buildFooterMenuForRole, buildLogo, buildLogoVariants, buildMenu } from "./sdk/src/navigation/index.js";
|
|
8
8
|
//#region .cache/declarations/sdk/src/rendering/components/Layout.d.ts
|
|
9
9
|
type CustomHeaderData = {
|
|
@@ -13,6 +13,12 @@ type CustomHeaderData = {
|
|
|
13
13
|
site: SiteResponse['site'];
|
|
14
14
|
routes: SiteResponse['routes'];
|
|
15
15
|
};
|
|
16
|
+
/** What a `PageRenderer` needs to show the site's footer blocks, with their loaders already run. */
|
|
17
|
+
type PreparedFooterBlocks = Readonly<{
|
|
18
|
+
page: RenderablePageOutline;
|
|
19
|
+
routeMap: SiteResponse['routes'];
|
|
20
|
+
dataContext: ReturnType<typeof buildLayoutRootContext> & ReturnType<typeof footerLoaderContext>;
|
|
21
|
+
}>;
|
|
16
22
|
type CustomFooterData = {
|
|
17
23
|
menu: ReturnType<typeof buildMenu>;
|
|
18
24
|
footerMenu: ReturnType<typeof buildFooterMenu>;
|
|
@@ -20,7 +26,8 @@ type CustomFooterData = {
|
|
|
20
26
|
logo: ReturnType<typeof buildLogo>; /** Both logos, so a custom footer can pick by its own surface. */
|
|
21
27
|
logoVariants: ReturnType<typeof buildLogoVariants>;
|
|
22
28
|
site: SiteResponse['site'];
|
|
23
|
-
routes: SiteResponse['routes'];
|
|
29
|
+
routes: SiteResponse['routes']; /** The site's footer blocks ready to spread onto a `PageRenderer`; null when it has none. */
|
|
30
|
+
footerBlocks: PreparedFooterBlocks | null;
|
|
24
31
|
};
|
|
25
32
|
type HeaderData = CustomHeaderData & {
|
|
26
33
|
theme: Theme;
|
|
@@ -35,6 +42,11 @@ type LayoutCommonProps = {
|
|
|
35
42
|
siteId?: string;
|
|
36
43
|
slug?: string;
|
|
37
44
|
domain?: string;
|
|
45
|
+
/**
|
|
46
|
+
* What the footer blocks' loaders returned, from `prefetchFooterBlockData`.
|
|
47
|
+
* With `siteData` and no `client`, Layout has no way to load them itself.
|
|
48
|
+
*/
|
|
49
|
+
footerBlockData?: PrefetchedBlockData;
|
|
38
50
|
children: React.ReactNode;
|
|
39
51
|
/**
|
|
40
52
|
* Whether the current request has an active portal session.
|
|
@@ -65,6 +77,10 @@ declare class UnsupportedOverrideOnlyLayoutChromeError extends Error {
|
|
|
65
77
|
readonly code = "unsupported_override_only_layout_chrome";
|
|
66
78
|
constructor(surface: 'header' | 'footer');
|
|
67
79
|
}
|
|
80
|
+
declare function resolveLayoutSiteData(props: LayoutProps): Promise<SiteResponse & {
|
|
81
|
+
now: UtcIsoDateTimeString;
|
|
82
|
+
dateContext: ReturnType<typeof resolveDateRuntimeContext>;
|
|
83
|
+
}>;
|
|
68
84
|
/**
|
|
69
85
|
* Layout component that wraps content with site header and footer.
|
|
70
86
|
*
|
|
@@ -101,6 +117,56 @@ declare class UnsupportedOverrideOnlyLayoutChromeError extends Error {
|
|
|
101
117
|
* ```
|
|
102
118
|
*/
|
|
103
119
|
declare function Layout(props: LayoutProps): Promise<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>;
|
|
120
|
+
declare function footerLoaderContext(data: PrefetchedBlockData | undefined): {
|
|
121
|
+
resolvedData: ResolvedBlockData;
|
|
122
|
+
loaderFailures: BlockLoaderFailures;
|
|
123
|
+
loaderSnapshot: Readonly<{
|
|
124
|
+
stage: ReadinessStage;
|
|
125
|
+
blocks: Readonly<Record<string, Readonly<{
|
|
126
|
+
kind: string;
|
|
127
|
+
content: Readonly<Record<string, unknown>>;
|
|
128
|
+
requests: Readonly<Record<string, Readonly<{
|
|
129
|
+
endpoint: string;
|
|
130
|
+
params: Readonly<Record<string, string>>;
|
|
131
|
+
}>>>;
|
|
132
|
+
}>>>;
|
|
133
|
+
}>;
|
|
134
|
+
prefetchedBlockData: Readonly<{
|
|
135
|
+
resolvedData: ResolvedBlockData;
|
|
136
|
+
loaderFailures: BlockLoaderFailures;
|
|
137
|
+
loaderSnapshot: BlockLoaderSnapshot;
|
|
138
|
+
}>;
|
|
139
|
+
} | {
|
|
140
|
+
resolvedData?: undefined;
|
|
141
|
+
loaderFailures?: undefined;
|
|
142
|
+
loaderSnapshot?: undefined;
|
|
143
|
+
prefetchedBlockData?: undefined;
|
|
144
|
+
};
|
|
145
|
+
/** Shared public facts for SDK chrome; no customer acceptance is present. */
|
|
146
|
+
declare function buildLayoutRootContext(siteData: Awaited<ReturnType<typeof resolveLayoutSiteData>>, input: Readonly<{
|
|
147
|
+
apiBaseUrl: string | undefined;
|
|
148
|
+
previewStage: 'published' | 'preview';
|
|
149
|
+
theme?: Theme;
|
|
150
|
+
}>): {
|
|
151
|
+
now: UtcIsoDateTimeString;
|
|
152
|
+
dateContext: DateRuntimeContext;
|
|
153
|
+
bookingTimeZone: BookingTimeZone;
|
|
154
|
+
siteId: string;
|
|
155
|
+
apiBaseUrl: string | undefined;
|
|
156
|
+
previewStage: "preview" | "published";
|
|
157
|
+
routes: Record<string, SiteRouteRecord>;
|
|
158
|
+
pagesByIdentifier: Record<string, string> | undefined;
|
|
159
|
+
entriesByIdentifier: Record<string, Record<string, string>> | undefined;
|
|
160
|
+
siteTerms: SiteRuntimeSiteTerms | undefined;
|
|
161
|
+
mailingList: MailingListRuntimeContext | undefined;
|
|
162
|
+
interactionContext: {
|
|
163
|
+
kind: "live";
|
|
164
|
+
} | {
|
|
165
|
+
kind: "demo";
|
|
166
|
+
} | undefined;
|
|
167
|
+
siteCountry: string | null;
|
|
168
|
+
theme: Theme | undefined;
|
|
169
|
+
};
|
|
104
170
|
//#endregion
|
|
105
171
|
//#region .cache/declarations/sdk/src/rendering/components/Block.shared.d.ts
|
|
106
172
|
type BlockCommonProps = {
|
|
@@ -175,5 +241,16 @@ type BlockProps = ThemedBlockProps | OverrideOnlyBlockProps;
|
|
|
175
241
|
* unaudited content shape.
|
|
176
242
|
*/
|
|
177
243
|
declare function buildFooterRenderablePageOutline(siteData: SiteResponse, blocks: readonly SiteFooterBlock[]): RenderablePageOutline;
|
|
244
|
+
type FooterBlockDataOptions = Readonly<{
|
|
245
|
+
previewStage?: 'published' | 'preview';
|
|
246
|
+
}>;
|
|
247
|
+
/**
|
|
248
|
+
* Run the loaders of a site's footer blocks, for a footer `PageRenderer`.
|
|
249
|
+
*
|
|
250
|
+
* A custom footer callback calls this itself and passes the result in its data
|
|
251
|
+
* context, or hands it to `Layout` as `footerBlockData`. Without it, a map in the
|
|
252
|
+
* footer that needs a venue or the business address is left out for visitors.
|
|
253
|
+
*/
|
|
254
|
+
declare function prefetchFooterBlockData(client: RiverbankClient, siteData: SiteResponse, options?: FooterBlockDataOptions): Promise<PrefetchedBlockData>;
|
|
178
255
|
//#endregion
|
|
179
|
-
export {
|
|
256
|
+
export { CustomHeaderData as a, Layout as c, UnsupportedOverrideOnlyLayoutChromeError as d, CustomFooterData as i, LayoutProps as l, prefetchFooterBlockData as n, FooterData as o, BlockProps as r, HeaderData as s, buildFooterRenderablePageOutline as t, PreparedFooterBlocks as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as SiteResponse } from "./contracts-
|
|
2
|
-
import { K as LoadPageResult } from "./Page-
|
|
1
|
+
import { I as SiteResponse } from "./contracts-BG7yTZ6t.js";
|
|
2
|
+
import { K as LoadPageResult } from "./Page-Bp7hTDTy.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/metadata/generatePageMetadata.d.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as SiteResponse, d as NavigationItemRecord, o as EntriesResponse, p as PageResponse } from "./contracts-
|
|
2
|
-
import { _ as RiverbankClient } from "./types-
|
|
1
|
+
import { I as SiteResponse, d as NavigationItemRecord, o as EntriesResponse, p as PageResponse } from "./contracts-BG7yTZ6t.js";
|
|
2
|
+
import { _ as RiverbankClient } from "./types-BdZ5pJSk.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/prebuild/types.d.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PreviewShellProps, i as PreviewShellLayoutProps, n as SdkPreviewModeProps } from "./SdkPreviewMode-
|
|
1
|
+
import { a as PreviewShellProps, i as PreviewShellLayoutProps, n as SdkPreviewModeProps } from "./SdkPreviewMode-CxkCCyKw.js";
|
|
2
2
|
import React, { ComponentProps, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/preview-next/client/index.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ai as VenueId, C as FormBlockContent$1, Ci as EventOccurrenceContextData, Gn as ColumnOption$1, Jn as FilterAutoShow$1, Kn as DisplayMode$1, Lr as Media, Ni as BindingTransformName$1, Pi as RichTextDoc, S as ContactNewsletterContent$1, T as BodyTextContent$1, Wn as CalendarTabViews$1, Yn as WeekStart$1, _ as ClassPricesContent, ai as PageRuntimeJoin$1, ar as PageLinkValue$1, b as EventCalendarContent$1, cr as ContentFrameIntent$1, ct as CardStylesContent$1, er as CustomLinkValue$1, ir as LinkValue$1, ji as Brand, ki as EventCategoryId, lt as ContainerStylesContent$1, ni as SiteFooterContent$1, nr as ExternalLinkValue$1, qn as EventLayout$1, rr as InternalLinkValue$1, tr as EntryLinkValue$1, ut as SectionStylesContent$1, v as NewsletterSignupContent$1, w as LocationMapContent$1, wi as EventPageSubrouteContext, x as EventDetailsContent$1, y as ImageGalleryContent$1 } from "./request-Bf9YImJw.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/contracts/content.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as ReferenceFieldDefinition, C as GroupFieldDefinition, D as ModalFieldDefinition, E as MediaFieldDefinition, F as TabGroupFieldDefinition, I as TextFieldDefinition, L as TimeFieldDefinition, M as RichTextFieldDefinition, N as SelectFieldDefinition, O as NumberFieldDefinition, P as SlugFieldDefinition, R as UrlFieldDefinition, S as FileFieldDefinition, T as LinkFieldDefinition, _ as ContentTypeSelectFieldDefinition, a as EntryConfig, b as EntryPickerFieldDefinition, f as TemplateBindingMetaPath, g as BooleanFieldDefinition, i as ContentTypeConfig, j as RepeaterFieldDefinition, k as PresetOrCustomFieldDefinition, r as ContentConfig, t as BindingSource, v as DateFieldDefinition, w as InlineTextFieldDefinition, x as FieldDefinition, y as DateTimeFieldDefinition } from "./content-types-
|
|
3
|
-
import { It as LinkValue, Pt as InlineText, c as NodeDefinition, u as BindingTransformName } from "./index-
|
|
4
|
-
import { u as RiverbankSiteConfig } from "./types-
|
|
1
|
+
import { Ii as TipTapNode, Lr as Media, Pi as RichTextDoc } from "./request-Bf9YImJw.js";
|
|
2
|
+
import { A as ReferenceFieldDefinition, C as GroupFieldDefinition, D as ModalFieldDefinition, E as MediaFieldDefinition, F as TabGroupFieldDefinition, I as TextFieldDefinition, L as TimeFieldDefinition, M as RichTextFieldDefinition, N as SelectFieldDefinition, O as NumberFieldDefinition, P as SlugFieldDefinition, R as UrlFieldDefinition, S as FileFieldDefinition, T as LinkFieldDefinition, _ as ContentTypeSelectFieldDefinition, a as EntryConfig, b as EntryPickerFieldDefinition, f as TemplateBindingMetaPath, g as BooleanFieldDefinition, i as ContentTypeConfig, j as RepeaterFieldDefinition, k as PresetOrCustomFieldDefinition, r as ContentConfig, t as BindingSource, v as DateFieldDefinition, w as InlineTextFieldDefinition, x as FieldDefinition, y as DateTimeFieldDefinition } from "./content-types-BLAdIMyr.js";
|
|
3
|
+
import { It as LinkValue, Pt as InlineText, c as NodeDefinition, u as BindingTransformName } from "./index-BpAW9AKB.js";
|
|
4
|
+
import { u as RiverbankSiteConfig } from "./types-C1l2Sm2h.js";
|
|
5
5
|
import { z as z$1 } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region .cache/declarations/sdk/src/config/bindings.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as FieldError, n as ApiErrorCode, t as ApiError } from "./contracts-
|
|
2
|
-
import { _ as RiverbankClient, m as ResilienceStatus, v as RiverbankClientConfig } from "./types-
|
|
1
|
+
import { c as FieldError, n as ApiErrorCode, t as ApiError } from "./contracts-BG7yTZ6t.js";
|
|
2
|
+
import { _ as RiverbankClient, m as ResilienceStatus, v as RiverbankClientConfig } from "./types-BdZ5pJSk.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/client/error.d.ts
|
|
5
5
|
/**
|
|
@@ -147,19 +147,6 @@ declare class RiverbankApiError extends Error {
|
|
|
147
147
|
declare function getResilienceStatusFromError(error: unknown): ResilienceStatus | undefined;
|
|
148
148
|
//#endregion
|
|
149
149
|
//#region .cache/declarations/sdk/src/client/index.d.ts
|
|
150
|
-
/**
|
|
151
|
-
* Create a Riverbank CMS client for fetching content
|
|
152
|
-
*
|
|
153
|
-
* @example
|
|
154
|
-
* ```ts
|
|
155
|
-
* const client = createRiverbankClient({
|
|
156
|
-
* apiKey: 'bld_live_sk_...',
|
|
157
|
-
* baseUrl: 'https://dashboard.example.com/api',
|
|
158
|
-
* });
|
|
159
|
-
*
|
|
160
|
-
* const site = await client.getSite({ slug: 'my-site' });
|
|
161
|
-
* ```
|
|
162
|
-
*/
|
|
163
150
|
declare function createRiverbankClient(config: RiverbankClientConfig): RiverbankClient;
|
|
164
151
|
//#endregion
|
|
165
152
|
export { RiverbankApiError as n, getResilienceStatusFromError as r, createRiverbankClient as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as SiteResponse, _ as PublicEndpointName, l as HTTPMethod, m as PublicAPIEndpoints, o as EntriesResponse, p as PageResponse, r as ApiResult } from "./contracts-
|
|
2
|
-
import { a as GetEntriesBaseParams, i as EntriesResponseWithMeta } from "./types-
|
|
3
|
-
import { i as NavigationCacheFile, r as FormsCacheFile, s as PrebuildManifest } from "./index-
|
|
1
|
+
import { I as SiteResponse, _ as PublicEndpointName, l as HTTPMethod, m as PublicAPIEndpoints, o as EntriesResponse, p as PageResponse, r as ApiResult } from "./contracts-BG7yTZ6t.js";
|
|
2
|
+
import { a as GetEntriesBaseParams, i as EntriesResponseWithMeta } from "./types-BdZ5pJSk.js";
|
|
3
|
+
import { i as NavigationCacheFile, r as FormsCacheFile, s as PrebuildManifest } from "./index-BLseXObg.js";
|
|
4
4
|
|
|
5
5
|
//#region .cache/declarations/sdk/src/prebuild/loader.d.ts
|
|
6
6
|
interface PrebuildLoaderConfig {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as MediaAssetIndexItem, y as RouteMap } from "./index-
|
|
3
|
-
import { d as SdkCustomBlock } from "./types-
|
|
4
|
-
import { I as SiteResponse, N as SdkRuntimePageSurfaceSubject } from "./contracts-
|
|
5
|
-
import { _ as RiverbankClient } from "./types-
|
|
6
|
-
import { f as ResolvedBlockData } from "./resolveBlockData-
|
|
1
|
+
import { dr as Theme, h as PrefetchedBlockData, m as BlockLoaderSnapshot, p as BlockLoaderFailures } from "./request-Bf9YImJw.js";
|
|
2
|
+
import { r as MediaAssetIndexItem, y as RouteMap } from "./index-BpAW9AKB.js";
|
|
3
|
+
import { d as SdkCustomBlock } from "./types-C1l2Sm2h.js";
|
|
4
|
+
import { I as SiteResponse, N as SdkRuntimePageSurfaceSubject } from "./contracts-BG7yTZ6t.js";
|
|
5
|
+
import { _ as RiverbankClient } from "./types-BdZ5pJSk.js";
|
|
6
|
+
import { f as ResolvedBlockData } from "./resolveBlockData-D6M5NMZB.js";
|
|
7
7
|
import { DataLoaderOverrides, DataLoaderPreviewStage, DataLoaderSearchParams } from "./sdk/src/data/types.js";
|
|
8
8
|
import { RuntimeSdkConfig, SiteBlockRenderContext, SiteRenderSupport } from "./sdk/src/rendering/helpers/pageRuntimeSupport.js";
|
|
9
|
-
import { i as PageProps } from "./Page-
|
|
9
|
+
import { i as PageProps } from "./Page-Bp7hTDTy.js";
|
|
10
10
|
|
|
11
11
|
//#region .cache/declarations/sdk/src/rendering/helpers/loadContent.d.ts
|
|
12
12
|
/**
|