@riverbankcms/sdk 0.169.0 → 0.170.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-DpROiz12.d.ts → BlocksIslandsHydrator-B2i5CY_X.d.ts} +1 -1
- package/dist/_dts/{Page-DHBBDRC_.d.ts → Page-BSZjbeRK.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CG7Qib7u.d.ts → SdkPreviewMode-BZpPBMcu.d.ts} +2 -2
- package/dist/_dts/{client-MURxFla9.d.ts → client-x82SZgwK.d.ts} +1 -1
- package/dist/_dts/{content-types-ClBGjxBV.d.ts → content-types-CODkxsZy.d.ts} +2 -2
- package/dist/_dts/{contracts-CHNvzh0y.d.ts → contracts-Lyfhmbjf.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DQM934Fm.d.ts → footerPageOutline-BShG2GAV.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-ConZaEqB.d.ts → generatePageMetadata-DLhUW3xK.d.ts} +2 -2
- package/dist/_dts/{index-BaDqRekr.d.ts → index-B7Mq5M6P.d.ts} +4 -4
- package/dist/_dts/{index-CovKPftP.d.ts → index-B82pqQAC.d.ts} +2 -2
- package/dist/_dts/{index-CiR_oPYT.d.ts → index-BisbMZTW.d.ts} +1 -1
- package/dist/_dts/{index-CVB5wgbz.d.ts → index-C3rMEJ5a.d.ts} +2 -2
- package/dist/_dts/{index-DDaX-K2D.d.ts → index-CCugONHM.d.ts} +1 -1
- package/dist/_dts/{index-rfAssXq0.d.ts → index-CstY6ZMa.d.ts} +3 -3
- package/dist/_dts/{index-DCw8LO4M.d.ts → index-DXc_ewhR.d.ts} +1 -1
- package/dist/_dts/{loadContent-CRLKVVDP.d.ts → loadContent-BoqtbbhP.d.ts} +7 -7
- package/dist/_dts/{request-DeVetKBr.d.ts → request-CJ_ClHLv.d.ts} +39255 -37305
- package/dist/_dts/{resolveBlockData-C5KYFeig.d.ts → resolveBlockData-DFExYkJ4.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-D8MZWyNO.d.ts → resolvePageContent-D-WvpC_d.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-Fj31kIi2.d.ts → types-990t4t99.d.ts} +7 -7
- package/dist/_dts/{types-B4MBlP_B.d.ts → types-CbjK5ZLy.d.ts} +2 -2
- package/dist/_dts/{types-OwqfS8Gn.d.ts → types-CpuxuS40.d.ts} +3 -3
- package/dist/_dts/{validation-B1Fa8o_b.d.ts → validation-BN95LiS0.d.ts} +4 -4
- package/dist/client/BlocksIslandsHydrator-B1Tkg-ZW.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-CH7z2m47.mjs} +4 -4
- package/dist/client/{DemoBookingPortalAccess-C2QCj_Ta.mjs → DemoBookingPortalAccess-Cilv5zdS.mjs} +3 -3
- package/dist/client/{EventCalendar.client-DDjz7tuX.mjs → EventCalendar.client-LXUHJEi7.mjs} +7 -7
- package/dist/client/{EventCombined.client-CeYbNsch.mjs → EventCombined.client-DpugEJLB.mjs} +5 -5
- package/dist/client/{EventItem-B5J0IeF4.mjs → EventItem-gFuZn-dE.mjs} +7 -6
- package/dist/client/{EventListWeekNavigation-eH04D8-V.mjs → EventListWeekNavigation-D-kLg1jQ.mjs} +2 -1
- package/dist/client/{EventListing.client-slpvrTrM.mjs → EventListing.client-BNACUaxV.mjs} +3 -3
- package/dist/client/{EventListing.view-BYBaElec.mjs → EventListing.view-CtVfe3VG.mjs} +5 -6
- package/dist/client/{EventRegistrationPayment-Do7Q0wRG.mjs → EventRegistrationPayment-CqH3hE-k.mjs} +18 -10
- package/dist/client/Page-PW4Ojv9r.mjs +29977 -0
- 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-wlRXnOjO.mjs} +3 -3
- package/dist/client/{cart.client-CIfbTLHS.mjs → cart.client-CfpnxTUZ.mjs} +1 -1
- package/dist/client/{checkout-fDCNZ3IT.mjs → checkout-Dnu9W8IA.mjs} +3 -3
- package/dist/client/{checkout.client-C4l2KjtV.mjs → checkout.client-ovtyXyn0.mjs} +1 -1
- package/dist/client/{checkoutUrls-cWL6I-Vz.mjs → checkoutUrls-CY8qywXl.mjs} +1 -1
- package/dist/client/client.mjs +40 -12
- 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-B4VbblGN.mjs} +14 -17
- package/dist/client/eventCombined-e2AvbA0u.mjs +25 -0
- package/dist/client/{eventDetails-DzMskXYA.mjs → eventDetails-DIJYMzVg.mjs} +4 -6
- package/dist/client/eventListing-C0bpAR1t.mjs +26 -0
- package/dist/client/eventRegistration-DyseP_sY.mjs +31 -0
- package/dist/client/flightRegistrations-DjYm0Wz6.mjs +45 -0
- package/dist/client/form-Cfl8d6qc.mjs +27 -0
- 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/formSnapshot-Cy4abc0T.mjs +73 -0
- 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-Bn7HVbuq.mjs +27 -0
- package/dist/client/portal/client.mjs +5 -5
- package/dist/client/{product-detail.client-rWUvpVvZ.mjs → product-detail.client-BXeLqkCE.mjs} +1 -1
- package/dist/client/{product-list.client-J0wDOmKv.mjs → product-list.client-C627X8DQ.mjs} +1 -1
- package/dist/client/{productDetail-LtCkMrJ0.mjs → productDetail-B-K_hd7Y.mjs} +3 -3
- package/dist/client/{productList-C0MLeh-v.mjs → productList-BNZAsfaP.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-CBg2M6Uj.mjs} +352 -288
- package/dist/client/rendering/client.mjs +36 -36
- package/dist/client/rendering/islandDelivery.flight.mjs +132 -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-PgmiVKSV.mjs} +3 -3
- package/dist/client/{shop-commerce-bo0Z6kwf.mjs → shop-commerce-DkgvZAQS.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-DDFRt6OU.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-GsDrJxxw.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-DGl4Jeuz.mjs} +5 -5
- package/dist/client/{view-SVnWic7i.mjs → view-CgComegl.mjs} +2 -2
- package/dist/client/{view-B6KSxQMO.mjs → view-oToSpu1N.mjs} +3 -3
- package/dist/preview-next/chrome.css +4 -0
- package/dist/preview-next/client/{ArrangementLookControls-kbdqYkWM.mjs → ArrangementLookControls-DJQrgD5f.mjs} +12 -19
- 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-DWU6X6Y-.mjs} +119 -133
- package/dist/preview-next/client/{PreviewEditorUI-yyD-ZREP.mjs → PreviewEditorUI-C-X0ptC3.mjs} +7 -39
- package/dist/preview-next/client/{PreviewShell-YauP65Gi.mjs → PreviewShell-C1WUNsj9.mjs} +40 -46
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bl7jQMI1.mjs → SdkPreviewModeRuntime-Cs2QFT7k.mjs} +11 -9
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CQFRP9aM.mjs → SiteChromeCustomizeButton-CcZ_ERvZ.mjs} +844 -23038
- 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-CSs9S8wr.mjs} +357 -924
- package/dist/preview-next/client/{previewChromeSurface-uSnVzeNs.mjs → previewChromeRoot-B2OTurZH.mjs} +52 -14
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-6Q0RVJTQ.mjs → sdk-runtime-CBIwYDyi.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-Cdx3kAGm.mjs → useAutosaveStatus-DoWvGNPA.mjs} +3 -3
- package/dist/preview-next/client/{useBlockCustomizeControls-ZrWdhcB6.mjs → useBlockCustomizeControls-WOs8Atje.mjs} +17 -23
- package/dist/preview-next/client/{useOpenBlockForSetup-CK-GWb9k.mjs → useOpenBlockForSetup-CipKCK2O.mjs} +1 -1
- package/dist/preview-next/container-responsive.css +3050 -0
- package/dist/preview-next/editor-base.css +90 -178
- package/dist/preview-next/editor-chrome.css +25 -8
- 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-BLYaenrK.mjs} +36 -8
- package/dist/server/{Block.shared-4vx7wzxj.mjs → Block.shared-Dx4j9CJT.mjs} +4 -4
- package/dist/server/ThemeScopeCore-B0IfeNNZ.mjs +1983 -0
- package/dist/server/{accessibleSurfaces-108nxyGc.mjs → accessibleSurfaces-D0q5tLSW.mjs} +56 -8
- package/dist/server/{bindings-TAQbo2P5.mjs → bindings-C1-MNwwS.mjs} +1 -1
- package/dist/server/{client-DzCxEl3L.mjs → client-Djjv-NuA.mjs} +38 -10
- 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-DhraQ_Fi.mjs} +4 -4
- package/dist/server/{loadPage-BvWzmZcD.mjs → loadPage-QXSdPSYY.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-CMNx5tQg.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-DzduDSqY.mjs → pageRenderPlan-Bv6NbFeM.mjs} +11 -9
- package/dist/server/{pageRuntimeSupport-BU8pwTNx.mjs → pageRuntimeSupport-B2laBtff.mjs} +1 -1
- package/dist/server/{pageShared-CSOJ8p8E.mjs → pageShared-CE9EBNSH.mjs} +352 -290
- package/dist/server/{prebuild-C5ZYo7wA.mjs → prebuild-FBA6Y1K7.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BvbxqeKn.mjs → prefetchBlockData-yL2hB2l_.mjs} +2 -2
- package/dist/server/{registry-Fv-7D8o2.mjs → registry-Djrj9gWy.mjs} +56 -816
- 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-CyeIjmqx.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-Dh8htd6l.mjs} +3 -3
- package/dist/server/{version-D_W2mt8w.mjs → version-LMwnoksN.mjs} +1 -1
- package/dist/styles/index.css +122 -49
- package/package.json +10 -6
- package/dist/client/BlocksIslandsHydrator-qq4Vhs7k.mjs +0 -296
- package/dist/client/Page-Dv9eIOGr.mjs +0 -52213
- 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/form-57k2JQnm.mjs +0 -90
- package/dist/client/newsletterForm-Cn7h4zFe.mjs +0 -53
- package/dist/client/reactMount-BGJVsHRb.mjs +0 -28
- package/dist/client/runtimeResponse-BP-L6exS.mjs +0 -3
- package/dist/server/ThemeScopeCore-C3HLgqBF.mjs +0 -24213
- package/dist/client/{context-DQnTyApV.mjs → context-Xhf81Q-c.mjs} +1 -1
|
@@ -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,90 +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 FormNodeClient } from "./form.client-CCl6CpRJ.mjs";
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import "react";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
//#region src/rendering/islands/enhancers/form.tsx
|
|
9
|
-
const decode = defineIslandPropsDecoder("form");
|
|
10
|
-
function snapshotFormValues(form) {
|
|
11
|
-
if (!form) return [];
|
|
12
|
-
const snapshots = [];
|
|
13
|
-
const elements = Array.from(form.elements);
|
|
14
|
-
for (const el of elements) {
|
|
15
|
-
if (!(el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement || el instanceof HTMLSelectElement)) continue;
|
|
16
|
-
const name = el.name;
|
|
17
|
-
if (!name) continue;
|
|
18
|
-
if (el instanceof HTMLSelectElement && el.multiple) {
|
|
19
|
-
const selected = Array.from(el.selectedOptions).map((o) => o.value);
|
|
20
|
-
snapshots.push({
|
|
21
|
-
kind: "select-multiple",
|
|
22
|
-
name,
|
|
23
|
-
values: selected
|
|
24
|
-
});
|
|
25
|
-
continue;
|
|
26
|
-
}
|
|
27
|
-
if (el instanceof HTMLInputElement && (el.type === "checkbox" || el.type === "radio")) {
|
|
28
|
-
snapshots.push({
|
|
29
|
-
kind: "checked",
|
|
30
|
-
name,
|
|
31
|
-
value: el.value,
|
|
32
|
-
checked: el.checked
|
|
33
|
-
});
|
|
34
|
-
continue;
|
|
35
|
-
}
|
|
36
|
-
snapshots.push({
|
|
37
|
-
kind: "value",
|
|
38
|
-
name,
|
|
39
|
-
value: el.value
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return snapshots;
|
|
43
|
-
}
|
|
44
|
-
function applySnapshots(form, snapshots) {
|
|
45
|
-
if (!form) return;
|
|
46
|
-
for (const snapshot of snapshots) {
|
|
47
|
-
if (snapshot.kind === "select-multiple") {
|
|
48
|
-
const el = form.elements.namedItem(snapshot.name);
|
|
49
|
-
if (!(el instanceof HTMLSelectElement) || !el.multiple) continue;
|
|
50
|
-
const selected = new Set(snapshot.values);
|
|
51
|
-
Array.from(el.options).forEach((opt) => {
|
|
52
|
-
opt.selected = selected.has(opt.value);
|
|
53
|
-
});
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
const el = form.elements.namedItem(snapshot.name);
|
|
57
|
-
if (snapshot.kind === "checked") {
|
|
58
|
-
if (el instanceof RadioNodeList) {
|
|
59
|
-
const match = Array.from(el).filter((i) => i instanceof HTMLInputElement).find((i) => i.value === snapshot.value);
|
|
60
|
-
if (match) match.checked = snapshot.checked;
|
|
61
|
-
} else if (el instanceof HTMLInputElement) {
|
|
62
|
-
if (el.type === "checkbox") el.checked = snapshot.checked;
|
|
63
|
-
}
|
|
64
|
-
continue;
|
|
65
|
-
}
|
|
66
|
-
if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement || el instanceof HTMLSelectElement) el.value = snapshot.value;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
const enhance = (root, props) => {
|
|
70
|
-
const { siteId, apiBaseUrl } = props;
|
|
71
|
-
if (!siteId) throw new Error("[sdk:islands] form requires siteId");
|
|
72
|
-
if (!apiBaseUrl) throw new Error("[sdk:islands] form requires apiBaseUrl");
|
|
73
|
-
const apiConfig = {
|
|
74
|
-
baseUrl: apiBaseUrl,
|
|
75
|
-
auth: { type: "none" },
|
|
76
|
-
siteId
|
|
77
|
-
};
|
|
78
|
-
const snapshots = snapshotFormValues(root.querySelector("form"));
|
|
79
|
-
return mountReactIsland(root, ({ root: reactRoot }) => {
|
|
80
|
-
reactRoot.render(/* @__PURE__ */ jsx(BlockApiProvider, {
|
|
81
|
-
config: apiConfig,
|
|
82
|
-
children: /* @__PURE__ */ jsx(FormNodeClient, { ...props })
|
|
83
|
-
}));
|
|
84
|
-
requestAnimationFrame(() => {
|
|
85
|
-
applySnapshots(root.querySelector("form"), snapshots);
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
};
|
|
89
|
-
//#endregion
|
|
90
|
-
export { decode, enhance };
|
|
@@ -1,53 +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 NewsletterFormClient } from "./newsletter-form.client-CiqKAmPs.mjs";
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import "react";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
//#region src/rendering/islands/enhancers/newsletterForm.tsx
|
|
9
|
-
const decode = defineIslandPropsDecoder("newsletter-form");
|
|
10
|
-
function snapshotFormValues(form) {
|
|
11
|
-
if (!form) return [];
|
|
12
|
-
const snapshots = [];
|
|
13
|
-
const elements = Array.from(form.elements);
|
|
14
|
-
for (const el of elements) {
|
|
15
|
-
if (!(el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement)) continue;
|
|
16
|
-
const name = el.name;
|
|
17
|
-
if (!name) continue;
|
|
18
|
-
snapshots.push({
|
|
19
|
-
name,
|
|
20
|
-
value: el.value
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
return snapshots;
|
|
24
|
-
}
|
|
25
|
-
function applySnapshots(form, snapshots) {
|
|
26
|
-
if (!form) return;
|
|
27
|
-
for (const snapshot of snapshots) {
|
|
28
|
-
const el = form.elements.namedItem(snapshot.name);
|
|
29
|
-
if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement) el.value = snapshot.value;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
const enhance = (root, props) => {
|
|
33
|
-
const { siteId, apiBaseUrl, render } = props;
|
|
34
|
-
if (!siteId) throw new Error("[sdk:islands] newsletter-form requires siteId");
|
|
35
|
-
if (!apiBaseUrl) throw new Error("[sdk:islands] newsletter-form requires apiBaseUrl");
|
|
36
|
-
const apiConfig = {
|
|
37
|
-
baseUrl: apiBaseUrl,
|
|
38
|
-
auth: { type: "none" },
|
|
39
|
-
siteId
|
|
40
|
-
};
|
|
41
|
-
const snapshots = snapshotFormValues(root.querySelector("form"));
|
|
42
|
-
return mountReactIsland(root, ({ root: reactRoot }) => {
|
|
43
|
-
reactRoot.render(/* @__PURE__ */ jsx(BlockApiProvider, {
|
|
44
|
-
config: apiConfig,
|
|
45
|
-
children: /* @__PURE__ */ jsx(NewsletterFormClient, { ...props })
|
|
46
|
-
}));
|
|
47
|
-
requestAnimationFrame(() => {
|
|
48
|
-
applySnapshots(root.querySelector("form"), snapshots);
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
//#endregion
|
|
53
|
-
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 };
|