@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/useEventSourceRecovery.d.ts
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import { useBlockApi } from '../../api';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export type EventSourceRecovery = Readonly<{
|
|
5
|
-
kind: 'ready';
|
|
6
|
-
events: PublicEvent[];
|
|
7
|
-
}> | Readonly<{
|
|
8
|
-
kind: 'loading';
|
|
9
|
-
}> | Readonly<{
|
|
10
|
-
kind: 'exhausted';
|
|
11
|
-
retry: () => void;
|
|
12
|
-
}>;
|
|
2
|
+
import type { EventRegistrationEventSource, EventSourceRecovery } from './eventSourceRecovery';
|
|
3
|
+
export type { EventSourceRecovery } from './eventSourceRecovery';
|
|
13
4
|
type RecoveryDeps = Readonly<{
|
|
14
5
|
useApi: typeof useBlockApi;
|
|
15
6
|
wait: (milliseconds: number, signal: AbortSignal) => Promise<void>;
|
|
16
7
|
}>;
|
|
17
8
|
export declare function useEventSourceRecovery(source: EventRegistrationEventSource, deps?: RecoveryDeps): EventSourceRecovery;
|
|
18
|
-
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
2
|
import type { BlockApiClient } from '../../api/client';
|
|
3
|
-
import type { EventCheckoutReturnRequest,
|
|
3
|
+
import type { EventCheckoutReturnRequest, EventEmbeddedCheckout, EventRegistrationPaymentSubject } from '../../api/types';
|
|
4
4
|
import type { EventPaymentState, PaymentStatusRecoveryState, RegistrationResult, RegistrationStep } from './types';
|
|
5
5
|
type Options = Readonly<{
|
|
6
6
|
api: BlockApiClient;
|
|
7
7
|
beginNewSubmission: () => void;
|
|
8
|
-
|
|
8
|
+
complete: (result: RegistrationResult) => void;
|
|
9
9
|
setOptionsRefreshKey: Dispatch<SetStateAction<number>>;
|
|
10
|
-
setStep: (step: RegistrationStep) => void;
|
|
10
|
+
setStep: (step: Exclude<RegistrationStep, 'success'>) => void;
|
|
11
11
|
/** Whether this page still holds the booker's details; a restored page after a reload does not. */
|
|
12
12
|
detailsInPage: () => boolean;
|
|
13
13
|
}>;
|
|
@@ -24,7 +24,150 @@ export declare function usePaymentStatusRecovery(options: Options): {
|
|
|
24
24
|
retry: () => void;
|
|
25
25
|
retryReturn: () => void;
|
|
26
26
|
status: "idle" | "polling" | "completed" | "failed" | "timeout";
|
|
27
|
-
result:
|
|
27
|
+
result: {
|
|
28
|
+
kind: "checkout";
|
|
29
|
+
subject: {
|
|
30
|
+
scope: "occurrence";
|
|
31
|
+
submissionId: string;
|
|
32
|
+
attendeeId: string;
|
|
33
|
+
} | {
|
|
34
|
+
scope: "wholeSeries";
|
|
35
|
+
submissionId: string;
|
|
36
|
+
};
|
|
37
|
+
outcome: {
|
|
38
|
+
kind: "resolved";
|
|
39
|
+
outcome: {
|
|
40
|
+
kind: "detailsAvailable";
|
|
41
|
+
identity: {
|
|
42
|
+
submissionId: string;
|
|
43
|
+
seriesId: string;
|
|
44
|
+
attendanceMode: "in_person" | "online";
|
|
45
|
+
scope: "occurrence";
|
|
46
|
+
attendeeId: string;
|
|
47
|
+
occurrenceId: string;
|
|
48
|
+
} | {
|
|
49
|
+
submissionId: string;
|
|
50
|
+
seriesId: string;
|
|
51
|
+
attendanceMode: "in_person" | "online";
|
|
52
|
+
scope: "wholeSeries";
|
|
53
|
+
registrationId: string;
|
|
54
|
+
};
|
|
55
|
+
ticketLines: readonly [{
|
|
56
|
+
label: string;
|
|
57
|
+
quantity: number;
|
|
58
|
+
}, ...{
|
|
59
|
+
label: string;
|
|
60
|
+
quantity: number;
|
|
61
|
+
}[]];
|
|
62
|
+
payment: {
|
|
63
|
+
kind: "free";
|
|
64
|
+
balance: {
|
|
65
|
+
kind: "settled";
|
|
66
|
+
};
|
|
67
|
+
} | {
|
|
68
|
+
kind: "waived";
|
|
69
|
+
balance: {
|
|
70
|
+
kind: "settled";
|
|
71
|
+
};
|
|
72
|
+
} | {
|
|
73
|
+
kind: "pass";
|
|
74
|
+
passName: string | null;
|
|
75
|
+
passCreditsUsed: number | null;
|
|
76
|
+
balance: {
|
|
77
|
+
kind: "settled";
|
|
78
|
+
};
|
|
79
|
+
} | {
|
|
80
|
+
kind: "membership";
|
|
81
|
+
membershipName: string | null;
|
|
82
|
+
balance: {
|
|
83
|
+
kind: "settled";
|
|
84
|
+
};
|
|
85
|
+
} | {
|
|
86
|
+
kind: "manual_due";
|
|
87
|
+
currency: import("../../../../../../commerce/src/purchase/index").CurrencyCode;
|
|
88
|
+
balance: {
|
|
89
|
+
kind: "due";
|
|
90
|
+
amountCents: import("../../../../../../core/src/index").PositiveCents;
|
|
91
|
+
dueAt: string | null;
|
|
92
|
+
};
|
|
93
|
+
} | {
|
|
94
|
+
balance: {
|
|
95
|
+
kind: "due";
|
|
96
|
+
amountCents: import("../../../../../../core/src/index").PositiveCents;
|
|
97
|
+
dueAt: string | null;
|
|
98
|
+
};
|
|
99
|
+
amountPaidCents: import("../../../../../../core/src/index").NonNegativeCents;
|
|
100
|
+
currency: import("../../../../../../commerce/src/purchase/index").CurrencyCode;
|
|
101
|
+
kind: "managed_balance_due";
|
|
102
|
+
} | {
|
|
103
|
+
paymentMethod: "mixed" | "manual" | "stripe" | "store_credit";
|
|
104
|
+
balance: {
|
|
105
|
+
kind: "settled";
|
|
106
|
+
} | {
|
|
107
|
+
kind: "due";
|
|
108
|
+
amountCents: import("../../../../../../core/src/index").PositiveCents;
|
|
109
|
+
dueAt: string | null;
|
|
110
|
+
};
|
|
111
|
+
amountPaidCents: import("../../../../../../core/src/index").NonNegativeCents;
|
|
112
|
+
currency: import("../../../../../../commerce/src/purchase/index").CurrencyCode;
|
|
113
|
+
kind: "monetary";
|
|
114
|
+
};
|
|
115
|
+
} | {
|
|
116
|
+
kind: "detailsUnavailable";
|
|
117
|
+
identity: {
|
|
118
|
+
submissionId: string;
|
|
119
|
+
seriesId: string;
|
|
120
|
+
attendanceMode: "in_person" | "online";
|
|
121
|
+
scope: "occurrence";
|
|
122
|
+
attendeeId: string;
|
|
123
|
+
occurrenceId: string;
|
|
124
|
+
} | {
|
|
125
|
+
submissionId: string;
|
|
126
|
+
seriesId: string;
|
|
127
|
+
attendanceMode: "in_person" | "online";
|
|
128
|
+
scope: "wholeSeries";
|
|
129
|
+
registrationId: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
} | {
|
|
133
|
+
kind: "abandoned";
|
|
134
|
+
} | {
|
|
135
|
+
kind: "reconciliationRequired";
|
|
136
|
+
} | {
|
|
137
|
+
kind: "paymentProcessing";
|
|
138
|
+
recoverableUntil?: string | undefined;
|
|
139
|
+
} | {
|
|
140
|
+
kind: "paymentAvailable";
|
|
141
|
+
checkout: {
|
|
142
|
+
kind: "embedded";
|
|
143
|
+
sessionId: string;
|
|
144
|
+
clientSecret: string;
|
|
145
|
+
livemode: boolean;
|
|
146
|
+
expiresAt: string;
|
|
147
|
+
browser: {
|
|
148
|
+
kind: "connect";
|
|
149
|
+
publishableKey: string;
|
|
150
|
+
accountId: string;
|
|
151
|
+
} | {
|
|
152
|
+
kind: "direct";
|
|
153
|
+
publishableKey: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
recoverableUntil?: string | undefined;
|
|
157
|
+
} | {
|
|
158
|
+
kind: "paymentRetryAvailable";
|
|
159
|
+
place: "released" | "held";
|
|
160
|
+
} | {
|
|
161
|
+
kind: "paymentCheckUnavailable";
|
|
162
|
+
recoverableUntil?: string | undefined;
|
|
163
|
+
} | {
|
|
164
|
+
kind: "paymentAssistanceRequired";
|
|
165
|
+
};
|
|
166
|
+
} | {
|
|
167
|
+
kind: "notFound";
|
|
168
|
+
} | {
|
|
169
|
+
kind: "reconciliationRequired";
|
|
170
|
+
} | null;
|
|
28
171
|
error: Error | null;
|
|
29
172
|
};
|
|
30
173
|
state: EventPaymentState;
|
|
@@ -28,12 +28,60 @@ export declare function formatTime(isoTimestamp: string, options?: {
|
|
|
28
28
|
locale?: string;
|
|
29
29
|
}): string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* How a booking date is written (issue 1581). One owner, explicit variants:
|
|
32
|
+
* - `long`: the card and panel header, "Mon 5 Oct · 7:00pm – 8:15pm"
|
|
33
|
+
* - `short`: the bar and the confirmation's When row, "Mon 5 Oct, 7:00pm"
|
|
34
|
+
* - `day`: the date chips and "next" dates, "Mon 5 Oct"
|
|
35
|
+
* - `dayLong`: the date step's rows, "Friday 2 October"
|
|
36
|
+
* - `timeRange`: under them, "7:00pm – 8:15pm"
|
|
37
|
+
* - `time`: the stored schedule start, "7:00pm"
|
|
38
|
+
* - `month`: the date step's month labels, "October"
|
|
39
|
+
* - `monthYear`: which month a date falls in, "October 2026" (grouping key)
|
|
32
40
|
*/
|
|
41
|
+
export type BookingDateVariant = 'long' | 'short' | 'day' | 'dayLong' | 'timeRange' | 'time' | 'month' | 'monthYear';
|
|
42
|
+
export type BookingDateInput = Readonly<{
|
|
43
|
+
startsAt: string;
|
|
44
|
+
/** Only the long form writes an end time. */
|
|
45
|
+
endsAt?: string | null;
|
|
46
|
+
timeZone?: string | null;
|
|
47
|
+
/** The site's own zone decides the locale (day or month first). */
|
|
48
|
+
siteTimeZone?: string | null;
|
|
49
|
+
}>;
|
|
50
|
+
/**
|
|
51
|
+
* The locale a site's booking dates are written in: the one the site's time
|
|
52
|
+
* zone places it in (`eventDateLocale`, shared with event cards), or British
|
|
53
|
+
* English when the site names no zone.
|
|
54
|
+
*/
|
|
55
|
+
export declare function bookingDateLocale(siteTimeZone: string | null | undefined): string;
|
|
56
|
+
/** A stored local clock has no date or DST offset; UTC preserves its digits. */
|
|
57
|
+
export declare function formatBookingScheduleSummary(event: Pick<RegistrationEvent, 'scheduleSummary' | 'siteTimeZone'>): string | null;
|
|
58
|
+
/** The one booking date formatter; every variant derives from it. */
|
|
59
|
+
export declare function formatBookingWhen(input: BookingDateInput, variant: BookingDateVariant): string;
|
|
60
|
+
/** A single instant in the short form, e.g. "Mon 5 Oct, 7:00pm". */
|
|
33
61
|
export declare function formatEventDateTime(isoTimestamp: string, options?: {
|
|
34
62
|
timeZone?: string | null;
|
|
35
|
-
|
|
63
|
+
siteTimeZone?: string | null;
|
|
36
64
|
}): string;
|
|
65
|
+
/** The title an occurrence was given on its own, when it overrides the event's. */
|
|
66
|
+
export declare function occurrenceTitleOverride(occurrence: Readonly<{
|
|
67
|
+
overrides?: Readonly<Record<string, unknown>> | null;
|
|
68
|
+
}> | null | undefined): string | null;
|
|
69
|
+
/** The event as this page names it: an occurrence's own title wins. */
|
|
70
|
+
export declare function withOccurrenceTitle<T extends Readonly<{
|
|
71
|
+
title: string;
|
|
72
|
+
}>>(event: T | null, occurrence: Parameters<typeof occurrenceTitleOverride>[0]): T | null;
|
|
73
|
+
type ScheduleEvent = Pick<RegistrationEvent, 'startsAt' | 'endsAt' | 'timeZone' | 'siteTimeZone' | 'registrationSubject'>;
|
|
74
|
+
type ScheduleOccurrence = Readonly<{
|
|
75
|
+
startsAt?: string | null;
|
|
76
|
+
endsAt?: string | null;
|
|
77
|
+
timeZone?: string | null;
|
|
78
|
+
}> | null;
|
|
79
|
+
/**
|
|
80
|
+
* When a booking happens, in one line: the occurrence's date and time, or a
|
|
81
|
+
* course's session count and first and last dates. `short` by default (bar,
|
|
82
|
+
* confirmation); `long` adds the end time (card, panel header).
|
|
83
|
+
*/
|
|
84
|
+
export declare function formatRegistrationSchedule(event: ScheduleEvent, occurrence?: ScheduleOccurrence, variant?: Extract<BookingDateVariant, 'long' | 'short'>): string | null;
|
|
37
85
|
export { formatPrice } from '../../shared';
|
|
38
86
|
/** Tooltip text shown when pass/membership redemptions are unavailable for multi-ticket bookings. */
|
|
39
87
|
export declare const ENTITLEMENT_SINGLE_TICKET_TOOLTIP = "Only available for single-ticket bookings";
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/waitlistClaimRestoration.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import type { EventSourceRecovery } from './eventSourceRecovery';
|
|
1
2
|
import type { ResolveWaitlistClaimResponse } from '../../api/types';
|
|
2
3
|
import type { EventTicketSelectionLine, RegistrationEvent } from './types';
|
|
3
4
|
export type WaitlistClaimRestoration = Readonly<{
|
|
4
|
-
|
|
5
|
+
kind: 'awaitingEvents';
|
|
6
|
+
}> | Readonly<{
|
|
7
|
+
kind: 'different-event';
|
|
5
8
|
message: string;
|
|
6
9
|
}> | Readonly<{
|
|
7
|
-
|
|
10
|
+
kind: 'ready';
|
|
8
11
|
event: RegistrationEvent | null;
|
|
9
12
|
attendanceMode: 'in_person' | 'online';
|
|
10
13
|
ticketSelections: readonly EventTicketSelectionLine[];
|
|
@@ -13,8 +16,6 @@ export type WaitlistClaimRestoration = Readonly<{
|
|
|
13
16
|
}>;
|
|
14
17
|
export declare function resolveWaitlistClaimRestoration(input: Readonly<{
|
|
15
18
|
claim: ResolveWaitlistClaimResponse;
|
|
16
|
-
|
|
19
|
+
events: EventSourceRecovery<RegistrationEvent>;
|
|
17
20
|
occurrenceContextId?: string;
|
|
18
21
|
}>): WaitlistClaimRestoration;
|
|
19
|
-
export declare function resolveClaimedTicketSelections(claim: ResolveWaitlistClaimResponse | null): readonly EventTicketSelectionLine[] | null;
|
|
20
|
-
export declare function resolveClaimTicketCount(claim: ResolveWaitlistClaimResponse | null, fallback: number): number;
|
|
@@ -1,22 +1,92 @@
|
|
|
1
|
-
import type { RegistrationStep } from './types';
|
|
1
|
+
import type { PaymentSelection, RegistrationResult, RegistrationStep } from './types';
|
|
2
|
+
import type { RegistrationAdmission } from './registrationCompletion';
|
|
3
|
+
/** The steps that can be counted in the visitor's route through the wizard. */
|
|
4
|
+
export type RegistrationRouteStep = Extract<RegistrationStep, 'select-event' | 'select-tickets' | 'enter-details' | 'select-payment' | 'payment'>;
|
|
5
|
+
/** The ordered steps the visitor is on course to take, as far as we know now. */
|
|
6
|
+
export type RegistrationRoute = readonly RegistrationRouteStep[];
|
|
2
7
|
/**
|
|
3
|
-
*
|
|
8
|
+
* Which payment steps the route counts.
|
|
9
|
+
* - `none`: free, a paid waitlist, or an entitlement chosen before the payment options step.
|
|
10
|
+
* - `options`: an entitlement chosen on the payment options step, so only Payment drops.
|
|
11
|
+
* - `optionsAndPayment`: card payment is expected, so both are counted up front.
|
|
4
12
|
*/
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
13
|
+
export type RegistrationPaymentRoute = 'none' | 'options' | 'optionsAndPayment';
|
|
14
|
+
export type RegistrationProgress = Readonly<{
|
|
15
|
+
steps: RegistrationRoute;
|
|
16
|
+
/** 1-based position of the current step in `steps`. */
|
|
17
|
+
current: number;
|
|
10
18
|
}>;
|
|
19
|
+
export type RegistrationScreen = 'processing' | 'confirmed' | 'waitlisted' | 'error' | 'verifying' | 'verifyingTimeout' | 'paymentStatus' | 'paymentFailed';
|
|
11
20
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @param hasPreSelectedContext - Whether event is pre-selected (skips event selection)
|
|
15
|
-
* @param needsPaymentStep - Whether user must complete payment method selection
|
|
16
|
-
* @returns Array of wizard steps to display
|
|
21
|
+
* What the booking surface renders: the step layout (with progress only when
|
|
22
|
+
* the step is part of the route), or one whole-panel screen. Never both.
|
|
17
23
|
*/
|
|
18
|
-
export
|
|
24
|
+
export type RegistrationPresentation = Readonly<{
|
|
25
|
+
layout: 'steps';
|
|
26
|
+
progress: RegistrationProgress | null;
|
|
27
|
+
}> | Readonly<{
|
|
28
|
+
layout: 'whole';
|
|
29
|
+
screen: Exclude<RegistrationScreen, 'confirmed' | 'waitlisted'>;
|
|
30
|
+
}> | Readonly<{
|
|
31
|
+
layout: 'whole';
|
|
32
|
+
screen: 'confirmed';
|
|
33
|
+
result: Extract<RegistrationResult, {
|
|
34
|
+
status: 'confirmed';
|
|
35
|
+
}>;
|
|
36
|
+
}> | Readonly<{
|
|
37
|
+
layout: 'whole';
|
|
38
|
+
screen: 'waitlisted';
|
|
39
|
+
result: Extract<RegistrationResult, {
|
|
40
|
+
status: 'waitlist';
|
|
41
|
+
}>;
|
|
42
|
+
}>;
|
|
43
|
+
export type RegistrationOutcome = RegistrationResult['status'] | null;
|
|
44
|
+
/**
|
|
45
|
+
* The payment part of the route, from facts the wizard already has.
|
|
46
|
+
* The count follows the current route: picking a pass drops Payment, and
|
|
47
|
+
* "Pay by card instead" adds it back.
|
|
48
|
+
*/
|
|
49
|
+
export declare function registrationPaymentRoute(facts: Readonly<{
|
|
50
|
+
step: RegistrationStep;
|
|
51
|
+
admission: RegistrationAdmission;
|
|
52
|
+
eventRequiresPayment: boolean;
|
|
53
|
+
paymentSelection: PaymentSelection;
|
|
54
|
+
}>): RegistrationPaymentRoute;
|
|
55
|
+
export declare function registrationRoute(input: Readonly<{
|
|
56
|
+
chooseEvent: boolean;
|
|
57
|
+
payment: RegistrationPaymentRoute;
|
|
58
|
+
}>): RegistrationRoute;
|
|
59
|
+
/** One presentation decision for every registration step. */
|
|
60
|
+
export declare function registrationPresentation(state: Readonly<{
|
|
61
|
+
step: Exclude<RegistrationStep, 'success'>;
|
|
62
|
+
}> | Readonly<{
|
|
63
|
+
step: 'success';
|
|
64
|
+
result: RegistrationResult;
|
|
65
|
+
}>, route: RegistrationRoute): RegistrationPresentation;
|
|
19
66
|
/**
|
|
20
|
-
*
|
|
67
|
+
* Payment-return and recovery states the visitor must see, so entering one
|
|
68
|
+
* opens the booking panel. `payment` covers "Return to payment".
|
|
21
69
|
*/
|
|
22
|
-
export declare function
|
|
70
|
+
export declare function panelShouldOpen(step: RegistrationStep): boolean;
|
|
71
|
+
export declare const REGISTRATION_STEP_LABELS: readonly ["Event", "Date", "Tickets", "Places", "Your details", "How you’ll pay", "Payment"];
|
|
72
|
+
export type RegistrationStepLabel = (typeof REGISTRATION_STEP_LABELS)[number];
|
|
73
|
+
export type RegistrationEventSelectionMode = 'event' | 'date';
|
|
74
|
+
/** Several dates of one series are a date choice; anything else is an event choice. */
|
|
75
|
+
export declare function getEventSelectionMode(events: readonly Readonly<{
|
|
76
|
+
seriesId: string;
|
|
77
|
+
}>[]): RegistrationEventSelectionMode;
|
|
78
|
+
export type RegistrationStepLabelContext = Readonly<{
|
|
79
|
+
eventSelection: RegistrationEventSelectionMode;
|
|
80
|
+
/** Whole-series (course) bookings count places rather than tickets. */
|
|
81
|
+
booksWholeSeries: boolean;
|
|
82
|
+
}>;
|
|
83
|
+
/** The label facts for a surface: what the visitor chooses from, and what they book. */
|
|
84
|
+
export declare function registrationStepLabelContext(scopedEvents: readonly Readonly<{
|
|
85
|
+
seriesId: string;
|
|
86
|
+
}>[], bookedEvent: Readonly<{
|
|
87
|
+
registrationSubject: Readonly<{
|
|
88
|
+
kind: string;
|
|
89
|
+
}>;
|
|
90
|
+
}> | null): RegistrationStepLabelContext;
|
|
91
|
+
/** One label owner for the live progress and the server placeholder. */
|
|
92
|
+
export declare function registrationStepLabel(step: RegistrationRouteStep, context: RegistrationStepLabelContext): RegistrationStepLabel;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type RegistrationDisplay } from './event-registration/registrationDisplay';
|
|
1
2
|
import { type MailingListRuntimeContext } from '../../../../../core/src/index';
|
|
2
3
|
import type { BrowserReadAuthority } from '../api/types';
|
|
3
4
|
import type { BlockButtonRole } from '../../constants/buttonRoles';
|
|
@@ -5,13 +6,15 @@ import type { PublicEvent } from '../../blocks/events/shared/types';
|
|
|
5
6
|
import { type PublicMembershipProductCollection, type PublicPassProductCollection } from '../../blocks/shop.shared';
|
|
6
7
|
import type { OccurrenceContext } from '../../blocks/event-registration.shared';
|
|
7
8
|
import type { EventRegistrationClientProps as InternalEventRegistrationClientProps } from './event-registration/types';
|
|
9
|
+
import type { BookingOfferingPresetSummary } from '../../blocks/offerings-preview/model';
|
|
10
|
+
import { type BookingHost, type IdleBookingEntry } from './event-registration/bookingCardDisplay';
|
|
8
11
|
import { type EventRegistrationPageSurfaceSubject } from './event-registration/eventScope';
|
|
9
12
|
import { type InteractiveIslandProps } from '../../../contracts/islands';
|
|
13
|
+
import { type RegistrationStepLabel } from './event-registration/wizardSteps';
|
|
10
14
|
import { type EventRegistrationEventSource } from './event-registration/eventSourceRecovery';
|
|
11
|
-
export declare const EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS: readonly ["Date", "Tickets", "
|
|
12
|
-
declare const EVENT_REGISTRATION_SHELL_STEP_LABELS: readonly ["Event", "Date", "Tickets", "Details", "Payment options", "Payment"];
|
|
15
|
+
export declare const EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS: readonly ["Date", "Tickets", "Your details"];
|
|
13
16
|
export type EventRegistrationGenericShellStepLabels = typeof EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS;
|
|
14
|
-
type EventRegistrationShellStepLabel =
|
|
17
|
+
type EventRegistrationShellStepLabel = RegistrationStepLabel;
|
|
15
18
|
export type EventRegistrationSourceProps = Readonly<{
|
|
16
19
|
siteId?: string;
|
|
17
20
|
demoEmailSuppressed?: boolean;
|
|
@@ -32,7 +35,8 @@ export type EventRegistrationSourceProps = Readonly<{
|
|
|
32
35
|
showCapacity?: boolean;
|
|
33
36
|
successMessage?: string;
|
|
34
37
|
buttonVariant?: BlockButtonRole;
|
|
35
|
-
|
|
38
|
+
/** Pages built around booking pass 'inPlace'; editor-placed blocks use the overlay. */
|
|
39
|
+
host?: BookingHost;
|
|
36
40
|
spamProtectionEnabled?: boolean;
|
|
37
41
|
stage?: 'preview' | 'published';
|
|
38
42
|
supportEmail?: string;
|
|
@@ -40,6 +44,8 @@ export type EventRegistrationSourceProps = Readonly<{
|
|
|
40
44
|
siteMemberships?: PublicMembershipProductCollection | null;
|
|
41
45
|
mailingList?: MailingListRuntimeContext;
|
|
42
46
|
siteName?: string;
|
|
47
|
+
/** The site's booking preset rows; the server resolves the offering noun from them. */
|
|
48
|
+
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
|
|
43
49
|
}>;
|
|
44
50
|
export type EventRegistrationDisplay = Readonly<{
|
|
45
51
|
kind: 'event-registration';
|
|
@@ -55,7 +61,19 @@ export type EventRegistrationDisplay = Readonly<{
|
|
|
55
61
|
className: string | null;
|
|
56
62
|
titleText: string;
|
|
57
63
|
bodyText: string;
|
|
64
|
+
}> | Readonly<{
|
|
65
|
+
kind: 'event-registration';
|
|
66
|
+
state: 'booking-card';
|
|
67
|
+
className: string | null;
|
|
68
|
+
entry: IdleBookingEntry;
|
|
69
|
+
buttonVariant: BlockButtonRole | null;
|
|
70
|
+
/** The block's own button text, carried to the wizard's final submit. */
|
|
71
|
+
buttonText: string;
|
|
58
72
|
}>;
|
|
73
|
+
/** The block's button text, whichever state the server rendered. */
|
|
74
|
+
export declare function displayButtonText(display: Exclude<EventRegistrationDisplay, {
|
|
75
|
+
state: 'registration-closed';
|
|
76
|
+
}>): string | undefined;
|
|
59
77
|
export type EventRegistrationHydration = Readonly<Omit<InternalEventRegistrationClientProps, 'siteId' | 'stage' | 'buttonText' | 'className' | 'events'> & {
|
|
60
78
|
eventSource: EventRegistrationEventSource;
|
|
61
79
|
}>;
|
|
@@ -67,7 +85,7 @@ type EventRegistrationIslandMeta = Readonly<{
|
|
|
67
85
|
readAuthority?: BrowserReadAuthority;
|
|
68
86
|
stage?: 'preview' | 'published';
|
|
69
87
|
}>;
|
|
70
|
-
export declare function buildEventRegistrationDisplayFromScopedEvents(source: EventRegistrationSourceProps, scopedSourceEvents: readonly PublicEvent[]): EventRegistrationDisplay;
|
|
88
|
+
export declare function buildEventRegistrationDisplayFromScopedEvents(source: EventRegistrationSourceProps, scopedSourceEvents: readonly PublicEvent[], display: RegistrationDisplay): EventRegistrationDisplay;
|
|
71
89
|
export type EventRegistrationInteractiveIslandProps = InteractiveIslandProps<EventRegistrationIslandMeta, 'event-registration', typeof eventRegistrationBlockRuntime>;
|
|
72
90
|
export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
73
91
|
kind: "client-owned";
|
|
@@ -91,7 +109,8 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
91
109
|
showCapacity?: boolean;
|
|
92
110
|
successMessage?: string;
|
|
93
111
|
buttonVariant?: BlockButtonRole;
|
|
94
|
-
|
|
112
|
+
/** Pages built around booking pass 'inPlace'; editor-placed blocks use the overlay. */
|
|
113
|
+
host?: BookingHost;
|
|
95
114
|
spamProtectionEnabled?: boolean;
|
|
96
115
|
stage?: "preview" | "published";
|
|
97
116
|
supportEmail?: string;
|
|
@@ -103,6 +122,14 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
103
122
|
}> | null;
|
|
104
123
|
mailingList?: MailingListRuntimeContext;
|
|
105
124
|
siteName?: string;
|
|
125
|
+
/** The site's booking preset rows; the server resolves the offering noun from them. */
|
|
126
|
+
bookingOfferingPresets?: readonly Readonly<{
|
|
127
|
+
id: string;
|
|
128
|
+
canonicalBehaviour: import("../../blocks/offerings-preview/model").BookingOfferingCanonicalBehaviour;
|
|
129
|
+
engine: import("../../blocks/offerings-preview/model").BookingOfferingEngine;
|
|
130
|
+
label: string;
|
|
131
|
+
pluralLabel: string;
|
|
132
|
+
}>[] | null;
|
|
106
133
|
}>) => Readonly<{
|
|
107
134
|
display: EventRegistrationDisplay;
|
|
108
135
|
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "stage" | "siteId" | "events" | "className" | "buttonText"> & {
|
|
@@ -131,7 +158,8 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
131
158
|
showCapacity?: boolean;
|
|
132
159
|
successMessage?: string;
|
|
133
160
|
buttonVariant?: BlockButtonRole;
|
|
134
|
-
|
|
161
|
+
/** Pages built around booking pass 'inPlace'; editor-placed blocks use the overlay. */
|
|
162
|
+
host?: BookingHost;
|
|
135
163
|
spamProtectionEnabled?: boolean;
|
|
136
164
|
stage?: "preview" | "published";
|
|
137
165
|
supportEmail?: string;
|
|
@@ -143,6 +171,14 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
143
171
|
}> | null;
|
|
144
172
|
mailingList?: MailingListRuntimeContext;
|
|
145
173
|
siteName?: string;
|
|
174
|
+
/** The site's booking preset rows; the server resolves the offering noun from them. */
|
|
175
|
+
bookingOfferingPresets?: readonly Readonly<{
|
|
176
|
+
id: string;
|
|
177
|
+
canonicalBehaviour: import("../../blocks/offerings-preview/model").BookingOfferingCanonicalBehaviour;
|
|
178
|
+
engine: import("../../blocks/offerings-preview/model").BookingOfferingEngine;
|
|
179
|
+
label: string;
|
|
180
|
+
pluralLabel: string;
|
|
181
|
+
}>[] | null;
|
|
146
182
|
}>) => unknown;
|
|
147
183
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
148
184
|
siteId?: string;
|
|
@@ -164,7 +200,8 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
164
200
|
showCapacity?: boolean;
|
|
165
201
|
successMessage?: string;
|
|
166
202
|
buttonVariant?: BlockButtonRole;
|
|
167
|
-
|
|
203
|
+
/** Pages built around booking pass 'inPlace'; editor-placed blocks use the overlay. */
|
|
204
|
+
host?: BookingHost;
|
|
168
205
|
spamProtectionEnabled?: boolean;
|
|
169
206
|
stage?: "preview" | "published";
|
|
170
207
|
supportEmail?: string;
|
|
@@ -176,6 +213,14 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
176
213
|
}> | null;
|
|
177
214
|
mailingList?: MailingListRuntimeContext;
|
|
178
215
|
siteName?: string;
|
|
216
|
+
/** The site's booking preset rows; the server resolves the offering noun from them. */
|
|
217
|
+
bookingOfferingPresets?: readonly Readonly<{
|
|
218
|
+
id: string;
|
|
219
|
+
canonicalBehaviour: import("../../blocks/offerings-preview/model").BookingOfferingCanonicalBehaviour;
|
|
220
|
+
engine: import("../../blocks/offerings-preview/model").BookingOfferingEngine;
|
|
221
|
+
label: string;
|
|
222
|
+
pluralLabel: string;
|
|
223
|
+
}>[] | null;
|
|
179
224
|
}>>;
|
|
180
225
|
}>;
|
|
181
226
|
render: Readonly<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { CardListItemPart } from '../../../../../../../theme-core/src/site-styles/index';
|
|
3
|
-
import type { Media } from '../../../../../lib/media';
|
|
3
|
+
import type { RuntimeMedia as Media } from '../../../../../lib/media';
|
|
4
4
|
import { type LookListPresentation } from '../../../lookSurfaces';
|
|
5
5
|
import type { ButtonVariant } from '../../../../blocks/events/shared/types';
|
|
6
6
|
export type CardListItemContent = Readonly<{
|
|
@@ -9,12 +9,19 @@ export type MonthLookViewProps = LookListPresentation & Pick<EventItemProps, 'sh
|
|
|
9
9
|
dayNames: readonly string[];
|
|
10
10
|
eventsByDate: ReadonlyMap<string, readonly PublicEvent[]>;
|
|
11
11
|
selectedDay: string;
|
|
12
|
-
onSelectDay?: (day: string) => void;
|
|
13
|
-
onOpenDay?: (date: CalendarDate, events: readonly PublicEvent[]) => void;
|
|
14
12
|
viewDate: CalendarDate;
|
|
15
13
|
today: CalendarDate;
|
|
16
14
|
timeZone: string;
|
|
17
15
|
emptyMessage: string;
|
|
18
16
|
}>;
|
|
17
|
+
/** The server view has no controls; the client supplies both calendar actions. */
|
|
18
|
+
type MonthLookControls = Readonly<{
|
|
19
|
+
selectDay: (day: string) => void;
|
|
20
|
+
openDay: (date: CalendarDate, events: readonly PublicEvent[]) => void;
|
|
21
|
+
}>;
|
|
22
|
+
type MonthLookPresentationProps = MonthLookViewProps & Readonly<{
|
|
23
|
+
controls?: MonthLookControls;
|
|
24
|
+
}>;
|
|
19
25
|
/** Both Looks and the legacy month grid consume the same per-day model. */
|
|
20
|
-
export declare function MonthLookView(props:
|
|
26
|
+
export declare function MonthLookView(props: MonthLookPresentationProps): React.JSX.Element;
|
|
27
|
+
export {};
|