@riverbankcms/sdk 0.148.0 → 0.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/EventEmbeddedCheckoutStep-D00Kc8Zj.mjs +285 -0
- package/dist/{PreviewEditorSidebar-DvEPG3Z2.mjs → PreviewEditorSidebar-7ZhmmnBB.mjs} +103 -66
- package/dist/{PreviewEditorUI-D6eb6fkx.mjs → PreviewEditorUI-BIJucTRd.mjs} +3 -6
- package/dist/{PreviewQueryProvider-5znTyJuz.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DJ6utQ_R.mjs → SdkPreviewModeRuntime-tj45gmCX.mjs} +96 -67
- package/dist/{SiteChromeCustomizeContext-CFJYh6vo.mjs → SiteChromeCustomizeContext-BFOt0ss-.mjs} +4804 -4161
- package/dist/_dts/ai/src/contracts/proposals.d.ts +660 -0
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +510 -0
- package/dist/_dts/api/src/billing.d.ts +2 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +33 -48
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/bookingOperations.d.ts +5 -7
- package/dist/_dts/api/src/bookingRecords.d.ts +15 -11
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +0 -2
- package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +5 -1
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +2 -10
- package/dist/_dts/api/src/eventManagementContracts.d.ts +4 -7
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +9 -0
- package/dist/_dts/api/src/footerSettings.d.ts +3 -3
- package/dist/_dts/api/src/index.d.ts +4 -4
- package/dist/_dts/api/src/navigation/bookingPortalLink.d.ts +13 -0
- package/dist/_dts/api/src/navigation.d.ts +1 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +2 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -29
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +9 -173
- package/dist/_dts/api/src/request.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkThemeWire.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
- package/dist/_dts/api/src/siteOperations.d.ts +6 -2
- package/dist/_dts/api/src/siteSettings.d.ts +2 -0
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -1
- package/dist/_dts/blocks/src/client.d.ts +2 -1
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +38 -10
- package/dist/_dts/blocks/src/portal/types.d.ts +9 -6
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +24 -24
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +84 -160
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +31 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +30 -3
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +10 -1
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +38 -18
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +48 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/FullyBookedStep.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +15 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentLocation.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentResponse.d.ts +72 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +66 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +13 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +11 -52
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +19 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -42
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +7 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +94 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useGuestRegistrationRecovery.d.ts +30 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +24 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts +6 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +24 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/shared/stripe/browserStripe.d.ts +8 -0
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +54 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +58 -13
- package/dist/_dts/commerce/src/purchase/checkoutCopy.d.ts +10 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +16 -21
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +23 -40
- package/dist/_dts/commerce/src/purchase/checkoutPresentation.d.ts +49 -0
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +6 -6
- package/dist/_dts/commerce/src/purchase/checkoutStripeFinalizationPlanning.d.ts +5 -1
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +9 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +3 -3
- package/dist/_dts/commerce/src/purchase/membershipOrderItemMetadata.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +9 -4
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +13 -1
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +5 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -1
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +7 -1
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/stripeCheckoutReturnUrl.d.ts +9 -2
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +7 -7
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +3 -2
- package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +6 -1
- package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -0
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +7 -0
- package/dist/_dts/core/src/booking-flexible-balance.d.ts +2 -2
- package/dist/_dts/core/src/booking-instalment-deposit.d.ts +20 -0
- package/dist/_dts/core/src/booking-live-payment-terms.d.ts +72 -0
- package/dist/_dts/core/src/booking-payment-options.d.ts +24 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +522 -0
- package/dist/_dts/core/src/branded.d.ts +3 -0
- package/dist/_dts/core/src/edit-lease.d.ts +5 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/patch/index.d.ts +30 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +326 -36
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerMiniDialog.d.ts +10 -0
- package/dist/_dts/media-editor/src/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +0 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/previewAuthStore.d.ts +7 -0
- package/dist/_dts/preview-next/src/constants.d.ts +4 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +1 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -1
- package/dist/_dts/sdk/src/bookings/types.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -12
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/blocks/opaquePanels.d.ts +147 -0
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +22 -0
- package/dist/_dts/theme-core/src/cards/roles.d.ts +12 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +198 -0
- package/dist/_dts/theme-core/src/palette/utils/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/palette/utils/scrimContrast.d.ts +22 -0
- package/dist/_dts/theme-core/src/runtime/bridgeColourTokens.d.ts +10 -0
- package/dist/_dts/theme-core/src/schema.d.ts +330 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +11 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +12 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +7 -4
- package/dist/_dts/theme-core/src/site-styles/sectionSurfaceBackgrounds.d.ts +65 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +17 -0
- package/dist/_dts/theme-core/src/surfaces/opaqueSurface.d.ts +43 -0
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/palette/useHexDraft.d.ts +7 -0
- package/dist/client/{BookingMailingListNote-CzRt2dF_.mjs → BookingMailingListNote-CYHOufsI.mjs} +33 -124
- package/dist/client/{CheckboxChoice-B33MqoUo.mjs → CheckboxChoice-M-3HycLw.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-mxqwap3f.mjs → DemoBookingPortalAccess-Cvr9O_ca.mjs} +2 -2
- package/dist/client/{EventCombined.client-CDb11igO.mjs → EventCombined.client-m5UZIobP.mjs} +7 -7
- package/dist/client/EventEmbeddedCheckoutStep-DL6zFAkA.mjs +289 -0
- package/dist/client/{EventListing.client-EgYhzKPa.mjs → EventListing.client-DeMfCM04.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-gtmtaA2b.mjs → LeafletStaticMap-CvZ3gOdD.mjs} +1 -1
- package/dist/client/{checkoutUrls-CXhko2Rv.mjs → RichText-BtfNvQV6.mjs} +2 -29
- package/dist/client/{TerminalPanel-DvNUP5ot.mjs → TerminalPanel-CUCNEwlH.mjs} +2 -18
- package/dist/client/{ThemedButton-C7CeUJjW.mjs → ThemedButton-C7WhXuRl.mjs} +2 -2
- package/dist/client/{accordion-kjvt49rA.mjs → accordion-cQm5mjqs.mjs} +1 -1
- package/dist/client/{bookingForm-pbRZordh.mjs → bookingForm-BVPJE5RQ.mjs} +15 -11
- package/dist/client/bookings.mjs +2860 -1222
- package/dist/client/{carousel-f4Zbmicv.mjs → carousel-3vgnY7LC.mjs} +2 -2
- package/dist/client/{carousel.client-A2lG-9od.mjs → carousel.client-CISsdZvg.mjs} +1 -1
- package/dist/client/{cart-DO20An50.mjs → cart-BGK4oOjm.mjs} +3 -3
- package/dist/client/{checkout-Du5amDR_.mjs → checkout-GsBLUNJD.mjs} +3 -3
- package/dist/client/checkoutUrls-ChxwaNtO.mjs +28 -0
- package/dist/client/client.mjs +3324 -2053
- package/dist/client/{colorStyles-j5U9v5JA.mjs → colorStyles-D-32xHZh.mjs} +2 -30
- package/dist/client/{context-eW97E945.mjs → context-D_8s12Fp.mjs} +1 -1
- package/dist/client/{dates-jPCirRea.mjs → dates-DeJQbQ9T.mjs} +2 -2
- package/dist/client/{eventCalendar-C2M-iE4j.mjs → eventCalendar-cmucD4NR.mjs} +10 -10
- package/dist/client/{eventCombined-W6ns3LHg.mjs → eventCombined-ku3E9FTl.mjs} +4 -4
- package/dist/client/{eventDetails-CR-GT0f0.mjs → eventDetails-CyKZ61sF.mjs} +5 -5
- package/dist/client/{eventListing-BK8AfYZz.mjs → eventListing-B7yxGIhX.mjs} +4 -4
- package/dist/client/{eventRegistration-BJSd4KUu.mjs → eventRegistration-BoXfSFgZ.mjs} +1455 -1184
- package/dist/client/{form-BvpfbQaT.mjs → form-CNQOWhJo.mjs} +5 -5
- package/dist/client/{headerSection-I5sUQ8x-.mjs → headerSection-DahaBJGQ.mjs} +3 -3
- package/dist/client/hooks.mjs +283 -193
- package/dist/client/{locationMap-BLvwf9_f.mjs → locationMap-BoDjqYlW.mjs} +4 -4
- package/dist/client/{media-Cl38iOMI.mjs → media-BFY0y2rb.mjs} +2 -1
- package/dist/client/{newsletterForm-DrQ2weE8.mjs → newsletterForm-DtzXDklw.mjs} +4 -4
- package/dist/client/{pricing-BES87mrR.mjs → pricing-DXEh2Lhh.mjs} +1 -1
- package/dist/client/{productDetail-Url9jcc5.mjs → productDetail-D7cPa-00.mjs} +3 -3
- package/dist/client/{productList-DE7ngEZJ.mjs → productList-D1XMap66.mjs} +3 -3
- package/dist/client/{propsDecoder-D1OtGXDV.mjs → propsDecoder-DiIeBopB.mjs} +913 -322
- package/dist/client/rendering/client.mjs +3913 -2260
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3302 -2013
- package/dist/client/result-DRW7JWXz.mjs +30 -0
- package/dist/client/{routeIslandApiConfig-BG9Y-SHg.mjs → routeIslandApiConfig-wzR4lKAY.mjs} +1 -1
- package/dist/client/scrollToBlock-C86BYkyV.mjs +17 -0
- package/dist/client/{shop-CJkuySJ3.mjs → shop-CYT5P-S5.mjs} +13 -14
- package/dist/client/{shop-commerce-store-Bxm75Pg6.mjs → shop-commerce-store-wKhsJQxI.mjs} +1 -1
- package/dist/client/{shop-commerce-4rKj5n9h.mjs → shop-commerce-ypBu_dx4.mjs} +9 -9
- package/dist/client/{shopShared-DpoQDWfz.mjs → shopShared-DFGhYrf2.mjs} +52 -6
- package/dist/client/{useEventFilters-D8HliSqR.mjs → useEventFilters-blSbN5o7.mjs} +8 -8
- package/dist/preview-next/before-render.mjs +15 -22
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/constants.mjs +5 -1
- package/dist/preview-next/index.mjs +5 -1
- package/dist/preview-next/keepAlive.mjs +149 -82
- package/dist/preview-next/middleware.mjs +15 -22
- package/dist/{previewAuthStore-BXXF3hhW.mjs → previewAuthStore-BBmV7UsW.mjs} +49 -29
- package/dist/{sdk-runtime-C2a05WjL.mjs → sdk-runtime-2p8uQk1V.mjs} +2 -2
- package/dist/{separator-CuNhBAhS.mjs → separator-Cvvzk0Oo.mjs} +1 -1
- package/dist/server/components.mjs +4041 -3704
- package/dist/server/config-validation.mjs +345 -255
- package/dist/server/config.mjs +345 -255
- package/dist/server/data.mjs +283 -193
- package/dist/server/index.mjs +20 -27
- package/dist/server/next.mjs +788 -469
- package/dist/server/page-converter.mjs +245 -121
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4018 -3690
- package/dist/server/rendering.mjs +4044 -3707
- package/dist/server/routing.mjs +314 -190
- package/dist/server/server.mjs +290 -218
- package/dist/server/theme-bridge.mjs +1122 -310
- package/dist/server/theme.mjs +126 -116
- package/dist/spinner-CDo6AkDz.mjs +658 -0
- package/dist/styles/index.css +75 -212
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- package/dist/_dts/billing/src/checkout/platform.d.ts +0 -77
- package/dist/_dts/billing/src/config/env.d.ts +0 -29
- package/dist/_dts/billing/src/stripe/client.d.ts +0 -29
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +0 -63
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +0 -9
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +0 -10
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +0 -55
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +0 -24
- package/dist/client/urlParams-D71VXFGx.mjs +0 -47
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { useWaitlistClaim } from '../../shared/useWaitlistClaim';
|
|
|
5
5
|
import { useEventRegistrationStripeReturn } from './useEventRegistrationStripeReturn';
|
|
6
6
|
import { useEventRegistrationSubmit } from './useEventRegistrationSubmit';
|
|
7
7
|
import { useDiscountCodeUi } from './useDiscountCodeUi';
|
|
8
|
+
import { useBookingNowIso } from '../../hooks/useBookingNowIso';
|
|
8
9
|
export type EventRegistrationDetailsCompleteResult = Readonly<{
|
|
9
10
|
ok: true;
|
|
10
11
|
outcome: 'payment-step' | 'submitted';
|
|
@@ -30,9 +31,11 @@ export type EventRegistrationWizardDeps = Readonly<{
|
|
|
30
31
|
useEventRegistrationStripeReturn: typeof useEventRegistrationStripeReturn;
|
|
31
32
|
useEventRegistrationSubmit: typeof useEventRegistrationSubmit;
|
|
32
33
|
useDiscountCodeUi: typeof useDiscountCodeUi;
|
|
34
|
+
useBookingNowIso: typeof useBookingNowIso;
|
|
33
35
|
}>;
|
|
34
36
|
export declare function useEventRegistrationWizard(options: UseEventRegistrationWizardOptions): {
|
|
35
37
|
api: import("../../api").BoundBlockApiClient;
|
|
38
|
+
nowIso: string;
|
|
36
39
|
anchorId: string;
|
|
37
40
|
occurrenceContext: {
|
|
38
41
|
id: string;
|
|
@@ -54,13 +57,16 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
|
|
|
54
57
|
preSelectedEvent: RegistrationEvent | null;
|
|
55
58
|
hasPreSelectedContext: boolean;
|
|
56
59
|
step: RegistrationStep;
|
|
57
|
-
setStep: (
|
|
60
|
+
setStep: (next: RegistrationStep) => void;
|
|
61
|
+
admission: import("./registrationCompletion").RegistrationAdmission;
|
|
62
|
+
ticketContinuation: import("./registrationCompletion").RegistrationTicketContinuation;
|
|
63
|
+
handleTicketsComplete: () => import("./event-registration.headless.contract").EventRegistrationFlowActionResult;
|
|
58
64
|
selectedEvent: RegistrationEvent | null;
|
|
59
|
-
setSelectedEvent: import("react").Dispatch<import("react").SetStateAction<RegistrationEvent | null
|
|
65
|
+
setSelectedEvent: (value: Parameters<import("react").Dispatch<import("react").SetStateAction<RegistrationEvent | null>>>[0]) => void;
|
|
60
66
|
ticketsCount: number;
|
|
61
|
-
setTicketsCount: (nextTicketsCount: number) => void;
|
|
67
|
+
setTicketsCount: (value: Parameters<(nextTicketsCount: number) => void>[0]) => void;
|
|
62
68
|
selectedAttendanceMode: "in_person" | "online" | null;
|
|
63
|
-
setSelectedAttendanceMode: import("react").Dispatch<import("react").SetStateAction<"in_person" | "online" | null
|
|
69
|
+
setSelectedAttendanceMode: (value: Parameters<import("react").Dispatch<import("react").SetStateAction<"in_person" | "online" | null>>>[0]) => void;
|
|
64
70
|
ticketSelections: Readonly<{
|
|
65
71
|
pricingOptionId: string | null;
|
|
66
72
|
quantity: number;
|
|
@@ -71,7 +77,7 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
|
|
|
71
77
|
}>[];
|
|
72
78
|
setSelectedTicketLines: (lines: readonly EventTicketSelectionLine[]) => void;
|
|
73
79
|
selectedSlidingAmountInput: string;
|
|
74
|
-
setSelectedSlidingAmountInput: import("react").Dispatch<import("react").SetStateAction<string
|
|
80
|
+
setSelectedSlidingAmountInput: (value: Parameters<import("react").Dispatch<import("react").SetStateAction<string>>>[0]) => void;
|
|
75
81
|
selectedSlidingAmount: number | null;
|
|
76
82
|
selectedEventSlidingScale: Readonly<{
|
|
77
83
|
minAmount: number;
|
|
@@ -96,10 +102,10 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
|
|
|
96
102
|
mailingListSignup: Readonly<{
|
|
97
103
|
siteName: string;
|
|
98
104
|
}> | null;
|
|
99
|
-
setFormData: import("react").Dispatch<import("react").SetStateAction<FormData
|
|
105
|
+
setFormData: (value: Parameters<import("react").Dispatch<import("react").SetStateAction<FormData>>>[0]) => void;
|
|
100
106
|
errors: Partial<Record<keyof FormData, string>>;
|
|
101
107
|
guests: Guest[];
|
|
102
|
-
setGuests: import("react").Dispatch<import("react").SetStateAction<Guest[]
|
|
108
|
+
setGuests: (value: Parameters<import("react").Dispatch<import("react").SetStateAction<Guest[]>>>[0]) => void;
|
|
103
109
|
guestErrors: GuestErrors;
|
|
104
110
|
guestSectionShake: boolean;
|
|
105
111
|
handleGuestShakeEnd: () => void;
|
|
@@ -116,7 +122,7 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
|
|
|
116
122
|
handleLogout: () => void;
|
|
117
123
|
paymentStepState: PaymentStepState;
|
|
118
124
|
handlePaymentStepStateChange: (state: PaymentStepState) => void;
|
|
119
|
-
handlePaymentSelectionChange: (selection: PaymentSelection) => void;
|
|
125
|
+
handlePaymentSelectionChange: (value: Parameters<(selection: PaymentSelection) => void>[0]) => void;
|
|
120
126
|
paymentSelection: PaymentSelection;
|
|
121
127
|
isMembershipFastTrack: boolean;
|
|
122
128
|
waitlistClaim: import("../../shared/useWaitlistClaim").UseWaitlistClaimResult;
|
|
@@ -140,7 +146,7 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
|
|
|
140
146
|
hasMembershipEligibility: boolean;
|
|
141
147
|
requireGuestDetails: boolean;
|
|
142
148
|
discountCode: string;
|
|
143
|
-
setDiscountCode: (
|
|
149
|
+
setDiscountCode: (value: string) => void;
|
|
144
150
|
discountUiOpen: boolean;
|
|
145
151
|
setDiscountUiOpen: (isOpen: boolean) => void;
|
|
146
152
|
discountsAvailable: boolean;
|
|
@@ -149,22 +155,53 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
|
|
|
149
155
|
discountsAvailableLoading: boolean;
|
|
150
156
|
discountContext: import("../../api").DiscountContext | null;
|
|
151
157
|
shouldShowDiscountToggle: boolean;
|
|
152
|
-
verification:
|
|
158
|
+
verification: {
|
|
159
|
+
retry: () => void;
|
|
160
|
+
retryReturn: () => void;
|
|
161
|
+
status: "idle" | "polling" | "completed" | "failed" | "timeout";
|
|
162
|
+
result: import("../../api").EventCheckoutReturnResponse | null;
|
|
163
|
+
error: Error | null;
|
|
164
|
+
};
|
|
165
|
+
paymentController: {
|
|
166
|
+
backToBooking: () => Promise<void>;
|
|
167
|
+
continuePayment: () => void;
|
|
168
|
+
returnToPayment: () => void;
|
|
169
|
+
returnToBooking: () => void;
|
|
170
|
+
check: () => void;
|
|
171
|
+
retryPaymentLoad: () => void;
|
|
172
|
+
verification: {
|
|
173
|
+
retry: () => void;
|
|
174
|
+
retryReturn: () => void;
|
|
175
|
+
status: "idle" | "polling" | "completed" | "failed" | "timeout";
|
|
176
|
+
result: import("../../api").EventCheckoutReturnResponse | null;
|
|
177
|
+
error: Error | null;
|
|
178
|
+
};
|
|
179
|
+
state: import("./types").EventPaymentState;
|
|
180
|
+
recovery: import("./types").PaymentStatusRecoveryState | null;
|
|
181
|
+
showRecovery: (next: import("./types").PaymentStatusRecoveryState | null) => void;
|
|
182
|
+
restoreMailingListNote: (value: import("./types").PaymentStatusRecoveryState["mailingListSignupNote"]) => void;
|
|
183
|
+
openPayment: (checkout: import("../../api/types").EventEmbeddedCheckout, subject: import("../../api/types").EventRegistrationPaymentSubject, mailingListSignupNote?: import("./types").PaymentStatusRecoveryState["mailingListSignupNote"]) => void;
|
|
184
|
+
verify: (request: import("../../api").EventCheckoutReturnRequest, resumePayment?: boolean) => void;
|
|
185
|
+
};
|
|
153
186
|
paymentStatusRecovery: import("./types").PaymentStatusRecoveryState | null;
|
|
154
187
|
handleCheckPaymentStatus: () => void;
|
|
155
188
|
handleContinueExistingPayment: () => void;
|
|
156
189
|
handleReturnToPayment: () => void;
|
|
157
190
|
handleReturnToBooking: () => void;
|
|
191
|
+
recoveryMessage: string | null;
|
|
192
|
+
checkingNextStep: boolean;
|
|
193
|
+
handleRecoveryEmail: () => Promise<import("./event-registration.headless.contract").EventRegistrationFlowActionResult>;
|
|
158
194
|
handleDetailsComplete: () => Promise<EventRegistrationDetailsCompleteResult>;
|
|
159
195
|
handlePaymentSelect: () => Promise<void>;
|
|
160
196
|
handleUseCardInsteadOfPass: () => void;
|
|
161
197
|
handleBookForSomeoneElse: () => void;
|
|
162
|
-
handleSubmit: import("./useEventRegistrationSubmit").EventRegistrationSubmit
|
|
163
|
-
handleEventSelect: (event: RegistrationEvent) => void;
|
|
198
|
+
handleSubmit: (method: import("./PaymentSelectionStep").PaymentMethod, passId?: string | undefined, membershipId?: string | undefined, selection?: PaymentSelection | undefined) => ReturnType<import("./useEventRegistrationSubmit").EventRegistrationSubmit>;
|
|
199
|
+
handleEventSelect: (value: Parameters<(event: RegistrationEvent) => void>[0]) => void;
|
|
164
200
|
handleRetry: () => void;
|
|
165
201
|
};
|
|
166
202
|
export declare function useEventRegistrationWizardWithDeps(options: UseEventRegistrationWizardOptions, deps: EventRegistrationWizardDeps): {
|
|
167
203
|
api: import("../../api").BoundBlockApiClient;
|
|
204
|
+
nowIso: string;
|
|
168
205
|
anchorId: string;
|
|
169
206
|
occurrenceContext: {
|
|
170
207
|
id: string;
|
|
@@ -186,13 +223,16 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
|
|
|
186
223
|
preSelectedEvent: RegistrationEvent | null;
|
|
187
224
|
hasPreSelectedContext: boolean;
|
|
188
225
|
step: RegistrationStep;
|
|
189
|
-
setStep: (
|
|
226
|
+
setStep: (next: RegistrationStep) => void;
|
|
227
|
+
admission: import("./registrationCompletion").RegistrationAdmission;
|
|
228
|
+
ticketContinuation: import("./registrationCompletion").RegistrationTicketContinuation;
|
|
229
|
+
handleTicketsComplete: () => import("./event-registration.headless.contract").EventRegistrationFlowActionResult;
|
|
190
230
|
selectedEvent: RegistrationEvent | null;
|
|
191
|
-
setSelectedEvent: import("react").Dispatch<import("react").SetStateAction<RegistrationEvent | null
|
|
231
|
+
setSelectedEvent: (value: Parameters<import("react").Dispatch<import("react").SetStateAction<RegistrationEvent | null>>>[0]) => void;
|
|
192
232
|
ticketsCount: number;
|
|
193
|
-
setTicketsCount: (nextTicketsCount: number) => void;
|
|
233
|
+
setTicketsCount: (value: Parameters<(nextTicketsCount: number) => void>[0]) => void;
|
|
194
234
|
selectedAttendanceMode: "in_person" | "online" | null;
|
|
195
|
-
setSelectedAttendanceMode: import("react").Dispatch<import("react").SetStateAction<"in_person" | "online" | null
|
|
235
|
+
setSelectedAttendanceMode: (value: Parameters<import("react").Dispatch<import("react").SetStateAction<"in_person" | "online" | null>>>[0]) => void;
|
|
196
236
|
ticketSelections: Readonly<{
|
|
197
237
|
pricingOptionId: string | null;
|
|
198
238
|
quantity: number;
|
|
@@ -203,7 +243,7 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
|
|
|
203
243
|
}>[];
|
|
204
244
|
setSelectedTicketLines: (lines: readonly EventTicketSelectionLine[]) => void;
|
|
205
245
|
selectedSlidingAmountInput: string;
|
|
206
|
-
setSelectedSlidingAmountInput: import("react").Dispatch<import("react").SetStateAction<string
|
|
246
|
+
setSelectedSlidingAmountInput: (value: Parameters<import("react").Dispatch<import("react").SetStateAction<string>>>[0]) => void;
|
|
207
247
|
selectedSlidingAmount: number | null;
|
|
208
248
|
selectedEventSlidingScale: Readonly<{
|
|
209
249
|
minAmount: number;
|
|
@@ -228,10 +268,10 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
|
|
|
228
268
|
mailingListSignup: Readonly<{
|
|
229
269
|
siteName: string;
|
|
230
270
|
}> | null;
|
|
231
|
-
setFormData: import("react").Dispatch<import("react").SetStateAction<FormData
|
|
271
|
+
setFormData: (value: Parameters<import("react").Dispatch<import("react").SetStateAction<FormData>>>[0]) => void;
|
|
232
272
|
errors: Partial<Record<keyof FormData, string>>;
|
|
233
273
|
guests: Guest[];
|
|
234
|
-
setGuests: import("react").Dispatch<import("react").SetStateAction<Guest[]
|
|
274
|
+
setGuests: (value: Parameters<import("react").Dispatch<import("react").SetStateAction<Guest[]>>>[0]) => void;
|
|
235
275
|
guestErrors: GuestErrors;
|
|
236
276
|
guestSectionShake: boolean;
|
|
237
277
|
handleGuestShakeEnd: () => void;
|
|
@@ -248,7 +288,7 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
|
|
|
248
288
|
handleLogout: () => void;
|
|
249
289
|
paymentStepState: PaymentStepState;
|
|
250
290
|
handlePaymentStepStateChange: (state: PaymentStepState) => void;
|
|
251
|
-
handlePaymentSelectionChange: (selection: PaymentSelection) => void;
|
|
291
|
+
handlePaymentSelectionChange: (value: Parameters<(selection: PaymentSelection) => void>[0]) => void;
|
|
252
292
|
paymentSelection: PaymentSelection;
|
|
253
293
|
isMembershipFastTrack: boolean;
|
|
254
294
|
waitlistClaim: import("../../shared/useWaitlistClaim").UseWaitlistClaimResult;
|
|
@@ -272,7 +312,7 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
|
|
|
272
312
|
hasMembershipEligibility: boolean;
|
|
273
313
|
requireGuestDetails: boolean;
|
|
274
314
|
discountCode: string;
|
|
275
|
-
setDiscountCode: (
|
|
315
|
+
setDiscountCode: (value: string) => void;
|
|
276
316
|
discountUiOpen: boolean;
|
|
277
317
|
setDiscountUiOpen: (isOpen: boolean) => void;
|
|
278
318
|
discountsAvailable: boolean;
|
|
@@ -281,18 +321,48 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
|
|
|
281
321
|
discountsAvailableLoading: boolean;
|
|
282
322
|
discountContext: import("../../api").DiscountContext | null;
|
|
283
323
|
shouldShowDiscountToggle: boolean;
|
|
284
|
-
verification:
|
|
324
|
+
verification: {
|
|
325
|
+
retry: () => void;
|
|
326
|
+
retryReturn: () => void;
|
|
327
|
+
status: "idle" | "polling" | "completed" | "failed" | "timeout";
|
|
328
|
+
result: import("../../api").EventCheckoutReturnResponse | null;
|
|
329
|
+
error: Error | null;
|
|
330
|
+
};
|
|
331
|
+
paymentController: {
|
|
332
|
+
backToBooking: () => Promise<void>;
|
|
333
|
+
continuePayment: () => void;
|
|
334
|
+
returnToPayment: () => void;
|
|
335
|
+
returnToBooking: () => void;
|
|
336
|
+
check: () => void;
|
|
337
|
+
retryPaymentLoad: () => void;
|
|
338
|
+
verification: {
|
|
339
|
+
retry: () => void;
|
|
340
|
+
retryReturn: () => void;
|
|
341
|
+
status: "idle" | "polling" | "completed" | "failed" | "timeout";
|
|
342
|
+
result: import("../../api").EventCheckoutReturnResponse | null;
|
|
343
|
+
error: Error | null;
|
|
344
|
+
};
|
|
345
|
+
state: import("./types").EventPaymentState;
|
|
346
|
+
recovery: import("./types").PaymentStatusRecoveryState | null;
|
|
347
|
+
showRecovery: (next: import("./types").PaymentStatusRecoveryState | null) => void;
|
|
348
|
+
restoreMailingListNote: (value: import("./types").PaymentStatusRecoveryState["mailingListSignupNote"]) => void;
|
|
349
|
+
openPayment: (checkout: import("../../api/types").EventEmbeddedCheckout, subject: import("../../api/types").EventRegistrationPaymentSubject, mailingListSignupNote?: import("./types").PaymentStatusRecoveryState["mailingListSignupNote"]) => void;
|
|
350
|
+
verify: (request: import("../../api").EventCheckoutReturnRequest, resumePayment?: boolean) => void;
|
|
351
|
+
};
|
|
285
352
|
paymentStatusRecovery: import("./types").PaymentStatusRecoveryState | null;
|
|
286
353
|
handleCheckPaymentStatus: () => void;
|
|
287
354
|
handleContinueExistingPayment: () => void;
|
|
288
355
|
handleReturnToPayment: () => void;
|
|
289
356
|
handleReturnToBooking: () => void;
|
|
357
|
+
recoveryMessage: string | null;
|
|
358
|
+
checkingNextStep: boolean;
|
|
359
|
+
handleRecoveryEmail: () => Promise<import("./event-registration.headless.contract").EventRegistrationFlowActionResult>;
|
|
290
360
|
handleDetailsComplete: () => Promise<EventRegistrationDetailsCompleteResult>;
|
|
291
361
|
handlePaymentSelect: () => Promise<void>;
|
|
292
362
|
handleUseCardInsteadOfPass: () => void;
|
|
293
363
|
handleBookForSomeoneElse: () => void;
|
|
294
|
-
handleSubmit: import("./useEventRegistrationSubmit").EventRegistrationSubmit
|
|
295
|
-
handleEventSelect: (event: RegistrationEvent) => void;
|
|
364
|
+
handleSubmit: (method: import("./PaymentSelectionStep").PaymentMethod, passId?: string | undefined, membershipId?: string | undefined, selection?: PaymentSelection | undefined) => ReturnType<import("./useEventRegistrationSubmit").EventRegistrationSubmit>;
|
|
365
|
+
handleEventSelect: (value: Parameters<(event: RegistrationEvent) => void>[0]) => void;
|
|
296
366
|
handleRetry: () => void;
|
|
297
367
|
};
|
|
298
368
|
export type UseEventRegistrationWizardResult = ReturnType<typeof useEventRegistrationWizard>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { EventRegistrationNextStepResponse } from '../../api/types';
|
|
2
|
+
import type { BoundBlockApiClient } from '../../api';
|
|
3
|
+
import type { FormData, RegistrationStep, EventTicketSelectionLine, RegistrationAttendanceMode } from './types';
|
|
4
|
+
import type { EventRegistrationFlowActionResult } from './event-registration.headless.contract';
|
|
5
|
+
import { type RegistrationAdmission } from './registrationCompletion';
|
|
6
|
+
import { type resolveRegistrationTarget } from './registrationDerivations';
|
|
7
|
+
import type { PortalAuthState } from './hooks';
|
|
8
|
+
type Input = Readonly<{
|
|
9
|
+
api: Pick<BoundBlockApiClient, 'checkRegistrationNextStep'>;
|
|
10
|
+
formData: FormData;
|
|
11
|
+
onRecoveryChecked: (outcome: EventRegistrationNextStepResponse) => void;
|
|
12
|
+
registrationTarget: ReturnType<typeof resolveRegistrationTarget>;
|
|
13
|
+
selectedAttendanceMode: RegistrationAttendanceMode | null;
|
|
14
|
+
ticketSelections: readonly EventTicketSelectionLine[];
|
|
15
|
+
selectedSlidingAmount: number | null;
|
|
16
|
+
altchaSolution: string | null;
|
|
17
|
+
step: RegistrationStep;
|
|
18
|
+
portalAuthState: PortalAuthState;
|
|
19
|
+
admission: RegistrationAdmission;
|
|
20
|
+
setErrors: (errors: Partial<Record<keyof FormData, string>>) => void;
|
|
21
|
+
}>;
|
|
22
|
+
/** Guest email is navigation permission only. Discard checks when the visitor
|
|
23
|
+
* changes identity or selection before the response arrives. */
|
|
24
|
+
export declare function useGuestRegistrationRecovery(input: Input): {
|
|
25
|
+
checkingNextStep: boolean;
|
|
26
|
+
recoveryMessage: string | null;
|
|
27
|
+
checkDetailsNextStep: () => Promise<EventRegistrationNextStepResponse>;
|
|
28
|
+
handleRecoveryEmail: () => Promise<EventRegistrationFlowActionResult>;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts
CHANGED
|
@@ -1,23 +1,35 @@
|
|
|
1
1
|
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
2
|
import type { BlockApiClient } from '../../api/client';
|
|
3
|
-
import type {
|
|
4
|
-
import type { PaymentStatusRecoveryState, RegistrationResult, RegistrationStep } from './types';
|
|
5
|
-
type
|
|
6
|
-
|
|
3
|
+
import type { EventCheckoutReturnRequest, EventCheckoutReturnResponse, EventEmbeddedCheckout, EventRegistrationPaymentSubject } from '../../api/types';
|
|
4
|
+
import type { EventPaymentState, PaymentStatusRecoveryState, RegistrationResult, RegistrationStep } from './types';
|
|
5
|
+
type Options = Readonly<{
|
|
6
|
+
api: BlockApiClient;
|
|
7
|
+
beginNewSubmission: () => void;
|
|
7
8
|
setRegistrationResult: Dispatch<SetStateAction<RegistrationResult | null>>;
|
|
8
9
|
setOptionsRefreshKey: Dispatch<SetStateAction<number>>;
|
|
9
10
|
setStep: (step: RegistrationStep) => void;
|
|
11
|
+
/** Whether this page still holds the booker's details; a restored page after a reload does not. */
|
|
12
|
+
detailsInPage: () => boolean;
|
|
10
13
|
}>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
beginNewSubmission: () => void;
|
|
14
|
-
}>;
|
|
15
|
-
export declare function usePaymentStatusRecovery(options: UsePaymentStatusRecoveryOptions): {
|
|
16
|
-
recovery: PaymentStatusRecoveryState | null;
|
|
17
|
-
showRecovery: (next: PaymentStatusRecoveryState | null) => void;
|
|
18
|
-
check: () => void;
|
|
14
|
+
export declare function usePaymentStatusRecovery(options: Options): {
|
|
15
|
+
backToBooking: () => Promise<void>;
|
|
19
16
|
continuePayment: () => void;
|
|
20
17
|
returnToPayment: () => void;
|
|
21
18
|
returnToBooking: () => void;
|
|
19
|
+
check: () => void;
|
|
20
|
+
retryPaymentLoad: () => void;
|
|
21
|
+
verification: {
|
|
22
|
+
retry: () => void;
|
|
23
|
+
retryReturn: () => void;
|
|
24
|
+
status: "idle" | "polling" | "completed" | "failed" | "timeout";
|
|
25
|
+
result: EventCheckoutReturnResponse | null;
|
|
26
|
+
error: Error | null;
|
|
27
|
+
};
|
|
28
|
+
state: EventPaymentState;
|
|
29
|
+
recovery: PaymentStatusRecoveryState | null;
|
|
30
|
+
showRecovery: (next: PaymentStatusRecoveryState | null) => void;
|
|
31
|
+
restoreMailingListNote: (value: PaymentStatusRecoveryState["mailingListSignupNote"]) => void;
|
|
32
|
+
openPayment: (checkout: EventEmbeddedCheckout, subject: EventRegistrationPaymentSubject, mailingListSignupNote?: PaymentStatusRecoveryState["mailingListSignupNote"]) => void;
|
|
33
|
+
verify: (request: EventCheckoutReturnRequest, resumePayment?: boolean) => void;
|
|
22
34
|
};
|
|
23
35
|
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Dispatch } from 'react';
|
|
2
|
+
import { resolveRegistrationAdmission } from './registrationCompletion';
|
|
3
|
+
import type { RegistrationFlowAction } from './registrationStateMachine';
|
|
4
|
+
import type { EventRegistrationFlowActionResult } from './event-registration.headless.contract';
|
|
5
|
+
/** Owns admission and its navigation commands; renderers receive decisions. */
|
|
6
|
+
export declare function useRegistrationAdmission(input: Parameters<typeof resolveRegistrationAdmission>[0] & Readonly<{
|
|
7
|
+
existingRegistrationLoading: boolean;
|
|
8
|
+
ticketSelectionRequired: boolean;
|
|
9
|
+
hasValidTicketSelection: boolean;
|
|
10
|
+
dispatchFlow: Dispatch<RegistrationFlowAction>;
|
|
11
|
+
}>): {
|
|
12
|
+
admission: import("./registrationCompletion").RegistrationAdmission;
|
|
13
|
+
ticketContinuation: import("./registrationCompletion").RegistrationTicketContinuation;
|
|
14
|
+
handleTicketsComplete: () => EventRegistrationFlowActionResult;
|
|
15
|
+
onRecoveryChecked: (outcome: Extract<RegistrationFlowAction, {
|
|
16
|
+
type: "recovery-checked";
|
|
17
|
+
}>["outcome"]) => void;
|
|
18
|
+
};
|
|
@@ -3,6 +3,11 @@ import type { RegistrationStep } from './types';
|
|
|
3
3
|
* Steps that are part of the main wizard and should show the step indicator
|
|
4
4
|
*/
|
|
5
5
|
export declare const WIZARD_STEPS: RegistrationStep[];
|
|
6
|
+
/** Recovery uses the form surface without adding a progress step. */
|
|
7
|
+
export declare function getRegistrationStepPresentation(step: RegistrationStep, progressSteps: readonly RegistrationStep[]): Readonly<{
|
|
8
|
+
isWizardStep: boolean;
|
|
9
|
+
totalSteps: number;
|
|
10
|
+
}>;
|
|
6
11
|
/**
|
|
7
12
|
* Determine which wizard steps to show based on context and payment requirements.
|
|
8
13
|
*
|
|
@@ -10,7 +15,7 @@ export declare const WIZARD_STEPS: RegistrationStep[];
|
|
|
10
15
|
* @param needsPaymentStep - Whether user must complete payment method selection
|
|
11
16
|
* @returns Array of wizard steps to display
|
|
12
17
|
*/
|
|
13
|
-
export declare function getWizardStepsForContext(hasPreSelectedContext: boolean, needsPaymentStep: boolean): readonly RegistrationStep[];
|
|
18
|
+
export declare function getWizardStepsForContext(hasPreSelectedContext: boolean, needsPaymentStep: boolean, paymentActive?: boolean): readonly RegistrationStep[];
|
|
14
19
|
/**
|
|
15
20
|
* Map wizard step to step number based on the active wizard steps
|
|
16
21
|
*/
|
|
@@ -9,7 +9,7 @@ import { type EventRegistrationPageSurfaceSubject } from './event-registration/e
|
|
|
9
9
|
import { type InteractiveIslandProps } from '../../../contracts/islands';
|
|
10
10
|
import { type EventRegistrationEventSource } from './event-registration/eventSourceRecovery';
|
|
11
11
|
export declare const EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS: readonly ["Date", "Tickets", "Details"];
|
|
12
|
-
declare const EVENT_REGISTRATION_SHELL_STEP_LABELS: readonly ["Event", "Date", "Tickets", "Details", "Payment"];
|
|
12
|
+
declare const EVENT_REGISTRATION_SHELL_STEP_LABELS: readonly ["Event", "Date", "Tickets", "Details", "Payment options", "Payment"];
|
|
13
13
|
export type EventRegistrationGenericShellStepLabels = typeof EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS;
|
|
14
14
|
type EventRegistrationShellStepLabel = (typeof EVENT_REGISTRATION_SHELL_STEP_LABELS)[number];
|
|
15
15
|
export type EventRegistrationSourceProps = Readonly<{
|
package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts
CHANGED
|
@@ -549,13 +549,13 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
549
549
|
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
550
550
|
pricing: z.ZodType<import("../../../../../../../core/src/index").PublicEventPricing, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").PublicEventPricing, unknown>>;
|
|
551
551
|
paymentTerms: z.ZodObject<{
|
|
552
|
-
allowedOptions: z.ZodArray<z.
|
|
552
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
553
553
|
kind: z.ZodLiteral<"upfront">;
|
|
554
554
|
}, z.core.$strip>, z.ZodObject<{
|
|
555
555
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
556
556
|
}, z.core.$strip>, z.ZodObject<{
|
|
557
557
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
558
|
-
plan: z.
|
|
558
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
559
559
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
560
560
|
depositAmountCents: z.ZodNumber;
|
|
561
561
|
depositRefundability: z.ZodEnum<{
|
|
@@ -591,24 +591,24 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
591
591
|
week: "week";
|
|
592
592
|
month: "month";
|
|
593
593
|
}>;
|
|
594
|
-
}, z.core.$strip>]>;
|
|
594
|
+
}, z.core.$strip>], "kind">;
|
|
595
595
|
}, z.core.$strip>, z.ZodObject<{
|
|
596
596
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
597
597
|
config: z.ZodObject<{
|
|
598
598
|
upfrontAmountCents: z.ZodNumber;
|
|
599
|
-
dueDateRule: z.
|
|
599
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
600
600
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
601
601
|
daysBeforeStart: z.ZodNumber;
|
|
602
602
|
}, z.core.$strip>, z.ZodObject<{
|
|
603
603
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
604
604
|
dueAt: z.ZodString;
|
|
605
|
-
}, z.core.$strip>]>;
|
|
605
|
+
}, z.core.$strip>], "kind">;
|
|
606
606
|
depositRefundability: z.ZodEnum<{
|
|
607
607
|
refundable: "refundable";
|
|
608
608
|
non_refundable: "non_refundable";
|
|
609
609
|
}>;
|
|
610
610
|
}, z.core.$strip>;
|
|
611
|
-
}, z.core.$strip>]>>;
|
|
611
|
+
}, z.core.$strip>], "kind">>;
|
|
612
612
|
}, z.core.$strip>;
|
|
613
613
|
cancellationPolicy: z.ZodObject<{
|
|
614
614
|
refunds: z.ZodObject<{
|
|
@@ -1038,13 +1038,13 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1038
1038
|
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
1039
1039
|
pricing: z.ZodType<import("../../../../../../../core/src/index").PublicEventPricing, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").PublicEventPricing, unknown>>;
|
|
1040
1040
|
paymentTerms: z.ZodObject<{
|
|
1041
|
-
allowedOptions: z.ZodArray<z.
|
|
1041
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1042
1042
|
kind: z.ZodLiteral<"upfront">;
|
|
1043
1043
|
}, z.core.$strip>, z.ZodObject<{
|
|
1044
1044
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
1045
1045
|
}, z.core.$strip>, z.ZodObject<{
|
|
1046
1046
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
1047
|
-
plan: z.
|
|
1047
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1048
1048
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
1049
1049
|
depositAmountCents: z.ZodNumber;
|
|
1050
1050
|
depositRefundability: z.ZodEnum<{
|
|
@@ -1080,24 +1080,24 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1080
1080
|
week: "week";
|
|
1081
1081
|
month: "month";
|
|
1082
1082
|
}>;
|
|
1083
|
-
}, z.core.$strip>]>;
|
|
1083
|
+
}, z.core.$strip>], "kind">;
|
|
1084
1084
|
}, z.core.$strip>, z.ZodObject<{
|
|
1085
1085
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
1086
1086
|
config: z.ZodObject<{
|
|
1087
1087
|
upfrontAmountCents: z.ZodNumber;
|
|
1088
|
-
dueDateRule: z.
|
|
1088
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1089
1089
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
1090
1090
|
daysBeforeStart: z.ZodNumber;
|
|
1091
1091
|
}, z.core.$strip>, z.ZodObject<{
|
|
1092
1092
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
1093
1093
|
dueAt: z.ZodString;
|
|
1094
|
-
}, z.core.$strip>]>;
|
|
1094
|
+
}, z.core.$strip>], "kind">;
|
|
1095
1095
|
depositRefundability: z.ZodEnum<{
|
|
1096
1096
|
refundable: "refundable";
|
|
1097
1097
|
non_refundable: "non_refundable";
|
|
1098
1098
|
}>;
|
|
1099
1099
|
}, z.core.$strip>;
|
|
1100
|
-
}, z.core.$strip>]>>;
|
|
1100
|
+
}, z.core.$strip>], "kind">>;
|
|
1101
1101
|
}, z.core.$strip>;
|
|
1102
1102
|
cancellationPolicy: z.ZodObject<{
|
|
1103
1103
|
refunds: z.ZodObject<{
|
|
@@ -1588,13 +1588,13 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1588
1588
|
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
1589
1589
|
pricing: z.ZodType<import("../../../../../../../core/src/index").PublicEventPricing, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").PublicEventPricing, unknown>>;
|
|
1590
1590
|
paymentTerms: z.ZodObject<{
|
|
1591
|
-
allowedOptions: z.ZodArray<z.
|
|
1591
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1592
1592
|
kind: z.ZodLiteral<"upfront">;
|
|
1593
1593
|
}, z.core.$strip>, z.ZodObject<{
|
|
1594
1594
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
1595
1595
|
}, z.core.$strip>, z.ZodObject<{
|
|
1596
1596
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
1597
|
-
plan: z.
|
|
1597
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1598
1598
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
1599
1599
|
depositAmountCents: z.ZodNumber;
|
|
1600
1600
|
depositRefundability: z.ZodEnum<{
|
|
@@ -1630,24 +1630,24 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1630
1630
|
week: "week";
|
|
1631
1631
|
month: "month";
|
|
1632
1632
|
}>;
|
|
1633
|
-
}, z.core.$strip>]>;
|
|
1633
|
+
}, z.core.$strip>], "kind">;
|
|
1634
1634
|
}, z.core.$strip>, z.ZodObject<{
|
|
1635
1635
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
1636
1636
|
config: z.ZodObject<{
|
|
1637
1637
|
upfrontAmountCents: z.ZodNumber;
|
|
1638
|
-
dueDateRule: z.
|
|
1638
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1639
1639
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
1640
1640
|
daysBeforeStart: z.ZodNumber;
|
|
1641
1641
|
}, z.core.$strip>, z.ZodObject<{
|
|
1642
1642
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
1643
1643
|
dueAt: z.ZodString;
|
|
1644
|
-
}, z.core.$strip>]>;
|
|
1644
|
+
}, z.core.$strip>], "kind">;
|
|
1645
1645
|
depositRefundability: z.ZodEnum<{
|
|
1646
1646
|
refundable: "refundable";
|
|
1647
1647
|
non_refundable: "non_refundable";
|
|
1648
1648
|
}>;
|
|
1649
1649
|
}, z.core.$strip>;
|
|
1650
|
-
}, z.core.$strip>]>>;
|
|
1650
|
+
}, z.core.$strip>], "kind">>;
|
|
1651
1651
|
}, z.core.$strip>;
|
|
1652
1652
|
cancellationPolicy: z.ZodObject<{
|
|
1653
1653
|
refunds: z.ZodObject<{
|
|
@@ -2077,13 +2077,13 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2077
2077
|
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
2078
2078
|
pricing: z.ZodType<import("../../../../../../../core/src/index").PublicEventPricing, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").PublicEventPricing, unknown>>;
|
|
2079
2079
|
paymentTerms: z.ZodObject<{
|
|
2080
|
-
allowedOptions: z.ZodArray<z.
|
|
2080
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2081
2081
|
kind: z.ZodLiteral<"upfront">;
|
|
2082
2082
|
}, z.core.$strip>, z.ZodObject<{
|
|
2083
2083
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
2084
2084
|
}, z.core.$strip>, z.ZodObject<{
|
|
2085
2085
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
2086
|
-
plan: z.
|
|
2086
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2087
2087
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
2088
2088
|
depositAmountCents: z.ZodNumber;
|
|
2089
2089
|
depositRefundability: z.ZodEnum<{
|
|
@@ -2119,24 +2119,24 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2119
2119
|
week: "week";
|
|
2120
2120
|
month: "month";
|
|
2121
2121
|
}>;
|
|
2122
|
-
}, z.core.$strip>]>;
|
|
2122
|
+
}, z.core.$strip>], "kind">;
|
|
2123
2123
|
}, z.core.$strip>, z.ZodObject<{
|
|
2124
2124
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
2125
2125
|
config: z.ZodObject<{
|
|
2126
2126
|
upfrontAmountCents: z.ZodNumber;
|
|
2127
|
-
dueDateRule: z.
|
|
2127
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2128
2128
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
2129
2129
|
daysBeforeStart: z.ZodNumber;
|
|
2130
2130
|
}, z.core.$strip>, z.ZodObject<{
|
|
2131
2131
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
2132
2132
|
dueAt: z.ZodString;
|
|
2133
|
-
}, z.core.$strip>]>;
|
|
2133
|
+
}, z.core.$strip>], "kind">;
|
|
2134
2134
|
depositRefundability: z.ZodEnum<{
|
|
2135
2135
|
refundable: "refundable";
|
|
2136
2136
|
non_refundable: "non_refundable";
|
|
2137
2137
|
}>;
|
|
2138
2138
|
}, z.core.$strip>;
|
|
2139
|
-
}, z.core.$strip>]>>;
|
|
2139
|
+
}, z.core.$strip>], "kind">>;
|
|
2140
2140
|
}, z.core.$strip>;
|
|
2141
2141
|
cancellationPolicy: z.ZodObject<{
|
|
2142
2142
|
refunds: z.ZodObject<{
|