@riverbankcms/sdk 0.178.0 → 0.179.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 +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-CrKsXtpD.d.ts → BlocksIslandsHydrator-DKwgs95u.d.ts} +1 -1
- package/dist/_dts/{Page-C9i27wZA.d.ts → Page-lWenra5i.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-BRxhRw4I.d.ts} +2 -2
- package/dist/_dts/{client-BnYN6XsH.d.ts → client-qWn7xAwJ.d.ts} +47 -17
- package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-DL6GIvTm.d.ts} +2 -2
- package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-CzWyAiJj.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CBKd0cJ4.d.ts} +2 -2
- package/dist/_dts/{index-DCa-8TEY.d.ts → index-7CDBZGb-.d.ts} +1 -1
- package/dist/_dts/{index-CKDRr54L.d.ts → index-BU9uAkHB.d.ts} +4 -4
- package/dist/_dts/{index-D9-N1d9v.d.ts → index-BYnG_vF5.d.ts} +1 -1
- package/dist/_dts/{index-nnEdgc3Z.d.ts → index-CZgJrhzT.d.ts} +4 -2
- package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CaCum9mM.d.ts} +2 -2
- package/dist/_dts/{index-0HFgCnGz.d.ts → index-DCiSHd-C.d.ts} +1 -1
- package/dist/_dts/{index-BE9dWIsr.d.ts → index-DVSipdrT.d.ts} +3 -3
- package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-CPKbFQyq.d.ts} +15 -13
- package/dist/_dts/{request-B20VRWHH.d.ts → request-BjKBCS7t.d.ts} +1201 -335
- package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-DupbMCup.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-BqNyCHi8.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- 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 +7 -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 +16 -8
- 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 +4 -4
- 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 +19 -6
- 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/serviceBookingOutline-YcsIjvn1.d.ts +582 -0
- package/dist/_dts/{types-rm2M4LGx.d.ts → types-B7e6Lmo5.d.ts} +3 -3
- package/dist/_dts/{types-CYcd15BQ.d.ts → types-BOxSq-Bq.d.ts} +8 -7
- package/dist/_dts/{types-CMZ5mkpv.d.ts → types-CT-KOxl_.d.ts} +5 -39
- package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-Dz6qccue.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-1XifJg6V.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-BsbEgagJ.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-C8IbeLHj.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-Bbqij1XQ.mjs} +42 -9
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-uA9H8LIL.mjs} +4 -4
- package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-yoSI77ov.mjs} +10 -10
- package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-HeCNlliq.mjs} +10 -10
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-Duhk1vnF.mjs} +247 -7
- package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BiutEqPK.mjs} +1 -1
- package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-B5ln77jG.mjs} +3 -3
- package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-hUDhNtMv.mjs} +203 -9
- package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DqtX1vB2.mjs} +189 -111
- package/dist/client/{Page-DqETUt-U.mjs → Page-ChJ2TGVk.mjs} +24314 -20226
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-CDBU31xW.mjs} +3 -3
- package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-2Dl9zon2.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-JQA-VuEH.mjs} +12 -12
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-XgNxl0Wg.mjs → accordion-B6SqU49k.mjs} +1 -1
- package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-DrEOjQ3N.mjs} +15 -15
- package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-drZBwEZW.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-DEh45w16.mjs} +19 -19
- package/dist/client/{carousel-B3UhbFu7.mjs → carousel-C-YJliD-.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-DzOJfYOR.mjs → cart-acGFWK9R.mjs} +3 -3
- package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-BzlOGP2j.mjs} +1 -1
- package/dist/client/{checkout-LmePoEgM.mjs → checkout-SEontwhy.mjs} +3 -3
- package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C0Qvh-d4.mjs} +1 -1
- package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-yUKeq1N9.mjs} +1 -1
- package/dist/client/client.mjs +414 -319
- package/dist/client/{context-CJIz4FdL.mjs → context-DTrwaQtg.mjs} +2 -1
- package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-Cg8E1r9l.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-D0kOJYOX.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DyrpZ7ks.mjs} +4 -4
- package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-RLZQWi2V.mjs} +13 -13
- package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-CphYnImh.mjs} +4 -4
- package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-BvqjASB_.mjs} +4 -4
- package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-BaNAoC_M.mjs} +4 -4
- package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-COMHoRl6.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BBBtRwvy.mjs → form-DyH2juYT.mjs} +3 -3
- package/dist/client/{form.client-CZeRQLGF.mjs → form.client-DBwzkB0M.mjs} +5 -5
- package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CY4kX3mh.mjs} +3 -3
- package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-CTEN7gxW.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -6
- package/dist/client/{gifting-Di9-SpwW.mjs → gifting-CIx4V378.mjs} +4 -4
- package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-BEVPpzJM.mjs} +5 -5
- package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-VnORjnZK.mjs} +2 -2
- package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-DGcJfRS8.mjs} +2 -2
- package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-IqT_SVnX.mjs} +167 -85
- package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-BvEDkjiD.mjs} +6 -6
- package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-DCO1lErD.mjs} +3975 -3975
- package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-BIy4IUT3.mjs} +2 -2
- package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-CoTXDNFS.mjs} +3 -3
- package/dist/client/portal/client.mjs +9 -9
- package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-YHQ2aKX1.mjs} +1 -1
- package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-DxoZw1vF.mjs} +1 -1
- package/dist/client/{productDetail-gxF5whea.mjs → productDetail-DjuFvkey.mjs} +3 -3
- package/dist/client/{productList-B9t0XJrN.mjs → productList-DE9GEFoZ.mjs} +3 -3
- package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-Cyag_HOs.mjs} +2 -48
- package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-BPwV-0Pp.mjs} +10420 -9108
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-COnKrLO7.mjs → richText-coerce-NrRqDeOg.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-BWq5gKFK.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-D1oTPDxm.mjs → shop-C3wM0Hr4.mjs} +3 -3
- package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-34YvcpbX.mjs} +14 -14
- package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B7xHksOs.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-BiBnozfO.mjs} +2 -2
- package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-C0v88nLd.mjs} +14 -14
- package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-Ct-BRNez.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-D11X-B6n.mjs → src-CCtanNlD.mjs} +317 -342
- package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-lhE29TNT.mjs} +65 -11
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-BelJviOT.mjs} +2 -2
- package/dist/client/useDiscountCodeUi-rQRE1-Ho.mjs +196 -0
- package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-C4rS2Xxl.mjs} +8 -8
- package/dist/client/{view-bGU1ws-m.mjs → view-LJVHVqsy.mjs} +4 -4
- package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CNDsxeJH.mjs} +8935 -8913
- package/dist/preview-next/before-render.mjs +4 -3
- package/dist/preview-next/client/{PageSectionToolbar-D-Le7O3o.mjs → PageSectionToolbar-C4TtBPN-.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-D6fkE59-.mjs} +5 -5
- package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-amcDlj0O.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DeQjx4zk.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.mjs → SdkPreviewModeRuntime-Cx0SXnoX.mjs} +5 -5
- package/dist/preview-next/client/{previewAssistantSlot-BN93X9o1.mjs → previewAssistantSlot-aqpU34WI.mjs} +627 -498
- package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-D3Gy_Rs0.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-Dzx_RrN7.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-LHedw83e.mjs} +1 -1
- package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-DpSd9aVk.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.mjs → useOpenBlockForSetup-BGZn5AT1.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BtdzkSUg.mjs → route-contract-DnL-FgSV.mjs} +28 -10
- package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-BEbq6EwO.mjs} +4 -4
- package/dist/server/{bindings-DrbJuftt.mjs → bindings-Bly0dRs7.mjs} +36 -5
- package/dist/server/{client-Bf06n9oj.mjs → client-CGJ2ztYp.mjs} +1449 -1600
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-BkK1w3QQ.mjs +692 -0
- package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-DTLe0FEs.mjs} +22 -4
- package/dist/server/next.mjs +54 -94
- package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-Uy9Zp2Ks.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-JzxBnqfV.mjs} +7 -2
- package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-DyNSd2Yj.mjs} +50 -2
- package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-DU4ETFPS.mjs} +8 -50
- package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-8jNtDXmS.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-xeMG42aw.mjs} +3 -2
- package/dist/server/{registry-D12XF_h1.mjs → registry-DH1VrsCl.mjs} +122 -19
- 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 +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-D9yZIN3V.mjs → resolveBlockData-BN8tweTx.mjs} +24 -5
- package/dist/server/resolvePageContent-DnM16_f9.mjs +89 -0
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-B-FezJmH.mjs} +709 -453
- package/dist/server/{validation-CLq5cw6M.mjs → validation-3jOzYdPL.mjs} +3 -3
- package/dist/server/{version-oPbhAx8E.mjs → version-8t0o6_jd.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-D_XbQW_o.d.ts +0 -256
- package/dist/_dts/resolvePageContent-YT6ndha1.d.ts +0 -162
- package/dist/client/LocationMapActions-CiMtl1Ha.mjs +0 -62
- package/dist/client/MapDrawingSvg-BCZa3dpf.mjs +0 -200
- package/dist/client/course-DBEU9IA9.mjs +0 -244
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwASwKIq.mjs +0 -53
- package/dist/client/eventDetails-BzGOVDI-.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/useDiscountCodeUi-B9DODAkj.mjs +0 -237
- package/dist/client/view-DNX59QwM.mjs +0 -1372
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
package/README.md
CHANGED
|
@@ -44,10 +44,15 @@ installed binary.
|
|
|
44
44
|
|
|
45
45
|
### Server-Side Rendering (Recommended)
|
|
46
46
|
|
|
47
|
+
Use `createRiverbankClient` from `@riverbankcms/sdk/next` in Next server code. It installs Next caching automatically: ordinary content keeps a one-hour budget, while admitted availability uses 60 seconds and availability tags. Memory and durable page-cache hits also register the returned freshness and tags on the rendered page. Preview reads remain uncached.
|
|
48
|
+
|
|
49
|
+
`createCatchAllPage` also installs this binding on existing clients created through the root/server entry, preserving their memory cache and resilience state. Existing catch-all sites only need the SDK upgrade.
|
|
50
|
+
|
|
47
51
|
Use in Next.js App Router Server Components or getServerSideProps:
|
|
48
52
|
|
|
49
53
|
```tsx
|
|
50
|
-
import { createRiverbankClient
|
|
54
|
+
import { createRiverbankClient } from '@riverbankcms/sdk/next';
|
|
55
|
+
import { loadPage, Page } from '@riverbankcms/sdk';
|
|
51
56
|
|
|
52
57
|
// Note: baseUrl must include the /api path
|
|
53
58
|
const client = createRiverbankClient({
|
|
@@ -240,7 +245,8 @@ The SDK supports fetching draft/unpublished content by passing `preview: true`.
|
|
|
240
245
|
|
|
241
246
|
```tsx
|
|
242
247
|
// app/preview/[[...slug]]/page.tsx
|
|
243
|
-
import { createRiverbankClient
|
|
248
|
+
import { createRiverbankClient } from '@riverbankcms/sdk/next';
|
|
249
|
+
import { loadPage, Page } from '@riverbankcms/sdk';
|
|
244
250
|
|
|
245
251
|
const client = createRiverbankClient({
|
|
246
252
|
apiKey: process.env.RIVERBANK_API_KEY!,
|
|
@@ -485,7 +491,7 @@ Use `client.getEntries()` to fetch lists of content entries for blog listing pag
|
|
|
485
491
|
### Basic Usage
|
|
486
492
|
|
|
487
493
|
```tsx
|
|
488
|
-
import { createRiverbankClient } from '@riverbankcms/sdk';
|
|
494
|
+
import { createRiverbankClient } from '@riverbankcms/sdk/next';
|
|
489
495
|
|
|
490
496
|
const client = createRiverbankClient({
|
|
491
497
|
apiKey: process.env.RIVERBANK_API_KEY!,
|
|
@@ -565,7 +571,7 @@ response's `mediaAssets` to the image context yourself.
|
|
|
565
571
|
|
|
566
572
|
```tsx
|
|
567
573
|
// app/blog/page.tsx
|
|
568
|
-
import { createRiverbankClient } from '@riverbankcms/sdk';
|
|
574
|
+
import { createRiverbankClient } from '@riverbankcms/sdk/next';
|
|
569
575
|
import Link from 'next/link';
|
|
570
576
|
|
|
571
577
|
const client = createRiverbankClient({
|
|
@@ -617,7 +623,8 @@ export default async function BlogPage() {
|
|
|
617
623
|
|
|
618
624
|
```tsx
|
|
619
625
|
// ✅ Server Components (Next.js App Router)
|
|
620
|
-
import { createRiverbankClient
|
|
626
|
+
import { createRiverbankClient } from '@riverbankcms/sdk/next';
|
|
627
|
+
import { loadPage, Page } from '@riverbankcms/sdk';
|
|
621
628
|
|
|
622
629
|
// ✅ Client Components (use "use client" directive)
|
|
623
630
|
"use client";
|
|
@@ -1436,7 +1443,7 @@ Fetch form definitions for rendering in your frontend. Forms include schema (fie
|
|
|
1436
1443
|
### Fetching Forms
|
|
1437
1444
|
|
|
1438
1445
|
```tsx
|
|
1439
|
-
import { createRiverbankClient } from '@riverbankcms/sdk';
|
|
1446
|
+
import { createRiverbankClient } from '@riverbankcms/sdk/next';
|
|
1440
1447
|
|
|
1441
1448
|
const client = createRiverbankClient({
|
|
1442
1449
|
apiKey: process.env.RIVERBANK_API_KEY!,
|
|
@@ -3267,9 +3274,9 @@ Most webhook events expire their tags immediately, so the first view after a del
|
|
|
3267
3274
|
|
|
3268
3275
|
#### SDK memory cache and ISR
|
|
3269
3276
|
|
|
3270
|
-
|
|
3277
|
+
Next's tagged cache owns normal reads. Inside a Next.js server, with `cache.enabled` left unset, the SDK bypasses fresh memory hits and retains responses for the `staleIfError` fallback during a CMS outage. Admitted page results register their returned freshness and tags through the Next binding even when served from SDK memory or durable storage.
|
|
3271
3278
|
|
|
3272
|
-
Leave `cache.enabled` unset on ISR sites
|
|
3279
|
+
Leave `cache.enabled` unset on ISR sites. Explicit memory caching remains useful for dynamic rendering; other SDK reads that bypass fetch do not automatically register a rendered-page policy.
|
|
3273
3280
|
|
|
3274
3281
|
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.
|
|
3275
3282
|
|
|
@@ -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 { Bi as PageSurfaceSubjectWire, Di as WeeklyOpeningHours, Ei as MailingListRuntimeContext, Gn as BlockSiteTerms, Ii as UtcIsoDateTimeString, Ki as BlockInteractionContext, M as DateRuntimeContext, Qi as DeepReadonly, Ti as BusinessPersonNoun, Vr as RenderableMediaAsset, Wn as BrowserReadAuthority, _r as PageTemplate, b as PrefetchedBlockData, er as RenderablePageOutline$1, h as ThemeResponsiveMode, hr as Theme, j as LinkResolverContext, v as BlockLoaderFailures, y as BlockLoaderSnapshot } from "./request-BjKBCS7t.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-DCiSHd-C.js";
|
|
3
|
+
import { t as ThemeRuntime } from "./index-7CDBZGb-.js";
|
|
4
|
+
import { d as SdkCustomBlock } from "./types-B7e6Lmo5.js";
|
|
5
|
+
import { P as SiteBookingOfferingPresetSummary } from "./contracts-CzWyAiJj.js";
|
|
6
|
+
import { _ as RiverbankClient } from "./types-CT-KOxl_.js";
|
|
7
|
+
import { a as ResolveBlockDataDeps, f as ResolvedBlockData } from "./resolveBlockData-DupbMCup.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as ThemeRuntime } from "./index-
|
|
1
|
+
import { Bi as PageSurfaceSubjectWire, Fi as BookingTimeZone, Gt as SdkSiteLayoutConfig, It as BlockApiProvider, Kt as ThemeJournalState, Nt as BookingOfferingPresetSummary, Oi as EditLeaseScope, P as MediaAssetIndexItem, Qn as EditorRenderablePageOutline, Wt as SdkEditorRevision, Zi as ContentTypeSchema, _ as EntrySubrouteContextData, di as SiteFooterContent, dr as HeaderLogoContext, f as PreviewPageAdaptationFacts, g as SdkConfigForBlockPicker, h as ThemeResponsiveMode, hr as Theme, ki as EditorBlockVersions, p as PreviewRenderingOverride, qt as ThemeSelectionPreviewProps, t as ApiClient, yi as SurfaceId } from "./request-BjKBCS7t.js";
|
|
2
|
+
import { t as ThemeRuntime } from "./index-7CDBZGb-.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 { $ as
|
|
1
|
+
import { $ as EventTicketSelectionLine, At as RegistrationAdmission, Bt as DiscountApplyLine, Cn as BookingFlowStepId, Ct as SeveralItemsKind, Dn as BookingSlotView, Dr as EventCheckoutReturnRequest, Dt as WaitlistInvitation, Ei as MailingListRuntimeContext, En as BookingSlotSelection, Er as DirectCheckoutCollectionOptionKind, Et as StateUpdate, F as BookingFormInteractiveIslandProps, Ft as BookingPageKind, G as PortalCreditState, Gn as BlockSiteTerms, H as BookingQuestionsModel, Hi as PositiveCents, Ii as UtcIsoDateTimeString, In as BookingFieldValue, J as ExistingRegistrationLookupState, K as PortalProfile, L as EventRegistrationDirectPaymentOption, Li as AppointmentBookingReview, Ln as BookingQuestionsPaymentSnapshot, Lt as BlockApiClient, Mi as BookingConsent, Mn as LoadState, Mr as PublicEvent, Mt as TicketSelectionPurpose, Ni as DisplayContext, On as BookingSubmitActionResult, Or as EventRegistrationPaymentSubject, Ot as SelectionRequirementsLayout, Pi as ZoneLabel, Pt as EventSourceRecovery, Q as EventRegistrationClientProps, R as EventRegistrationDirectPaymentSelectionState, Rn as getBookingServiceSlidingScale, Rt as BoundBlockApiClient, Sn as BookingFlowStep, Sr as SelectionAttendance, St as SelectionPaymentSummary, Tn as BookingResourceView, Tr as CustomerEventRegistration, Tt as CopyPart, U as RegistrationFlowState, Un as BlockApiConfig, V as BookingPaymentSelectionViewModel, Vi as NonNegativeCents, W as PortalAuthState, Wn as BrowserReadAuthority, X as EligibilityData, Y as SelectableEventTicketType, Z as EventPaymentState, _t as BookingSelection, ai as BookingQuestionsSubmissionFailure, an as BookingSelectedCollectionOptionKind, at as RegistrationAttendanceMode, bn as BookingFlowFeedback, bt as RunPricingChoices, ci as EventRegistrationErrorAction, ct as RegistrationStep, dn as BookingPurchasablePackagesModel, dt as FormData, ea as BlockButtonRole, en as EventEmbeddedCheckout, et as Guest, ft as OccurrenceContext, gt as EventRegistrationPageSurfaceSubject, hn as BookingAppointmentPackagesModel, in as BookingFormService, it as PaymentStepState, jt as RegistrationTicketContinuation, kn as BookingSubmitOptions, kr as PaymentMethod, kt as RegistrationPresentation, li as PriceReductionSummary, ln as BookingPaymentAvailability, lt as RegistrationSubject, nn as BookingFormConfig$1, nt as PaymentSelection, oi as EventRegistrationPricingOption, on as BookingFormServiceCategory, ot as RegistrationEvent, q as EligibilityLookupState, rn as BookingFormData$1, rt as PaymentStatusRecoveryState, si as CombinationPricePlan, sn as BookingFormField$1, st as RegistrationResult, tn as EventTicketLineSummary, tt as GuestErrors, ui as CurrencyCode, un as BookingPaymentChoice, ut as ThemedButtonProps, vn as BookingFieldView, vt as RegistrationSelection, wn as BookingFlowView, wt as CombinationWorking, xn as BookingFlowStatus, xt as SelectionPayment, yn as BookingFlowActionResult, yt as RegistrationSelectionMode, z as EventRegistrationSiteCreditPreview, zn as ProtectedSubmission, zt as AutoAppliedDiscountPreview } from "./request-BjKBCS7t.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";
|
|
@@ -588,13 +588,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
588
588
|
}> | null;
|
|
589
589
|
slidingScaleSelectionMessage: string | null;
|
|
590
590
|
selectedTicketType: EventRegistrationPricingOption | null;
|
|
591
|
-
ticketSelectionSummaryLines:
|
|
592
|
-
pricingOptionId: string | null;
|
|
593
|
-
label: string;
|
|
594
|
-
quantity: number;
|
|
595
|
-
unitPriceCents: number;
|
|
596
|
-
subtotalCents: number;
|
|
597
|
-
}[];
|
|
591
|
+
ticketSelectionSummaryLines: EventTicketLineSummary[];
|
|
598
592
|
ticketSelectionSubtotalCents: number | null;
|
|
599
593
|
visibleTicketTypes: EventRegistrationPricingOption[];
|
|
600
594
|
overallRemainingPlaces: number | null;
|
|
@@ -691,7 +685,28 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
691
685
|
manualCodeEntryAllowed: boolean;
|
|
692
686
|
autoAppliedDiscount: AutoAppliedDiscountPreview | null;
|
|
693
687
|
discountsAvailableLoading: boolean;
|
|
694
|
-
discountContext:
|
|
688
|
+
discountContext: {
|
|
689
|
+
type: 'whole_series';
|
|
690
|
+
eventSeriesId: string;
|
|
691
|
+
} | {
|
|
692
|
+
type: "event";
|
|
693
|
+
eventSeriesId: string;
|
|
694
|
+
eventCategoryId: string | null;
|
|
695
|
+
ticketsCount?: number;
|
|
696
|
+
} | {
|
|
697
|
+
type: "appointment";
|
|
698
|
+
serviceId: string;
|
|
699
|
+
} | {
|
|
700
|
+
type: "pass";
|
|
701
|
+
passId: string;
|
|
702
|
+
} | {
|
|
703
|
+
type: "membership";
|
|
704
|
+
membershipId: string;
|
|
705
|
+
} | {
|
|
706
|
+
type: "product";
|
|
707
|
+
productId: string;
|
|
708
|
+
productCategoryId: string | null;
|
|
709
|
+
} | null;
|
|
695
710
|
shouldShowDiscountToggle: boolean;
|
|
696
711
|
verification: {
|
|
697
712
|
status: 'idle' | 'polling' | 'completed' | 'failed' | 'timeout';
|
|
@@ -1791,13 +1806,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1791
1806
|
}> | null;
|
|
1792
1807
|
slidingScaleSelectionMessage: string | null;
|
|
1793
1808
|
selectedTicketType: EventRegistrationPricingOption | null;
|
|
1794
|
-
ticketSelectionSummaryLines:
|
|
1795
|
-
pricingOptionId: string | null;
|
|
1796
|
-
label: string;
|
|
1797
|
-
quantity: number;
|
|
1798
|
-
unitPriceCents: number;
|
|
1799
|
-
subtotalCents: number;
|
|
1800
|
-
}[];
|
|
1809
|
+
ticketSelectionSummaryLines: EventTicketLineSummary[];
|
|
1801
1810
|
ticketSelectionSubtotalCents: number | null;
|
|
1802
1811
|
visibleTicketTypes: EventRegistrationPricingOption[];
|
|
1803
1812
|
overallRemainingPlaces: number | null;
|
|
@@ -1894,7 +1903,28 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1894
1903
|
manualCodeEntryAllowed: boolean;
|
|
1895
1904
|
autoAppliedDiscount: AutoAppliedDiscountPreview | null;
|
|
1896
1905
|
discountsAvailableLoading: boolean;
|
|
1897
|
-
discountContext:
|
|
1906
|
+
discountContext: {
|
|
1907
|
+
type: 'whole_series';
|
|
1908
|
+
eventSeriesId: string;
|
|
1909
|
+
} | {
|
|
1910
|
+
type: "event";
|
|
1911
|
+
eventSeriesId: string;
|
|
1912
|
+
eventCategoryId: string | null;
|
|
1913
|
+
ticketsCount?: number;
|
|
1914
|
+
} | {
|
|
1915
|
+
type: "appointment";
|
|
1916
|
+
serviceId: string;
|
|
1917
|
+
} | {
|
|
1918
|
+
type: "pass";
|
|
1919
|
+
passId: string;
|
|
1920
|
+
} | {
|
|
1921
|
+
type: "membership";
|
|
1922
|
+
membershipId: string;
|
|
1923
|
+
} | {
|
|
1924
|
+
type: "product";
|
|
1925
|
+
productId: string;
|
|
1926
|
+
productCategoryId: string | null;
|
|
1927
|
+
} | null;
|
|
1898
1928
|
shouldShowDiscountToggle: boolean;
|
|
1899
1929
|
verification: {
|
|
1900
1930
|
status: 'idle' | 'polling' | 'completed' | 'failed' | 'timeout';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as BindingTransformName } from "./index-
|
|
1
|
+
import { Ht as NavigationAuthoringLinkInput, Ut as NavigationConfigItemInput } from "./request-BjKBCS7t.js";
|
|
2
|
+
import { u as BindingTransformName } from "./index-DCiSHd-C.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/types/block-kinds.d.ts
|
|
5
5
|
/**
|
|
@@ -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 { $t as RoutableContentItem$1, Ar as PublicMapLocationParams, Ci as BookingEmbedSettings, Di as WeeklyOpeningHours, Ei as MailingListRuntimeContext, Fi as BookingTimeZone, Ki as BlockInteractionContext, Kr as Media, Mr as PublicEvent, Qt as SiteRuntimeSiteTerms, Ti as BusinessPersonNoun, Vt as PublicPassesResponse$1, Xt as PublicBookingServicesResponse$1, Yt as PublicBookingServiceCatalogueItem$1, Zt as PublicServiceCategorySummary$1, c as SdkRuntimePageSurfaceSubject$1, d as SiteRuntimeSelectionPayload, ji as BusinessAddress, l as SiteBookingOfferingPresetSummary$1, mr as LogoFacts, pr as FooterMode, r as ApiErrorCode$1, s as SdkRuntimeContentByPathResponse, u as SiteRuntimeIdentity, ur as ResolvedInternalLinkEntityType, wi as MapDrawing } from "./request-BjKBCS7t.js";
|
|
2
|
+
import { ht as SiteHeaderContent, mt as SiteFooterContent, r as MediaAssetIndexItem } from "./index-DCiSHd-C.js";
|
|
3
|
+
import { d as SdkCustomBlock, f as SdkThemeConfig, u as RiverbankSiteConfig } from "./types-B7e6Lmo5.js";
|
|
4
4
|
|
|
5
5
|
//#region .cache/declarations/sdk/src/public-api/teamMemberContracts.d.ts
|
|
6
6
|
type PublicTeamMemberSummary = {
|
|
@@ -20,19 +20,6 @@ type PublicTeamMemberBlockItem = PublicTeamMemberSummary & {
|
|
|
20
20
|
photo: PublicTeamMemberPhoto;
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region .cache/declarations/sdk/src/public-api/eventSubrouteContracts.d.ts
|
|
24
|
-
type ResolveEventSubrouteResponse = ResolveEventSubrouteResponse$1;
|
|
25
|
-
type ResolveEventOccurrenceResponse = Readonly<{
|
|
26
|
-
occurrence: Extract<ResolveEventSubrouteResponse['subroute'], {
|
|
27
|
-
kind: 'event-occurrence';
|
|
28
|
-
}>['occurrence'] | null;
|
|
29
|
-
}>;
|
|
30
|
-
type ResolveEventRunResponse = Readonly<{
|
|
31
|
-
run: Extract<ResolveEventSubrouteResponse['subroute'], {
|
|
32
|
-
kind: 'event-run';
|
|
33
|
-
}>['run'] | null;
|
|
34
|
-
}>;
|
|
35
|
-
//#endregion
|
|
36
23
|
//#region .cache/declarations/sdk/src/public-api/contracts.d.ts
|
|
37
24
|
type RuntimeSiteSdkConfig = {
|
|
38
25
|
builtInBlocks?: RiverbankSiteConfig['builtInBlocks'];
|
|
@@ -369,105 +356,9 @@ type SiteResponse = SiteRuntimeSelectionPayload & {
|
|
|
369
356
|
fonts?: SiteFont[];
|
|
370
357
|
googleSiteVerificationToken?: string | null;
|
|
371
358
|
};
|
|
372
|
-
type SdkRuntimePage = {
|
|
373
|
-
id: string;
|
|
374
|
-
routeId: string | null;
|
|
375
|
-
name: string;
|
|
376
|
-
path: string | null;
|
|
377
|
-
purpose: string;
|
|
378
|
-
title?: string | null;
|
|
379
|
-
draftTitle?: string | null;
|
|
380
|
-
slug?: string | null;
|
|
381
|
-
draftSlug?: string | null;
|
|
382
|
-
status: string;
|
|
383
|
-
draftStatus?: string | null;
|
|
384
|
-
lastPublishedAt?: string | null;
|
|
385
|
-
publishedAt?: string | null;
|
|
386
|
-
draftUpdatedAt?: string | null;
|
|
387
|
-
metaTitle?: string | null;
|
|
388
|
-
metaDescription?: string | null;
|
|
389
|
-
draftMetaTitle?: string | null;
|
|
390
|
-
draftMetaDescription?: string | null;
|
|
391
|
-
ogImageId?: string | null;
|
|
392
|
-
ogImageUrl?: string | null;
|
|
393
|
-
canonicalUrl?: string | null;
|
|
394
|
-
blocks: Array<{
|
|
395
|
-
id: string;
|
|
396
|
-
contentVersionId: string | null;
|
|
397
|
-
kind: string;
|
|
398
|
-
purpose?: string;
|
|
399
|
-
content: Record<string, unknown>;
|
|
400
|
-
admission?: SdkBlockContentAdmission;
|
|
401
|
-
}>;
|
|
402
|
-
runtimeJoins?: readonly PageRuntimeJoin<string>[];
|
|
403
|
-
};
|
|
404
|
-
type SdkTemplate = {
|
|
405
|
-
/** Template design intent, including section Look pins resolved during materialisation. */designState?: Record<string, unknown> | null;
|
|
406
|
-
id: string;
|
|
407
|
-
contentTypeKey?: string | null;
|
|
408
|
-
isDefault?: boolean;
|
|
409
|
-
blocks: Array<{
|
|
410
|
-
id: string;
|
|
411
|
-
blockKind: string;
|
|
412
|
-
content: Record<string, unknown> | null;
|
|
413
|
-
bindings: Record<string, unknown> | null;
|
|
414
|
-
}>;
|
|
415
|
-
};
|
|
416
|
-
type SdkSlotBlockIdentity = {
|
|
417
|
-
id: string;
|
|
418
|
-
blockId?: string;
|
|
419
|
-
contentVersionId: string;
|
|
420
|
-
kind: string;
|
|
421
|
-
purpose: string;
|
|
422
|
-
orderIndex?: number | null;
|
|
423
|
-
admission?: SdkBlockContentAdmission;
|
|
424
|
-
};
|
|
425
|
-
type SdkEntrySlotContent = {
|
|
426
|
-
entrySlotId: string;
|
|
427
|
-
slotKey: string;
|
|
428
|
-
blocks: Array<SdkSlotBlockIdentity & {
|
|
429
|
-
content: Record<string, unknown> | null;
|
|
430
|
-
}>;
|
|
431
|
-
};
|
|
432
|
-
type SdkSurfaceSlotContent = {
|
|
433
|
-
surfaceSlotId: string;
|
|
434
|
-
pageSurfaceId: string;
|
|
435
|
-
slotKey: string;
|
|
436
|
-
blocks: Array<SdkSlotBlockIdentity & {
|
|
437
|
-
surfaceSlotId: string;
|
|
438
|
-
identifier?: string | null;
|
|
439
|
-
content: Record<string, unknown>;
|
|
440
|
-
draftContent?: unknown;
|
|
441
|
-
publishedContent?: unknown;
|
|
442
|
-
draftContentId?: string | null;
|
|
443
|
-
publishedContentId?: string | null;
|
|
444
|
-
}>;
|
|
445
|
-
};
|
|
446
359
|
type SdkRuntimePageSurfaceSubject = SdkRuntimePageSurfaceSubject$1;
|
|
447
|
-
type
|
|
448
|
-
type PageResponse = {
|
|
449
|
-
page: SdkRuntimePage;
|
|
450
|
-
templates?: SdkTemplate[];
|
|
451
|
-
mediaAssets?: SdkRuntimeMediaAsset[];
|
|
452
|
-
type?: 'page';
|
|
453
|
-
} | {
|
|
454
|
-
entry: SdkRuntimeEntry;
|
|
455
|
-
templates: SdkTemplate[];
|
|
456
|
-
entrySlots?: SdkEntrySlotContent[];
|
|
457
|
-
contentTypeSchema: Record<string, unknown> | null;
|
|
458
|
-
mediaAssets?: SdkRuntimeMediaAsset[];
|
|
459
|
-
type: 'entry';
|
|
460
|
-
} | {
|
|
461
|
-
pageSections?: PageSectionsContext;
|
|
462
|
-
pageSurface: SdkRuntimePageSurface;
|
|
463
|
-
templates: SdkTemplate[];
|
|
464
|
-
surfaceSlots?: SdkSurfaceSlotContent[];
|
|
465
|
-
contentTypeSchema: Record<string, unknown> | null;
|
|
466
|
-
mediaAssets?: SdkRuntimeMediaAsset[];
|
|
467
|
-
type: 'pageSurface';
|
|
468
|
-
};
|
|
360
|
+
type PageResponse = SdkRuntimeContentByPathResponse;
|
|
469
361
|
type SdkRuntimeMediaAsset = MediaAssetIndexItem;
|
|
470
|
-
type SdkRuntimeEntry = SdkRuntimeEntry$1;
|
|
471
362
|
type PublishedContentEntryPreview = {
|
|
472
363
|
id: string;
|
|
473
364
|
title: string;
|
|
@@ -667,7 +558,7 @@ type SitemapRoutesResponse = {
|
|
|
667
558
|
pageSize: number;
|
|
668
559
|
allowIndexingInProduction: boolean;
|
|
669
560
|
};
|
|
670
|
-
type PublicEndpointName = 'getSite' | 'getContentByPath' | 'resolveRouteOutcome' | 'resolveRouteDecision' | 'listPublishedEntries' | 'getPublishedEntryPreview' | 'getPublicFormById' | 'listPublicForms' | 'getPublicBookingServices' | 'getPublicWeeklySlotAvailability' | 'getPublicChallenge' | 'listPublicEvents' | 'batchBlockLoaders' | 'listPublicTeamMembers' | 'listPublicProducts' | 'listPublicPasses' | 'listPublicMemberships' | '
|
|
561
|
+
type PublicEndpointName = 'getSite' | 'getContentByPath' | 'resolveRouteOutcome' | 'resolveRouteDecision' | 'listPublishedEntries' | 'getPublishedEntryPreview' | 'getPublicFormById' | 'listPublicForms' | 'getPublicBookingServices' | 'getPublicWeeklySlotAvailability' | 'getPublicChallenge' | 'listPublicEvents' | 'batchBlockLoaders' | 'listPublicTeamMembers' | 'listPublicProducts' | 'listPublicPasses' | 'listPublicMemberships' | 'checkRedirect' | 'getRoutableContent' | 'getPublicRoutableContent' | 'getPublicSitemapRoutes';
|
|
671
562
|
type PublicAPIEndpoints = {
|
|
672
563
|
getSite: APIEndpointBase<never, {
|
|
673
564
|
id?: string;
|
|
@@ -802,7 +693,6 @@ type PublicAPIEndpoints = {
|
|
|
802
693
|
siteId: string;
|
|
803
694
|
categories?: string;
|
|
804
695
|
}, PublicMembershipsResponse>;
|
|
805
|
-
resolveEventSubroute: APIEndpointBase<never, ResolveEventSubrouteQuery, ResolveEventSubrouteResponse>;
|
|
806
696
|
checkRedirect: APIEndpointBase<never, {
|
|
807
697
|
site: string;
|
|
808
698
|
path: string;
|
|
@@ -822,4 +712,4 @@ type PublicAPIEndpoints = {
|
|
|
822
712
|
}, SitemapRoutesResponse>;
|
|
823
713
|
};
|
|
824
714
|
//#endregion
|
|
825
|
-
export { RoutableContentResponse as A,
|
|
715
|
+
export { RoutableContentResponse as A, 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 };
|
|
@@ -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-CzWyAiJj.js";
|
|
2
|
+
import { K as LoadPageResult } from "./Page-lWenra5i.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/metadata/generatePageMetadata.d.ts
|
|
5
5
|
/**
|
|
@@ -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 { Ji as RichTextDoc, Kr as Media, Xi as TipTapNode } from "./request-BjKBCS7t.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-DL6GIvTm.js";
|
|
3
|
+
import { It as LinkValue, Pt as InlineText, c as NodeDefinition, u as BindingTransformName } from "./index-DCiSHd-C.js";
|
|
4
|
+
import { u as RiverbankSiteConfig } from "./types-B7e6Lmo5.js";
|
|
5
5
|
import { z as z$1 } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region .cache/declarations/sdk/src/config/bindings.d.ts
|
|
@@ -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-BRxhRw4I.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,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-CzWyAiJj.js";
|
|
2
|
+
import { _ as RiverbankClient, m as ResilienceStatus, v as RiverbankClientConfig } from "./types-CT-KOxl_.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/client/error.d.ts
|
|
5
5
|
/**
|
|
@@ -12,6 +12,7 @@ interface RiverbankApiErrorOptions {
|
|
|
12
12
|
status: number;
|
|
13
13
|
timestamp: string;
|
|
14
14
|
fieldErrors?: FieldError[];
|
|
15
|
+
tag?: string;
|
|
15
16
|
/** Retry delay from Retry-After header, in milliseconds */
|
|
16
17
|
retryAfterMs?: number;
|
|
17
18
|
/** Original error that caused this error (for network errors) */
|
|
@@ -58,6 +59,7 @@ declare class RiverbankApiError extends Error {
|
|
|
58
59
|
readonly status: number;
|
|
59
60
|
/** Field-level validation errors (only present for validation errors) */
|
|
60
61
|
readonly fieldErrors?: FieldError[];
|
|
62
|
+
readonly tag?: string;
|
|
61
63
|
/** ISO timestamp when the error occurred */
|
|
62
64
|
readonly timestamp: string;
|
|
63
65
|
/** Original error cause for error classification (ECONNREFUSED, etc.) */
|
|
@@ -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-CzWyAiJj.js";
|
|
2
|
+
import { _ as RiverbankClient } from "./types-CT-KOxl_.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/prebuild/types.d.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as BodyTextContent$1, C as NewsletterSignupContent$1, D as ContactNewsletterContent$1, E as EventDetailsContent$1, Gi as Brand, Ji as RichTextDoc, Jn as DisplayMode$1, Kn as CalendarTabViews$1, Kr as Media, O as FormBlockContent$1, Ri as EventOccurrenceContextData, S as ClassPricesContent, T as EventCalendarContent$1, Ui as EventCategoryId, Wi as VenueId, Xn as FilterAutoShow$1, Yn as EventLayout$1, Zn as WeekStart$1, ar as EntryLinkValue$1, cr as LinkValue$1, di as SiteFooterContent$1, fr as ContentFrameIntent$1, ht as SectionStylesContent$1, ir as CustomLinkValue$1, k as LocationMapContent$1, lr as PageLinkValue$1, mi as PageRuntimeJoin$1, mt as ContainerStylesContent$1, or as ExternalLinkValue$1, pt as CardStylesContent$1, qi as BindingTransformName$1, qn as ColumnOption$1, sr as InternalLinkValue$1, w as ImageGalleryContent$1, zi as EventPageSubrouteContext } from "./request-BjKBCS7t.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/contracts/content.d.ts
|
|
@@ -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-CzWyAiJj.js";
|
|
2
|
+
import { a as GetEntriesBaseParams, i as EntriesResponseWithMeta } from "./types-CT-KOxl_.js";
|
|
3
|
+
import { i as NavigationCacheFile, r as FormsCacheFile, s as PrebuildManifest } from "./index-CaCum9mM.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 { b as PrefetchedBlockData, hr as Theme, s as SdkRuntimeContentByPathResponse, v as BlockLoaderFailures, y as BlockLoaderSnapshot } from "./request-BjKBCS7t.js";
|
|
2
|
+
import { r as MediaAssetIndexItem, y as RouteMap } from "./index-DCiSHd-C.js";
|
|
3
|
+
import { d as SdkCustomBlock } from "./types-B7e6Lmo5.js";
|
|
4
|
+
import { I as SiteResponse, N as SdkRuntimePageSurfaceSubject } from "./contracts-CzWyAiJj.js";
|
|
5
|
+
import { _ as RiverbankClient } from "./types-CT-KOxl_.js";
|
|
6
|
+
import { f as ResolvedBlockData } from "./resolveBlockData-DupbMCup.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-lWenra5i.js";
|
|
10
10
|
|
|
11
11
|
//#region .cache/declarations/sdk/src/rendering/helpers/loadContent.d.ts
|
|
12
12
|
/**
|
|
@@ -81,13 +81,13 @@ type ContentRuntimeContext = Pick<SiteRenderSupport, 'openingHours' | 'siteTerms
|
|
|
81
81
|
*/
|
|
82
82
|
type PageContentResult = ContentRuntimeContext & {
|
|
83
83
|
type: 'page';
|
|
84
|
-
dataContext: SiteBlockRenderContext & {
|
|
84
|
+
dataContext: NonNullable<PageProps['dataContext']> & SiteBlockRenderContext & {
|
|
85
85
|
previewStage: DataLoaderPreviewStage;
|
|
86
86
|
prefetchedBlockData?: PrefetchedBlockData;
|
|
87
87
|
loaderSnapshot?: BlockLoaderSnapshot;
|
|
88
88
|
loaderFailures?: BlockLoaderFailures;
|
|
89
89
|
}; /** Page UUID (required for preview editing / block mutations) */
|
|
90
|
-
pageId: string; /** Route UUID for this page (used by preview mode metadata editing) */
|
|
90
|
+
pageId: string | null; /** Route UUID for this page (used by preview mode metadata editing) */
|
|
91
91
|
routeId: string | null; /** Draft/published metadata record (used to seed the preview editor) */
|
|
92
92
|
pageMetadata: PagePreviewMetadata; /** Page outline ready for rendering with <Page> component */
|
|
93
93
|
page: PageProps['page'];
|
|
@@ -201,16 +201,18 @@ type PageSurfaceContentResult = ContentRuntimeContext & {
|
|
|
201
201
|
/**
|
|
202
202
|
* Discriminated union result from loadContent
|
|
203
203
|
*/
|
|
204
|
-
type LoadContentResult = PageContentResult | EntryContentResult | PageSurfaceContentResult
|
|
204
|
+
type LoadContentResult = (PageContentResult | EntryContentResult | PageSurfaceContentResult) & {
|
|
205
|
+
pageRead: SdkRuntimeContentByPathResponse;
|
|
206
|
+
};
|
|
205
207
|
/**
|
|
206
208
|
* Type guard to check if result is a page
|
|
207
209
|
*/
|
|
208
|
-
declare function isPageContent(result: LoadContentResult): result is PageContentResult
|
|
210
|
+
declare function isPageContent(result: LoadContentResult): result is PageContentResult & Pick<LoadContentResult, 'pageRead'>;
|
|
209
211
|
/**
|
|
210
212
|
* Type guard to check if result is an entry
|
|
211
213
|
*/
|
|
212
|
-
declare function isEntryContent(result: LoadContentResult): result is EntryContentResult
|
|
213
|
-
declare function isPageSurfaceContent(result: LoadContentResult): result is PageSurfaceContentResult
|
|
214
|
+
declare function isEntryContent(result: LoadContentResult): result is EntryContentResult & Pick<LoadContentResult, 'pageRead'>;
|
|
215
|
+
declare function isPageSurfaceContent(result: LoadContentResult): result is PageSurfaceContentResult & Pick<LoadContentResult, 'pageRead'>;
|
|
214
216
|
/**
|
|
215
217
|
* Server-side helper to fetch content by path.
|
|
216
218
|
*
|