@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,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as mediaIdentifierSchema, d as parseUuidBrand, f as err, n as renderableMediaAssetSchema, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
|
-
import { c as addMonths } from "./src-
|
|
3
|
+
import { c as addMonths } from "./src-xrjaKaCj.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region ../core/src/branded/customers.ts
|
|
6
6
|
const unsafeAsSiteTermsVersionId = (id) => id;
|
|
@@ -1112,6 +1112,111 @@ const publicEventLoaderQuerySchemaShape = {
|
|
|
1112
1112
|
};
|
|
1113
1113
|
z.object(publicEventLoaderQuerySchemaShape);
|
|
1114
1114
|
//#endregion
|
|
1115
|
+
//#region ../site-contracts/src/siteData/products.ts
|
|
1116
|
+
const publicProductVariantSchema = z.object({
|
|
1117
|
+
id: z.string(),
|
|
1118
|
+
title: z.string(),
|
|
1119
|
+
sku: z.string().nullable(),
|
|
1120
|
+
priceCents: z.number(),
|
|
1121
|
+
stockQuantity: z.number().nullable(),
|
|
1122
|
+
soldOut: z.boolean()
|
|
1123
|
+
});
|
|
1124
|
+
const publicProductSchema = z.object({
|
|
1125
|
+
id: z.string(),
|
|
1126
|
+
contentEntryId: z.string().nullable(),
|
|
1127
|
+
title: z.string(),
|
|
1128
|
+
slug: z.string(),
|
|
1129
|
+
path: z.string().nullable(),
|
|
1130
|
+
status: z.enum(["draft", "active"]),
|
|
1131
|
+
priceCents: z.number(),
|
|
1132
|
+
currency: z.string(),
|
|
1133
|
+
productType: z.enum(["physical", "digital"]),
|
|
1134
|
+
requiresShipping: z.boolean(),
|
|
1135
|
+
hasVariants: z.boolean(),
|
|
1136
|
+
trackInventory: z.boolean(),
|
|
1137
|
+
soldOut: z.boolean(),
|
|
1138
|
+
category: z.object({
|
|
1139
|
+
id: z.string(),
|
|
1140
|
+
name: z.string(),
|
|
1141
|
+
slug: z.string()
|
|
1142
|
+
}).nullable(),
|
|
1143
|
+
summary: z.string().nullable(),
|
|
1144
|
+
body: z.unknown().nullable(),
|
|
1145
|
+
gallery: z.array(z.object({
|
|
1146
|
+
url: z.string(),
|
|
1147
|
+
alt: z.string().nullable()
|
|
1148
|
+
})),
|
|
1149
|
+
variants: z.array(publicProductVariantSchema)
|
|
1150
|
+
});
|
|
1151
|
+
/**
|
|
1152
|
+
* Public pass product for shop display
|
|
1153
|
+
*/
|
|
1154
|
+
const publicPassProductFields = {
|
|
1155
|
+
id: z.string(),
|
|
1156
|
+
productUseCase: z.enum(["event_pass", "appointment_package"]).default("event_pass"),
|
|
1157
|
+
name: z.string(),
|
|
1158
|
+
description: z.string().nullable(),
|
|
1159
|
+
price: z.number(),
|
|
1160
|
+
currency: z.string(),
|
|
1161
|
+
creditsTotal: z.number(),
|
|
1162
|
+
pricePerCredit: z.number(),
|
|
1163
|
+
validDays: z.number().nullable(),
|
|
1164
|
+
eligibleCategoryIds: z.array(z.string()),
|
|
1165
|
+
eligibleCategoryNames: z.array(z.string()),
|
|
1166
|
+
heldWithTeamMember: z.object({
|
|
1167
|
+
id: z.string(),
|
|
1168
|
+
name: z.string()
|
|
1169
|
+
}).nullable().optional(),
|
|
1170
|
+
teamMemberSelection: z.discriminatedUnion("kind", [
|
|
1171
|
+
z.object({ kind: z.literal("any") }),
|
|
1172
|
+
z.object({
|
|
1173
|
+
kind: z.literal("owner"),
|
|
1174
|
+
teamMember: z.object({
|
|
1175
|
+
id: z.string(),
|
|
1176
|
+
name: z.string()
|
|
1177
|
+
})
|
|
1178
|
+
}),
|
|
1179
|
+
z.object({
|
|
1180
|
+
kind: z.literal("choose"),
|
|
1181
|
+
teamMembers: z.array(z.object({
|
|
1182
|
+
id: z.string(),
|
|
1183
|
+
name: z.string()
|
|
1184
|
+
}))
|
|
1185
|
+
})
|
|
1186
|
+
]).optional()
|
|
1187
|
+
};
|
|
1188
|
+
const purchasablePublicPassProductSchema = z.object({
|
|
1189
|
+
...publicPassProductFields,
|
|
1190
|
+
purchaseAvailability: z.literal("purchasable")
|
|
1191
|
+
});
|
|
1192
|
+
const publicPassProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicPassProductSchema, z.object({
|
|
1193
|
+
...publicPassProductFields,
|
|
1194
|
+
purchaseAvailability: z.literal("display_only"),
|
|
1195
|
+
unavailabilityReason: z.literal("online_payments_unavailable")
|
|
1196
|
+
})]);
|
|
1197
|
+
/**
|
|
1198
|
+
* Public membership product for shop display
|
|
1199
|
+
*/
|
|
1200
|
+
const publicMembershipProductFields = {
|
|
1201
|
+
id: z.string(),
|
|
1202
|
+
name: z.string(),
|
|
1203
|
+
description: z.string().nullable(),
|
|
1204
|
+
price: z.number(),
|
|
1205
|
+
currency: z.string(),
|
|
1206
|
+
billingInterval: z.enum(["month", "year"]),
|
|
1207
|
+
eligibleCategoryIds: z.array(z.string()),
|
|
1208
|
+
eligibleCategoryNames: z.array(z.string())
|
|
1209
|
+
};
|
|
1210
|
+
const purchasablePublicMembershipProductSchema = z.object({
|
|
1211
|
+
...publicMembershipProductFields,
|
|
1212
|
+
purchaseAvailability: z.literal("purchasable")
|
|
1213
|
+
});
|
|
1214
|
+
const publicMembershipProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicMembershipProductSchema, z.object({
|
|
1215
|
+
...publicMembershipProductFields,
|
|
1216
|
+
purchaseAvailability: z.literal("display_only"),
|
|
1217
|
+
unavailabilityReason: z.literal("online_payments_unavailable")
|
|
1218
|
+
})]);
|
|
1219
|
+
//#endregion
|
|
1115
1220
|
//#region ../site-contracts/src/siteData/eventVocabulary.ts
|
|
1116
1221
|
const eventCalendarDisplayModeValues = [
|
|
1117
1222
|
"combined",
|
|
@@ -2124,6 +2229,10 @@ function planCalendarMonthRanges(months) {
|
|
|
2124
2229
|
return ranges;
|
|
2125
2230
|
}
|
|
2126
2231
|
//#endregion
|
|
2232
|
+
//#region ../blocks/src/system/blocks/shop.shared.ts
|
|
2233
|
+
const publicPassProductCollectionSchema = z.object({ passes: z.array(publicPassProductSchema) });
|
|
2234
|
+
const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(publicMembershipProductSchema) });
|
|
2235
|
+
//#endregion
|
|
2127
2236
|
//#region ../blocks/src/contracts/events.ts
|
|
2128
2237
|
/** Release 1: older SDKs reject additional confirmed-outcome fields. */
|
|
2129
2238
|
const EVENT_BOOKING_ARRIVAL_QUERY = "bookingArrival";
|
|
@@ -2178,4 +2287,4 @@ const logger = {
|
|
|
2178
2287
|
withFields: (_) => logger
|
|
2179
2288
|
};
|
|
2180
2289
|
//#endregion
|
|
2181
|
-
export {
|
|
2290
|
+
export { persistableMediaSchema as $, toBookingTimeZone as $t, eyebrowTreatmentValues as A, trimmedStringOrNull as At, blockBookingPaymentTermsSchema as B, resolveBookingDisplayContext as Bt, normalizeEventCalendarDisplayMode as C, decideLocationSourcePermission as Ct, accordionIconSetValues as D, projectPublicLocation as Dt, accordionIconMotionValues as E, parseLocationValue as Et, visibleHeadingDecorationFamilyValues as F, formatDateTimeRange as Ft, beforeBookingQuestionsPresentationSchema as G, compareLocalScheduleDates as Gt, bookingConsentCarrierSchema as H, toScheduledBookingDateTime as Ht, eventVenueDrawingSchema as I, formatTime as It, isRichTextDoc as J, getLocalScheduleDate as Jt, bookingQuestionsAnswerValueSchema as K, formatLocalScheduleDate as Kt, publicEventDestinationSchema as L, formatTimeRange as Lt, headingDecorationOverrideValues as M, formatDate as Mt, isArrangementMode as N, formatDateRange as Nt, arrangementModes as O, publicLocationSchema as Ot, tileTreatmentValues as P, formatDateTime as Pt, mediaSchema as Q, resolveBookingTimeZoneId as Qt, publicEventSchema as R, formatTimeZoneCityLabel as Rt, isEventCalendarListLayout as S, WHOLE_SERIES_EVENT_PRESET_VALUES as St, accordionIconColorTokenValues as T, normalizeLocationAddressText as Tt, isBookingRequirementConsentFieldId as U, buildBookingUtcDateWindow as Ut, blockBookingConsentSchema as V, formatBookingCompactEnglishTime as Vt, toBookingRequirementConsentField as W, addLocalScheduleDays as Wt, externalMediaSchema as X, parseLocalScheduleTime as Xt, assetMediaSchema as Y, parseBookingLocalDate as Yt, imageMediaSchema as Z, resolveBookingBusinessTimeZone as Zt, eventCalendarListLayoutOptions as _, eventScheduleScopeValues as _t, eventAutoApplyDiscountPreviewSchema as a, toNonNegativeCents as an, normalizeCurrencyCode as at, isEventCalendarDefaultView as b, publicEventLoaderQuerySchemaShape as bt, calendarMonthKey as c, eventCalendarListLayoutCompatibleDisplayModeValues as ct, calendarWindowBounds as d, publicPassProductSchema as dt, parseUtcIsoDateTimeString as en, runtimeMediaSchema as et, calendarWindowMonths as f, publicProductSchema as ft, eventCalendarListGroupingDecision as g, calendarWindowQuerySchema as gt, resolveCalendarReadProfile as h, calendarMonthDate as ht, EVENT_BOOKING_ARRIVAL_QUERY as i, parsePositiveMoneyInputToCents as in, mediaTypeDiscriminants as it, headingDecorationColorTokenValues as j, mapDrawingSchema as jt, eventListTreatmentValues as k, toLocationCoordinates as kt, calendarPageResponseError as l, eventCalendarListLayoutValues as lt, planCalendarMonthRanges as m, purchasablePublicPassProductSchema as mt, blockSiteTermsSchema as n, validateBookingPaymentOptionKinds as nn, PUBLIC_FILE_FIELD_KINDS as nt, publicMembershipProductCollectionSchema as o, formatCurrencyAmount as on, eventCalendarDefaultViewValues as ot, calendarWindowPageSchema as p, purchasablePublicMembershipProductSchema as pt, RichTextDocSchema as q, getBookingLocalDateKey as qt, verifiedSiteTermsAcceptanceSchema as r, parsePositiveCents as rn, isDisplayMediaKind as rt, publicPassProductCollectionSchema as s, formatGiftCardAmountLabel as sn, eventCalendarDisplayModeValues as st, logger as t, toUtcIsoDateTimeString as tn, videoMediaSchema as tt, calendarQueryKey as u, publicMembershipProductSchema as ut, eventCalendarVariantMeaning as v, eventSurfacePresetValues as vt, resolveEventCalendarReadPlan as w, locationValueSchema as wt, isEventCalendarDisplayMode as x, isRecord as xt, eventListArrangementValues as y, eventSurfaceScopeValues as yt, publicEventsArraySchema as z, inferSiteDateLocale as zt };
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import { n as useAvailableDates, s as unsafeAsAppointmentResourceId, t as useAvailableSlots } from "../useAvailableSlots-
|
|
5
|
-
import {
|
|
3
|
+
import { in as parsePositiveMoneyInputToCents, on as formatCurrencyAmount, t as logger } from "../noop-B_f7RqLD.mjs";
|
|
4
|
+
import { n as useAvailableDates, s as unsafeAsAppointmentResourceId, t as useAvailableSlots } from "../useAvailableSlots-GP8tnAVW.mjs";
|
|
5
|
+
import { M as assertNever$1, a as UNANSWERED_QUESTIONS_SUMMARY, h as assertNever, i as getPortalCreditProductCreditNoun, j as resolveFlexibleBalancePaymentEligibility, m as unansweredRequiredBookingQuestions, o as UNANSWERED_QUESTION_MESSAGE, r as getCreditProductTypeLabel, t as deriveCreditProductLabels, u as initialBookingQuestionValues, w as formatOrderInstalmentStatusLabel$1 } from "../creditProducts-CMOmhWm2.mjs";
|
|
6
6
|
import { t as generateUuidV4 } from "../uuid-BETKW8rS.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-Xhf81Q-c.mjs";
|
|
8
8
|
import { S as clsx, i as ThemedButtonLink, l as SpinnerNode, o as ThemedFileChooser, r as ThemedButton, t as ThemedActionsButton } from "../ThemedButton-BdnEwA38.mjs";
|
|
9
|
-
import { t as resolveDedicatedBookingHref } from "../bookingRoute-
|
|
10
|
-
import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-
|
|
9
|
+
import { t as resolveDedicatedBookingHref } from "../bookingRoute-D6DlxYx6.mjs";
|
|
10
|
+
import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-LLGCWjvU.mjs";
|
|
11
11
|
import { t as ModalShell } from "../ModalShell-B_fHWK71.mjs";
|
|
12
12
|
import { t as TabBarFragment } from "../TabBarFragment-DkVKtK5a.mjs";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { n as
|
|
16
|
-
import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-CwrkFZTr.mjs";
|
|
13
|
+
import { t as formatDate } from "../formatDate-BGlhrmhF.mjs";
|
|
14
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-DQtwf_s2.mjs";
|
|
15
|
+
import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-Bv6kjUW3.mjs";
|
|
17
16
|
import * as React$1 from "react";
|
|
18
17
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
19
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -5474,11 +5473,11 @@ function BeforeYouComeTask({ entityId, task, session, loadTask, saveTask, create
|
|
|
5474
5473
|
className: "rb-space-y-4",
|
|
5475
5474
|
children: [
|
|
5476
5475
|
/* @__PURE__ */ jsx(TaskIntro, { detail }),
|
|
5477
|
-
/* @__PURE__ */ jsx(BookingQuestionFields, {
|
|
5476
|
+
viewOnly ? /* @__PURE__ */ jsx(CapturedAnswers, { answers: detail.completedAnswers }) : /* @__PURE__ */ jsx(BookingQuestionFields, {
|
|
5478
5477
|
sections: detail.sections,
|
|
5479
5478
|
values: formValues,
|
|
5480
5479
|
fieldErrors,
|
|
5481
|
-
disabled:
|
|
5480
|
+
disabled: saving,
|
|
5482
5481
|
showFirstSectionTitle: detail.shape === "detailed-questionnaire",
|
|
5483
5482
|
onChange: (fieldId, next) => {
|
|
5484
5483
|
setFormValues((current) => ({
|
|
@@ -5529,6 +5528,15 @@ function BeforeYouComeTask({ entityId, task, session, loadTask, saveTask, create
|
|
|
5529
5528
|
}) : null
|
|
5530
5529
|
}) : null] });
|
|
5531
5530
|
}
|
|
5531
|
+
function CapturedAnswers({ answers }) {
|
|
5532
|
+
return /* @__PURE__ */ jsx("div", {
|
|
5533
|
+
className: "rb-space-y-4",
|
|
5534
|
+
children: answers?.map((answer) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
|
|
5535
|
+
className: "rb-font-medium",
|
|
5536
|
+
children: answer.label
|
|
5537
|
+
}), /* @__PURE__ */ jsx("p", { children: answer.kind === "scalar" ? answer.valueSummary : answer.fileName })] }, answer.fieldId))
|
|
5538
|
+
});
|
|
5539
|
+
}
|
|
5532
5540
|
function TaskIntro({ detail }) {
|
|
5533
5541
|
const body = detail.introBody ? /* @__PURE__ */ jsx("p", {
|
|
5534
5542
|
className: "rb-caption status-muted cp-before-you-come__body",
|
|
@@ -10112,7 +10120,7 @@ function CreditSection({ credit }) {
|
|
|
10112
10120
|
children: "Site credit"
|
|
10113
10121
|
}), /* @__PURE__ */ jsx("p", {
|
|
10114
10122
|
className: "cp-card-subtitle",
|
|
10115
|
-
children: "
|
|
10123
|
+
children: "Used automatically when you pay online."
|
|
10116
10124
|
})] })
|
|
10117
10125
|
}), /* @__PURE__ */ jsxs("div", {
|
|
10118
10126
|
className: "cp-card-meta",
|
package/dist/client/{product-detail.client-BFAgHrdg.mjs → product-detail.client-5hNA8aKU.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ProductDetailController } from "./shop-commerce-
|
|
2
|
+
import { r as ProductDetailController } from "./shop-commerce-B3PyRHaN.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/product-detail.client.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ProductListController } from "./shop-commerce-
|
|
2
|
+
import { i as ProductListController } from "./shop-commerce-B3PyRHaN.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/product-list.client.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ProductDetailClient } from "./product-detail.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
+
import { t as ProductDetailClient } from "./product-detail.client-5hNA8aKU.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/productDetail.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("product-detail");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, ProductDetailClient, "product-detail");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ProductListClient } from "./product-list.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
+
import { t as ProductListClient } from "./product-list.client-c-777ohj.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/productList.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("product-list");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, ProductListClient, "product-list");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { I as
|
|
2
|
+
import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec, E as giftingInteractiveIslandPropsCodec, F as eventRegistrationInteractiveIslandPropsCodec, ct as eventCombinedInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, nn as headerChromeRuntimeContractSchema, pt as eventCalendarInteractiveIslandPropsCodec, s as cartInteractiveIslandPropsCodec, yt as eventListingInteractiveIslandPropsCodec } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { Hi as isDecodeSuccess, Ii as eventRegistrationPageSurfaceSubjectSchema, Ki as lookListPresentationSchemaShape, ur as bookingFormInteractiveIslandPropsCodec, zi as createZodCodec } from "./display-DDNmyb0z.mjs";
|
|
4
|
+
import { I as eventVenueDrawingSchema, R as publicEventSchema, a as eventAutoApplyDiscountPreviewSchema, o as publicMembershipProductCollectionSchema, s as publicPassProductCollectionSchema } from "./noop-B_f7RqLD.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/event-details/lookPresentation.ts
|
|
7
7
|
const eventDetailsLookSchemaShape = {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createElement, useLayoutEffect } from "react";
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
4
|
+
//#region src/rendering/islands/enhancers/reactMount.ts
|
|
5
|
+
/**
|
|
6
|
+
* Removes the fallback in the same commit that shows the island, so nothing paints in
|
|
7
|
+
* between. Fallback nodes the island moved into its own tree (as the carousel does with
|
|
8
|
+
* its slides) are no longer the root's children and stay where the island put them.
|
|
9
|
+
*/
|
|
10
|
+
function FallbackHandover({ root, mount, fallbackNodes, handover, children }) {
|
|
11
|
+
useLayoutEffect(() => {
|
|
12
|
+
handover?.(mount);
|
|
13
|
+
fallbackNodes.forEach((node) => {
|
|
14
|
+
if (node.parentNode === root) node.remove();
|
|
15
|
+
});
|
|
16
|
+
}, []);
|
|
17
|
+
return children;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The island's React tree mounts beside the server fallback rather than in place of it,
|
|
21
|
+
* so fallback content never leaves the document. Nested islands inside it (in a carousel
|
|
22
|
+
* slide, say) stay connected while the island takes over, and the runtime has no reason
|
|
23
|
+
* to treat them as removed.
|
|
24
|
+
*/
|
|
25
|
+
function mountReactIsland(root, island, options = {}) {
|
|
26
|
+
if (root.dataset.rbReactMounted === "true") return;
|
|
27
|
+
const fallbackNodes = Array.from(root.childNodes);
|
|
28
|
+
const mount = document.createElement("div");
|
|
29
|
+
root.append(mount);
|
|
30
|
+
const reactRoot = createRoot(mount);
|
|
31
|
+
try {
|
|
32
|
+
reactRoot.render(createElement(FallbackHandover, {
|
|
33
|
+
root,
|
|
34
|
+
mount,
|
|
35
|
+
fallbackNodes,
|
|
36
|
+
handover: options.handover,
|
|
37
|
+
children: island
|
|
38
|
+
}));
|
|
39
|
+
} catch (error) {
|
|
40
|
+
reactRoot.unmount();
|
|
41
|
+
mount.remove();
|
|
42
|
+
throw error;
|
|
43
|
+
}
|
|
44
|
+
root.dataset.rbReactMounted = "true";
|
|
45
|
+
return () => {
|
|
46
|
+
reactRoot.unmount();
|
|
47
|
+
delete root.dataset.rbReactMounted;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { mountReactIsland as t };
|