@riverbankcms/sdk 0.147.0 → 0.149.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 +16 -0
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DtpB3_sS.mjs → PreviewEditorSidebar-DBKln68M.mjs} +301 -205
- package/dist/{PreviewEditorUI-DxTLgaHo.mjs → PreviewEditorUI-DpRX4Mum.mjs} +68 -63
- package/dist/{PreviewQueryProvider-Dd4dxOiU.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DMMNCngt.mjs → SdkPreviewModeRuntime-DJPmPY-r.mjs} +1247 -541
- package/dist/{SiteChromeCustomizeContext-DQXZXiqS.mjs → SiteChromeCustomizeContext-JYA0cJ_Z.mjs} +209720 -204978
- package/dist/_dts/ai/src/contracts/proposals.d.ts +0 -33
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +0 -3
- package/dist/_dts/api/src/accessAdmin.d.ts +0 -4
- package/dist/_dts/api/src/accountApi.d.ts +1 -1
- package/dist/_dts/api/src/admin.d.ts +22 -22
- package/dist/_dts/api/src/aiPatch.d.ts +2 -2
- package/dist/_dts/api/src/aiPlayground.d.ts +1 -0
- package/dist/_dts/api/src/analytics.d.ts +2 -2
- package/dist/_dts/api/src/apiEndpointTypes.d.ts +2 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +2 -2
- package/dist/_dts/api/src/auth.d.ts +10 -10
- package/dist/_dts/api/src/availability.d.ts +6 -6
- package/dist/_dts/api/src/billing.d.ts +42 -15
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +15 -6
- package/dist/_dts/api/src/blocks.d.ts +15 -14
- package/dist/_dts/api/src/blocksKeys.d.ts +2 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +33 -50
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/bookingOperations.d.ts +9 -11
- package/dist/_dts/api/src/bookingRecords.d.ts +16 -11
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/bookings.d.ts +7 -7
- package/dist/_dts/api/src/calendar.d.ts +9 -9
- package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -8
- package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
- package/dist/_dts/api/src/common/envelope.d.ts +2 -2
- package/dist/_dts/api/src/content-editor.d.ts +2 -2
- package/dist/_dts/api/src/contentEntries.d.ts +17 -48
- package/dist/_dts/api/src/contentRuntime.d.ts +51 -37
- package/dist/_dts/api/src/contentTypes.d.ts +11 -11
- package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +6 -6
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +1 -1
- package/dist/_dts/api/src/documentLifecycle.d.ts +67 -0
- package/dist/_dts/api/src/domains.d.ts +16 -16
- package/dist/_dts/api/src/editLeaseEndpoints.d.ts +72 -0
- package/dist/_dts/api/src/emailSettings.d.ts +4 -4
- package/dist/_dts/api/src/endpoints.d.ts +135 -51
- package/dist/_dts/api/src/eventEmailTemplates.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +29 -7
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +0 -8
- package/dist/_dts/api/src/eventPageWords.d.ts +7 -12
- package/dist/_dts/api/src/footerSettings.d.ts +6 -6
- package/dist/_dts/api/src/index.d.ts +8 -7
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/navigation.d.ts +5 -5
- package/dist/_dts/api/src/pageSurfaceEditorEndpoints.d.ts +55 -0
- package/dist/_dts/api/src/pageSurfaceEndpoints.d.ts +28 -7
- package/dist/_dts/api/src/pages.d.ts +7 -7
- package/dist/_dts/api/src/performance.d.ts +1 -1
- package/dist/_dts/api/src/public/index.d.ts +1 -1
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +4 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +6 -29
- package/dist/_dts/api/src/redirects.d.ts +3 -3
- package/dist/_dts/api/src/request.d.ts +11 -2
- package/dist/_dts/api/src/resources.d.ts +4 -4
- package/dist/_dts/api/src/routes.d.ts +8 -3
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -2
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +21 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +5 -28
- package/dist/_dts/api/src/sdkEventEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/sdkEventOccurrenceRequestContracts.d.ts +43 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +4 -2
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +9 -2
- package/dist/_dts/api/src/seo.d.ts +4 -4
- package/dist/_dts/api/src/services.d.ts +4 -4
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +15 -8
- package/dist/_dts/api/src/siteMembers.d.ts +10 -10
- package/dist/_dts/api/src/siteOnboarding.d.ts +14 -0
- package/dist/_dts/api/src/siteOperations.d.ts +6 -2
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -3
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +5 -12
- package/dist/_dts/api/src/siteRuntimeEntry.d.ts +31 -0
- package/dist/_dts/billing/src/checkout/platform.d.ts +77 -0
- package/dist/_dts/billing/src/components/index.d.ts +25 -40
- package/dist/_dts/billing/src/membership/index.d.ts +1 -3
- package/dist/_dts/billing/src/plans/entitlements.d.ts +80 -0
- package/dist/_dts/billing/src/plans/registry.d.ts +16 -16
- package/dist/_dts/billing/src/plans/standing.d.ts +9 -2
- package/dist/_dts/billing/src/plans/types.d.ts +5 -15
- package/dist/_dts/billing/src/site-arrangements.d.ts +2 -2
- package/dist/_dts/billing/src/subscriptions/standingEvidence.d.ts +2 -4
- package/dist/_dts/billing/src/subscriptions/store.d.ts +17 -11
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +6 -7
- package/dist/_dts/block-form/src/backend/types.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/FieldFrame.d.ts +3 -1
- package/dist/_dts/blocks/src/client/events.d.ts +3 -0
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +54 -14
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +4 -13
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +2 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +9 -8
- package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +3 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +28 -28
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +7 -2
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +84 -160
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +31 -4
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/components/booking/SuccessMessage.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +72 -12
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +36 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/usePolling.d.ts +7 -48
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.checkout-return-context.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.completion.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.payment-confirmation.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +17 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-actions.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-handler.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +2 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +9 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +37 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +16 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardPresentations.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +29 -29
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +1 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +54 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/shared/components/DemoBookingPortalAccess.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/DemoPortalSignInLink.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoBookingPassStorage.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoPortalMagicLink.d.ts +29 -0
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +54 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +58 -13
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +16 -21
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +23 -40
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -3
- package/dist/_dts/commerce/src/purchase/membershipOrderItemMetadata.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +9 -4
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +13 -1
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +5 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +3 -1
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +7 -1
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +2 -1
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -7
- package/dist/_dts/content-editor/src/controller/EditLeaseController.d.ts +39 -0
- package/dist/_dts/content-editor/src/controller/EditorWriteGate.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +25 -61
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseBanner.d.ts +7 -0
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseControllers.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/deriveEditorUnpublishedState.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/documentValueBaseline.d.ts +25 -0
- package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
- package/dist/_dts/content-editor/src/controller/editLeaseLossSignal.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/editLeaseNotice.d.ts +28 -0
- package/dist/_dts/content-editor/src/controller/editorClientId.d.ts +2 -0
- package/dist/_dts/content-editor/src/controller/editorEditability.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/editorLeaseParticipation.d.ts +34 -0
- package/dist/_dts/content-editor/src/controller/normalizedMetadataBaseline.d.ts +29 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceDocumentBaselines.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceLifecycle.d.ts +11 -0
- package/dist/_dts/content-editor/src/controller/planDocumentBaselineRefresh.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/readDocumentLeaseBaselines.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/refreshDocumentLeaseBaseline.d.ts +12 -0
- package/dist/_dts/content-editor/src/controller/refreshLinkedEntry.d.ts +17 -0
- package/dist/_dts/content-editor/src/controller/replayRestoredEditorEffects.d.ts +2 -3
- package/dist/_dts/content-editor/src/controller/routeWrites.d.ts +26 -0
- package/dist/_dts/content-editor/src/controller/useAutosaveTriggers.d.ts +16 -17
- package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +6 -2
- package/dist/_dts/content-editor/src/controller/useBlocksList.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/useEntryValueAutosaves.d.ts +21 -0
- package/dist/_dts/content-editor/src/controller/useInitialEditorUiStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/controller/useServerBaselineReconciliation.d.ts +17 -0
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +5 -1
- package/dist/_dts/content-editor/src/hooks/blockDraftLifecycle.d.ts +8 -47
- package/dist/_dts/content-editor/src/hooks/editLeaseMachine.d.ts +120 -0
- package/dist/_dts/content-editor/src/hooks/publishability.d.ts +6 -10
- package/dist/_dts/content-editor/src/hooks/useAutosaveStatus.d.ts +3 -0
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +5 -15
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +7 -5
- package/dist/_dts/content-editor/src/hooks/useEditLease.d.ts +28 -0
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +25 -39
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +17 -19
- package/dist/_dts/content-editor/src/hooks/useLinkedEntryAutosave.d.ts +5 -8
- package/dist/_dts/content-editor/src/hooks/useValueAutosave.d.ts +64 -0
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +0 -7
- package/dist/_dts/content-editor/src/index.d.ts +26 -7
- package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -0
- package/dist/_dts/content-editor/src/linkedEntries/domain.d.ts +12 -0
- package/dist/_dts/content-editor/src/linkedEntries/owner.d.ts +9 -0
- package/dist/_dts/content-editor/src/liveDrafts/draftProjection.d.ts +66 -0
- package/dist/_dts/content-editor/src/liveDrafts/linkedSaveHandovers.d.ts +37 -0
- package/dist/_dts/content-editor/src/liveDrafts/remoteDraftOverlay.d.ts +113 -0
- package/dist/_dts/content-editor/src/liveDrafts/useLiveDrafts.d.ts +32 -0
- package/dist/_dts/content-editor/src/liveDrafts/useRetentionTicks.d.ts +7 -0
- package/dist/_dts/content-editor/src/primitives/shared/activePreviewField.d.ts +6 -0
- package/dist/_dts/content-editor/src/primitives/shared/storeBinding.d.ts +1 -0
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +96 -19
- package/dist/_dts/content-editor/src/services/editorApiClient.d.ts +13 -0
- package/dist/_dts/content-editor/src/services/index.d.ts +2 -0
- package/dist/_dts/content-editor/src/services/pageSurfaceEditorServices.d.ts +23 -0
- package/dist/_dts/content-editor/src/sync/flushValues.d.ts +13 -0
- package/dist/_dts/content-editor/src/sync/lifecycleFailure.d.ts +51 -0
- package/dist/_dts/content-editor/src/sync/runLifecycle.d.ts +64 -0
- package/dist/_dts/content-editor/src/sync/schedulerValues.d.ts +27 -0
- package/dist/_dts/content-editor/src/sync/sendPlanning.d.ts +104 -0
- package/dist/_dts/content-editor/src/sync/valueSync.d.ts +114 -0
- package/dist/_dts/content-editor/src/ui/blockCollection.d.ts +8 -0
- package/dist/_dts/content-editor/src/ui/documentLifecycle.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/editorLeaseUiState.d.ts +7 -0
- package/dist/_dts/content-editor/src/ui/editorRefresh.d.ts +82 -0
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +102 -127
- package/dist/_dts/content-editor/src/ui/editorTransactionState.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +126 -72
- package/dist/_dts/content-editor/src/ui/editorValueSnapshot.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/serverBlockAdmission.d.ts +26 -0
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +16 -27
- package/dist/_dts/content-editor/src/ui/stores/blockVersionsStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedEntryLeaseStore.d.ts +54 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedSaveHandoversStore.d.ts +11 -0
- package/dist/_dts/content-editor/src/ui/stores/remoteDraftsStore.d.ts +10 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +63 -3
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +2 -2
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +4 -4
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +4 -4
- package/dist/_dts/content-model/src/definitions/shared.d.ts +11 -2
- package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
- package/dist/_dts/content-model/src/entry-slots/serializeAllowedBlocks.d.ts +2 -0
- package/dist/_dts/content-model/src/metadataConfig.d.ts +10 -38
- package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -1
- package/dist/_dts/content-model/src/types.d.ts +0 -1
- package/dist/_dts/core/src/block-content-identity.d.ts +49 -1
- package/dist/_dts/core/src/booking-flexible-balance.d.ts +2 -2
- package/dist/_dts/core/src/booking-instalment-deposit.d.ts +20 -0
- package/dist/_dts/core/src/booking-live-payment-terms.d.ts +72 -0
- package/dist/_dts/core/src/booking-payment-options.d.ts +24 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +522 -0
- package/dist/_dts/core/src/branded.d.ts +15 -0
- package/dist/_dts/core/src/currency-format.d.ts +8 -2
- package/dist/_dts/core/src/demo-lifecycle-status.d.ts +2 -2
- package/dist/_dts/core/src/demo-warm-pool-target.d.ts +8 -0
- package/dist/_dts/core/src/edit-lease.d.ts +60 -0
- package/dist/_dts/core/src/editor-state.d.ts +38 -13
- package/dist/_dts/core/src/editor-value-sync.d.ts +79 -0
- package/dist/_dts/core/src/html-entities.d.ts +6 -0
- package/dist/_dts/core/src/index.d.ts +7 -0
- package/dist/_dts/core/src/uuid.d.ts +7 -5
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +456 -189
- package/dist/_dts/editor/src/EditorProvider.d.ts +5 -0
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +14 -0
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +1 -0
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +0 -1
- package/dist/_dts/editor/src/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +10 -9
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardFrame.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/applyExtendedFieldDefaults.d.ts +3 -4
- package/dist/_dts/editor-blocks/src/block-editor/blockDraftBaselineSeed.d.ts +4 -8
- package/dist/_dts/editor-blocks/src/block-editor/editorBlockItem.d.ts +23 -0
- package/dist/_dts/editor-blocks/src/block-editor/generatedIconApplyCoordination.d.ts +2 -7
- package/dist/_dts/editor-blocks/src/block-editor/hooks/applyBlockStructureChange.d.ts +4 -0
- package/dist/_dts/editor-blocks/src/block-editor/hooks/buildInsertBlockHistoryCommand.d.ts +14 -5
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +21 -19
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -10
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +8 -16
- package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +6 -16
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +37 -9
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +3 -2
- package/dist/_dts/media-core/src/fileStorage.d.ts +4 -0
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerMiniDialog.d.ts +10 -0
- package/dist/_dts/media-editor/src/context.d.ts +1 -1
- package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -2
- package/dist/_dts/media-editor/src/index.d.ts +2 -0
- package/dist/_dts/media-editor/src/provider.d.ts +3 -2
- package/dist/_dts/media-react/src/hooks/internal/classification.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +8 -3
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +6 -3
- package/dist/_dts/preview-next/src/client/blocks/linkedEntryRenderOverlay.d.ts +22 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/entryFieldRebinding.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +11 -1
- package/dist/_dts/preview-next/src/client/blocks/renderPrecedence.d.ts +17 -0
- package/dist/_dts/preview-next/src/client/blocks/useLinkedSaveHandoverRetention.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewAccessBanners.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +23 -14
- package/dist/_dts/preview-next/src/client/preview/PreviewLeaseEditingMode.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeAutosave.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +3 -4
- package/dist/_dts/preview-next/src/client/preview/sdkConfig.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/usePreviewCustomizeWorkflowState.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/previewAuthStore.d.ts +7 -0
- package/dist/_dts/preview-next/src/constants.d.ts +4 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +1 -0
- package/dist/_dts/realtime/src/client.d.ts +3 -0
- package/dist/_dts/realtime/src/draftChannel.d.ts +91 -0
- package/dist/_dts/realtime/src/drafts.d.ts +210 -0
- package/dist/_dts/realtime/src/index.d.ts +3 -0
- package/dist/_dts/realtime/src/leaseChangeSubscriptions.d.ts +8 -0
- package/dist/_dts/realtime/src/types.d.ts +113 -0
- package/dist/_dts/realtime/src/useDraftChannel.d.ts +34 -0
- package/dist/_dts/realtime/src/useSiteRealtimeReload.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -55
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -12
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/palette/useHexDraft.d.ts +7 -0
- package/dist/client/{BookingMailingListNote-1n4Ch_u_.mjs → BookingMailingListNote-Cr3EeTP5.mjs} +504 -163
- package/dist/client/DemoBookingPortalAccess-BFGB1Fay.mjs +344 -0
- package/dist/client/{EventCombined.client-C0pgma9y.mjs → EventCombined.client-DKYV0_ft.mjs} +6 -6
- package/dist/client/{EventListing.client-4fhLOvHP.mjs → EventListing.client-B9UIcEYc.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DScC4F3w.mjs → LeafletStaticMap-CFLPkP0K.mjs} +1 -1
- package/dist/client/{TerminalPanel-B5ZUsYhe.mjs → TerminalPanel-JjmgxEsR.mjs} +1 -1
- package/dist/client/{ThemedButton-DoVIV1Ao.mjs → ThemedButton-CKV1Jh2m.mjs} +1 -1
- package/dist/client/{accordion-CoT5g7zo.mjs → accordion-DXWIfT3T.mjs} +1 -1
- package/dist/client/{bookingForm-BWxB46xD.mjs → bookingForm-CjZgHNvv.mjs} +216 -63
- package/dist/client/bookings.mjs +1187 -692
- package/dist/client/{carousel-DtNYWFd3.mjs → carousel-DSLikmvZ.mjs} +1 -1
- package/dist/client/{cart-z4qZih1Y.mjs → cart-HDjWReFt.mjs} +3 -3
- package/dist/client/{checkout-DpL7euFH.mjs → checkout-CUvRZA3W.mjs} +3 -3
- package/dist/client/{checkoutUrls-BEfR7kVu.mjs → checkoutUrls-CXhko2Rv.mjs} +1 -1
- package/dist/client/client.mjs +2711 -1684
- package/dist/client/{context-C8TinPJc.mjs → context-DFmaZa-Q.mjs} +4 -3
- package/dist/client/{dates-vwwxTeB0.mjs → dates-BBep1JnF.mjs} +56 -11
- package/dist/client/{eventCalendar-DIbHfJXO.mjs → eventCalendar-zEobhxo4.mjs} +9 -9
- package/dist/client/{eventCombined-DoGMJ6cg.mjs → eventCombined-Dp7bz5k-.mjs} +4 -4
- package/dist/client/{eventDetails-BjN9v6a1.mjs → eventDetails-FE-zqTt7.mjs} +4 -4
- package/dist/client/{eventListing-DajjWgOv.mjs → eventListing-BMt5snal.mjs} +4 -4
- package/dist/client/{eventRegistration-DMq9gMA-.mjs → eventRegistration-O6ZxHfOb.mjs} +422 -570
- package/dist/client/{form-Qf6qTbos.mjs → form-DFa1D8vt.mjs} +3 -3
- package/dist/client/{headerSection-D7qJrqFX.mjs → headerSection-CmjHLR-N.mjs} +3 -3
- package/dist/client/hooks.mjs +414 -182
- package/dist/client/{locationMap-CCF9-t_0.mjs → locationMap-BXKP_lGh.mjs} +3 -3
- package/dist/client/{media-CwBGetqC.mjs → media-Cl38iOMI.mjs} +10 -3
- package/dist/client/{newsletterForm-DzCLSP4S.mjs → newsletterForm-CU-HmxGx.mjs} +3 -3
- package/dist/client/{pricing-Cgxv2KLC.mjs → pricing-KEAEsibq.mjs} +1 -1
- package/dist/client/{productDetail-ru9w5GHx.mjs → productDetail-Ckp7MGnt.mjs} +3 -3
- package/dist/client/{productList-zaapKSl-.mjs → productList-D91V0sYa.mjs} +3 -3
- package/dist/client/{propsDecoder-CwvvNOHx.mjs → propsDecoder-DZd6RJeA.mjs} +244 -94
- package/dist/client/rendering/client.mjs +2656 -1705
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +3430 -2352
- package/dist/client/{routeIslandApiConfig-BwVFo0Y4.mjs → routeIslandApiConfig-E1EkhhYY.mjs} +1 -1
- package/dist/client/{shop-mktkXvbV.mjs → shop-4F2jLQPI.mjs} +131 -85
- package/dist/client/{shop-commerce-De7gEnkA.mjs → shop-commerce-BbfCJjB3.mjs} +25 -13
- package/dist/client/{shop-commerce-store-B3MCxIBW.mjs → shop-commerce-store-vicweP2K.mjs} +1 -1
- package/dist/client/{shopShared-TqExh235.mjs → shopShared-DlONJt0T.mjs} +4 -4
- package/dist/client/{useEventFilters-n_OjkIjX.mjs → useEventFilters-COYyL3m7.mjs} +32 -17
- package/dist/preview-next/before-render.mjs +207 -105
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/constants.mjs +5 -1
- package/dist/preview-next/index.mjs +5 -1
- package/dist/preview-next/keepAlive.mjs +341 -165
- package/dist/preview-next/middleware.mjs +207 -105
- package/dist/{previewAuthStore-C_EHQ5XA.mjs → previewAuthStore-BBmV7UsW.mjs} +243 -112
- package/dist/{sdk-runtime-BIkJg5y1.mjs → sdk-runtime-CwvFFjB-.mjs} +2 -2
- package/dist/{separator-C9qDP95Z.mjs → separator-ByL72zUT.mjs} +1 -1
- package/dist/server/components.mjs +1839 -1475
- package/dist/server/config-validation.mjs +381 -166
- package/dist/server/config.mjs +381 -166
- package/dist/server/data.mjs +381 -166
- package/dist/server/index.mjs +214 -110
- package/dist/server/next.mjs +663 -351
- package/dist/server/page-converter.mjs +198 -79
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1536 -1169
- package/dist/server/rendering.mjs +2432 -2068
- package/dist/server/routing.mjs +456 -173
- package/dist/server/server.mjs +447 -267
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- package/dist/_dts/billing/src/plans/display.d.ts +0 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-note.d.ts +0 -3
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +0 -10
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +0 -55
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +0 -24
- package/dist/_dts/content-editor/src/controller/buildBlockPublishedBaselines.d.ts +0 -4
- package/dist/_dts/content-editor/src/controller/buildPublishSuccessTransition.d.ts +0 -16
- package/dist/_dts/content-editor/src/controller/driver.d.ts +0 -14
- package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +0 -7
- package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +0 -29
- package/dist/_dts/content-editor/src/hooks/autosaveScopePlanning.d.ts +0 -26
- package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +0 -64
- package/dist/_dts/content-editor/src/hooks/useStoreAutosave.d.ts +0 -48
- package/dist/_dts/content-editor/src/types.d.ts +0 -44
- package/dist/client/DiscountCodeDisclosure-CKJtz0mY.mjs +0 -137
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type BookingFormService, type BookingSelectedCollectionOptionKind } from "./booking-form.state";
|
|
2
|
+
export type BookingPaymentConfirmationSummary = Readonly<{
|
|
3
|
+
serviceTitle: string;
|
|
4
|
+
durationMinutes: number;
|
|
5
|
+
priceAmount: number;
|
|
6
|
+
priceCurrency: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function resolveBookingPaymentConfirmationSummary(input: Readonly<{
|
|
9
|
+
service: BookingFormService | null;
|
|
10
|
+
priceAmount: number;
|
|
11
|
+
selectedCollectionOptionKind?: BookingSelectedCollectionOptionKind;
|
|
12
|
+
hasSelectedAppointmentPackage: boolean;
|
|
13
|
+
}>): BookingPaymentConfirmationSummary | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BookingPaymentCollectionOptionKind } from "../../../../../core/src/index";
|
|
1
2
|
import type { BlockBookingPaymentTerms } from "../../blocks/shared/bookingPaymentTerms";
|
|
2
3
|
import { type BlockBookingConsent } from "../../blocks/shared/bookingConsent";
|
|
3
4
|
import type { AppointmentBookingStatusResponse } from "../api/types";
|
|
@@ -70,7 +71,7 @@ export type BookingFormService = Readonly<{
|
|
|
70
71
|
categoryId?: string | null;
|
|
71
72
|
}>;
|
|
72
73
|
export { projectSelectedAppointmentConsentIntoForm, resolveSelectedAppointmentConsent, type SelectedAppointmentConsent, } from "./booking-form.consent";
|
|
73
|
-
export type BookingSelectedCollectionOptionKind =
|
|
74
|
+
export type BookingSelectedCollectionOptionKind = BookingPaymentCollectionOptionKind;
|
|
74
75
|
type BookingCustomFieldData<TCustomFieldId extends string> = Readonly<{
|
|
75
76
|
[K in TCustomFieldId as K extends BookingFormDataReservedKey ? never : K]?: unknown;
|
|
76
77
|
}>;
|
|
@@ -161,6 +162,9 @@ export type BookingFormViewState = Readonly<{
|
|
|
161
162
|
}> | Readonly<{
|
|
162
163
|
kind: "verifying";
|
|
163
164
|
message: string;
|
|
165
|
+
}> | Readonly<{
|
|
166
|
+
kind: "timeout";
|
|
167
|
+
message: string;
|
|
164
168
|
}> | Readonly<{
|
|
165
169
|
kind: "error";
|
|
166
170
|
message: string;
|
|
@@ -245,4 +249,15 @@ export declare function prepareBookingSubmission(input: Readonly<{
|
|
|
245
249
|
viewerTimeZone?: string | null;
|
|
246
250
|
}>): BookingSubmissionPreparationResult;
|
|
247
251
|
export declare function formatBookingSubmissionPreparationError(error: BookingSubmissionPreparationError): string;
|
|
248
|
-
export
|
|
252
|
+
export type BookingSuccessCopy = Readonly<{
|
|
253
|
+
message: string;
|
|
254
|
+
defaultEmailSentence?: string;
|
|
255
|
+
}>;
|
|
256
|
+
export declare function getBookingSuccessCopy(successMessage: string | null | undefined): BookingSuccessCopy;
|
|
257
|
+
export declare function getRegistrationSuccessCopy(result: Readonly<{
|
|
258
|
+
status?: 'confirmed' | 'waitlist';
|
|
259
|
+
variant?: 'success' | 'info';
|
|
260
|
+
message?: string | null;
|
|
261
|
+
emailFollowupMessage?: string | null;
|
|
262
|
+
}> | null, fallback: string | null | undefined): BookingSuccessCopy;
|
|
263
|
+
export declare function getShopSuccessCopy(outcome: 'success' | 'cancelled'): BookingSuccessCopy;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { HeadlessBookingFlow } from "../hooks/useHeadlessBookingFlow";
|
|
3
|
+
type BookingFormSubmitActionsProps = Readonly<{
|
|
4
|
+
booking: HeadlessBookingFlow;
|
|
5
|
+
onSubmit: () => Promise<void>;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function BookingFormSubmitActions({ booking, onSubmit, }: BookingFormSubmitActionsProps): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -5,4 +5,5 @@ export declare function createBookingFormSubmitHandler(input: Readonly<{
|
|
|
5
5
|
bookingAnchorId: string;
|
|
6
6
|
isPortalRebook: boolean;
|
|
7
7
|
setLocalMailingListNote: (note: BookingSignupNote | null) => void;
|
|
8
|
+
setLocalCustomerEmail: (email: string | null) => void;
|
|
8
9
|
}>): () => Promise<void>;
|
|
@@ -6,7 +6,8 @@ type CheckoutProps = Readonly<{
|
|
|
6
6
|
apiBaseUrl?: string;
|
|
7
7
|
readAuthority?: import('../api/types').BrowserReadAuthority;
|
|
8
8
|
stage?: 'preview' | 'published';
|
|
9
|
+
demoEmailSuppressed?: boolean;
|
|
9
10
|
children?: React.ReactNode;
|
|
10
11
|
}> & ShopDisplayConfig;
|
|
11
|
-
export declare function CheckoutSSR({ blockId, siteId, apiBaseUrl, stage, children, ...rest }: CheckoutProps): React.JSX.Element;
|
|
12
|
+
export declare function CheckoutSSR({ blockId, siteId, apiBaseUrl, stage, demoEmailSuppressed, children, ...rest }: CheckoutProps): React.JSX.Element;
|
|
12
13
|
export default CheckoutSSR;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PublicMembershipProduct, PublicPassProduct, PurchasablePublicPassProduct } from '../../../../blocks/shop';
|
|
1
|
+
import type { PublicMembershipProduct, PublicPassProduct, PurchasablePublicMembershipProduct, PurchasablePublicPassProduct } from '../../../../blocks/shop';
|
|
2
2
|
import type { PublicProduct } from '../../../../blocks/products/shared';
|
|
3
3
|
import type { CommerceCartItem, CommerceCheckoutState } from '../../shop-commerce.shared';
|
|
4
4
|
export declare function formatCommercePrice(cents: number, currency: string): string;
|
|
@@ -82,7 +82,14 @@ export type MembershipCardDisplay = Readonly<{
|
|
|
82
82
|
description: string | null;
|
|
83
83
|
priceLabel: string;
|
|
84
84
|
intervalLabel: string;
|
|
85
|
-
|
|
85
|
+
action: Readonly<{
|
|
86
|
+
kind: 'purchase';
|
|
87
|
+
label: string;
|
|
88
|
+
product: PurchasablePublicMembershipProduct;
|
|
89
|
+
}> | Readonly<{
|
|
90
|
+
kind: 'unavailable';
|
|
91
|
+
label: string;
|
|
92
|
+
}>;
|
|
86
93
|
}>;
|
|
87
94
|
export type PassesMembershipsDisplay = Readonly<{
|
|
88
95
|
kind: 'passes-memberships';
|
|
@@ -52,7 +52,8 @@ export declare function resolveEventDetailsPresentation(input: EventDetailsPrese
|
|
|
52
52
|
eligibleCategoryIds: string[];
|
|
53
53
|
eligibleCategoryNames: string[];
|
|
54
54
|
})[];
|
|
55
|
-
applicableMemberships: {
|
|
55
|
+
applicableMemberships: ({
|
|
56
|
+
purchaseAvailability: "purchasable";
|
|
56
57
|
id: string;
|
|
57
58
|
name: string;
|
|
58
59
|
description: string | null;
|
|
@@ -61,7 +62,18 @@ export declare function resolveEventDetailsPresentation(input: EventDetailsPrese
|
|
|
61
62
|
billingInterval: "month" | "year";
|
|
62
63
|
eligibleCategoryIds: string[];
|
|
63
64
|
eligibleCategoryNames: string[];
|
|
64
|
-
}
|
|
65
|
+
} | {
|
|
66
|
+
purchaseAvailability: "display_only";
|
|
67
|
+
unavailabilityReason: "online_payments_unavailable";
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
description: string | null;
|
|
71
|
+
price: number;
|
|
72
|
+
currency: string;
|
|
73
|
+
billingInterval: "month" | "year";
|
|
74
|
+
eligibleCategoryIds: string[];
|
|
75
|
+
eligibleCategoryNames: string[];
|
|
76
|
+
})[];
|
|
65
77
|
showVenue: boolean;
|
|
66
78
|
showMap: boolean;
|
|
67
79
|
showOtherDates: boolean;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts
CHANGED
|
@@ -20,5 +20,6 @@ export declare function EventRegistrationSurface(props: Readonly<{
|
|
|
20
20
|
buttonText: string;
|
|
21
21
|
buttonVariant: ThemeButtonVariantId;
|
|
22
22
|
supportEmail?: string;
|
|
23
|
-
successMessage
|
|
23
|
+
successMessage?: string;
|
|
24
|
+
demoEmailSuppressed?: boolean;
|
|
24
25
|
}>): import("react").JSX.Element;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EventRegistrationClientProps } from './types';
|
|
3
|
+
import { type UseEventRegistrationWizardResult } from './useEventRegistrationWizard';
|
|
3
4
|
export declare function EventRegistrationWizard(props: EventRegistrationClientProps): React.JSX.Element;
|
|
5
|
+
export type EventRegistrationWizardViewProps = EventRegistrationClientProps & Readonly<{
|
|
6
|
+
wizard: UseEventRegistrationWizardResult;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function EventRegistrationWizardView(viewProps: EventRegistrationWizardViewProps): React.JSX.Element;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ type PaymentSelectionStepProps = {
|
|
|
33
33
|
onRequestLogin?: () => void;
|
|
34
34
|
/** Callback to report state to parent (for footer action rendering) */
|
|
35
35
|
onStateChange?: (state: PaymentStepState) => void;
|
|
36
|
+
/** The registration flow's "now"; payment schedules start from here. */
|
|
37
|
+
nowIso: string;
|
|
36
38
|
};
|
|
37
39
|
/**
|
|
38
40
|
* Payment Selection Step
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { BookingMailingListNote as BookingSignupNote } from '../../../../../../core/src/index';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import type { BookingSuccessCopy } from '../booking-form.state';
|
|
3
4
|
type SuccessStepProps = {
|
|
4
5
|
title?: string;
|
|
5
|
-
|
|
6
|
+
copy: BookingSuccessCopy;
|
|
6
7
|
variant?: 'success' | 'info';
|
|
7
8
|
mailingListSignupNote?: BookingSignupNote;
|
|
8
9
|
context?: 'booking' | 'waitlist';
|
|
10
|
+
demoEmailSuppressed?: boolean;
|
|
11
|
+
customerEmail: string | null;
|
|
9
12
|
};
|
|
10
13
|
/**
|
|
11
14
|
* Success Step
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts
CHANGED
|
@@ -3,9 +3,7 @@ import type { BlockBookingPaymentCollectionOption, BlockBookingPaymentTerms } fr
|
|
|
3
3
|
import type { EventRegistrationAvailablePaymentOption } from '../../../blocks/event-registration';
|
|
4
4
|
import { type BookingPaymentOptionViewModel } from '../../shared/bookingPaymentOptions';
|
|
5
5
|
import type { PaymentSelection } from './types';
|
|
6
|
-
type EventDirectPaymentOption =
|
|
7
|
-
kind: 'upfront' | 'deferred_manual' | 'instalment_plan' | 'flexible_balance';
|
|
8
|
-
}>;
|
|
6
|
+
type EventDirectPaymentOption = BlockBookingPaymentCollectionOption;
|
|
9
7
|
export declare function getApprovedDirectPaymentCollectionOptionKinds(paymentOptions: readonly EventRegistrationAvailablePaymentOption[]): readonly DirectCheckoutCollectionOptionKind[];
|
|
10
8
|
export type EventRegistrationDirectPaymentOption = Omit<BookingPaymentOptionViewModel, 'kind' | 'title'> & Readonly<{
|
|
11
9
|
kind: Extract<DirectCheckoutCollectionOptionKind, EventDirectPaymentOption['kind']>;
|
|
@@ -40,6 +38,8 @@ export declare function buildEventRegistrationPaymentOptionsViewModel(input: Rea
|
|
|
40
38
|
totalPriceCents: number;
|
|
41
39
|
currency: string;
|
|
42
40
|
startsAt?: string | null;
|
|
41
|
+
/** When the registration is being made; instalment schedules start here. */
|
|
42
|
+
nowIso: string;
|
|
43
43
|
locale?: string;
|
|
44
44
|
}>): EventRegistrationPaymentOptionsViewModel;
|
|
45
45
|
export declare function resolveEventRegistrationDirectPaymentSelection(input: Readonly<{
|
|
@@ -35,6 +35,7 @@ export type RegistrationResult = {
|
|
|
35
35
|
*/
|
|
36
36
|
title?: string;
|
|
37
37
|
message?: string;
|
|
38
|
+
emailFollowupMessage?: string;
|
|
38
39
|
variant?: 'success' | 'info';
|
|
39
40
|
mailingListSignupNote?: BookingSignupNote;
|
|
40
41
|
};
|
|
@@ -173,6 +174,7 @@ export type PaymentStepState = {
|
|
|
173
174
|
showLoginPrompt: boolean;
|
|
174
175
|
};
|
|
175
176
|
export type EventRegistrationClientProps = {
|
|
177
|
+
demoEmailSuppressed?: boolean;
|
|
176
178
|
occurrenceContext?: OccurrenceContext | null;
|
|
177
179
|
subject?: EventRegistrationPageSurfaceSubject | null;
|
|
178
180
|
events?: PublicEvent[] | null;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { generateUuidV4 } from '../../../../../../core/src/index';
|
|
1
2
|
import type { EventRegistrationErrorAction } from '../../../../../../commerce/src/purchase/index';
|
|
2
3
|
import type { BlockApiClient } from '../../api';
|
|
3
4
|
import type { EventRegistrationStatusReference, PaymentMethod } from '../../api/types';
|
|
@@ -68,11 +69,7 @@ export type EventRegistrationSubmitDeps = Readonly<{
|
|
|
68
69
|
*/
|
|
69
70
|
createClientCommandId: () => string;
|
|
70
71
|
}>;
|
|
71
|
-
|
|
72
|
-
randomUUID?: () => string;
|
|
73
|
-
getRandomValues: (bytes: Uint8Array<ArrayBuffer>) => Uint8Array<ArrayBuffer>;
|
|
74
|
-
}>;
|
|
75
|
-
export declare function createClientCommandId(cryptoSource?: ClientCommandIdCryptoSource): string;
|
|
72
|
+
export declare const createClientCommandId: typeof generateUuidV4;
|
|
76
73
|
export declare function useEventRegistrationSubmit(options: UseEventRegistrationSubmitInput): EventRegistrationSubmit;
|
|
77
74
|
/**
|
|
78
75
|
* Describe a completed registration to the success step.
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { useWaitlistClaim } from '../../shared/useWaitlistClaim';
|
|
|
5
5
|
import { useEventRegistrationStripeReturn } from './useEventRegistrationStripeReturn';
|
|
6
6
|
import { useEventRegistrationSubmit } from './useEventRegistrationSubmit';
|
|
7
7
|
import { useDiscountCodeUi } from './useDiscountCodeUi';
|
|
8
|
+
import { useBookingNowIso } from '../../hooks/useBookingNowIso';
|
|
8
9
|
export type EventRegistrationDetailsCompleteResult = Readonly<{
|
|
9
10
|
ok: true;
|
|
10
11
|
outcome: 'payment-step' | 'submitted';
|
|
@@ -30,9 +31,11 @@ export type EventRegistrationWizardDeps = Readonly<{
|
|
|
30
31
|
useEventRegistrationStripeReturn: typeof useEventRegistrationStripeReturn;
|
|
31
32
|
useEventRegistrationSubmit: typeof useEventRegistrationSubmit;
|
|
32
33
|
useDiscountCodeUi: typeof useDiscountCodeUi;
|
|
34
|
+
useBookingNowIso: typeof useBookingNowIso;
|
|
33
35
|
}>;
|
|
34
36
|
export declare function useEventRegistrationWizard(options: UseEventRegistrationWizardOptions): {
|
|
35
37
|
api: import("../../api").BoundBlockApiClient;
|
|
38
|
+
nowIso: string;
|
|
36
39
|
anchorId: string;
|
|
37
40
|
occurrenceContext: {
|
|
38
41
|
id: string;
|
|
@@ -165,6 +168,7 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
|
|
|
165
168
|
};
|
|
166
169
|
export declare function useEventRegistrationWizardWithDeps(options: UseEventRegistrationWizardOptions, deps: EventRegistrationWizardDeps): {
|
|
167
170
|
api: import("../../api").BoundBlockApiClient;
|
|
171
|
+
nowIso: string;
|
|
168
172
|
anchorId: string;
|
|
169
173
|
occurrenceContext: {
|
|
170
174
|
id: string;
|
|
@@ -14,6 +14,7 @@ export type EventRegistrationGenericShellStepLabels = typeof EVENT_REGISTRATION_
|
|
|
14
14
|
type EventRegistrationShellStepLabel = (typeof EVENT_REGISTRATION_SHELL_STEP_LABELS)[number];
|
|
15
15
|
export type EventRegistrationSourceProps = Readonly<{
|
|
16
16
|
siteId?: string;
|
|
17
|
+
demoEmailSuppressed?: boolean;
|
|
17
18
|
apiBaseUrl?: string;
|
|
18
19
|
portalToken?: string | null;
|
|
19
20
|
previewToken?: string | null;
|
|
@@ -72,6 +73,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
72
73
|
kind: "client-owned";
|
|
73
74
|
buildRender: (source: Readonly<{
|
|
74
75
|
siteId?: string;
|
|
76
|
+
demoEmailSuppressed?: boolean;
|
|
75
77
|
apiBaseUrl?: string;
|
|
76
78
|
portalToken?: string | null;
|
|
77
79
|
previewToken?: string | null;
|
|
@@ -103,7 +105,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
103
105
|
siteName?: string;
|
|
104
106
|
}>) => Readonly<{
|
|
105
107
|
display: EventRegistrationDisplay;
|
|
106
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "
|
|
108
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
107
109
|
eventSource: EventRegistrationEventSource;
|
|
108
110
|
}>;
|
|
109
111
|
}>;
|
|
@@ -111,6 +113,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
111
113
|
source: Readonly<{
|
|
112
114
|
encode: (value: Readonly<{
|
|
113
115
|
siteId?: string;
|
|
116
|
+
demoEmailSuppressed?: boolean;
|
|
114
117
|
apiBaseUrl?: string;
|
|
115
118
|
portalToken?: string | null;
|
|
116
119
|
previewToken?: string | null;
|
|
@@ -143,6 +146,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
143
146
|
}>) => unknown;
|
|
144
147
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
145
148
|
siteId?: string;
|
|
149
|
+
demoEmailSuppressed?: boolean;
|
|
146
150
|
apiBaseUrl?: string;
|
|
147
151
|
portalToken?: string | null;
|
|
148
152
|
previewToken?: string | null;
|
|
@@ -177,13 +181,13 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
177
181
|
render: Readonly<{
|
|
178
182
|
encode: (value: Readonly<{
|
|
179
183
|
display: EventRegistrationDisplay;
|
|
180
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "
|
|
184
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
181
185
|
eventSource: EventRegistrationEventSource;
|
|
182
186
|
}>;
|
|
183
187
|
}>) => unknown;
|
|
184
188
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
185
189
|
display: EventRegistrationDisplay;
|
|
186
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "
|
|
190
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
187
191
|
eventSource: EventRegistrationEventSource;
|
|
188
192
|
}>;
|
|
189
193
|
}>>;
|
|
@@ -204,7 +208,7 @@ export declare const eventRegistrationInteractiveIslandPropsCodec: Readonly<{
|
|
|
204
208
|
mode: "event-registration";
|
|
205
209
|
} & Readonly<{
|
|
206
210
|
display: EventRegistrationDisplay;
|
|
207
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "
|
|
211
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
208
212
|
eventSource: EventRegistrationEventSource;
|
|
209
213
|
}>;
|
|
210
214
|
}>>;
|
|
@@ -222,7 +226,7 @@ export declare const eventRegistrationInteractiveIslandPropsCodec: Readonly<{
|
|
|
222
226
|
mode: "event-registration";
|
|
223
227
|
} & Readonly<{
|
|
224
228
|
display: EventRegistrationDisplay;
|
|
225
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "
|
|
229
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
226
230
|
eventSource: EventRegistrationEventSource;
|
|
227
231
|
}>;
|
|
228
232
|
}>>;
|
|
@@ -2,6 +2,7 @@ import type { EventCollectionSourceProps } from "./shared/eventCollectionContrac
|
|
|
2
2
|
import { type CardRole } from "../../../../../../theme-core/src/cards/index";
|
|
3
3
|
import type { ButtonVariant, CardOrientation, ColumnOption, EventLayout, EventScheduleScope, EventSurfaceScope, FilterAutoShow, PublicEvent } from "../../../blocks/events/shared/types";
|
|
4
4
|
import { type InteractiveIslandProps } from "../../../../contracts/islands";
|
|
5
|
+
import { type EventCardDisplayProps } from "./shared/eventCardPresentations";
|
|
5
6
|
import { type EventListPaginationAction, type EventListPaginationMode, type EventPageSize } from "./shared/listOptions";
|
|
6
7
|
import type { BrowserReadAuthority } from "../../api/types";
|
|
7
8
|
export type EventListingSourceProps = Pick<EventCollectionSourceProps, "showFilters" | "showCategoryFilter" | "showVenueFilter" | "showStaffFilter" | "eventSurface" | "filterEventPresets" | "scheduleScope" | "seriesIds" | "filterCategoryIds" | "filterStaffMemberId" | "filterVenueId"> & Readonly<{
|
|
@@ -280,4 +281,9 @@ export declare const eventListingInteractiveIslandPropsCodec: Readonly<{
|
|
|
280
281
|
}>>;
|
|
281
282
|
}>;
|
|
282
283
|
export declare function buildEventListingInteractiveIslandProps(props: EventListingSourceProps): EventListingInteractiveIslandProps;
|
|
284
|
+
/**
|
|
285
|
+
* The card an events listing draws when nothing on the block changes it: the
|
|
286
|
+
* block's own defaults, read through its render.
|
|
287
|
+
*/
|
|
288
|
+
export declare function defaultEventListingCardProps(): EventCardDisplayProps;
|
|
283
289
|
export {};
|
|
@@ -11,6 +11,40 @@ type DateTimeFormatOptions = {
|
|
|
11
11
|
timeZone?: string | null;
|
|
12
12
|
locale?: string;
|
|
13
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* The English locale a site's public dates are written in, read from the
|
|
16
|
+
* site's own time zone (Will, 2026-09-26: "date style from site time zone").
|
|
17
|
+
*
|
|
18
|
+
* Sites don't store a locale, and every public word around a date is English,
|
|
19
|
+
* so the only open question is which English conventions to follow: day or
|
|
20
|
+
* month first, and a 24 or 12-hour clock. The site's time zone is the one
|
|
21
|
+
* fact every site carries about where it is. It is the site's, never an
|
|
22
|
+
* event's: a venue left at UTC must not turn a UK site's dates American.
|
|
23
|
+
* Anywhere this can't place (UTC, the Americas, Asia) keeps US English, which
|
|
24
|
+
* is what these helpers wrote before sites were placed at all.
|
|
25
|
+
*/
|
|
26
|
+
export declare function eventDateLocale(siteTimeZone: string | null | undefined): string;
|
|
27
|
+
export type EventDateOptions = Readonly<{
|
|
28
|
+
timeZone: string | null;
|
|
29
|
+
locale: string;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* Formatting options for an event's dates: the times in the event's own zone,
|
|
33
|
+
* written in its site's locale. A record from an older server that doesn't
|
|
34
|
+
* name the site's zone falls back to the event's.
|
|
35
|
+
*/
|
|
36
|
+
export declare function eventDateOptions(place: Readonly<{
|
|
37
|
+
timeZone?: string | null;
|
|
38
|
+
siteTimeZone?: string | null;
|
|
39
|
+
}>): EventDateOptions;
|
|
40
|
+
/**
|
|
41
|
+
* Start and end times as cards write them, in the site's locale:
|
|
42
|
+
* "10:00 to 16:00" in the UK, "10:00 AM to 4:00 PM" in the US.
|
|
43
|
+
*/
|
|
44
|
+
export declare function formatEventTimeRange(times: Readonly<{
|
|
45
|
+
startsAt: string;
|
|
46
|
+
endsAt: string;
|
|
47
|
+
}>, options: EventDateOptions): string;
|
|
14
48
|
/** Use the event timezone when present, otherwise the calendar/site timezone. */
|
|
15
49
|
export declare function resolveEventTimeZone(event: Pick<PublicEvent, 'timeZone'>, calendarTimeZone: string): string;
|
|
16
50
|
/**
|
|
@@ -19,8 +53,8 @@ export declare function resolveEventTimeZone(event: Pick<PublicEvent, 'timeZone'
|
|
|
19
53
|
*/
|
|
20
54
|
export declare function formatDate(isoTimestamp: string, options?: DateTimeFormatOptions): string;
|
|
21
55
|
/**
|
|
22
|
-
* Format time for display.
|
|
23
|
-
* Returns: "
|
|
56
|
+
* Format time for display, on the locale's own clock.
|
|
57
|
+
* Returns: "9:00 AM" (en-US) or "09:00" (en-GB)
|
|
24
58
|
*/
|
|
25
59
|
export declare function formatTime(isoTimestamp: string, options?: DateTimeFormatOptions): string;
|
|
26
60
|
export declare function formatEventDateParts(args: {
|
|
@@ -50,7 +84,7 @@ export declare function formatEventCompactDateRail(isoTimestamp: string, options
|
|
|
50
84
|
* The compact rail already owns this short, booking-local date vocabulary;
|
|
51
85
|
* keep the fact panel on the same date and timezone rules as event rows.
|
|
52
86
|
*/
|
|
53
|
-
export declare function formatEventNextDateFact(event: Pick<PublicEvent, 'startsAt' | 'timeZone'>): EventNextDateFact;
|
|
87
|
+
export declare function formatEventNextDateFact(event: Pick<PublicEvent, 'startsAt' | 'timeZone' | 'siteTimeZone'>): EventNextDateFact;
|
|
54
88
|
export { addDays, addMonths, buildCalendarViewport, formatCalendarTitle, formatDateKey, getEndOfMonth, getMonthCalendarDays, getOrderedDayNames, getStartOfMonth, getWeekCalendarDays, getWeekCalendarDayTuple, isToday, MAX_EVENTS_PER_DAY, shiftCalendarAnchorDate, } from '../../../../../../../calendar/src/index';
|
|
55
89
|
export type { CalendarDate, CalendarViewport, CalendarViewportKind, MonthCalendarViewport, WeekCalendarDays, WeekCalendarViewport, } from '../../../../../../../calendar/src/index';
|
|
56
90
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EventCard } from './EventCard';
|
|
3
|
-
type EventCardClientProps = Omit<React.ComponentProps<typeof EventCard>, 'mapSlot'>;
|
|
3
|
+
export type EventCardClientProps = Omit<React.ComponentProps<typeof EventCard>, 'mapSlot'>;
|
|
4
4
|
export declare function EventCardClient({ event, showMap, allowMap, ...cardProps }: EventCardClientProps): React.ReactElement;
|
|
5
5
|
export default EventCardClient;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { CardRole } from '../../../../../../../theme-core/src/cards/index';
|
|
3
3
|
import type { ButtonVariant, CardOrientation, PublicEvent } from '../../../../blocks/events/shared/types';
|
|
4
|
+
import type { ResolveImageUrlContext } from '../../media';
|
|
4
5
|
type EventCardPresentation = 'default' | 'catalogue';
|
|
5
|
-
type EventCardProps = {
|
|
6
|
+
export type EventCardProps = {
|
|
6
7
|
event: PublicEvent;
|
|
7
8
|
cardRole?: CardRole;
|
|
8
9
|
buttonVariant?: ButtonVariant;
|
|
@@ -23,6 +24,12 @@ type EventCardProps = {
|
|
|
23
24
|
presentation?: EventCardPresentation;
|
|
24
25
|
/** Heading level used by the containing page's document outline. */
|
|
25
26
|
headingLevel?: 3 | 4;
|
|
27
|
+
/**
|
|
28
|
+
* How the image resolves outside a rendered page, such as a dashboard
|
|
29
|
+
* preview: the site and its media assets, because stored media values drop
|
|
30
|
+
* their storage path. A rendered page supplies its own and leaves this out.
|
|
31
|
+
*/
|
|
32
|
+
imageResolveContext?: ResolveImageUrlContext | null;
|
|
26
33
|
};
|
|
27
34
|
/**
|
|
28
35
|
* EventCard Component
|
|
@@ -33,4 +40,12 @@ type EventCardProps = {
|
|
|
33
40
|
* This component is server-safe (uses no client APIs like Intl).
|
|
34
41
|
*/
|
|
35
42
|
export declare const EventCard: React.FC<EventCardProps>;
|
|
43
|
+
/**
|
|
44
|
+
* The card's date and times, written the way the event's place writes them
|
|
45
|
+
* ("Friday, 16 October 2026" and "10:00 to 16:00" in the UK).
|
|
46
|
+
*/
|
|
47
|
+
export declare function formatEventCardWhen(event: Pick<PublicEvent, 'startsAt' | 'endsAt' | 'timeZone' | 'siteTimeZone'>): Readonly<{
|
|
48
|
+
formattedDate: string;
|
|
49
|
+
formattedTime: string;
|
|
50
|
+
}>;
|
|
36
51
|
export default EventCard;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ButtonVariant, PublicEvent } from '../../../../blocks/events/shared/types';
|
|
2
|
+
import type { EventListingDisplay } from '../EventListing.interactive';
|
|
3
|
+
import type { EventCardProps } from './EventCard';
|
|
4
|
+
/**
|
|
5
|
+
* How a listing draws each card, apart from the event itself. Each listing
|
|
6
|
+
* reads its card settings from here, and so does anything that previews a
|
|
7
|
+
* card as that listing would draw it (the dashboard's event wizard).
|
|
8
|
+
*/
|
|
9
|
+
export type EventCardDisplayProps = Omit<EventCardProps, 'event' | 'mapSlot' | 'imageResolveContext'>;
|
|
10
|
+
/** A booking page's catalogue card: one per series, "See dates" for dated events. */
|
|
11
|
+
export declare function catalogueEventCardProps(event: Pick<PublicEvent, 'bookingScope'>, buttonVariant?: ButtonVariant): EventCardDisplayProps;
|
|
12
|
+
/** An events listing's card, from the listing's display settings. */
|
|
13
|
+
export declare function listingEventCardProps(display: Pick<EventListingDisplay, 'cardRole' | 'buttonVariant' | 'buttonText' | 'showVenue' | 'showMap' | 'showCapacity' | 'orientation'>): EventCardDisplayProps;
|