@riverbankcms/sdk 0.169.0 → 0.169.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-DpROiz12.d.ts → BlocksIslandsHydrator-DEhlJEwj.d.ts} +1 -1
- package/dist/_dts/{Page-DHBBDRC_.d.ts → Page-BhCfStX1.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CG7Qib7u.d.ts → SdkPreviewMode-DSYdsdmJ.d.ts} +2 -2
- package/dist/_dts/{client-MURxFla9.d.ts → client-BZMn4Y99.d.ts} +1 -1
- package/dist/_dts/{content-types-ClBGjxBV.d.ts → content-types-EMK-E_r9.d.ts} +2 -2
- package/dist/_dts/{contracts-CHNvzh0y.d.ts → contracts-DjYsGY3B.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DQM934Fm.d.ts → footerPageOutline-BtYUi-m0.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-ConZaEqB.d.ts → generatePageMetadata-D_fNTi5r.d.ts} +2 -2
- package/dist/_dts/{index-BaDqRekr.d.ts → index-BR0i0c3G.d.ts} +4 -4
- package/dist/_dts/{index-CovKPftP.d.ts → index-BV-qVnt7.d.ts} +2 -2
- package/dist/_dts/{index-rfAssXq0.d.ts → index-BYYhTQ_b.d.ts} +3 -3
- package/dist/_dts/{index-DDaX-K2D.d.ts → index-BzguBJzR.d.ts} +1 -1
- package/dist/_dts/{index-DCw8LO4M.d.ts → index-DgEwZ5WQ.d.ts} +1 -1
- package/dist/_dts/{index-CiR_oPYT.d.ts → index-NaRauKDR.d.ts} +1 -1
- package/dist/_dts/{index-CVB5wgbz.d.ts → index-QIbYMeI7.d.ts} +2 -2
- package/dist/_dts/{loadContent-CRLKVVDP.d.ts → loadContent-BmGH6NKl.d.ts} +7 -7
- package/dist/_dts/{request-DeVetKBr.d.ts → request-DssgRQSm.d.ts} +8523 -8069
- package/dist/_dts/{resolveBlockData-C5KYFeig.d.ts → resolveBlockData-5BqNxwL8.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-D8MZWyNO.d.ts → resolvePageContent-DIuwuFA7.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/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-OwqfS8Gn.d.ts → types-DrAWDtqR.d.ts} +3 -3
- package/dist/_dts/{types-Fj31kIi2.d.ts → types-Z388-GR1.d.ts} +7 -7
- package/dist/_dts/{types-B4MBlP_B.d.ts → types-cObpvZGF.d.ts} +2 -2
- package/dist/_dts/{validation-B1Fa8o_b.d.ts → validation-hLr8zVrc.d.ts} +4 -4
- package/dist/client/BlocksIslandsHydrator-CN2GyuuA.mjs +410 -0
- package/dist/client/{BookingMailingListNote-y3qWjnOo.mjs → BookingMailingListNote-Br1VyHkP.mjs} +5 -5
- package/dist/client/{BookingQuestionFields-DjLjd0vc.mjs → BookingQuestionFields-LLGCWjvU.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-VM7C2fdh.mjs → CalendarNavigationChevron-DSnSBNeq.mjs} +4 -4
- package/dist/client/{DemoBookingPortalAccess-C2QCj_Ta.mjs → DemoBookingPortalAccess-Cilv5zdS.mjs} +3 -3
- package/dist/client/{EventCalendar.client-DDjz7tuX.mjs → EventCalendar.client-ucgdMS35.mjs} +7 -7
- package/dist/client/{EventCombined.client-CeYbNsch.mjs → EventCombined.client-BEdfJGpx.mjs} +5 -5
- package/dist/client/{EventItem-B5J0IeF4.mjs → EventItem-OpLehMpT.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-eH04D8-V.mjs → EventListWeekNavigation-DTsVU6gc.mjs} +1 -1
- package/dist/client/{EventListing.client-slpvrTrM.mjs → EventListing.client-8MFGI9BA.mjs} +3 -3
- package/dist/client/{EventListing.view-BYBaElec.mjs → EventListing.view-BCvRqU86.mjs} +5 -5
- package/dist/client/{EventRegistrationPayment-Do7Q0wRG.mjs → EventRegistrationPayment-CqH3hE-k.mjs} +18 -10
- package/dist/client/{Page-Dv9eIOGr.mjs → Page-Bu5TJU3L.mjs} +41 -15
- package/dist/client/{StepIndicator-BZNUd0-v.mjs → StepIndicator-CR7_0yu4.mjs} +4 -3
- package/dist/client/{accessibleSurfaces-chpD4C2c.mjs → accessibleSurfaces-_7jkuinl.mjs} +56 -8
- package/dist/client/{accordion-BCtVxnDZ.mjs → accordion-DMItWylU.mjs} +6 -1
- package/dist/client/{booking-form.client-Cr5G-HHO.mjs → booking-form.client-wd71DG19.mjs} +10 -10
- package/dist/client/bookingForm-Cyr2qeS1.mjs +31 -0
- package/dist/client/bookings.mjs +4 -4
- package/dist/client/{carousel-DW-HgjvT.mjs → carousel-B5-Hzzif.mjs} +7 -9
- package/dist/client/{carousel.client-BD4DXMtI.mjs → carousel.client-eSSr1oYA.mjs} +2 -2
- package/dist/client/{cart-D1zWe4R7.mjs → cart-B-M5l__W.mjs} +3 -3
- package/dist/client/{cart.client-CIfbTLHS.mjs → cart.client-COAP4CEy.mjs} +1 -1
- package/dist/client/{checkout-fDCNZ3IT.mjs → checkout-ZHc8GfaG.mjs} +3 -3
- package/dist/client/{checkout.client-C4l2KjtV.mjs → checkout.client-DRralR3e.mjs} +1 -1
- package/dist/client/{checkoutUrls-cWL6I-Vz.mjs → checkoutUrls-CY8qywXl.mjs} +1 -1
- package/dist/client/client.mjs +40 -4
- package/dist/client/{createLucideIcon-CIbxe9em.mjs → createLucideIcon-BrXgHVKN.mjs} +9 -9
- package/dist/client/{cta-Bj5WHgcv.mjs → cta-CfuyGqXL.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-3uVu3WgG.mjs → demoPortalMagicLink-DQtwf_s2.mjs} +1 -1
- package/dist/client/{display-CT8KMSpH.mjs → display-DDNmyb0z.mjs} +18 -793
- package/dist/client/{enhanceHeaderSection-B27KFGDv.mjs → enhanceHeaderSection-D7gRy-pL.mjs} +3 -3
- package/dist/client/{event-details.client-CL4Lqz2c.mjs → event-details.client-DZZaoCUc.mjs} +1 -1
- package/dist/client/{event-registration.client-Dj3Kyp5X.mjs → event-registration.client-CLBdHUfd.mjs} +12 -11
- package/dist/client/{eventCalendar-DGsdSF8J.mjs → eventCalendar-BY3AfYkK.mjs} +14 -17
- package/dist/client/eventCombined-86P2vQCb.mjs +25 -0
- package/dist/client/{eventDetails-DzMskXYA.mjs → eventDetails-DIJYMzVg.mjs} +4 -6
- package/dist/client/eventListing-8jS0qGGC.mjs +26 -0
- package/dist/client/eventRegistration-DyseP_sY.mjs +31 -0
- package/dist/client/flightRegistrations-DjYm0Wz6.mjs +45 -0
- package/dist/client/{form-57k2JQnm.mjs → form-RTqunrpz.mjs} +9 -14
- package/dist/client/{form.client-CCl6CpRJ.mjs → form.client-D3_RF29v.mjs} +3 -3
- package/dist/client/{form.parts-BOJ1yDDf.mjs → form.parts-DWLf_3PF.mjs} +1 -1
- package/dist/client/gifting/client.mjs +1 -1
- package/dist/client/{headerSection-q_bEzfhW.mjs → headerSection-CyNGt23J.mjs} +2 -2
- package/dist/client/{newsletter-form.client-CiqKAmPs.mjs → newsletter-form.client-IfLup4o0.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-x1RzAMNO.mjs → newsletter-form.parts-DDD-LRyW.mjs} +1 -1
- package/dist/client/{newsletterForm-Cn7h4zFe.mjs → newsletterForm-o5wFBVHv.mjs} +10 -15
- package/dist/client/portal/client.mjs +5 -5
- package/dist/client/{product-detail.client-rWUvpVvZ.mjs → product-detail.client-5hNA8aKU.mjs} +1 -1
- package/dist/client/{product-list.client-J0wDOmKv.mjs → product-list.client-c-777ohj.mjs} +1 -1
- package/dist/client/{productDetail-LtCkMrJ0.mjs → productDetail-hXttfQhE.mjs} +3 -3
- package/dist/client/{productList-C0MLeh-v.mjs → productList-BPsYP_jA.mjs} +3 -3
- package/dist/client/{propsDecoder-CAmEkJ6Y.mjs → propsDecoder-Dc8j5i79.mjs} +2 -2
- package/dist/client/reactMount-DFQy3CmO.mjs +51 -0
- package/dist/client/{registry.server-Bf2YX_4v.mjs → registry.server-CMrdUGGv.mjs} +329 -283
- package/dist/client/rendering/client.mjs +36 -36
- package/dist/client/rendering/islandDelivery.flight.mjs +99 -0
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{routeIslandApiConfig-UdAlnZGQ.mjs → routeIslandApiConfig-DFjRKvzM.mjs} +1 -1
- package/dist/client/{runtimeResponse-Dg4XFsuM.mjs → runtimeResponse-BGU8sMZY.mjs} +1 -1
- package/dist/client/runtimeResponse-D2LT--Gj.mjs +3 -0
- package/dist/client/{shop-Dkn6EasY.mjs → shop-Ds47onRS.mjs} +3 -3
- package/dist/client/{shop-commerce-bo0Z6kwf.mjs → shop-commerce-B3PyRHaN.mjs} +10 -10
- package/dist/client/{shop-commerce-store-Ckxa4_jI.mjs → shop-commerce-store-D9CHihQv.mjs} +1 -1
- package/dist/client/{shop.client-B_GqU6_U.mjs → shop.client-RljK0qPB.mjs} +10 -10
- package/dist/client/{shop.interactive-C6L_Ig5F.mjs → shop.interactive-BH0xDlMF.mjs} +37 -12
- package/dist/client/{shopShared-CO1Y8lFd.mjs → shopShared-BEfD0e4m.mjs} +12 -15
- package/dist/client/{timetableModel-D62jfOxZ.mjs → timetableModel-BG7Ejxdr.mjs} +6 -6
- package/dist/client/{useAvailableSlots-CStfVmyY.mjs → useAvailableSlots-GP8tnAVW.mjs} +1 -1
- package/dist/client/{useDiscountApply-Ca2pHUDu.mjs → useDiscountApply-Cq07nTyG.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-AEifktGO.mjs → useDiscountCodeUi-CD82QX5i.mjs} +1 -1
- package/dist/client/{useEventPagination-uxnUWI2v.mjs → useEventPagination-spj7sGQP.mjs} +5 -5
- package/dist/client/{view-SVnWic7i.mjs → view-aAP2WbCR.mjs} +2 -2
- package/dist/client/{view-B6KSxQMO.mjs → view-oToSpu1N.mjs} +3 -3
- package/dist/preview-next/client/{ArrangementLookControls-kbdqYkWM.mjs → ArrangementLookControls-CoWdilcI.mjs} +7 -7
- package/dist/preview-next/client/{LocationPickerEnvironment-CZQ4vkRe.mjs → LocationPickerEnvironment-CwxRbAs2.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CP4w7T_0.mjs → MapLibreEditMap-CKjYUp_E.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-DI_LhsMQ.mjs → PreviewEditorSidebar-BNCrO6PQ.mjs} +117 -117
- package/dist/preview-next/client/{PreviewEditorUI-yyD-ZREP.mjs → PreviewEditorUI-inVZkLCd.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-YauP65Gi.mjs → PreviewShell-CFQlAHTe.mjs} +10 -15
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bl7jQMI1.mjs → SdkPreviewModeRuntime-Dgl7ktO4.mjs} +11 -9
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CQFRP9aM.mjs → SiteChromeCustomizeButton-DgDYHwkG.mjs} +362 -283
- package/dist/preview-next/client/{lucide-react-DkZ8fO-G.mjs → lucide-react-DbC1o6_9.mjs} +11 -11
- package/dist/preview-next/client/{previewAssistantSlot-DSR0IdAw.mjs → previewAssistantSlot-DRDu7Ndv.mjs} +268 -875
- package/dist/preview-next/client/{previewChromeSurface-uSnVzeNs.mjs → previewChromeSurface-K6Q5uEMC.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-6Q0RVJTQ.mjs → sdk-runtime-AGypzhcO.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-Cdx3kAGm.mjs → useAutosaveStatus-B2mn_l6c.mjs} +3 -3
- package/dist/preview-next/client/{useBlockCustomizeControls-ZrWdhcB6.mjs → useBlockCustomizeControls-CBXHo6ph.mjs} +5 -5
- package/dist/preview-next/client/{useOpenBlockForSetup-CK-GWb9k.mjs → useOpenBlockForSetup-BpZnBznt.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +3 -4
- package/dist/preview-next/{route-contract-BU1m9SV3.mjs → route-contract-jc2Bug-h.mjs} +36 -0
- package/dist/server/{Block.shared-4vx7wzxj.mjs → Block.shared-BHgQjX16.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-C3HLgqBF.mjs → ThemeScopeCore-Ck0dhZA6.mjs} +25 -2
- package/dist/server/{accessibleSurfaces-108nxyGc.mjs → accessibleSurfaces-D0q5tLSW.mjs} +56 -8
- package/dist/server/{bindings-TAQbo2P5.mjs → bindings-CAbTvrCZ.mjs} +1 -1
- package/dist/server/{client-DzCxEl3L.mjs → client-C-asG6Cf.mjs} +38 -2
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BO1M9Hdf.mjs → loadContent-DKerbSnI.mjs} +4 -4
- package/dist/server/{loadPage-BvWzmZcD.mjs → loadPage-XgtQR90Z.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-BawlEAd_.mjs → opaqueSurface-Yltv_u7r.mjs} +1 -1
- package/dist/server/{overrideResolution-fxuB1zZg.mjs → overrideResolution-Z5pwH-kz.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-DzduDSqY.mjs → pageRenderPlan-DQAo35og.mjs} +8 -7
- package/dist/server/{pageRuntimeSupport-BU8pwTNx.mjs → pageRuntimeSupport-g-K-FCHa.mjs} +1 -1
- package/dist/server/{pageShared-CSOJ8p8E.mjs → pageShared-7mPhqqXX.mjs} +325 -277
- package/dist/server/{prebuild-C5ZYo7wA.mjs → prebuild-C0m4KOT9.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BvbxqeKn.mjs → prefetchBlockData-DcLKHfHG.mjs} +2 -2
- package/dist/server/{registry-Fv-7D8o2.mjs → registry-7_0_lUrh.mjs} +41 -796
- 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/islandDelivery.script.mjs +19 -0
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-xPgkvoWS.mjs → resolveBlockData-q3WnpvyZ.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/{validation-DddhgNdb.mjs → validation-CSMS6XmP.mjs} +3 -3
- package/dist/server/{version-D_W2mt8w.mjs → version-DWeqmTXc.mjs} +1 -1
- package/dist/styles/index.css +9 -0
- package/package.json +10 -6
- package/dist/client/BlocksIslandsHydrator-qq4Vhs7k.mjs +0 -296
- package/dist/client/bookingForm-B1Fc62Sl.mjs +0 -34
- package/dist/client/eventCombined-DFSVDJ3D.mjs +0 -28
- package/dist/client/eventListing-CpFFcAUr.mjs +0 -29
- package/dist/client/eventRegistration-BipMUOCw.mjs +0 -34
- package/dist/client/reactMount-BGJVsHRb.mjs +0 -28
- package/dist/client/runtimeResponse-BP-L6exS.mjs +0 -3
- package/dist/client/{context-DQnTyApV.mjs → context-Xhf81Q-c.mjs} +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as toPageHydrationBootstrapConfig, t as PageContent } from "../../pageShared-
|
|
1
|
+
import { n as toPageHydrationBootstrapConfig, t as PageContent } from "../../pageShared-7mPhqqXX.mjs";
|
|
2
2
|
export { PageContent, toPageHydrationBootstrapConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as loadPageWithDeps, t as loadPage } from "../../loadPage-
|
|
1
|
+
import { n as loadPageWithDeps, t as loadPage } from "../../loadPage-XgtQR90Z.mjs";
|
|
2
2
|
export { loadPage, loadPageWithDeps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as invalidRenderableBlock, c as readSdkPreviewPublishedPlacement, d as siteLocationRenderContext, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, t as buildPageOutline, u as sanitizeSdkRuntimeBlockContent } from "../../pageRuntimeSupport-
|
|
1
|
+
import { a as invalidRenderableBlock, c as readSdkPreviewPublishedPlacement, d as siteLocationRenderContext, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, t as buildPageOutline, u as sanitizeSdkRuntimeBlockContent } from "../../pageRuntimeSupport-g-K-FCHa.mjs";
|
|
2
2
|
export { buildPageOutline, buildRenderablePageOutline, buildSiteRenderSupport, collectMediaAssetSidecar, invalidRenderableBlock, projectRenderablePageOutline, readInvalidBlockAdmission, readSdkPreviewPublishedPlacement, resolveSdkBlockManifest, sanitizeSdkRuntimeBlockContent, siteLocationRenderContext };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region ../blocks/src/system/runtime/islands/islandDelivery.script.tsx
|
|
4
|
+
/**
|
|
5
|
+
* Hosts that render without server components (plain SSR, static markup, client trees)
|
|
6
|
+
* write the props as JSON beside the fallback, where the island runtime reads them.
|
|
7
|
+
*/
|
|
8
|
+
function IslandDelivery({ as, rootProps, transport, children }) {
|
|
9
|
+
return React.createElement(as, rootProps, /* @__PURE__ */ jsx("script", {
|
|
10
|
+
type: "application/json",
|
|
11
|
+
"data-rb-island-props": true,
|
|
12
|
+
dangerouslySetInnerHTML: { __html: serializeTransportForScript(transport) }
|
|
13
|
+
}), children);
|
|
14
|
+
}
|
|
15
|
+
function serializeTransportForScript(transport) {
|
|
16
|
+
return JSON.stringify(transport).replace(/</g, "\\u003c");
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { IslandDelivery };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as MissingBlockOverrideError } from "../pageShared-
|
|
1
|
+
import { d as MissingBlockOverrideError } from "../pageShared-7mPhqqXX.mjs";
|
|
2
2
|
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE } from "../themeAdmission-DGSAlFUK.mjs";
|
|
3
3
|
import { n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations } from "../overrides-CD4d-1w7.mjs";
|
|
4
|
-
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, r as Layout, t as BlockContent } from "../Block.shared-
|
|
5
|
-
import { i as Page, n as collectUsedBlockKindsFromPageOutline, r as resolveBlockOverridesForPage, t as buildPageBlockKindIndex } from "../overrideResolution-
|
|
4
|
+
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, r as Layout, t as BlockContent } from "../Block.shared-BHgQjX16.mjs";
|
|
5
|
+
import { i as Page, n as collectUsedBlockKindsFromPageOutline, r as resolveBlockOverridesForPage, t as buildPageBlockKindIndex } from "../overrideResolution-Z5pwH-kz.mjs";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/components/Block.server.tsx
|
|
8
8
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { f as resolveAuthoredLinkHref } from "./pageRenderPlan-
|
|
2
|
-
import { $ as RichText$2, Oi as parseFieldDefinition, at as resolveImageUrlWithContext$1, ci as sanitizeHref, it as resolveImageUrl$1, nt as computeMediaTransformStyle, rt as resolveImageSourceSetWithContext$1, st as buildResolveImageUrlContext } from "./registry-
|
|
1
|
+
import { f as resolveAuthoredLinkHref } from "./pageRenderPlan-DQAo35og.mjs";
|
|
2
|
+
import { $ as RichText$2, Oi as parseFieldDefinition, at as resolveImageUrlWithContext$1, ci as sanitizeHref, it as resolveImageUrl$1, nt as computeMediaTransformStyle, rt as resolveImageSourceSetWithContext$1, st as buildResolveImageUrlContext } from "./registry-7_0_lUrh.mjs";
|
|
3
3
|
import { _ as parseMediaIdentifier, a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, g as parseCanonicalMediaIdentifier, h as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-Brn9FW5s.mjs";
|
|
4
|
-
import { d as MissingBlockOverrideError, f as PageRenderer, g as buildThemeRuntime, h as toBlocksMediaAssets, l as ThemeScope, m as toBlocksImageResolveContextInput, n as toPageHydrationBootstrapConfig, p as toBlocksPageRendererDataContext, t as PageContent, u as EditorPageRenderer } from "./pageShared-
|
|
5
|
-
import { _ as deriveFieldValidationPlan, g as admitLayoutGridForPlan, v as projectRepeaterGridLayout$1, y as projectRepeaterGridLayoutForRendering$1 } from "./pageRuntimeSupport-
|
|
4
|
+
import { d as MissingBlockOverrideError, f as PageRenderer, g as buildThemeRuntime, h as toBlocksMediaAssets, l as ThemeScope, m as toBlocksImageResolveContextInput, n as toPageHydrationBootstrapConfig, p as toBlocksPageRendererDataContext, t as PageContent, u as EditorPageRenderer } from "./pageShared-7mPhqqXX.mjs";
|
|
5
|
+
import { _ as deriveFieldValidationPlan, g as admitLayoutGridForPlan, v as projectRepeaterGridLayout$1, y as projectRepeaterGridLayoutForRendering$1 } from "./pageRuntimeSupport-g-K-FCHa.mjs";
|
|
6
6
|
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
|
|
7
|
-
import { t as loadPage } from "./loadPage-
|
|
7
|
+
import { t as loadPage } from "./loadPage-XgtQR90Z.mjs";
|
|
8
8
|
import { n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations } from "./overrides-CD4d-1w7.mjs";
|
|
9
|
-
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-
|
|
10
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
9
|
+
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-BHgQjX16.mjs";
|
|
10
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-DKerbSnI.mjs";
|
|
11
11
|
import "react";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-
|
|
1
|
+
import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-DcLKHfHG.mjs";
|
|
2
2
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-CdI7NvAW.mjs";
|
|
3
3
|
import { a as defineOwnDataProperty, i as resolveDataLoaderBlockContent, n as getDataLoaderOwnerPageId, t as createDataLoaderContext } from "./dataLoaderContext-B3fXA54R.mjs";
|
|
4
4
|
//#region src/data/dataLoaderValue.ts
|
package/dist/server/server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createRiverbankClient } from "./client-
|
|
2
|
-
import { t as loadPage } from "./loadPage-
|
|
3
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
1
|
+
import { t as createRiverbankClient } from "./client-C-asG6Cf.mjs";
|
|
2
|
+
import { t as loadPage } from "./loadPage-XgtQR90Z.mjs";
|
|
3
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-DKerbSnI.mjs";
|
|
4
4
|
export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { M as onColorTokenName, N as getTextColorForBackground, W as hexToRgb, _ as unsafeAsOpaqueButtonColourToken, ht as textColorValue, i as formatButtonColourContractError, j as isOnColorBackgroundCandidateToken, n as compileButtonColourStates, tt as surfaceForegroundDeclarations, x as buttonVariantIdSchema } from "./resolveButtonColourStates-Cn6j8Ee0.mjs";
|
|
2
|
-
import { A as cardBorderDeclarations, C as generateCheckableCss, D as resolvedButtonFocusDeclarations, E as resolvedButtonColourDeclarations, O as generateShadowCssVars, S as generateInputGroupCss, T as RESOLVED_BUTTON_DISABLED_DECLARATIONS, b as INPUT_GROUP_FOCUS_SELECTOR, f as THEME_RADIUS_CSS_VARS, h as generateStatusCss, i as compileCustomCssRules, j as cardDecorationPseudoRules, k as renderCssDeclarations, l as parseCustomCssRules, m as generateProgressCss, p as generateTypographyCss, t as ThemeScopeCore, u as generateAllBlockVarsCss, w as generateOpaquePanelCss, x as INPUT_GROUP_SELECTOR, y as INPUT_GROUP_ERROR_SELECTOR } from "./ThemeScopeCore-
|
|
3
|
-
import { z } from "zod";
|
|
2
|
+
import { A as cardBorderDeclarations, C as generateCheckableCss, D as resolvedButtonFocusDeclarations, E as resolvedButtonColourDeclarations, O as generateShadowCssVars, S as generateInputGroupCss, T as RESOLVED_BUTTON_DISABLED_DECLARATIONS, b as INPUT_GROUP_FOCUS_SELECTOR, f as THEME_RADIUS_CSS_VARS, h as generateStatusCss, i as compileCustomCssRules, j as cardDecorationPseudoRules, k as renderCssDeclarations, l as parseCustomCssRules, m as generateProgressCss, p as generateTypographyCss, t as ThemeScopeCore, u as generateAllBlockVarsCss, w as generateOpaquePanelCss, x as INPUT_GROUP_SELECTOR, y as INPUT_GROUP_ERROR_SELECTOR } from "./ThemeScopeCore-Ck0dhZA6.mjs";
|
|
4
3
|
import * as React$1 from "react";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { z } from "zod";
|
|
6
6
|
//#region ../theme-core/src/cards/core.ts
|
|
7
7
|
/**
|
|
8
8
|
* Core Card CSS Generator
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as builtinTransformDefinitions } from "./pageRenderPlan-
|
|
2
|
-
import { Aa as NodeSchema, Ai as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Fa as builtInBlockKindsSchema, Ia as fieldSchema, La as validateManifestLookField, Na as blockCategoryEnum, Pa as blockSectionDeclarationShape, t as getBlockDefinition, to as parseMailingListProviderScope } from "./registry-
|
|
1
|
+
import { u as builtinTransformDefinitions } from "./pageRenderPlan-DQAo35og.mjs";
|
|
2
|
+
import { Aa as NodeSchema, Ai as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Fa as builtInBlockKindsSchema, Ia as fieldSchema, La as validateManifestLookField, Na as blockCategoryEnum, Pa as blockSectionDeclarationShape, t as getBlockDefinition, to as parseMailingListProviderScope } from "./registry-7_0_lUrh.mjs";
|
|
3
3
|
import { a as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-t6gs0cB7.mjs";
|
|
4
4
|
import { r as footerModeSchema } from "./mode-bkFS8glh.mjs";
|
|
5
5
|
import { a as ALLOWED_TRANSFORM_IDS_SET, r as ALLOWED_NODE_TYPES_SET, t as titleSourceValueSchema } from "./titleSourceSchema-DwKJfMYb.mjs";
|
|
6
6
|
import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-Cqp13TKc.mjs";
|
|
7
|
-
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-
|
|
7
|
+
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-DcLKHfHG.mjs";
|
|
8
8
|
import { n as BINDING_TRANSFORM_VALUES$1 } from "./bindings-DhmIW3Er.mjs";
|
|
9
9
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-CdI7NvAW.mjs";
|
|
10
10
|
import { i as safeParseRouteTemplate, t as describeRouteTemplateParseError } from "./routeTemplate-AsKQwa47.mjs";
|
package/dist/styles/index.css
CHANGED
|
@@ -14589,6 +14589,15 @@
|
|
|
14589
14589
|
}
|
|
14590
14590
|
}
|
|
14591
14591
|
|
|
14592
|
+
/* These panels own their paint; opaquePanels publishes its text and button pair. */
|
|
14593
|
+
:where(.theme-scope) :where([data-block='offerings-preview']) .event-quick-date {
|
|
14594
|
+
background: rgb(var(--tb-surface));
|
|
14595
|
+
}
|
|
14596
|
+
|
|
14597
|
+
:where(.theme-scope) :where([data-block='offerings-preview']) .offerings-preview-card--default {
|
|
14598
|
+
background: rgb(var(--tb-surface));
|
|
14599
|
+
}
|
|
14600
|
+
|
|
14592
14601
|
|
|
14593
14602
|
/* =============================================================================
|
|
14594
14603
|
* Featured-editorial testimonial compositions, promoted from the Fran André
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riverbankcms/sdk",
|
|
3
|
-
"version": "0.169.
|
|
3
|
+
"version": "0.169.1",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"**/*.css"
|
|
6
6
|
],
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
"#sdk-gifting-client": {
|
|
21
21
|
"types": "./dist/_dts/sdk/src/gifting/client.d.ts",
|
|
22
22
|
"import": "./dist/client/gifting/client.mjs"
|
|
23
|
+
},
|
|
24
|
+
"#island-delivery": {
|
|
25
|
+
"react-server": "./dist/client/rendering/islandDelivery.flight.mjs",
|
|
26
|
+
"default": "./dist/server/rendering/islandDelivery.script.mjs"
|
|
23
27
|
}
|
|
24
28
|
},
|
|
25
29
|
"exports": {
|
|
@@ -233,7 +237,7 @@
|
|
|
233
237
|
"build": "node scripts/build.mjs",
|
|
234
238
|
"build:runtime": "node scripts/build.mjs --runtime-only",
|
|
235
239
|
"dev": "node scripts/build.mjs --watch",
|
|
236
|
-
"typecheck": "
|
|
240
|
+
"typecheck": "cd ../.. && bash scripts/run-package-typecheck.sh packages/sdk",
|
|
237
241
|
"check:declaration-hygiene": "node scripts/check-declaration-hygiene.mjs",
|
|
238
242
|
"check:packed-exports": "node scripts/check-packed-exports.mjs",
|
|
239
243
|
"check:authority": "node scripts/check-no-cli-authority.mjs",
|
|
@@ -294,12 +298,12 @@
|
|
|
294
298
|
"@testing-library/react": "^16.3.2",
|
|
295
299
|
"@types/node": "^22.18.5",
|
|
296
300
|
"@types/prompts": "^2.4.9",
|
|
297
|
-
"@types/react": "^19.
|
|
298
|
-
"@types/react-dom": "^19.
|
|
301
|
+
"@types/react": "^19.3.0",
|
|
302
|
+
"@types/react-dom": "^19.3.0",
|
|
299
303
|
"ai": "^6.0.208",
|
|
300
|
-
"happy-dom": "^
|
|
304
|
+
"happy-dom": "^21.0.4",
|
|
301
305
|
"lucide-react": "^1.21.0",
|
|
302
|
-
"next": "^16.
|
|
306
|
+
"next": "^16.4.3",
|
|
303
307
|
"typescript": "^6.0.3"
|
|
304
308
|
},
|
|
305
309
|
"repository": {
|
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { n as containsSurfaceTransport } from "./surfaceTransportMarker-BuwkYxsI.mjs";
|
|
3
|
-
import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
4
|
-
import { r as toBlocksMediaAssets } from "./mediaAssets-B99AP7ai.mjs";
|
|
5
|
-
import { useEffect } from "react";
|
|
6
|
-
//#region src/rendering/islands/deferredVideoEmbeds.ts
|
|
7
|
-
const DEFERRED_IFRAME_SELECTOR = "iframe[data-rb-video-embed-deferred=\"true\"]";
|
|
8
|
-
const WRAPPER_SELECTOR = "[data-rb-video-embed-wrapper=\"true\"]";
|
|
9
|
-
const DEFERRED_SRC_ATTRIBUTE = "data-rb-video-embed-src";
|
|
10
|
-
const LOADED_ATTRIBUTE = "data-rb-video-embed-loaded";
|
|
11
|
-
const OBSERVER_ROOT_MARGIN = "800px";
|
|
12
|
-
let observer = null;
|
|
13
|
-
let observedTargets = /* @__PURE__ */ new WeakMap();
|
|
14
|
-
function enhanceDeferredVideoEmbeds(root = document) {
|
|
15
|
-
const iframes = Array.from(root.querySelectorAll(DEFERRED_IFRAME_SELECTOR));
|
|
16
|
-
if (iframes.length === 0) return;
|
|
17
|
-
if (typeof IntersectionObserver === "undefined") {
|
|
18
|
-
iframes.forEach(loadDeferredIframe);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const sharedObserver = getOrCreateObserver();
|
|
22
|
-
iframes.forEach((iframe) => {
|
|
23
|
-
if (iframe.getAttribute("src")) {
|
|
24
|
-
markLoaded(iframe);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const target = getObservationTarget(iframe);
|
|
28
|
-
if (observedTargets.has(target)) return;
|
|
29
|
-
observedTargets.set(target, iframe);
|
|
30
|
-
sharedObserver.observe(target);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function getOrCreateObserver() {
|
|
34
|
-
if (observer) return observer;
|
|
35
|
-
observer = new IntersectionObserver((entries) => {
|
|
36
|
-
for (const entry of entries) {
|
|
37
|
-
if (!entry.isIntersecting) continue;
|
|
38
|
-
const iframe = observedTargets.get(entry.target) ?? findDeferredIframe(entry.target);
|
|
39
|
-
observer?.unobserve(entry.target);
|
|
40
|
-
observedTargets.delete(entry.target);
|
|
41
|
-
if (!iframe) continue;
|
|
42
|
-
loadDeferredIframe(iframe);
|
|
43
|
-
}
|
|
44
|
-
}, { rootMargin: OBSERVER_ROOT_MARGIN });
|
|
45
|
-
return observer;
|
|
46
|
-
}
|
|
47
|
-
function getObservationTarget(iframe) {
|
|
48
|
-
return iframe.closest(WRAPPER_SELECTOR) ?? iframe;
|
|
49
|
-
}
|
|
50
|
-
function findDeferredIframe(target) {
|
|
51
|
-
if (target instanceof HTMLIFrameElement) return target.matches(DEFERRED_IFRAME_SELECTOR) ? target : null;
|
|
52
|
-
return target.querySelector(DEFERRED_IFRAME_SELECTOR);
|
|
53
|
-
}
|
|
54
|
-
function loadDeferredIframe(iframe) {
|
|
55
|
-
if (iframe.getAttribute("src")) {
|
|
56
|
-
markLoaded(iframe);
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
const src = iframe.getAttribute(DEFERRED_SRC_ATTRIBUTE);
|
|
60
|
-
if (!isSafeHttpsUrl(src)) return;
|
|
61
|
-
iframe.setAttribute("src", src);
|
|
62
|
-
markLoaded(iframe);
|
|
63
|
-
}
|
|
64
|
-
function markLoaded(iframe) {
|
|
65
|
-
iframe.removeAttribute("data-rb-video-embed-deferred");
|
|
66
|
-
iframe.setAttribute(LOADED_ATTRIBUTE, "true");
|
|
67
|
-
}
|
|
68
|
-
function isSafeHttpsUrl(value) {
|
|
69
|
-
if (!value) return false;
|
|
70
|
-
try {
|
|
71
|
-
return new URL(value).protocol === "https:";
|
|
72
|
-
} catch {
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/rendering/islands/hydrateBlocksIslands.ts
|
|
78
|
-
const defaultEnhancerLoaders = {
|
|
79
|
-
accordion: () => import("./accordion-BCtVxnDZ.mjs"),
|
|
80
|
-
headerSection: () => import("./headerSection-q_bEzfhW.mjs"),
|
|
81
|
-
carousel: () => import("./carousel-DW-HgjvT.mjs"),
|
|
82
|
-
form: () => import("./form-57k2JQnm.mjs"),
|
|
83
|
-
"booking-form": () => import("./bookingForm-B1Fc62Sl.mjs"),
|
|
84
|
-
"event-registration": () => import("./eventRegistration-BipMUOCw.mjs"),
|
|
85
|
-
"event-details": () => import("./eventDetails-DzMskXYA.mjs"),
|
|
86
|
-
"event-listing": () => import("./eventListing-CpFFcAUr.mjs"),
|
|
87
|
-
"event-calendar": () => import("./eventCalendar-DGsdSF8J.mjs"),
|
|
88
|
-
"event-combined": () => import("./eventCombined-DFSVDJ3D.mjs"),
|
|
89
|
-
"product-list": () => import("./productList-C0MLeh-v.mjs"),
|
|
90
|
-
"product-detail": () => import("./productDetail-LtCkMrJ0.mjs"),
|
|
91
|
-
"cart": () => import("./cart-D1zWe4R7.mjs"),
|
|
92
|
-
"checkout": () => import("./checkout-fDCNZ3IT.mjs"),
|
|
93
|
-
shop: () => import("./shop-Dkn6EasY.mjs"),
|
|
94
|
-
"newsletter-form": () => import("./newsletterForm-Cn7h4zFe.mjs")
|
|
95
|
-
};
|
|
96
|
-
const DEFAULT_MAX_RETRIES = 2;
|
|
97
|
-
const RETRY_DELAYS_MS = [250, 1e3];
|
|
98
|
-
const EAGER_ISLAND_KINDS = /* @__PURE__ */ new Set([
|
|
99
|
-
"headerSection",
|
|
100
|
-
"event-registration",
|
|
101
|
-
"checkout"
|
|
102
|
-
]);
|
|
103
|
-
const RETRYABLE_ERROR_PATTERNS = [
|
|
104
|
-
/chunkloaderror/i,
|
|
105
|
-
/loading chunk/i,
|
|
106
|
-
/failed to fetch dynamically imported module/i,
|
|
107
|
-
/importing a module script failed/i
|
|
108
|
-
];
|
|
109
|
-
const DEFAULT_REQUIRED_ERROR_MESSAGE = "This section failed to load. Please refresh the page.";
|
|
110
|
-
function getNodeEnv() {
|
|
111
|
-
return globalThis.process?.env?.NODE_ENV;
|
|
112
|
-
}
|
|
113
|
-
function shouldShowRequiredFallback(element) {
|
|
114
|
-
return element.dataset.rbIslandRequired === "true";
|
|
115
|
-
}
|
|
116
|
-
function renderRequiredFallback(element) {
|
|
117
|
-
if (!shouldShowRequiredFallback(element)) return;
|
|
118
|
-
const message = element.dataset.rbIslandErrorMessage || DEFAULT_REQUIRED_ERROR_MESSAGE;
|
|
119
|
-
const className = element.dataset.rbIslandErrorClass || "rb-island-error";
|
|
120
|
-
const wrapper = document.createElement("div");
|
|
121
|
-
wrapper.className = className;
|
|
122
|
-
wrapper.setAttribute("role", "alert");
|
|
123
|
-
wrapper.textContent = message;
|
|
124
|
-
element.replaceChildren(wrapper);
|
|
125
|
-
}
|
|
126
|
-
function resolveLoaders(options) {
|
|
127
|
-
if (!options.loaders) return defaultEnhancerLoaders;
|
|
128
|
-
return {
|
|
129
|
-
...defaultEnhancerLoaders,
|
|
130
|
-
...options.loaders
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
function isIslandKind(value, loaders) {
|
|
134
|
-
return value in loaders;
|
|
135
|
-
}
|
|
136
|
-
async function loadEnhancer(kind, loaders) {
|
|
137
|
-
return loaders[kind]();
|
|
138
|
-
}
|
|
139
|
-
function getIslandPropsScript(root) {
|
|
140
|
-
return root.querySelector("script[type=\"application/json\"][data-rb-island-props]");
|
|
141
|
-
}
|
|
142
|
-
function parseIslandProps(root) {
|
|
143
|
-
const script = getIslandPropsScript(root);
|
|
144
|
-
if (!script) return {};
|
|
145
|
-
const raw = script.textContent ?? "";
|
|
146
|
-
if (!raw.trim()) return {};
|
|
147
|
-
try {
|
|
148
|
-
return JSON.parse(raw);
|
|
149
|
-
} catch (error) {
|
|
150
|
-
if (getNodeEnv() !== "production") console.warn("[sdk:islands] Failed to parse island props JSON", error);
|
|
151
|
-
throw error;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
function getAttemptCount(element) {
|
|
155
|
-
const raw = element.dataset.rbIslandAttempts;
|
|
156
|
-
const parsed = raw ? Number.parseInt(raw, 10) : 0;
|
|
157
|
-
return Number.isFinite(parsed) ? parsed : 0;
|
|
158
|
-
}
|
|
159
|
-
function isRetryableError(error) {
|
|
160
|
-
if (!error) return false;
|
|
161
|
-
if (error instanceof Error) {
|
|
162
|
-
if (error.name && /chunkloaderror/i.test(error.name)) return true;
|
|
163
|
-
return RETRYABLE_ERROR_PATTERNS.some((pattern) => pattern.test(error.message));
|
|
164
|
-
}
|
|
165
|
-
if (typeof error === "string") return RETRYABLE_ERROR_PATTERNS.some((pattern) => pattern.test(error));
|
|
166
|
-
return false;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Restore owner-produced surfaces before every codec, including custom loaders.
|
|
170
|
-
* The surface resolver is heavy, so callers load it only for props that carry
|
|
171
|
-
* a transport envelope, which keeps it out of the hydrator's first-load graph.
|
|
172
|
-
*/
|
|
173
|
-
async function restoreSurfaceTransport(rawProps) {
|
|
174
|
-
const { restoreRuntimeResponse } = await import("./runtimeResponse-BP-L6exS.mjs");
|
|
175
|
-
return restoreRuntimeResponse(rawProps);
|
|
176
|
-
}
|
|
177
|
-
function decodeLoadedProps(mod, props) {
|
|
178
|
-
if (mod.decode) return mod.decode(props);
|
|
179
|
-
return props;
|
|
180
|
-
}
|
|
181
|
-
function collectIslands(root, loaders) {
|
|
182
|
-
return Array.from(root.querySelectorAll("[data-rb-island]")).filter((el) => el.dataset.rbIslandMounted !== "true").filter((el) => el.dataset.rbIslandError !== "true").filter((el) => el.dataset.rbIslandEnhancing !== "true").map((element) => {
|
|
183
|
-
const kind = element.dataset.rbIsland ?? "";
|
|
184
|
-
if (!kind || !isIslandKind(kind, loaders)) return null;
|
|
185
|
-
return {
|
|
186
|
-
element,
|
|
187
|
-
kind
|
|
188
|
-
};
|
|
189
|
-
}).filter((it) => Boolean(it));
|
|
190
|
-
}
|
|
191
|
-
async function mountIsland(island, options) {
|
|
192
|
-
const { element, kind } = island;
|
|
193
|
-
const loaders = resolveLoaders(options);
|
|
194
|
-
if (!loaders[kind]) return;
|
|
195
|
-
const maxRetries = options.maxRetries ?? DEFAULT_MAX_RETRIES;
|
|
196
|
-
const attempt = getAttemptCount(element) + 1;
|
|
197
|
-
if (attempt > maxRetries + 1) {
|
|
198
|
-
element.dataset.rbIslandError = "true";
|
|
199
|
-
renderRequiredFallback(element);
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
element.dataset.rbIslandAttempts = String(attempt);
|
|
203
|
-
element.dataset.rbIslandEnhancing = "true";
|
|
204
|
-
try {
|
|
205
|
-
const rawProps = parseIslandProps(element);
|
|
206
|
-
const [mod, restoredProps] = containsSurfaceTransport(rawProps) ? await Promise.all([loadEnhancer(kind, loaders), restoreSurfaceTransport(rawProps)]) : [await loadEnhancer(kind, loaders), rawProps];
|
|
207
|
-
const props = decodeLoadedProps(mod, restoredProps);
|
|
208
|
-
await mod.enhance(element, props);
|
|
209
|
-
element.dataset.rbIslandMounted = "true";
|
|
210
|
-
} catch (error) {
|
|
211
|
-
options.onError?.(error);
|
|
212
|
-
if (getNodeEnv() !== "production") console.warn(`[sdk:islands] Failed to enhance island kind="${kind}"`, error);
|
|
213
|
-
if (attempt <= maxRetries && isRetryableError(error)) {
|
|
214
|
-
const delay = RETRY_DELAYS_MS[Math.min(attempt - 1, RETRY_DELAYS_MS.length - 1)];
|
|
215
|
-
setTimeout(() => {
|
|
216
|
-
mountIsland(island, options);
|
|
217
|
-
}, delay);
|
|
218
|
-
} else {
|
|
219
|
-
element.dataset.rbIslandError = "true";
|
|
220
|
-
renderRequiredFallback(element);
|
|
221
|
-
}
|
|
222
|
-
} finally {
|
|
223
|
-
element.dataset.rbIslandEnhancing = "false";
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
function hydrateBlocksIslands(options = {}) {
|
|
227
|
-
const root = options.root ?? document;
|
|
228
|
-
enhanceDeferredVideoEmbeds(root);
|
|
229
|
-
const loaders = resolveLoaders(options);
|
|
230
|
-
const islands = collectIslands(root, loaders);
|
|
231
|
-
if (islands.length === 0) return;
|
|
232
|
-
const run = (island) => {
|
|
233
|
-
mountIsland(island, options);
|
|
234
|
-
};
|
|
235
|
-
const eager = islands.filter((island) => EAGER_ISLAND_KINDS.has(island.kind));
|
|
236
|
-
const lazy = islands.filter((island) => !EAGER_ISLAND_KINDS.has(island.kind));
|
|
237
|
-
eager.forEach(run);
|
|
238
|
-
if (lazy.length === 0) return;
|
|
239
|
-
if (typeof IntersectionObserver === "undefined") {
|
|
240
|
-
lazy.forEach(run);
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
const observer = new IntersectionObserver((entries) => {
|
|
244
|
-
for (const entry of entries) {
|
|
245
|
-
if (!entry.isIntersecting) continue;
|
|
246
|
-
const element = entry.target;
|
|
247
|
-
observer.unobserve(element);
|
|
248
|
-
const kind = element.dataset.rbIsland;
|
|
249
|
-
if (!kind || !isIslandKind(kind, loaders)) continue;
|
|
250
|
-
run({
|
|
251
|
-
element,
|
|
252
|
-
kind
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
}, { rootMargin: "200px" });
|
|
256
|
-
lazy.forEach((island) => observer.observe(island.element));
|
|
257
|
-
}
|
|
258
|
-
//#endregion
|
|
259
|
-
//#region src/rendering/islands/BlocksIslandsHydrator.tsx
|
|
260
|
-
let hasStartedGlobalHydration = false;
|
|
261
|
-
let globalObserver = null;
|
|
262
|
-
let globalQueued = false;
|
|
263
|
-
function startGlobalHydration() {
|
|
264
|
-
if (hasStartedGlobalHydration) return;
|
|
265
|
-
hasStartedGlobalHydration = true;
|
|
266
|
-
const schedule = () => {
|
|
267
|
-
if (globalQueued) return;
|
|
268
|
-
globalQueued = true;
|
|
269
|
-
requestAnimationFrame(() => {
|
|
270
|
-
globalQueued = false;
|
|
271
|
-
hydrateBlocksIslands();
|
|
272
|
-
});
|
|
273
|
-
};
|
|
274
|
-
schedule();
|
|
275
|
-
globalObserver = new MutationObserver(() => {
|
|
276
|
-
schedule();
|
|
277
|
-
});
|
|
278
|
-
globalObserver.observe(document.documentElement, {
|
|
279
|
-
childList: true,
|
|
280
|
-
subtree: true
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
function BlocksIslandsHydrator(props = {}) {
|
|
284
|
-
const imageResolveContext = buildResolveImageUrlContext({
|
|
285
|
-
...props,
|
|
286
|
-
mediaAssets: toBlocksMediaAssets(props.mediaAssets)
|
|
287
|
-
});
|
|
288
|
-
if (props.siteId || props.supabaseUrl || props.mediaAssets?.length) setContextResolveImageUrlContext(imageResolveContext);
|
|
289
|
-
useEffect(() => {
|
|
290
|
-
startGlobalHydration();
|
|
291
|
-
return () => {};
|
|
292
|
-
}, []);
|
|
293
|
-
return null;
|
|
294
|
-
}
|
|
295
|
-
//#endregion
|
|
296
|
-
export { BlocksIslandsHydrator as t };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as BookingFormClient } from "./booking-form.client-Cr5G-HHO.mjs";
|
|
3
|
-
import { t as BlockApiProvider } from "./context-DQnTyApV.mjs";
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-CAmEkJ6Y.mjs";
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UdAlnZGQ.mjs";
|
|
7
|
-
import "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
//#region src/rendering/islands/enhancers/bookingForm.tsx
|
|
10
|
-
const decode = defineIslandPropsDecoder("booking-form");
|
|
11
|
-
const enhance = (root, props) => {
|
|
12
|
-
const { apiBaseUrl, portalToken } = props;
|
|
13
|
-
if (!props.render.hydration.formId) throw new Error("[sdk:islands] booking-form requires formId");
|
|
14
|
-
const siteId = props.siteId;
|
|
15
|
-
if (!siteId) throw new Error("[sdk:islands] booking-form requires siteId");
|
|
16
|
-
if (!apiBaseUrl) throw new Error("[sdk:islands] booking-form requires apiBaseUrl");
|
|
17
|
-
const apiConfig = buildRouteIslandApiConfig({
|
|
18
|
-
apiBaseUrl,
|
|
19
|
-
readAuthority: props.readAuthority,
|
|
20
|
-
portalToken,
|
|
21
|
-
siteId
|
|
22
|
-
});
|
|
23
|
-
return mountReactIsland(root, ({ root: reactRoot }) => {
|
|
24
|
-
reactRoot.render(/* @__PURE__ */ jsx(BlockApiProvider, {
|
|
25
|
-
config: {
|
|
26
|
-
...apiConfig,
|
|
27
|
-
pageNavigation: props.render.hydration.pageNavigation
|
|
28
|
-
},
|
|
29
|
-
children: /* @__PURE__ */ jsx(BookingFormClient, { ...props })
|
|
30
|
-
}));
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
//#endregion
|
|
34
|
-
export { decode, enhance };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-DQnTyApV.mjs";
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-CAmEkJ6Y.mjs";
|
|
4
|
-
import { n as EventCombinedIslandClient } from "./EventCombined.client-CeYbNsch.mjs";
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UdAlnZGQ.mjs";
|
|
7
|
-
import "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
//#region src/rendering/islands/enhancers/eventCombined.tsx
|
|
10
|
-
const decode = defineIslandPropsDecoder("event-combined");
|
|
11
|
-
const enhance = (root, props) => {
|
|
12
|
-
const { siteId, apiBaseUrl, stage } = props;
|
|
13
|
-
if (!apiBaseUrl) throw new Error("[sdk:islands] event-combined requires apiBaseUrl");
|
|
14
|
-
const apiConfig = buildRouteIslandApiConfig({
|
|
15
|
-
readAuthority: props.readAuthority,
|
|
16
|
-
apiBaseUrl,
|
|
17
|
-
siteId,
|
|
18
|
-
stage
|
|
19
|
-
});
|
|
20
|
-
return mountReactIsland(root, ({ root: reactRoot }) => {
|
|
21
|
-
reactRoot.render(/* @__PURE__ */ jsx(BlockApiProvider, {
|
|
22
|
-
config: apiConfig,
|
|
23
|
-
children: /* @__PURE__ */ jsx(EventCombinedIslandClient, { ...props })
|
|
24
|
-
}));
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
//#endregion
|
|
28
|
-
export { decode, enhance };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-DQnTyApV.mjs";
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-CAmEkJ6Y.mjs";
|
|
4
|
-
import { t as EventListingClient } from "./EventListing.client-slpvrTrM.mjs";
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UdAlnZGQ.mjs";
|
|
7
|
-
import "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
//#region src/rendering/islands/enhancers/eventListing.tsx
|
|
10
|
-
const decode = defineIslandPropsDecoder("event-listing");
|
|
11
|
-
const enhance = (root, props) => {
|
|
12
|
-
const { siteId, apiBaseUrl, stage } = props;
|
|
13
|
-
if (!siteId) throw new Error("[sdk:islands] event-listing requires siteId");
|
|
14
|
-
if (!apiBaseUrl) throw new Error("[sdk:islands] event-listing requires apiBaseUrl");
|
|
15
|
-
const apiConfig = buildRouteIslandApiConfig({
|
|
16
|
-
readAuthority: props.readAuthority,
|
|
17
|
-
apiBaseUrl,
|
|
18
|
-
siteId,
|
|
19
|
-
stage
|
|
20
|
-
});
|
|
21
|
-
return mountReactIsland(root, ({ root: reactRoot }) => {
|
|
22
|
-
reactRoot.render(/* @__PURE__ */ jsx(BlockApiProvider, {
|
|
23
|
-
config: apiConfig,
|
|
24
|
-
children: /* @__PURE__ */ jsx(EventListingClient, { ...props })
|
|
25
|
-
}));
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { decode, enhance };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as EventRegistrationIslandClient } from "./event-registration.client-Dj3Kyp5X.mjs";
|
|
3
|
-
import { t as BlockApiProvider } from "./context-DQnTyApV.mjs";
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-CAmEkJ6Y.mjs";
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UdAlnZGQ.mjs";
|
|
7
|
-
import "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
//#region src/rendering/islands/enhancers/eventRegistration.tsx
|
|
10
|
-
const decode = defineIslandPropsDecoder("event-registration");
|
|
11
|
-
const enhance = (root, props) => {
|
|
12
|
-
const { siteId, apiBaseUrl, stage, portalToken, previewToken } = props;
|
|
13
|
-
if (!siteId) throw new Error("[sdk:islands] event-registration requires siteId");
|
|
14
|
-
if (!apiBaseUrl) throw new Error("[sdk:islands] event-registration requires apiBaseUrl");
|
|
15
|
-
const apiConfig = buildRouteIslandApiConfig({
|
|
16
|
-
readAuthority: props.readAuthority,
|
|
17
|
-
apiBaseUrl,
|
|
18
|
-
portalToken,
|
|
19
|
-
previewToken,
|
|
20
|
-
siteId,
|
|
21
|
-
stage
|
|
22
|
-
});
|
|
23
|
-
return mountReactIsland(root, ({ root: reactRoot }) => {
|
|
24
|
-
reactRoot.render(/* @__PURE__ */ jsx(BlockApiProvider, {
|
|
25
|
-
config: {
|
|
26
|
-
...apiConfig,
|
|
27
|
-
pageNavigation: props.render.hydration.pageNavigation
|
|
28
|
-
},
|
|
29
|
-
children: /* @__PURE__ */ jsx(EventRegistrationIslandClient, { ...props })
|
|
30
|
-
}));
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
//#endregion
|
|
34
|
-
export { decode, enhance };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { createRoot } from "react-dom/client";
|
|
3
|
-
//#region src/rendering/islands/enhancers/reactMount.ts
|
|
4
|
-
function mountReactIsland(root, render) {
|
|
5
|
-
if (root.dataset.rbReactMounted === "true") return;
|
|
6
|
-
const fallbackNodes = Array.from(root.childNodes);
|
|
7
|
-
const mount = document.createElement("div");
|
|
8
|
-
root.replaceChildren(mount);
|
|
9
|
-
const reactRoot = createRoot(mount);
|
|
10
|
-
try {
|
|
11
|
-
render({
|
|
12
|
-
mount,
|
|
13
|
-
root: reactRoot
|
|
14
|
-
});
|
|
15
|
-
} catch (error) {
|
|
16
|
-
reactRoot.unmount();
|
|
17
|
-
root.replaceChildren(...fallbackNodes);
|
|
18
|
-
delete root.dataset.rbReactMounted;
|
|
19
|
-
throw error;
|
|
20
|
-
}
|
|
21
|
-
root.dataset.rbReactMounted = "true";
|
|
22
|
-
return () => {
|
|
23
|
-
reactRoot.unmount();
|
|
24
|
-
delete root.dataset.rbReactMounted;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
export { mountReactIsland as t };
|