@riverbankcms/sdk 0.151.0 → 0.153.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/CHANGELOG.md +52 -0
- package/dist/{EventEmbeddedCheckoutStep-BBHbM22D.mjs → EventEmbeddedCheckoutStep-veN-QiAE.mjs} +10 -9
- package/dist/{PreviewEditorSidebar-BHplI9HE.mjs → PreviewEditorSidebar-jI_4DTZY.mjs} +4 -3
- package/dist/{PreviewEditorUI-DuyN8nsD.mjs → PreviewEditorUI-ORkVZhfu.mjs} +5 -4
- package/dist/{SdkPreviewModeRuntime-CR5ypwxJ.mjs → SdkPreviewModeRuntime-DaNqevI1.mjs} +341 -164
- package/dist/{SiteChromeCustomizeContext-D5t6joF_.mjs → SiteChromeCustomizeContext-CgNuBHC0.mjs} +27124 -39230
- package/dist/ThemedButton-X2UxhW6F.mjs +16525 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +52 -52
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +2357 -7859
- package/dist/_dts/api/src/bookingOperations.d.ts +5 -3
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/communications.d.ts +19 -5
- package/dist/_dts/api/src/endpoints.d.ts +7 -0
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/navigation/types.d.ts +7 -0
- package/dist/_dts/api/src/navigation.d.ts +1 -1
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +10 -1
- package/dist/_dts/api/src/sdkThemeWire.d.ts +186 -1434
- package/dist/_dts/api/src/shared-contracts.d.ts +10 -0
- package/dist/_dts/api/src/siteAssets.d.ts +1 -0
- package/dist/_dts/api/src/siteInfrastructure.d.ts +2 -1
- package/dist/_dts/api/src/teamMembers.d.ts +2 -27
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/layoutGridDomain.d.ts +3 -13
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -0
- package/dist/_dts/blocks/src/definitions.d.ts +1 -1
- package/dist/_dts/blocks/src/index.d.ts +2 -0
- package/dist/_dts/blocks/src/lib/media.d.ts +1 -0
- package/dist/_dts/blocks/src/lib/picsum.d.ts +2 -2
- package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +2 -1
- package/dist/_dts/blocks/src/primitives/content/utils/sanitizeHref.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +212 -804
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +7 -2
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +45 -45
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/shared/teamMembers.d.ts +4 -7
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +2 -2
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +6 -6
- package/dist/_dts/blocks/src/system/fields/backgroundContent.d.ts +377 -1
- package/dist/_dts/blocks/src/system/helpers/backgroundMedia.d.ts +6 -2
- package/dist/_dts/blocks/src/system/helpers/normalizeMailingListBlockContent.d.ts +2 -0
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +3 -3
- package/dist/_dts/blocks/src/system/layout/repeaterGrid.d.ts +12 -5
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +3 -3
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +24 -24
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +1 -1
- package/dist/_dts/blocks/src/system/registry.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +0 -5
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/schemas/events.d.ts +971 -0
- package/dist/_dts/blocks/src/system/runtime/api/schemas/waitlist-claims.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +10 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +10 -136
- 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/useBookingFlowController.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSubmission.state.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +5 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/ImageResolveContext.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +50 -202
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +51 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +6 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.hooks.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.state.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/BookingEntryViews.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +19 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +24 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardContent.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventSelectionStep.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/GuestDetailsSection.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentStatusStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SingleTicketEntitlementNote.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/VerifyingTimeoutStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingCardDisplay.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingEntry.d.ts +154 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingFocus.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/finishedBooking.d.ts +77 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/index.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/offeringNoun.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentResponse.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +33 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDisplay.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDraft.state.d.ts +60 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +58 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +23 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useBookingBarFacts.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationRecoveryRequest.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +4 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +1563 -31
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.d.ts +2 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +147 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +50 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/waitlistClaimRestoration.d.ts +6 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts +85 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +53 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CardListItem.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/MonthLookView.d.ts +10 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +290 -882
- package/dist/_dts/blocks/src/system/runtime/nodes/file-download.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +22 -90
- package/dist/_dts/blocks/src/system/runtime/nodes/mediaContext.d.ts +69 -0
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptionCopy.d.ts +5 -1
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +37 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/ModalShell.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/shared/components/PaymentChoiceRows.d.ts +28 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/StepIndicator.d.ts +6 -8
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +9 -12
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.state.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/themePortalRoot.d.ts +10 -15
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/links.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/bookingInstalmentSchedule.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/confirmationEmailPayment.d.ts +14 -14
- package/dist/_dts/commerce/src/purchase/confirmationPayment.d.ts +65 -0
- package/dist/_dts/commerce/src/purchase/confirmationPaymentSchema.d.ts +66 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/orderPaymentState.d.ts +8 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +3 -3
- package/dist/_dts/content-model/src/templates/defaults.d.ts +2 -2
- package/dist/_dts/core/src/appointment-booking-terms.d.ts +20 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +70 -0
- package/dist/_dts/core/src/branded.d.ts +0 -2
- package/dist/_dts/core/src/demo-claim-access.d.ts +1 -1
- package/dist/_dts/core/src/demo-claim-readiness.d.ts +18 -0
- package/dist/_dts/core/src/demo-lifecycle-status.d.ts +1 -1
- package/dist/_dts/core/src/demo-warm-pool-target.d.ts +1 -1
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/mailing-list-runtime.d.ts +2 -2
- package/dist/_dts/core/src/mailing-list-setup-parser.d.ts +9 -1
- package/dist/_dts/core/src/mailing-list-setup.d.ts +9 -1
- package/dist/_dts/core/src/mailing-list-submission.d.ts +1 -1
- package/dist/_dts/core/src/mailing-list-targeting-availability.d.ts +68 -0
- package/dist/_dts/core/src/mailing-list-targeting.d.ts +11 -1
- package/dist/_dts/core/src/ticket-quantity.d.ts +13 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +106 -36
- package/dist/_dts/editor/src/chrome/chromeLayers.d.ts +7 -0
- package/dist/_dts/editor/src/index.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/index.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/media/admitEditorMediaField.d.ts +4 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkAddressInput.d.ts +8 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkContentList.d.ts +12 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +5 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +8 -2
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +4 -3
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/draft.d.ts +44 -0
- package/dist/_dts/editor-blocks/src/widgets/link/presentation.d.ts +13 -0
- package/dist/_dts/editor-blocks/src/widgets/link/types.d.ts +14 -0
- package/dist/_dts/editor-blocks/src/widgets/link/useRoutableContent.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/widgets/link/utils.d.ts +5 -4
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/targetingState.d.ts +13 -8
- package/dist/_dts/media-core/src/assetsInUseSummary.d.ts +6 -0
- package/dist/_dts/media-core/src/contentMediaAudit.d.ts +3 -2
- package/dist/_dts/media-core/src/fileStorage.d.ts +4 -3
- package/dist/_dts/media-core/src/index.d.ts +5 -0
- package/dist/_dts/media-core/src/media.d.ts +406 -0
- package/dist/_dts/media-core/src/mediaIdentifierSchema.d.ts +3 -0
- package/dist/_dts/media-core/src/mediaKinds.d.ts +2 -0
- package/dist/_dts/media-core/src/mediaUsageProjection.d.ts +13 -1
- package/dist/_dts/media-core/src/mediaWriteNormalizer.d.ts +2 -6
- package/dist/_dts/media-core/src/portableMediaReferences.d.ts +8 -21
- package/dist/_dts/media-core/src/renderableMediaAsset.d.ts +28 -14
- package/dist/_dts/media-core/src/renderableMediaAssetAdmission.d.ts +15 -0
- package/dist/_dts/media-core/src/storageObjectKey.d.ts +12 -0
- package/dist/_dts/media-editor/src/CropDialog.d.ts +6 -3
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -1
- package/dist/_dts/media-editor/src/MediaPreview.d.ts +3 -3
- package/dist/_dts/media-editor/src/cropEditorSource.d.ts +5 -7
- package/dist/_dts/media-editor/src/editorMediaState.d.ts +29 -0
- package/dist/_dts/media-editor/src/mediaSelection.d.ts +1 -2
- package/dist/_dts/media-editor/src/runtimeMediaAssetState.d.ts +4 -5
- package/dist/_dts/media-editor/src/types.d.ts +1 -1
- package/dist/_dts/media-editor/src/utils.d.ts +0 -1
- package/dist/_dts/media-react/src/components/cropChangePolicy.d.ts +4 -1
- package/dist/_dts/media-react/src/components/cropGeometry.d.ts +1 -0
- package/dist/_dts/media-react/src/components/useImageCropperController.d.ts +1 -0
- package/dist/_dts/media-react/src/hooks/useSupabaseMediaUploader.d.ts +1 -1
- package/dist/_dts/media-react/src/internal/supabaseResumableUpload.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/blocks/BlockBackgroundChooser.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeSelectedMedia.d.ts +11 -12
- package/dist/_dts/preview-next/src/client/preview/previewModeRootAttribute.d.ts +11 -0
- package/dist/_dts/sdk/src/contracts/content.d.ts +2 -45
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/rendering.d.ts +3 -3
- package/dist/_dts/sdk/src/index.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +0 -1
- package/dist/_dts/sdk/src/rendering/image.d.ts +14 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +5 -2
- package/dist/_dts/sdk/src/rendering/link.d.ts +5 -0
- package/dist/_dts/sdk/src/rendering/mediaAssets.d.ts +2 -4
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/opaquePanels.d.ts +3 -3
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +397 -26
- package/dist/_dts/theme-core/src/buttons/types.d.ts +21 -21
- package/dist/_dts/theme-core/src/cards/types.d.ts +34 -34
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/lib/media.d.ts +2 -616
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +261 -2619
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/schema.d.ts +548 -3187
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +9 -9
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/styles/skinTokens.d.ts +2 -2
- package/dist/_dts/theme-core/src/typography/schema.d.ts +2 -2
- package/dist/client/BookingMailingListNote-DrchYW1m.mjs +386 -0
- package/dist/client/{CardListItem-ZDLYh6dL.mjs → CardListItem-CC_GVmF6.mjs} +5 -5
- package/dist/client/CheckIcon-CpyXr-Kg.mjs +35 -0
- package/dist/client/{CheckboxChoice-M-3HycLw.mjs → CheckboxChoice-Dq30m3DO.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-BMtvPTWE.mjs → DemoBookingPortalAccess-ojwbVUmx.mjs} +85 -85
- package/dist/client/{EventCombined.client-DUm_DOxW.mjs → EventCombined.client-DyN0v0Xk.mjs} +7 -9
- package/dist/client/{EventEmbeddedCheckoutStep-DsNNzgRm.mjs → EventEmbeddedCheckoutStep-CgfpKc3n.mjs} +11 -10
- package/dist/client/{EventListing.client-DjNYGUVm.mjs → EventListing.client-CuOuvYMz.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DuFiOHq_.mjs → LeafletStaticMap-B0WhRr3j.mjs} +1 -1
- package/dist/client/{ModalShell-CqkBvBIC.mjs → ModalShell-BXzucfR6.mjs} +83 -12
- package/dist/client/{RichText-LjPCUGGi.mjs → RichText-C1fIXBzA.mjs} +50 -34
- package/dist/client/{ThemedButton-DZKjtaDD.mjs → ThemedButton-B7HFqFBg.mjs} +1 -2
- package/dist/client/{accordion-Qe--SILD.mjs → accordion-DCDVWSye.mjs} +1 -1
- package/dist/client/{bookingForm-3BCl4g_f.mjs → bookingForm-BJ3C4GlM.mjs} +321 -154
- package/dist/client/bookings.mjs +118607 -22429
- package/dist/client/{carousel-h2YjKOS2.mjs → carousel-BSCBhfHY.mjs} +2 -2
- package/dist/client/{carousel.client-BLrd4hmY.mjs → carousel.client-GEtOGsxo.mjs} +46 -41
- package/dist/client/{cart-5NeiigVd.mjs → cart-Yv-aAtck.mjs} +3 -3
- package/dist/client/{checkout-G4UWjOEw.mjs → checkout-B9xDkl30.mjs} +3 -3
- package/dist/client/client.mjs +37511 -33793
- package/dist/client/{context-GK4-AVAh.mjs → context-BOGe3rIA.mjs} +275 -10
- package/dist/client/{eventCalendar-Prw3Yo_L.mjs → eventCalendar-D6M0T9hs.mjs} +18 -17
- package/dist/client/{eventCombined-BUugi6__.mjs → eventCombined-NM4UFBq8.mjs} +4 -4
- package/dist/client/{eventDetails-CBHUda-R.mjs → eventDetails-f_FhV4O8.mjs} +3 -4
- package/dist/client/{eventListing-CQeG45Dg.mjs → eventListing-WLkfAROh.mjs} +4 -4
- package/dist/client/{eventRegistration-Dif3p3oJ.mjs → eventRegistration-D3ejfLvW.mjs} +2209 -2144
- package/dist/client/{form-Cf0WMtfG.mjs → form-D5Or2Jyu.mjs} +5 -6
- package/dist/client/{headerSection-Bqdr3JWp.mjs → headerSection-hWgnv27V.mjs} +9 -9
- package/dist/client/hooks.mjs +17278 -16106
- package/dist/client/{locationMap-BVvPou4O.mjs → locationMap-Di1K0O2S.mjs} +3 -4
- package/dist/client/{media-47fcnhzD.mjs → media-D29-F1u_.mjs} +183 -362
- package/dist/client/mediaContext-CwbbimYB.mjs +135 -0
- package/dist/client/{newsletterForm-Cx-1dnic.mjs → newsletterForm-CwxcwTNO.mjs} +5 -5
- package/dist/client/{productDetail-DaUMaJYk.mjs → productDetail-BLSnhPdA.mjs} +3 -3
- package/dist/client/{productList-BKQlWEKE.mjs → productList-oGytONOX.mjs} +3 -3
- package/dist/client/{propsDecoder-DO5iXphQ.mjs → propsDecoder-lf_dTeZS.mjs} +18659 -14473
- package/dist/client/renderableMediaAssetAdmission-CHkXYDC_.mjs +143 -0
- package/dist/client/rendering/client.mjs +58971 -55722
- package/dist/client/rendering/islands.mjs +20 -23
- package/dist/client/rendering.mjs +41610 -37917
- package/dist/client/{routeIslandApiConfig-BNm0Z3-g.mjs → routeIslandApiConfig-Bc_WVPS8.mjs} +1 -1
- package/dist/client/{shop-D7ytcFBC.mjs → shop-BQ3bR7fA.mjs} +16 -14
- package/dist/client/{shop-commerce-D68-hHy2.mjs → shop-commerce-DDPll6ZC.mjs} +9 -9
- package/dist/client/{shop-commerce-store-Cu7X2lyu.mjs → shop-commerce-store-DO-e1pTe.mjs} +1 -1
- package/dist/client/{shopShared-D12rxE69.mjs → shopShared-BylM9jh1.mjs} +5 -5
- package/dist/client/themePortalRoot-DS92SRVZ.mjs +47 -0
- package/dist/client/{TerminalPanel-DOTSUCO0.mjs → useDiscountCodeUi-B1Puub2v.mjs} +60 -77
- package/dist/client/{useEventPagination-jgKa67KV.mjs → useEventPagination-BBhkmQaT.mjs} +6 -8
- package/dist/preview-next/before-render.mjs +96 -4
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/keepAlive.mjs +7 -0
- package/dist/preview-next/middleware.mjs +7 -0
- package/dist/{sdk-runtime-4cCWO_3i.mjs → sdk-runtime-DWCvhJGu.mjs} +1 -1
- package/dist/server/components.mjs +21820 -19902
- package/dist/server/config-validation.mjs +1786 -642
- package/dist/server/config.mjs +1786 -642
- package/dist/server/data.mjs +17220 -16076
- package/dist/server/index.mjs +234 -2
- package/dist/server/next.mjs +22505 -20528
- package/dist/server/page-converter.mjs +7587 -6572
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +20487 -19044
- package/dist/server/rendering.mjs +21844 -19901
- package/dist/server/routing.mjs +19186 -17961
- package/dist/server/server.mjs +1874 -695
- package/dist/server/theme-bridge.mjs +1371 -914
- package/dist/server/theme.mjs +154 -37
- package/dist/{spinner-tSdG9YvG.mjs → spinner-BYM-Y81w.mjs} +1 -1
- package/dist/styles/index.css +1088 -721
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/OrderSummary.d.ts +0 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +0 -22
- package/dist/_dts/blocks/src/system/runtime/shared/components/SelectableOptionCard.d.ts +0 -30
- package/dist/client/BookingMailingListNote-DlDSs5Vm.mjs +0 -567
- package/dist/client/colorStyles-DTunOThj.mjs +0 -1316
- package/dist/client/pricing-CMD0kADd.mjs +0 -314
- package/dist/client/result-DRW7JWXz.mjs +0 -30
- package/dist/client/scrollToBlock-C86BYkyV.mjs +0 -17
- package/dist/client/themePortalRoot-AGs4cE7t.mjs +0 -30
- package/dist/spinner-BL3kW9Uh.mjs +0 -803
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDraft.state.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { EventRegistrationErrorAction } from '../../../../../../commerce/src/purchase/index';
|
|
2
|
+
import type { WaitlistClaimCredential, WaitlistClaimRequest } from '../../shared/useWaitlistClaim.state';
|
|
3
|
+
import type { ResolveWaitlistClaimResponse } from '../../api/types';
|
|
4
|
+
import type { EventTicketSelectionLine, FormData, Guest, RegistrationEvent } from './types';
|
|
5
|
+
import type { WaitlistClaimRestoration } from './waitlistClaimRestoration';
|
|
6
|
+
export type WaitlistInvitation = Readonly<{
|
|
7
|
+
kind: 'none';
|
|
8
|
+
}> | Readonly<{
|
|
9
|
+
kind: 'resolving';
|
|
10
|
+
request: WaitlistClaimRequest;
|
|
11
|
+
}> | Readonly<{
|
|
12
|
+
kind: 'portal-login-required';
|
|
13
|
+
request: WaitlistClaimRequest;
|
|
14
|
+
message: string;
|
|
15
|
+
}> | Readonly<{
|
|
16
|
+
kind: 'error';
|
|
17
|
+
request: WaitlistClaimRequest;
|
|
18
|
+
message: string;
|
|
19
|
+
action: EventRegistrationErrorAction;
|
|
20
|
+
}> | Readonly<{
|
|
21
|
+
kind: 'ready';
|
|
22
|
+
request: WaitlistClaimRequest;
|
|
23
|
+
claim: ResolveWaitlistClaimResponse;
|
|
24
|
+
restoration: Extract<WaitlistClaimRestoration, {
|
|
25
|
+
kind: 'ready';
|
|
26
|
+
}>;
|
|
27
|
+
}>;
|
|
28
|
+
export type RegistrationDraftData = Readonly<{
|
|
29
|
+
selectedEvent: RegistrationEvent | null;
|
|
30
|
+
formData: FormData;
|
|
31
|
+
guests: Guest[];
|
|
32
|
+
selectedAttendanceMode: 'in_person' | 'online' | null;
|
|
33
|
+
selectedTicketLines: EventTicketSelectionLine[];
|
|
34
|
+
selectedSlidingAmountInput: string;
|
|
35
|
+
}>;
|
|
36
|
+
export type StateUpdate<T> = T | ((current: T) => T);
|
|
37
|
+
export type RegistrationDraftEdit = {
|
|
38
|
+
[K in keyof RegistrationDraftData]: Readonly<{
|
|
39
|
+
field: K;
|
|
40
|
+
value: StateUpdate<RegistrationDraftData[K]>;
|
|
41
|
+
}>;
|
|
42
|
+
}[keyof RegistrationDraftData];
|
|
43
|
+
export declare function createRegistrationDraftData(event: RegistrationEvent | null): RegistrationDraftData;
|
|
44
|
+
export declare function editRegistrationDraft(draft: RegistrationDraftData, edit: RegistrationDraftEdit): RegistrationDraftData;
|
|
45
|
+
/** Ready invitations own their reserved selection; identity fields remain editable. */
|
|
46
|
+
export declare function canEditInvitedDraft(invitation: WaitlistInvitation, edit: RegistrationDraftEdit): boolean;
|
|
47
|
+
export declare function beginWaitlistInvitation(credential: WaitlistClaimCredential | null): WaitlistInvitation;
|
|
48
|
+
/** A source notification is not a new attempt when its credential is unchanged. */
|
|
49
|
+
export declare function receiveWaitlistInvitation(invitation: WaitlistInvitation, credential: WaitlistClaimCredential | null): WaitlistInvitation;
|
|
50
|
+
export declare function restoreRegistrationDraft(draft: RegistrationDraftData, claim: ResolveWaitlistClaimResponse, restoration: Extract<WaitlistClaimRestoration, {
|
|
51
|
+
kind: 'ready';
|
|
52
|
+
}>): RegistrationDraftData;
|
|
53
|
+
export type InvitationSubmission = Readonly<{
|
|
54
|
+
kind: 'available';
|
|
55
|
+
credential: WaitlistClaimCredential | null;
|
|
56
|
+
}> | Readonly<{
|
|
57
|
+
kind: 'blocked';
|
|
58
|
+
message: string;
|
|
59
|
+
}>;
|
|
60
|
+
export declare function invitationSubmission(invitation: WaitlistInvitation): InvitationSubmission;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts
CHANGED
|
@@ -17,6 +17,6 @@ export declare function recoverRegistrationError(action: EventRegistrationErrorA
|
|
|
17
17
|
canJoinWaitlist?: boolean;
|
|
18
18
|
refreshOptions: () => void;
|
|
19
19
|
clearError: () => void;
|
|
20
|
-
setStep: (step: RegistrationStep) => void;
|
|
20
|
+
setStep: (step: Exclude<RegistrationStep, 'success'>) => void;
|
|
21
21
|
reset: () => void;
|
|
22
22
|
}>): void;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PublicEventRunGroup } from '../../../blocks/events/shared/runGrouping';
|
|
2
|
+
import type { ConfirmedBookingIdentity } from '../../api/types';
|
|
2
3
|
import type { PublicEvent, RegistrationEvent } from './types';
|
|
3
4
|
export declare function toRegistrationEvent(event: PublicEvent): RegistrationEvent;
|
|
4
5
|
export declare function toRegistrationEvents(events: readonly PublicEvent[]): RegistrationEvent[];
|
|
@@ -15,3 +16,5 @@ export declare function toWholeSeriesRegistrationEvents(events: readonly PublicE
|
|
|
15
16
|
export declare function getRegistrationStartAt(event: Pick<RegistrationEvent, 'registrationSubject' | 'startsAt'> | null | undefined, occurrenceContext: Readonly<{
|
|
16
17
|
startsAt: string;
|
|
17
18
|
}> | null | undefined): string | undefined;
|
|
19
|
+
/** Confirmation identifies its persisted subject, independently of the current draft. */
|
|
20
|
+
export declare function findBookedEvent(events: readonly RegistrationEvent[], identity: ConfirmedBookingIdentity): RegistrationEvent | null;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts
CHANGED
|
@@ -1,17 +1,56 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { WaitlistClaimCredential, WaitlistClaimLookup } from '../../shared/useWaitlistClaim.state';
|
|
2
|
+
import { type RegistrationDraftData, type RegistrationDraftEdit, type WaitlistInvitation } from './registrationDraft.state';
|
|
3
|
+
import type { RegistrationEvent } from './types';
|
|
4
|
+
import type { EventSourceRecovery } from './eventSourceRecovery';
|
|
5
|
+
import type { EligibilityData, PaymentSelection, RegistrationStep, RegistrationResult } from './types';
|
|
2
6
|
export type SelectionSource = 'auto' | 'manual';
|
|
3
|
-
|
|
4
|
-
|
|
7
|
+
type RegistrationDraftState = {
|
|
8
|
+
draft: RegistrationDraftData;
|
|
5
9
|
ticketsCount: number;
|
|
6
|
-
isAuthenticated: boolean;
|
|
7
10
|
eligibility: EligibilityData | null;
|
|
8
11
|
passOptOut: boolean;
|
|
9
12
|
paymentSelection: PaymentSelection;
|
|
10
13
|
selectionSource: SelectionSource;
|
|
11
14
|
};
|
|
15
|
+
export type RegistrationFlowState = Readonly<{
|
|
16
|
+
isAuthenticated: boolean;
|
|
17
|
+
}> & RegistrationDraftState & (Readonly<{
|
|
18
|
+
step: Exclude<RegistrationStep, 'success'>;
|
|
19
|
+
invitation: WaitlistInvitation;
|
|
20
|
+
}> | Readonly<{
|
|
21
|
+
step: 'success';
|
|
22
|
+
result: RegistrationResult;
|
|
23
|
+
invitation: Readonly<{
|
|
24
|
+
kind: 'none';
|
|
25
|
+
}>;
|
|
26
|
+
}>);
|
|
27
|
+
/** Constructors of a fresh draft cannot return invitation authority. */
|
|
28
|
+
type FreshRegistrationFlowState = Exclude<RegistrationFlowState, {
|
|
29
|
+
step: 'success';
|
|
30
|
+
}> & Readonly<{
|
|
31
|
+
invitation: Extract<WaitlistInvitation, {
|
|
32
|
+
kind: 'none';
|
|
33
|
+
}>;
|
|
34
|
+
}>;
|
|
12
35
|
export type RegistrationFlowAction = {
|
|
36
|
+
type: 'draft-edited';
|
|
37
|
+
edit: RegistrationDraftEdit;
|
|
38
|
+
} | {
|
|
39
|
+
type: 'claim-arrived';
|
|
40
|
+
credential: WaitlistClaimCredential | null;
|
|
41
|
+
} | {
|
|
42
|
+
type: 'claim-updated';
|
|
43
|
+
lookup: WaitlistClaimLookup;
|
|
44
|
+
events: EventSourceRecovery<RegistrationEvent>;
|
|
45
|
+
occurrenceContextId: string | undefined;
|
|
46
|
+
} | {
|
|
47
|
+
type: 'refresh-invitation';
|
|
48
|
+
} | {
|
|
13
49
|
type: 'set-step';
|
|
14
|
-
step: RegistrationStep
|
|
50
|
+
step: Exclude<RegistrationStep, 'success'>;
|
|
51
|
+
} | {
|
|
52
|
+
type: 'completed';
|
|
53
|
+
result: RegistrationResult;
|
|
15
54
|
} | {
|
|
16
55
|
type: 'tickets-completed';
|
|
17
56
|
} | {
|
|
@@ -30,16 +69,24 @@ export type RegistrationFlowAction = {
|
|
|
30
69
|
type: 'use-card-instead-of-pass';
|
|
31
70
|
} | {
|
|
32
71
|
type: 'use-pass';
|
|
33
|
-
} | {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} | {
|
|
72
|
+
} | (EventChoice & Readonly<{
|
|
73
|
+
navigation: 'choose' | 'advance';
|
|
74
|
+
}>) | {
|
|
37
75
|
type: 'reset';
|
|
38
76
|
hasPreSelectedContext: boolean;
|
|
39
77
|
};
|
|
40
|
-
export
|
|
78
|
+
export type EventChoice = Readonly<{
|
|
79
|
+
type: 'event-continued';
|
|
80
|
+
}> | Readonly<{
|
|
81
|
+
type: 'event-replaced';
|
|
82
|
+
event: RegistrationEvent;
|
|
83
|
+
}>;
|
|
84
|
+
/** Identity, not clicking a row, decides whether this is a new booking. */
|
|
85
|
+
export declare function decideEventChoice(state: Pick<RegistrationFlowState, 'draft' | 'invitation'>, event: RegistrationEvent): EventChoice;
|
|
86
|
+
export declare function createInitialRegistrationFlowState(hasPreSelectedContext: boolean): FreshRegistrationFlowState;
|
|
41
87
|
export declare function areEventRegistrationPaymentSelectionsEqual(a: PaymentSelection, b: PaymentSelection): boolean;
|
|
42
88
|
export declare function registrationFlowReducer(state: RegistrationFlowState, action: RegistrationFlowAction): RegistrationFlowState;
|
|
89
|
+
export declare function isRegistrationLocked(step: RegistrationStep): boolean;
|
|
43
90
|
/**
|
|
44
91
|
* The pass the customer turned down, while it would otherwise cover this booking.
|
|
45
92
|
*
|
|
@@ -54,3 +101,4 @@ export declare function requiresPaymentStep(params: {
|
|
|
54
101
|
eventRequiresPayment: boolean;
|
|
55
102
|
paymentSelection: PaymentSelection;
|
|
56
103
|
}): boolean;
|
|
104
|
+
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EventRegistrationRecoveryRequest } from './useEventRegistrationRecoveryRequest';
|
|
1
2
|
import type { PublicEvent } from '../../../blocks/events/shared/types';
|
|
2
3
|
import { type PublicEventRunGroup } from '../../../blocks/events/shared/runGrouping';
|
|
3
4
|
import { type EventRegistrationPageSurfaceSubject } from './eventScope';
|
|
@@ -12,6 +13,22 @@ export type EventRegistrationSurfacePlan = Readonly<{
|
|
|
12
13
|
}> | Readonly<{
|
|
13
14
|
kind: 'mixedBookingScopes';
|
|
14
15
|
}>;
|
|
16
|
+
/** Admission only limits fresh bookings; existing purchases always reach recovery. */
|
|
17
|
+
export declare function registrationAdmissionSurface(input: Readonly<{
|
|
18
|
+
availability: 'open' | 'closed' | 'empty';
|
|
19
|
+
recoveryRequested: boolean;
|
|
20
|
+
}>): 'registration' | 'closed' | 'empty';
|
|
21
|
+
/** Resolve the host guard once; past-date notices only concern new bookings. */
|
|
22
|
+
export declare function resolveEventRegistrationClientSurface(input: Readonly<{
|
|
23
|
+
plan: EventRegistrationSurfacePlan;
|
|
24
|
+
pastStartsAt: string | null;
|
|
25
|
+
recoveryRequest: EventRegistrationRecoveryRequest;
|
|
26
|
+
}>): Readonly<{
|
|
27
|
+
kind: 'wizard' | 'unavailable';
|
|
28
|
+
}> | Readonly<{
|
|
29
|
+
kind: 'past';
|
|
30
|
+
startsAt: string;
|
|
31
|
+
}>;
|
|
15
32
|
export declare function planEventRegistrationSurface(input: Readonly<{
|
|
16
33
|
events: readonly PublicEvent[];
|
|
17
34
|
occurrenceContext?: Readonly<{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RegistrationDisplay } from './registrationDisplay';
|
|
1
2
|
import type { BookingMailingListNote as BookingSignupNote } from '../../../../../../core/src/index';
|
|
2
3
|
import type { PublicEventPricing } from '../../../../../../core/src/index';
|
|
3
4
|
import type { MailingListRuntimeContext } from '../../../../../../core/src/index';
|
|
@@ -7,7 +8,7 @@ import type { PublicEvent, PublicEventPricingOption, PublicEventPricingOptionAva
|
|
|
7
8
|
import type { BlockBookingPaymentTerms } from '../../../blocks/shared/bookingPaymentTerms';
|
|
8
9
|
import type { PublicMembershipProductCollection, PublicPassProductCollection } from '../../../blocks/shop.shared';
|
|
9
10
|
import type { BlockButtonRole } from '../../../constants/buttonRoles';
|
|
10
|
-
import type { AvailableMembership, AvailablePass, DirectCheckoutCollectionOptionKind, EventTicketLineSummary } from '../../api/types';
|
|
11
|
+
import type { AvailableMembership, AvailablePass, DirectCheckoutCollectionOptionKind, EventTicketLineSummary, EventBookingOutcome } from '../../api/types';
|
|
11
12
|
import type { EventRegistrationPageSurfaceSubject } from './eventScope';
|
|
12
13
|
export type { OccurrenceContext, PublicEvent };
|
|
13
14
|
export type { FormData } from '../../shared';
|
|
@@ -27,8 +28,7 @@ export type GuestErrors = Record<number, {
|
|
|
27
28
|
name?: string;
|
|
28
29
|
}>;
|
|
29
30
|
export type RegistrationStep = 'select-event' | 'select-tickets' | 'enter-details' | 'select-payment' | 'submitting' | 'payment' | 'verifying-payment' | 'verifying-timeout' | 'payment-status' | 'payment-failed' | 'success' | 'error';
|
|
30
|
-
|
|
31
|
-
status: 'confirmed' | 'waitlist';
|
|
31
|
+
type RegistrationResultCopy = {
|
|
32
32
|
/**
|
|
33
33
|
* Optional success copy overrides (e.g. idempotent "already registered" responses).
|
|
34
34
|
* When omitted, the block-level `successMessage`/default copy is used.
|
|
@@ -39,6 +39,12 @@ export type RegistrationResult = {
|
|
|
39
39
|
variant?: 'success' | 'info';
|
|
40
40
|
mailingListSignupNote?: BookingSignupNote;
|
|
41
41
|
};
|
|
42
|
+
export type RegistrationResult = RegistrationResultCopy & (Readonly<{
|
|
43
|
+
status: 'confirmed';
|
|
44
|
+
outcome: EventBookingOutcome;
|
|
45
|
+
}> | Readonly<{
|
|
46
|
+
status: 'waitlist';
|
|
47
|
+
}>);
|
|
42
48
|
export type PaymentStatusRecoveryState = Readonly<{
|
|
43
49
|
subject: import('../../api/types').EventRegistrationPaymentSubject;
|
|
44
50
|
mailingListSignupNote?: BookingSignupNote;
|
|
@@ -124,7 +130,7 @@ export type RegistrationSubject = Readonly<{
|
|
|
124
130
|
/** Ordered live booking sessions; cancellation history stays on PublicEvent.run. */
|
|
125
131
|
sessions: readonly PublicRunSession[];
|
|
126
132
|
}>;
|
|
127
|
-
export type RegistrationEvent = Pick<PublicEvent, 'seriesId' | 'title' | 'startsAt' | 'endsAt' | 'bookingAvailability' | 'deliveryMode' | 'attendanceModes' | 'capacity' | 'registeredCount' | 'availableSpots' | 'waitlistEnabled' | 'venue' | 'eventCategory' | 'teamMembers' | 'status' | 'timeZone' | 'paymentTerms' | 'consent' | 'requireGuestDetails' | 'acceptsPasses' | 'acceptsMemberships'> & Readonly<{
|
|
133
|
+
export type RegistrationEvent = Pick<PublicEvent, 'seriesId' | 'scheduleSummary' | 'title' | 'startsAt' | 'endsAt' | 'bookingAvailability' | 'deliveryMode' | 'attendanceModes' | 'capacity' | 'registeredCount' | 'availableSpots' | 'waitlistEnabled' | 'venue' | 'eventCategory' | 'teamMembers' | 'status' | 'timeZone' | 'siteTimeZone' | 'paymentTerms' | 'consent' | 'requireGuestDetails' | 'acceptsPasses' | 'acceptsMemberships' | 'eventPreset'> & Readonly<{
|
|
128
134
|
selectionId: string;
|
|
129
135
|
registrationSubject: RegistrationSubject;
|
|
130
136
|
pricing: PublicEventPricing;
|
|
@@ -183,13 +189,18 @@ export type EventRegistrationClientProps = {
|
|
|
183
189
|
occurrenceContext?: OccurrenceContext | null;
|
|
184
190
|
subject?: EventRegistrationPageSurfaceSubject | null;
|
|
185
191
|
events?: PublicEvent[] | null;
|
|
192
|
+
/** Client recovery preserves loading/failure instead of presenting an empty loaded list. */
|
|
193
|
+
eventSourceRecovery?: import('./eventSourceRecovery').EventSourceRecovery;
|
|
186
194
|
maxTickets?: string;
|
|
187
|
-
|
|
188
|
-
showCapacity?: boolean;
|
|
195
|
+
display: RegistrationDisplay;
|
|
189
196
|
successMessage?: string;
|
|
190
197
|
buttonText?: string;
|
|
191
198
|
buttonVariant?: BlockButtonRole;
|
|
192
|
-
|
|
199
|
+
/**
|
|
200
|
+
* Where the booking panel lives; the server always sets it. Rendered
|
|
201
|
+
* without the island (tests, stories), the wizard shows in place.
|
|
202
|
+
*/
|
|
203
|
+
host?: import('./bookingCardDisplay').BookingHost;
|
|
193
204
|
className?: string;
|
|
194
205
|
/** Server-passed spam protection flag. Falls back to NEXT_PUBLIC_SPAM_PROTECTION_ENABLED. */
|
|
195
206
|
spamProtectionEnabled?: boolean;
|
|
@@ -201,6 +212,11 @@ export type EventRegistrationClientProps = {
|
|
|
201
212
|
siteMemberships?: PublicMembershipProductCollection | null;
|
|
202
213
|
mailingList?: MailingListRuntimeContext;
|
|
203
214
|
siteName?: string;
|
|
215
|
+
/** What the site calls this offering ("class", "course"), resolved on the server. */
|
|
216
|
+
offeringNoun?: Readonly<{
|
|
217
|
+
label: string;
|
|
218
|
+
pluralLabel: string;
|
|
219
|
+
}> | null;
|
|
204
220
|
};
|
|
205
221
|
export type EventPaymentState =
|
|
206
222
|
/** `heldPlaceRetry`: this tab is booking again for a booking whose place the
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type BookingBarPlacement } from './bookingEntry';
|
|
3
|
+
/** The CSS variable the bar reads its push from (`translateY`). */
|
|
4
|
+
export declare const BOOKING_BAR_PUSH_VAR = "--er-bar-push";
|
|
5
|
+
/**
|
|
6
|
+
* Keeps the bar placed (issue 1581): shown or hidden in React state, which
|
|
7
|
+
* changes rarely, and the card's push written straight to the bar element.
|
|
8
|
+
* The card's position is only read while an IntersectionObserver says it is
|
|
9
|
+
* on screen; otherwise it can't be pushing, and the bar is simply shown or
|
|
10
|
+
* hidden. Scroll work is batched to one read per animation frame.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useBookingBarPlacement(cardRef: RefObject<HTMLElement | null>, barRef: RefObject<HTMLElement | null>, panelOpen: boolean): BookingBarPlacement['state'];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type EventRegistrationRecoveryRequest = 'none' | 'paymentReturn' | 'waitlistInvitation';
|
|
2
|
+
/** Retain arrival intent while the payment controller cleans up the return URL. */
|
|
3
|
+
export declare function useEventRegistrationRecoveryRequest(): EventRegistrationRecoveryRequest;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { EventCheckoutReturnRequest } from '../../api/types';
|
|
2
2
|
import type { PendingRegistration } from './sessionStorage';
|
|
3
|
+
/** A return URL asks the server to verify; it is never proof of payment. */
|
|
4
|
+
export declare function eventRegistrationCheckoutReturnRequest(params: URLSearchParams): Extract<EventCheckoutReturnRequest, {
|
|
5
|
+
kind: 'resolveSession';
|
|
6
|
+
}> | null;
|
|
3
7
|
export declare function useEventRegistrationStripeReturn(options: Readonly<{
|
|
4
8
|
siteId: string | undefined;
|
|
5
9
|
restore: (pending: PendingRegistration) => void;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { InvitationSubmission } from './registrationDraft.state';
|
|
1
2
|
import type { BookingMailingListNote as BookingSignupNote } from '../../../../../../core/src/index';
|
|
2
3
|
import { generateUuidV4 } from '../../../../../../core/src/index';
|
|
3
4
|
import type { EventRegistrationErrorAction } from '../../../../../../commerce/src/purchase/index';
|
|
@@ -45,11 +46,10 @@ export type UseEventRegistrationSubmitInput = {
|
|
|
45
46
|
requireGuestDetails: boolean;
|
|
46
47
|
guests: Guest[];
|
|
47
48
|
discountCode: string;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
setStep: (step: RegistrationStep) => void;
|
|
49
|
+
invitation: InvitationSubmission;
|
|
50
|
+
setStep: (step: Exclude<RegistrationStep, 'success'>) => void;
|
|
51
51
|
setErrorAction?: (action: EventRegistrationErrorAction) => void;
|
|
52
|
-
|
|
52
|
+
complete: (result: RegistrationResult) => void;
|
|
53
53
|
setErrorMessage: (message: string) => void;
|
|
54
54
|
setPaymentStatusRecovery: (state: PaymentStatusRecoveryState | null) => void;
|
|
55
55
|
};
|
|
@@ -70,13 +70,6 @@ export type EventRegistrationSubmitDeps = Readonly<{
|
|
|
70
70
|
}>;
|
|
71
71
|
export declare const createClientCommandId: typeof generateUuidV4;
|
|
72
72
|
export declare function useEventRegistrationSubmit(options: UseEventRegistrationSubmitInput): EventRegistrationSubmit;
|
|
73
|
-
/**
|
|
74
|
-
* Describe a completed registration to the success step.
|
|
75
|
-
*
|
|
76
|
-
* Only pass redemptions adopt the server's message: it names the credits spent
|
|
77
|
-
* and the balance left, which the block's copy cannot. Every other method keeps
|
|
78
|
-
* whatever success message the site configured.
|
|
79
|
-
*/
|
|
80
73
|
export declare function useEventRegistrationSubmitWithDeps(options: UseEventRegistrationSubmitInput, deps: EventRegistrationSubmitDeps): EventRegistrationSubmit;
|
|
81
74
|
type SelectionSnapshot = Exclude<PaymentSelection, Readonly<{
|
|
82
75
|
method: null;
|