@riverbankcms/sdk 0.168.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-CiD_VVGM.d.ts → BlocksIslandsHydrator-DEhlJEwj.d.ts} +1 -1
- package/dist/_dts/{Page-Bj6VJRS5.d.ts → Page-BhCfStX1.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-ChpsnwDX.d.ts → SdkPreviewMode-DSYdsdmJ.d.ts} +2 -2
- package/dist/_dts/{client-C8mfUxrJ.d.ts → client-BZMn4Y99.d.ts} +39 -397
- package/dist/_dts/{content-types-_vXZyR4H.d.ts → content-types-EMK-E_r9.d.ts} +2 -2
- package/dist/_dts/{contracts-CJFfrVKU.d.ts → contracts-DjYsGY3B.d.ts} +4 -3
- package/dist/_dts/{footerPageOutline-CMegb23G.d.ts → footerPageOutline-BtYUi-m0.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D9YdAIMh.d.ts → generatePageMetadata-D_fNTi5r.d.ts} +2 -2
- package/dist/_dts/{index-BQXaZ7aY.d.ts → index-BR0i0c3G.d.ts} +4 -4
- package/dist/_dts/{index-Bpr-wT5k.d.ts → index-BV-qVnt7.d.ts} +2 -2
- package/dist/_dts/{index-C7_Rz8EY.d.ts → index-BYYhTQ_b.d.ts} +3 -3
- package/dist/_dts/{index-Vh8B9FSa.d.ts → index-BzguBJzR.d.ts} +1 -1
- package/dist/_dts/{index-Dgz6yhsy.d.ts → index-DgEwZ5WQ.d.ts} +1 -1
- package/dist/_dts/{index-Cx2BQlHL.d.ts → index-NaRauKDR.d.ts} +1 -1
- package/dist/_dts/{index-vR3p9Bu-.d.ts → index-QIbYMeI7.d.ts} +2 -2
- package/dist/_dts/{loadContent-dhWSgLeS.d.ts → loadContent-BmGH6NKl.d.ts} +7 -7
- package/dist/_dts/{request-BrYhNV9Z.d.ts → request-DssgRQSm.d.ts} +9558 -7863
- package/dist/_dts/{resolveBlockData-BfSHm8Ms.d.ts → resolveBlockData-5BqNxwL8.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-gZJ4i1wN.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-BB33-Spd.d.ts → types-DrAWDtqR.d.ts} +3 -3
- package/dist/_dts/{types-BVFXYtRg.d.ts → types-Z388-GR1.d.ts} +7 -7
- package/dist/_dts/{types-FOsJ-KYb.d.ts → types-cObpvZGF.d.ts} +2 -2
- package/dist/_dts/{validation-DckTc6TQ.d.ts → validation-hLr8zVrc.d.ts} +4 -4
- package/dist/client/BlocksIslandsHydrator-CN2GyuuA.mjs +410 -0
- package/dist/client/{BookingMailingListNote-Dsugoe-n.mjs → BookingMailingListNote-Br1VyHkP.mjs} +17 -6
- package/dist/client/{BookingQuestionFields-Bhh0cvsl.mjs → BookingQuestionFields-LLGCWjvU.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-CNe3ZjdC.mjs → CalendarNavigationChevron-DSnSBNeq.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-BeiZxEUJ.mjs → DemoBookingPortalAccess-Cilv5zdS.mjs} +65 -9
- package/dist/client/{EventCalendar.client-BL943-tl.mjs → EventCalendar.client-ucgdMS35.mjs} +9 -9
- package/dist/client/{EventCombined.client-BFVxECTp.mjs → EventCombined.client-BEdfJGpx.mjs} +7 -7
- package/dist/client/{EventItem-BIc4gjiD.mjs → EventItem-OpLehMpT.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-DTsVU6gc.mjs} +1 -1
- package/dist/client/{EventListing.client-CEFTC3jH.mjs → EventListing.client-8MFGI9BA.mjs} +3 -3
- package/dist/client/{EventListing.view-Bt2sBBms.mjs → EventListing.view-BCvRqU86.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-D9YBNb_E.mjs → EventRegistrationPayment-CqH3hE-k.mjs} +132 -62
- package/dist/client/{LocationMapActions-gqzt5gkW.mjs → LocationMapActions-BFp2uQQQ.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-13JQI7_z.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
- package/dist/client/{Page-D_M2Vxz3.mjs → Page-Bu5TJU3L.mjs} +53 -22
- package/dist/client/{StepIndicator-CaN8snZ8.mjs → StepIndicator-CR7_0yu4.mjs} +5 -4
- package/dist/client/{accessibleSurfaces-chpD4C2c.mjs → accessibleSurfaces-_7jkuinl.mjs} +56 -8
- package/dist/client/{accordion-DE7OG--d.mjs → accordion-DMItWylU.mjs} +6 -1
- package/dist/client/{booking-form.client-CS1PPjw7.mjs → booking-form.client-wd71DG19.mjs} +505 -217
- package/dist/client/{bookingForm-DE2CwIU9.mjs → bookingForm-Cyr2qeS1.mjs} +17 -17
- package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
- package/dist/client/bookings.mjs +16 -13
- package/dist/client/{carousel-DZyUdnFh.mjs → carousel-B5-Hzzif.mjs} +7 -9
- package/dist/client/{carousel.client-BD4DXMtI.mjs → carousel.client-eSSr1oYA.mjs} +2 -2
- package/dist/client/{cart-D7HkkNwe.mjs → cart-B-M5l__W.mjs} +3 -3
- package/dist/client/{cart.client-H4sv2TpD.mjs → cart.client-COAP4CEy.mjs} +1 -1
- package/dist/client/{checkout-2qVyG-Sh.mjs → checkout-ZHc8GfaG.mjs} +3 -3
- package/dist/client/{checkout.client-DAjrBZ74.mjs → checkout.client-DRralR3e.mjs} +1 -1
- package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-CY8qywXl.mjs} +3 -2
- package/dist/client/client.mjs +87 -4
- package/dist/client/{context-DXmIbXCK.mjs → context-Xhf81Q-c.mjs} +25 -3
- package/dist/client/{createLucideIcon-CIbxe9em.mjs → createLucideIcon-BrXgHVKN.mjs} +9 -9
- package/dist/client/{bookingQuestionValues-BjcyCru5.mjs → creditProducts-CMOmhWm2.mjs} +71 -11
- package/dist/client/{cta-DP_IBnq3.mjs → cta-CfuyGqXL.mjs} +2 -2
- package/dist/client/{dateFormatting-CwrkFZTr.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-DQXK-Fh6.mjs → demoPortalMagicLink-DQtwf_s2.mjs} +1 -1
- package/dist/client/{wizardSteps-CFulHWnT.mjs → display-DDNmyb0z.mjs} +920 -870
- package/dist/client/{enhanceHeaderSection-DheQj7rg.mjs → enhanceHeaderSection-D7gRy-pL.mjs} +3 -2
- package/dist/client/{event-details.client-C5UufcRp.mjs → event-details.client-DZZaoCUc.mjs} +1 -1
- package/dist/client/{event-registration.client-CMGg63IU.mjs → event-registration.client-CLBdHUfd.mjs} +59 -18
- package/dist/client/{eventCalendar-DlD0GCEy.mjs → eventCalendar-BY3AfYkK.mjs} +14 -17
- package/dist/client/eventCombined-86P2vQCb.mjs +25 -0
- package/dist/client/{eventDetails-DzuQYgmO.mjs → eventDetails-DIJYMzVg.mjs} +4 -6
- package/dist/client/eventListing-8jS0qGGC.mjs +26 -0
- package/dist/client/{eventRegistration-CjS3Zpjp.mjs → eventRegistration-DyseP_sY.mjs} +19 -19
- package/dist/client/flightRegistrations-DjYm0Wz6.mjs +45 -0
- package/dist/client/{form-DgQqm7T2.mjs → form-RTqunrpz.mjs} +9 -14
- package/dist/client/{form.client-BI9Dcsq5.mjs → form.client-D3_RF29v.mjs} +4 -4
- package/dist/client/{form.parts-DevF0L_A.mjs → form.parts-DWLf_3PF.mjs} +1 -1
- package/dist/client/{formatDate-DDyURjoe.mjs → formatDate-BGlhrmhF.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-DYIG6Pwb.mjs → headerSection-CyNGt23J.mjs} +2 -2
- package/dist/client/{newsletter-form.client-BWp7Y1e1.mjs → newsletter-form.client-IfLup4o0.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-Dg8s9NwJ.mjs → newsletter-form.parts-DDD-LRyW.mjs} +1 -1
- package/dist/client/{newsletterForm-DnPraMzx.mjs → newsletterForm-o5wFBVHv.mjs} +10 -15
- package/dist/client/{noop-ByFRHYQ2.mjs → noop-B_f7RqLD.mjs} +111 -2
- package/dist/client/portal/client.mjs +21 -13
- package/dist/client/{product-detail.client-BFAgHrdg.mjs → product-detail.client-5hNA8aKU.mjs} +1 -1
- package/dist/client/{product-list.client-DVrs_DyY.mjs → product-list.client-c-777ohj.mjs} +1 -1
- package/dist/client/{productDetail-D4rvl6Xg.mjs → productDetail-hXttfQhE.mjs} +3 -3
- package/dist/client/{productList-B8o5AOMX.mjs → productList-BPsYP_jA.mjs} +3 -3
- package/dist/client/{propsDecoder-hhotPP6P.mjs → propsDecoder-Dc8j5i79.mjs} +3 -3
- package/dist/client/reactMount-DFQy3CmO.mjs +51 -0
- package/dist/client/{registry.server-Ch3EpupA.mjs → registry.server-CMrdUGGv.mjs} +338 -289
- package/dist/client/rendering/client.mjs +39 -39
- package/dist/client/rendering/islandDelivery.flight.mjs +99 -0
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-C3LabQ1O.mjs → richText-coerce-BTurYEao.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CQGlxId8.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-rRXplPGZ.mjs → shop-Ds47onRS.mjs} +3 -3
- package/dist/client/{shop-commerce-VDbVaKY-.mjs → shop-commerce-B3PyRHaN.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DqdgJ8Zw.mjs → shop-commerce-store-D9CHihQv.mjs} +1 -1
- package/dist/client/{shop.client-DdwvMvaK.mjs → shop.client-RljK0qPB.mjs} +110 -31
- package/dist/client/{shop.interactive-C8OvFY06.mjs → shop.interactive-BH0xDlMF.mjs} +42 -533
- package/dist/client/{shopShared-BeuJiGPU.mjs → shopShared-BEfD0e4m.mjs} +12 -15
- package/dist/client/src-BozhJ43Z.mjs +3 -0
- package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
- package/dist/client/{timetableModel-Cko9LRKy.mjs → timetableModel-BG7Ejxdr.mjs} +12 -12
- package/dist/client/{useAvailableSlots-M6QIEiWf.mjs → useAvailableSlots-GP8tnAVW.mjs} +3 -3
- package/dist/client/{useDiscountApply-BJSnyO0f.mjs → useDiscountApply-Cq07nTyG.mjs} +5 -3
- package/dist/client/{useDiscountCodeUi-D3XnOSCi.mjs → useDiscountCodeUi-CD82QX5i.mjs} +1 -1
- package/dist/client/{useEventPagination-PhTIoFVX.mjs → useEventPagination-spj7sGQP.mjs} +6 -6
- package/dist/client/{view-L_mkgtnk.mjs → view-aAP2WbCR.mjs} +2 -3
- package/dist/client/{view-448wvvEY.mjs → view-oToSpu1N.mjs} +7 -7
- package/dist/preview-next/client/{ArrangementLookControls-BpvnOGlN.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-C0OtdWu_.mjs → PreviewEditorSidebar-BNCrO6PQ.mjs} +201 -151
- package/dist/preview-next/client/{PreviewEditorUI-Csc5vH5k.mjs → PreviewEditorUI-inVZkLCd.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-BOLH_pm-.mjs → PreviewShell-CFQlAHTe.mjs} +10 -15
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CKodLReY.mjs → SdkPreviewModeRuntime-Dgl7ktO4.mjs} +12 -9
- package/dist/preview-next/client/{SiteChromeCustomizeButton-BeEZpeKn.mjs → SiteChromeCustomizeButton-DgDYHwkG.mjs} +1418 -598
- package/dist/preview-next/client/{lucide-react-DkZ8fO-G.mjs → lucide-react-DbC1o6_9.mjs} +11 -11
- package/dist/preview-next/client/{previewAssistantSlot-BBdN5kfY.mjs → previewAssistantSlot-DRDu7Ndv.mjs} +684 -930
- package/dist/preview-next/client/{previewChromeSurface-VZtGwPuH.mjs → previewChromeSurface-K6Q5uEMC.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-kiZkMcuR.mjs → sdk-runtime-AGypzhcO.mjs} +2 -2
- package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-BiIHEeE0.mjs → useAutosaveStatus-B2mn_l6c.mjs} +3 -3
- package/dist/preview-next/client/{useBlockCustomizeControls-BuFLIpmX.mjs → useBlockCustomizeControls-CBXHo6ph.mjs} +5 -5
- package/dist/preview-next/client/{useOpenBlockForSetup-DlxYgmh_.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-C0sCvCYL.mjs → route-contract-jc2Bug-h.mjs} +83 -0
- package/dist/server/{Block.shared-Dnhc0Wu5.mjs → Block.shared-BHgQjX16.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-NAQ_zsFu.mjs → ThemeScopeCore-Ck0dhZA6.mjs} +31 -5
- package/dist/server/{accessibleSurfaces-108nxyGc.mjs → accessibleSurfaces-D0q5tLSW.mjs} +56 -8
- package/dist/server/{bindings-DLoZYUxG.mjs → bindings-CAbTvrCZ.mjs} +1 -1
- package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
- package/dist/server/{client-Bc8jI8zN.mjs → client-C-asG6Cf.mjs} +85 -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/{headerVariant-BwR9NV4b.mjs → headerVariant-8O5MvxIU.mjs} +2 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-D61gpqHB.mjs → loadContent-DKerbSnI.mjs} +4 -4
- package/dist/server/{loadPage-B4ZYpIcd.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-CDReKy2P.mjs → overrideResolution-Z5pwH-kz.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-ByVTA7-4.mjs → pageRenderPlan-DQAo35og.mjs} +9 -8
- package/dist/server/{pageRuntimeSupport-Dzz_Dze6.mjs → pageRuntimeSupport-g-K-FCHa.mjs} +2 -2
- package/dist/server/{pageShared-Dk5Ku6hs.mjs → pageShared-7mPhqqXX.mjs} +345 -289
- package/dist/server/{parseThemeForPersistence-pJPGfMrf.mjs → parseThemeForPersistence-BebSeE17.mjs} +1 -1
- package/dist/server/{prebuild-CW4M0WEZ.mjs → prebuild-C0m4KOT9.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bvx0SiIM.mjs → prefetchBlockData-DcLKHfHG.mjs} +2 -2
- package/dist/server/{registry-Bh0Y25zH.mjs → registry-7_0_lUrh.mjs} +305 -844
- 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-CnHHst9r.mjs → resolveBlockData-q3WnpvyZ.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{validation-D2bHWSxJ.mjs → validation-CSMS6XmP.mjs} +4 -4
- package/dist/server/{version-DkM1eAxG.mjs → version-DWeqmTXc.mjs} +1 -1
- package/dist/styles/index.css +15 -3
- package/package.json +10 -6
- package/dist/client/BlocksIslandsHydrator-DcwEaliO.mjs +0 -296
- package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
- package/dist/client/eventCombined-DoSi8p_l.mjs +0 -28
- package/dist/client/eventListing-CkiMjl0g.mjs +0 -29
- package/dist/client/reactMount-BGJVsHRb.mjs +0 -28
- package/dist/client/runtimeResponse-BP-L6exS.mjs +0 -3
- package/dist/client/src-CdRISvQp.mjs +0 -3
- package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
|
@@ -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,
|
|
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
|
package/dist/server/theme.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as themeSchema$1, t as parseThemeForPersistence } from "./parseThemeForPersistence-
|
|
1
|
+
import { n as themeSchema$1, t as parseThemeForPersistence } from "./parseThemeForPersistence-BebSeE17.mjs";
|
|
2
2
|
import * as fs from "fs/promises";
|
|
3
3
|
import * as path from "path";
|
|
4
4
|
//#region src/theme/loader.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as builtinTransformDefinitions } from "./pageRenderPlan-
|
|
2
|
-
import {
|
|
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
|
-
import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-
|
|
7
|
-
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-
|
|
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-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é
|
|
@@ -15188,7 +15197,8 @@
|
|
|
15188
15197
|
/* ===================================================== CALENDAR LIST */
|
|
15189
15198
|
.theme-scope :where([data-arrangement][data-mode="list"]) [data-slot="list"] { list-style: none; margin: 0; padding: 0; }
|
|
15190
15199
|
.theme-scope :where([data-arrangement="ledger"], [data-arrangement="timetable-rows"], [data-arrangement="compact"]) :is([data-slot="row"], [data-slot="row-continued"]) { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; column-gap: 1.25rem; align-items: center; padding-block: 1.125rem; }
|
|
15191
|
-
|
|
15200
|
+
/* A ledger leaves the date off a second session on the same day; the timetable repeats it, so each row reads on its own. */
|
|
15201
|
+
.theme-scope [data-arrangement="ledger"] [data-slot="row-continued"] [data-slot="date"] { visibility: hidden; }
|
|
15192
15202
|
.theme-scope :where([data-arrangement="ledger"], [data-arrangement="timetable-rows"], [data-arrangement="compact"]) [data-slot="date"] { grid-column: 1; }
|
|
15193
15203
|
.theme-scope :where([data-arrangement="ledger"], [data-arrangement="timetable-rows"], [data-arrangement="compact"]) [data-slot="what"] { grid-column: 2; }
|
|
15194
15204
|
.theme-scope :where([data-arrangement="ledger"], [data-arrangement="timetable-rows"], [data-arrangement="compact"]) [data-slot="action"] { grid-column: 3; justify-self: end; }
|
|
@@ -15409,6 +15419,8 @@
|
|
|
15409
15419
|
.theme-scope :is([data-slot="item-actions"], [data-slot="action"], .rb-feature-card .cta-row):not(:where([data-arrangement] *)) :is(a, button):only-child { padding: 0; min-height: 0; }
|
|
15410
15420
|
.theme-scope [data-arrangement] :is([data-slot="item-actions"], [data-slot="action"], .cta-row) :is(a, button):only-child:not(.button-primary, .button-secondary) { padding: 0; min-height: 0; }
|
|
15411
15421
|
.theme-scope [data-arrangement] [data-slot="more"] { grid-column: 1 / -1; }
|
|
15422
|
+
/* A group's "View all" link sits under its list; a group on its own panel spaces it with the panel's gap. */
|
|
15423
|
+
.theme-scope [data-arrangement] [data-list-group]:not([data-slot="panel"]) > [data-slot="more"] { display: inline-block; margin-top: 1.5rem; }
|
|
15412
15424
|
/* Capacity decoration is attached only to the places phrase. */
|
|
15413
15425
|
.theme-scope [data-arrangement] :is([data-availability="low"], [data-availability="full"]) [data-event-places]::before { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-right: 0.45em; border-radius: 50%; vertical-align: 0.1em; }
|
|
15414
15426
|
.theme-scope [data-arrangement] [data-availability="low"] [data-event-places]::before { background: var(--rb-surface-mark-color); }
|
|
@@ -21666,12 +21678,12 @@
|
|
|
21666
21678
|
@media (max-width: 767px) {
|
|
21667
21679
|
/* On phones the date is a line above the title, as on the session cards, so the session has the
|
|
21668
21680
|
* row's full width; the time and button take their own line under it. A row on the same day as the
|
|
21669
|
-
* one above leaves the date out. */
|
|
21681
|
+
* one above leaves the date out, except in the timetable, which repeats it on every row. */
|
|
21670
21682
|
[data-skin="brook"] [data-arrangement]:is([data-treat="rows"], [data-treat="rows-panel"], [data-treat="timetable"], [data-treat="week-list"]) :is([data-slot="row"], [data-slot="row-continued"]) { grid-template-columns: minmax(0, 1fr); row-gap: 0.375rem; }
|
|
21671
21683
|
[data-skin="brook"] [data-arrangement]:is([data-treat="rows"], [data-treat="rows-panel"], [data-treat="timetable"], [data-treat="week-list"]) :is([data-slot="date"], [data-slot="what"], [data-slot="time"], [data-slot="places"], [data-slot="action"]) { grid-column: 1; grid-row: auto; }
|
|
21672
21684
|
[data-skin="brook"] [data-arrangement]:is([data-treat="rows"], [data-treat="rows-panel"], [data-treat="timetable"], [data-treat="week-list"]) [data-slot="date"] { display: flex; flex-direction: row; align-items: baseline; justify-content: start; gap: 0.375rem; min-width: 0; padding: 0; border: 0; text-align: start; }
|
|
21673
21685
|
[data-skin="brook"] [data-arrangement]:is([data-treat="rows"], [data-treat="rows-panel"], [data-treat="timetable"], [data-treat="week-list"]) [data-slot="date"] [data-slot="day"] { font: 600 0.8125rem/1.2 var(--font-body); letter-spacing: 0.06em; color: var(--rb-surface-link-color); }
|
|
21674
|
-
[data-skin="brook"] [data-arrangement]:is([data-treat="rows"], [data-treat="rows-panel"], [data-treat="
|
|
21686
|
+
[data-skin="brook"] [data-arrangement]:is([data-treat="rows"], [data-treat="rows-panel"], [data-treat="week-list"]) [data-slot="row-continued"] [data-slot="date"] { display: none; }
|
|
21675
21687
|
[data-skin="brook"] [data-arrangement][data-treat="timetable"] :is([data-slot="row"], [data-slot="row-continued"]) > [data-slot="item-actions"] { grid-column: 1; grid-row: auto; margin-top: 0.375rem; }
|
|
21676
21688
|
}
|
|
21677
21689
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riverbankcms/sdk",
|
|
3
|
-
"version": "0.
|
|
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-DE7OG--d.mjs"),
|
|
80
|
-
headerSection: () => import("./headerSection-DYIG6Pwb.mjs"),
|
|
81
|
-
carousel: () => import("./carousel-DZyUdnFh.mjs"),
|
|
82
|
-
form: () => import("./form-DgQqm7T2.mjs"),
|
|
83
|
-
"booking-form": () => import("./bookingForm-DE2CwIU9.mjs"),
|
|
84
|
-
"event-registration": () => import("./eventRegistration-CjS3Zpjp.mjs"),
|
|
85
|
-
"event-details": () => import("./eventDetails-DzuQYgmO.mjs"),
|
|
86
|
-
"event-listing": () => import("./eventListing-CkiMjl0g.mjs"),
|
|
87
|
-
"event-calendar": () => import("./eventCalendar-DlD0GCEy.mjs"),
|
|
88
|
-
"event-combined": () => import("./eventCombined-DoSi8p_l.mjs"),
|
|
89
|
-
"product-list": () => import("./productList-B8o5AOMX.mjs"),
|
|
90
|
-
"product-detail": () => import("./productDetail-D4rvl6Xg.mjs"),
|
|
91
|
-
"cart": () => import("./cart-D7HkkNwe.mjs"),
|
|
92
|
-
"checkout": () => import("./checkout-2qVyG-Sh.mjs"),
|
|
93
|
-
shop: () => import("./shop-rRXplPGZ.mjs"),
|
|
94
|
-
"newsletter-form": () => import("./newsletterForm-DnPraMzx.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,62 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//#region ../blocks/src/system/runtime/api/creditProducts.ts
|
|
3
|
-
function assertNever(value) {
|
|
4
|
-
throw new Error(`Unhandled credit product case: ${String(value)}`);
|
|
5
|
-
}
|
|
6
|
-
function useCasesFromModules(modules) {
|
|
7
|
-
if (!modules) return [];
|
|
8
|
-
return [...modules.events ? ["event_pass"] : [], ...modules.appointments ? ["appointment_package"] : []];
|
|
9
|
-
}
|
|
10
|
-
function deriveUseCases(products, modules) {
|
|
11
|
-
if (products.length > 0) return products.map((product) => product.productUseCase);
|
|
12
|
-
return useCasesFromModules(modules);
|
|
13
|
-
}
|
|
14
|
-
function getCreditProductTypeLabel(useCase) {
|
|
15
|
-
switch (useCase) {
|
|
16
|
-
case "event_pass": return "Event pass";
|
|
17
|
-
case "appointment_package": return "Appointment package";
|
|
18
|
-
default: return assertNever(useCase);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function getCreditProductCreditUnit(useCase) {
|
|
22
|
-
switch (useCase) {
|
|
23
|
-
case "event_pass": return {
|
|
24
|
-
singular: "class",
|
|
25
|
-
plural: "classes",
|
|
26
|
-
perCreditSuffix: "class"
|
|
27
|
-
};
|
|
28
|
-
case "appointment_package": return {
|
|
29
|
-
singular: "credit",
|
|
30
|
-
plural: "credits",
|
|
31
|
-
perCreditSuffix: "credit"
|
|
32
|
-
};
|
|
33
|
-
default: return assertNever(useCase);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function getPortalCreditProductCreditNoun(useCase, count) {
|
|
37
|
-
switch (useCase) {
|
|
38
|
-
case "event_pass": return count === 1 ? "pass credit" : "pass credits";
|
|
39
|
-
case "appointment_package": return count === 1 ? "package credit" : "package credits";
|
|
40
|
-
default: return assertNever(useCase);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function deriveCreditProductLabels(products, options = {}) {
|
|
44
|
-
const style = options.style ?? "generic";
|
|
45
|
-
const useCases = deriveUseCases(products, options.modules);
|
|
46
|
-
const hasEventPass = useCases.includes("event_pass");
|
|
47
|
-
const hasAppointmentPackage = useCases.includes("appointment_package");
|
|
48
|
-
if (hasEventPass && hasAppointmentPackage) return {
|
|
49
|
-
heading: "Passes & Packages",
|
|
50
|
-
emptyMessage: "You don't have any passes or packages yet."
|
|
51
|
-
};
|
|
52
|
-
if (hasAppointmentPackage) return {
|
|
53
|
-
heading: style === "class" ? "Appointment Packages" : "Packages",
|
|
54
|
-
emptyMessage: "You don't have any packages yet."
|
|
55
|
-
};
|
|
56
|
-
return {
|
|
57
|
-
heading: style === "class" ? "Class Passes" : "Passes",
|
|
58
|
-
emptyMessage: "You don't have any passes yet."
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
//#endregion
|
|
62
|
-
export { getPortalCreditProductCreditNoun as i, getCreditProductCreditUnit as n, getCreditProductTypeLabel as r, deriveCreditProductLabels as t };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-DXmIbXCK.mjs";
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-hhotPP6P.mjs";
|
|
4
|
-
import { n as EventCombinedIslandClient } from "./EventCombined.client-BFVxECTp.mjs";
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CQGlxId8.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 };
|