@riverbankcms/sdk 0.136.0 → 0.138.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 +109 -0
- package/README.md +7 -4
- package/dist/{PreviewEditorSidebar-BU5ZlhQR.mjs → PreviewEditorSidebar-BVPur_CU.mjs} +12 -18
- package/dist/{PreviewEditorUI-9XkHL-bC.mjs → PreviewEditorUI-DLhWX8oh.mjs} +3 -3
- package/dist/{PreviewQueryProvider-wbEpXryy.mjs → PreviewQueryProvider-BguJY1SW.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CnWmj-2B.mjs → SdkPreviewModeRuntime-Tda6qw4z.mjs} +1375 -495
- package/dist/{SiteChromeCustomizeContext-B6d5zkog.mjs → SiteChromeCustomizeContext-BHFgMjde.mjs} +35665 -33602
- package/dist/_dts/ai/src/contracts/proposals.d.ts +7226 -3057
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +1223 -811
- package/dist/_dts/ai/src/designer/themePatch.d.ts +5 -10
- package/dist/_dts/api/src/accessAdmin.d.ts +16 -18
- package/dist/_dts/api/src/accountApi.d.ts +49 -2
- package/dist/_dts/api/src/appointmentServiceContracts.d.ts +83 -0
- package/dist/_dts/api/src/appointmentServiceLocation.d.ts +12 -0
- package/dist/_dts/api/src/appointmentServiceVisibility.d.ts +14 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +8 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +35 -87
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/bookingOperations.d.ts +2 -69
- package/dist/_dts/api/src/bookingRecords.d.ts +2 -2
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +2 -2
- package/dist/_dts/api/src/bookingServicePricing.d.ts +47 -0
- package/dist/_dts/api/src/bookings.d.ts +2 -2
- package/dist/_dts/api/src/cache-tags.d.ts +7 -2
- package/dist/_dts/api/src/common/index.d.ts +1 -0
- package/dist/_dts/api/src/common/zodFieldErrors.d.ts +34 -0
- package/dist/_dts/api/src/communications.d.ts +14 -8
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -6
- package/dist/_dts/api/src/domainConnection.d.ts +41 -0
- package/dist/_dts/api/src/endpoints.d.ts +1636 -1637
- package/dist/_dts/api/src/eventAttendanceLabels.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +10 -14
- package/dist/_dts/api/src/index.d.ts +11 -9
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/media.d.ts +19 -2
- package/dist/_dts/api/src/occurrenceScheduling.d.ts +1 -1
- package/dist/_dts/api/src/participantMessaging.d.ts +3 -3
- package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +62 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +109 -2
- package/dist/_dts/api/src/publicEventCheckoutEndpointDefinitions.d.ts +27 -0
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -1
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +30 -148
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +8 -26
- package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +5 -13
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +2 -3
- package/dist/_dts/api/src/schemas/admin-allowed-domains.d.ts +76 -0
- package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +61 -0
- package/dist/_dts/api/src/schemas/admin-users.d.ts +80 -0
- package/dist/_dts/api/src/schemas/newsletter-memberships.d.ts +98 -0
- package/dist/_dts/api/src/schemas/sdk-entries.d.ts +128 -0
- package/dist/_dts/api/src/schemas/site-api-keys.d.ts +112 -0
- package/dist/_dts/api/src/schemas/support.d.ts +35 -0
- package/dist/_dts/api/src/sdk-event-booking-offer.d.ts +14 -0
- package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +4 -16
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +11 -21
- package/dist/_dts/api/src/sdkContracts.d.ts +8 -23
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +37 -0
- package/dist/_dts/api/src/sdkMediaContracts.d.ts +40 -0
- package/dist/_dts/api/src/sdkMediaEndpointDefinitions.d.ts +66 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +157 -146
- package/dist/_dts/api/src/siteInfrastructure.d.ts +37 -37
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +35 -54
- package/dist/_dts/api/src/siteOnboarding.d.ts +3 -3
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +38 -16
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +37 -17
- package/dist/_dts/api/src/types.d.ts +2 -2
- package/dist/_dts/api/src/{wholeSeriesOfferings.d.ts → wholeSeriesRuns.d.ts} +11 -67
- package/dist/_dts/block-form/src/FormRenderer.d.ts +3 -1
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +2 -1
- package/dist/_dts/block-form/src/backend/types.d.ts +2 -0
- package/dist/_dts/block-form/src/context/FormFocusContext.d.ts +7 -0
- package/dist/_dts/block-form/src/index.d.ts +2 -0
- package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +2 -1
- package/dist/_dts/block-form/src/utils/promotedFieldBackend.d.ts +8 -0
- package/dist/_dts/block-form/src/utils/promotedFieldPlan.d.ts +18 -0
- package/dist/_dts/block-form/src/utils/resolvePromotedFields.d.ts +8 -1
- package/dist/_dts/blocks/src/BlockErrorBoundary.d.ts +46 -0
- package/dist/_dts/blocks/src/PageRenderer.d.ts +2 -141
- package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +12 -6
- package/dist/_dts/blocks/src/index.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRenderAudience.d.ts +54 -0
- package/dist/_dts/blocks/src/pageRenderDiagnostics.d.ts +26 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +116 -0
- package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +109 -0
- package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +154 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
- package/dist/_dts/blocks/src/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +12 -20
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/eventCalendarDataLoaders.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +95 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/runGrouping.d.ts +37 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +1046 -773
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +59 -46
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +161 -161
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +13 -6
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +10 -4
- package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +2 -2
- package/dist/_dts/blocks/src/system/constants/events.d.ts +4 -0
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +4 -4
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/publicLoaderCachePolicy.d.ts +5 -9
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +83 -83
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +12 -3
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -8
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +12 -20
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +32 -37
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +15 -18
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +11 -8
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +38 -22
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +16 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ErrorStep.d.ts +3 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +5 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorPresentation.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +25 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +14 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +3 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/siteCreditPreview.d.ts +0 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts +14 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +13 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +9 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +25 -23
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +11 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -13
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +11 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/capacity.d.ts +164 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/cta.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +47 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/index.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/people.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/pricing.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/OfferingTitle.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +1080 -560
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listingLayout.d.ts +23 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -7
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +11 -0
- package/dist/_dts/commerce/src/moneyReport.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +57 -0
- package/dist/_dts/commerce/src/purchase/eventOrderOptionSnapshot.d.ts +3 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +6 -3
- package/dist/_dts/commerce/src/purchase/types.d.ts +3 -2
- package/dist/_dts/commerce/src/waitlists.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +4 -0
- package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +11 -0
- package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/blockedPublishPlan.d.ts +13 -5
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +5 -1
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +34 -2
- package/dist/_dts/content-editor/src/index.d.ts +2 -1
- package/dist/_dts/content-editor/src/ui/blockValidationManifestRegistry.d.ts +2 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +4 -2
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +27 -5
- package/dist/_dts/content-model/src/content-types/schema.d.ts +3 -3
- package/dist/_dts/content-model/src/templates/defaults.d.ts +11 -0
- package/dist/_dts/core/src/branded.d.ts +28 -9
- package/dist/_dts/core/src/event-booking-offer-parser.d.ts +82 -0
- package/dist/_dts/core/src/event-booking-offer.d.ts +89 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +81 -4
- package/dist/_dts/core/src/event-pricing.d.ts +81 -89
- package/dist/_dts/core/src/index.d.ts +3 -0
- package/dist/_dts/core/src/non-empty-array.d.ts +3 -0
- package/dist/_dts/core/src/whole-series-run-schedule.d.ts +92 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +495 -279
- package/dist/_dts/db/src/index.d.ts +1 -0
- package/dist/_dts/db/src/utils/postgrestFilter.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -6
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +4 -2
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +22 -7
- package/dist/_dts/editor-blocks/src/block-editor/useSettingsFieldFocus.d.ts +18 -0
- package/dist/_dts/media-core/src/bulkDeletePlanning.d.ts +4 -0
- package/dist/_dts/media-core/src/fileDomain.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/blocks/previewBatchLoaderParams.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlSaveRequest.d.ts +51 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +24 -2
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +23 -1
- package/dist/_dts/preview-next/src/client/preview/usePersistedHeaderPreferences.d.ts +8 -0
- package/dist/_dts/sdk/src/client/{eventSubrouteReadOperations.d.ts → publicEventReadOperations.d.ts} +4 -3
- package/dist/_dts/sdk/src/client/types.d.ts +6 -10
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
- package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +2 -3
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +8 -8
- package/dist/_dts/sdk/src/next/tags.d.ts +5 -8
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -26
- package/dist/_dts/sdk/src/rendering/helpers/footerPageOutline.d.ts +9 -1
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -53
- package/dist/_dts/sdk/src/rendering/server.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/styles/recipes/flatInk.d.ts +25 -25
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +25 -25
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +7 -7
- package/dist/_dts/theme-core/src/buttons/types.d.ts +22 -22
- package/dist/_dts/theme-core/src/cards/types.d.ts +49 -49
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/gradients/types.d.ts +5 -0
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +26 -3
- package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +195 -195
- package/dist/_dts/theme-core/src/navigation/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +258 -257
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +43 -3
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +10 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerBrandPresentation.d.ts +63 -0
- package/dist/_dts/theme-core/src/site-styles/headerBytesComparison.d.ts +30 -0
- package/dist/_dts/theme-core/src/site-styles/headerInteractionPalette.d.ts +50 -1
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +48 -9
- package/dist/_dts/theme-core/src/site-styles/headerPreferences.d.ts +162 -0
- package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +73 -0
- package/dist/_dts/theme-core/src/site-styles/headerRecompile.d.ts +118 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +10 -1
- package/dist/_dts/theme-core/src/site-styles/headerStyleDefaults.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +7 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +20 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +43 -2
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +2 -2
- package/dist/client/{BookingConsentAgreement-DCch21a6.mjs → BookingConsentAgreement-DQUik1Mx.mjs} +2 -2
- package/dist/client/{DiscountCodeDisclosure-DIj1T59K.mjs → DiscountCodeDisclosure-CU67Q4vH.mjs} +1 -1
- package/dist/client/{EventCombined.client-BWVNlXTx.mjs → EventCombined.client-a02TXUgg.mjs} +233 -348
- package/dist/client/{EventListing.client-DVFCDe3i.mjs → EventListing.client-99qx7jFl.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BY5mIHw9.mjs → LeafletStaticMap-CWzcq73L.mjs} +1 -1
- package/dist/client/{accordion-CK29E8rG.mjs → accordion-D1nb3-Oj.mjs} +1 -1
- package/dist/client/{bookingForm-DFvnet-N.mjs → bookingForm-BGrmLhaO.mjs} +5 -5
- package/dist/client/bookings.mjs +10555 -10475
- package/dist/client/{carousel-BVU5NQlb.mjs → carousel-DSmOx3ad.mjs} +1 -1
- package/dist/client/{cart-BNItcZVa.mjs → cart-COWeOIUk.mjs} +3 -3
- package/dist/client/{checkout-Bu6iCdkP.mjs → checkout-CeysaIJK.mjs} +3 -3
- package/dist/client/client.mjs +58968 -57441
- package/dist/client/{context-BImarOAq.mjs → context-DBzX85Xc.mjs} +46 -18
- package/dist/client/dates-DCYhZBlW.mjs +264 -0
- package/dist/client/{eventCalendar-DS2h-UXD.mjs → eventCalendar-BgsN73Ul.mjs} +21 -44
- package/dist/client/{eventCombined-Drt4Oq9p.mjs → eventCombined-DcZQAMQP.mjs} +3 -3
- package/dist/client/{eventDetails-Bl2vWgTX.mjs → eventDetails-BWwGJ54l.mjs} +131 -51
- package/dist/client/{eventListing-CS7PHY7v.mjs → eventListing-DqYqV8vp.mjs} +3 -3
- package/dist/client/{eventRegistration-D-j8eNy2.mjs → eventRegistration-DQGDgu_e.mjs} +1122 -803
- package/dist/client/{form-RMpoLTyr.mjs → form-ClfpasVT.mjs} +2 -2
- package/dist/client/{headerSection-BYE3Lb3k.mjs → headerSection-BuOMe98N.mjs} +2 -2
- package/dist/client/hooks.mjs +9630 -9526
- package/dist/client/{locationMap-BxSr7Kkh.mjs → locationMap-CEqu_sfa.mjs} +2 -2
- package/dist/client/{newsletterForm-DerbXwFC.mjs → newsletterForm-IbrHjMxy.mjs} +2 -2
- package/dist/client/pricing-xj7MPZlK.mjs +314 -0
- package/dist/client/{productDetail-4SZCLhAf.mjs → productDetail-vxqTt5Xj.mjs} +3 -3
- package/dist/client/{productList-D7AP4GNq.mjs → productList-OTdZu8sb.mjs} +3 -3
- package/dist/client/{propsDecoder-pzBeCh14.mjs → propsDecoder-CY9gGEF7.mjs} +786 -1194
- package/dist/client/rendering/client.mjs +11481 -10469
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +26871 -25232
- package/dist/client/{scrollToBlock-CduAKf8T.mjs → scrollToBlock--BFV6kl-.mjs} +1 -1
- package/dist/client/{shop-Cp5p_kGe.mjs → shop-CP4YbDL9.mjs} +6 -6
- package/dist/client/{shop-commerce-DicXYaYX.mjs → shop-commerce-APs4XBXE.mjs} +5 -5
- package/dist/client/{shop-commerce-store-CGWnpY4K.mjs → shop-commerce-store-CAVLxLFr.mjs} +1 -1
- package/dist/client/{shopShared-BDf9ljkm.mjs → shopShared-BnSRrwXI.mjs} +3 -3
- package/dist/client/{useEventFilters-DeeyGYuk.mjs → useEventFilters-1a1by4c8.mjs} +33 -18
- package/dist/preview-next/before-render.mjs +186 -148
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +186 -148
- package/dist/preview-next/middleware.mjs +186 -148
- package/dist/{previewAuthStore-DbqBol0V.mjs → previewAuthStore-BkEgnYPP.mjs} +186 -148
- package/dist/{sdk-runtime-19MO27F0.mjs → sdk-runtime-DwGfsT0S.mjs} +2 -2
- package/dist/{separator-DaPLtJ1f.mjs → separator-BeqDLneQ.mjs} +1 -1
- package/dist/server/components.mjs +53243 -51879
- package/dist/server/config-validation.mjs +1015 -906
- package/dist/server/config.mjs +1019 -910
- package/dist/server/data.mjs +10304 -10200
- package/dist/server/index.mjs +217 -198
- package/dist/server/next/tags.mjs +18 -4
- package/dist/server/next.mjs +62787 -61617
- package/dist/server/page-converter.mjs +797 -917
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +52557 -51365
- package/dist/server/rendering.mjs +54373 -53054
- package/dist/server/routing.mjs +13274 -13142
- package/dist/server/server.mjs +1076 -1154
- package/dist/server/theme-bridge.mjs +69 -9
- package/dist/server/theme.mjs +27 -8
- package/dist/styles/index.css +32 -1
- package/package.json +1 -1
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +0 -65
- package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +0 -20
- package/dist/_dts/api/src/sdk-event-pricing.d.ts +0 -61
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/index.d.ts +0 -3
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/pricing.d.ts +0 -50
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/schemas.d.ts +0 -135
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +0 -87
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCapacity.d.ts +0 -48
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/pricing.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +0 -100
- package/dist/_dts/sdk/src/client/wholeSeriesReadOperations.d.ts +0 -11
- package/dist/_dts/sdk/src/public-api/wholeSeriesContracts.d.ts +0 -2
- /package/dist/_dts/blocks/src/system/runtime/nodes/events/{shared → domain}/destination.d.ts +0 -0
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Factory function for creating a typed API client for block client-side API calls.
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
6
|
+
import { type CalendarWindowPage, type CalendarWindowRequest } from '../../blocks/events/shared/calendarWindow';
|
|
7
|
+
import type { BlockApiConfig, ApiFieldError, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, BookingSubmitRequest, BookingPackageSubmitRequest, BookingSubmitResponse, EligibleAppointmentPackagesResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, WeeklySlotAvailabilityRequest, WeeklySlotAvailabilityResponse, AvailableDatesRequest, AvailableDatesResponse, BookingServicesResponse, BookingServiceResponse, BookingResourcesResponse, PublicEventsRequest, PublicEvent, EventFiltersResponse, EventRegisterRequest, EventRegisterResponse, EventCheckoutRequest, EventCheckoutResponse, RegistrationOptionsRequest, RegistrationOptionsResponse, EventRegistrationStatusRequest, EventRegistrationStatusResponse, EventCheckoutReturnRequest, EventCheckoutReturnResponse, ResolveWaitlistClaimRequest, ResolveWaitlistClaimResponse, DiscountsAvailableRequest, DiscountsAvailableResponse, DiscountApplyRequest, DiscountApplyResponse, PublicProductsResponse, ShopCheckoutRequest, ShopCheckoutResponse, UnifiedCheckoutRequest, UnifiedCheckoutResponse, PublicGiftingOffersResponse, CreateGiftingCheckoutRequest, CreateGiftingCheckoutResponse, ClaimGiftCardRequest, ClaimGiftCardResponse, PortalMeResponse, CustomerProfile, CustomerOrder, PortalMeUpdateRequest, CustomerPass, CustomerMembership, CustomerEventRegistration, PortalEventTicket, CustomerAppointment, BookingQuestionsTaskDetail, CustomerEventSeriesRegistration, PortalCredit, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalDigitalProductsResponse, PortalCancelWholeSeriesRegistrationRequest, PortalCancelWholeSeriesRegistrationResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalUpdateAppointmentBookingQuestionsRequest, PortalUpdateWholeSeriesBookingQuestionsRequest, PortalUpdateEventBookingQuestionsRequest, PortalCancelEventRegistrationRequest, PortalCancelEventRegistrationResult, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCancelMembershipAtPeriodEndResult, MagicLinkRequest, EventGuest, UpdateEventGuestsRequest, NewsletterSubscribeRequest, NewsletterSubscribeResponse } from './types';
|
|
7
8
|
type WithoutSiteId<T> = T extends unknown ? Omit<T, 'siteId'> : never;
|
|
8
9
|
type PublicProductCategorySelector = Readonly<{
|
|
9
10
|
kind: 'category';
|
|
@@ -13,12 +14,19 @@ type PublicProductCategorySelector = Readonly<{
|
|
|
13
14
|
productCategoryEntryId: string;
|
|
14
15
|
}>;
|
|
15
16
|
/**
|
|
16
|
-
* Error thrown when an API request fails
|
|
17
|
+
* Error thrown when an API request fails.
|
|
18
|
+
*
|
|
19
|
+
* `fieldErrors` mirrors the envelope's `error.fieldErrors` when the response
|
|
20
|
+
* carried one, so callers can render per-field detail instead of only the
|
|
21
|
+
* top-level message. It is always an array — empty when the response had no
|
|
22
|
+
* field detail, or when what it carried was not a well-formed field error list.
|
|
17
23
|
*/
|
|
18
24
|
export declare class BlockApiError extends Error {
|
|
19
25
|
readonly status: number;
|
|
20
26
|
readonly code?: string | undefined;
|
|
21
|
-
|
|
27
|
+
readonly tag?: string | undefined;
|
|
28
|
+
readonly fieldErrors: readonly ApiFieldError[];
|
|
29
|
+
constructor(message: string, status: number, code?: string | undefined, tag?: string | undefined, fieldErrors?: readonly ApiFieldError[]);
|
|
22
30
|
}
|
|
23
31
|
/**
|
|
24
32
|
* Block API Client interface
|
|
@@ -44,6 +52,7 @@ export interface BlockApiClient {
|
|
|
44
52
|
serviceId: string;
|
|
45
53
|
}): Promise<BookingResourcesResponse>;
|
|
46
54
|
getPublicEvents(params?: Omit<PublicEventsRequest, 'siteId'>): Promise<PublicEvent[]>;
|
|
55
|
+
getPublicEventCalendarWindow(params?: CalendarWindowRequest): Promise<CalendarWindowPage>;
|
|
47
56
|
getEventFilters(params?: Pick<PublicEventsRequest, 'categoryIds' | 'venueId' | 'staffMemberId' | 'eventSurface' | 'eventPresets' | 'scheduleScope'>): Promise<EventFiltersResponse>;
|
|
48
57
|
registerForEvent(data: Omit<EventRegisterRequest, 'siteId'>): Promise<EventRegisterResponse>;
|
|
49
58
|
createEventCheckout(data: WithoutSiteId<EventCheckoutRequest>): Promise<EventCheckoutResponse>;
|
|
@@ -74,6 +74,10 @@ export declare const BOOKINGS: {
|
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
export declare const EVENTS: {
|
|
77
|
+
calendarWindow: {
|
|
78
|
+
path: string;
|
|
79
|
+
method: "GET";
|
|
80
|
+
};
|
|
77
81
|
list: {
|
|
78
82
|
path: string;
|
|
79
83
|
method: "GET";
|
|
@@ -107,10 +111,6 @@ export declare const EVENTS: {
|
|
|
107
111
|
};
|
|
108
112
|
};
|
|
109
113
|
export declare const WHOLE_SERIES: {
|
|
110
|
-
list: {
|
|
111
|
-
path: string;
|
|
112
|
-
method: "GET";
|
|
113
|
-
};
|
|
114
114
|
waitlistClaimResolve: {
|
|
115
115
|
path: string;
|
|
116
116
|
method: "POST";
|
|
@@ -405,6 +405,10 @@ export declare const ENDPOINTS: {
|
|
|
405
405
|
};
|
|
406
406
|
};
|
|
407
407
|
readonly events: {
|
|
408
|
+
calendarWindow: {
|
|
409
|
+
path: string;
|
|
410
|
+
method: "GET";
|
|
411
|
+
};
|
|
408
412
|
list: {
|
|
409
413
|
path: string;
|
|
410
414
|
method: "GET";
|
|
@@ -438,10 +442,6 @@ export declare const ENDPOINTS: {
|
|
|
438
442
|
};
|
|
439
443
|
};
|
|
440
444
|
readonly wholeSeries: {
|
|
441
|
-
list: {
|
|
442
|
-
path: string;
|
|
443
|
-
method: "GET";
|
|
444
|
-
};
|
|
445
445
|
waitlistClaimResolve: {
|
|
446
446
|
path: string;
|
|
447
447
|
method: "POST";
|
|
@@ -43,7 +43,7 @@ export { createBlockApi, BlockApiError } from './client';
|
|
|
43
43
|
export type { BlockApiClient } from './client';
|
|
44
44
|
export { BlockApiProvider, useBlockApi, useBlockApiOptional } from './context';
|
|
45
45
|
export type { BlockApiProviderProps } from './context';
|
|
46
|
-
export type { BlockApiConfig, BlockApiAuth, ApiKeyAuth, BearerAuth, NoAuth, ApiResponse, ApiSuccessResponse, ApiErrorResponse, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, FormField, BookingSubmitRequest, BookingSubmitResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, TimeSlot, AvailableDatesRequest, AvailableDatesResponse, BookingService, BookingServicesRequest, BookingServicesResponse, BookingServiceResponse, BookingResource, BookingResourcesRequest, BookingResourcesResponse, PublicEvent, PublicEventsRequest, PublicEventsResponse, EventVenue,
|
|
46
|
+
export type { BlockApiConfig, BlockApiAuth, ApiKeyAuth, BearerAuth, NoAuth, ApiResponse, ApiSuccessResponse, ApiErrorResponse, ApiFieldError, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, FormField, BookingSubmitRequest, BookingSubmitResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, TimeSlot, AvailableDatesRequest, AvailableDatesResponse, BookingService, BookingServicesRequest, BookingServicesResponse, BookingServiceResponse, BookingResource, BookingResourcesRequest, BookingResourcesResponse, PublicEvent, PublicEventsRequest, PublicEventsResponse, EventVenue, AccessRestriction, EventFilterCategory, EventFilterStaffMember, EventFilterVenue, EventFiltersResponse, EventRegisterRequest, EventRegisterResponse, EventCheckoutRequest, EventCheckoutResponse, EventCheckoutReturnRequest, EventCheckoutReturnResponse, PaymentMethod, EligiblePass, EligibleMembership, AvailablePass, AvailableMembership, DiscountContext, DiscountsAvailableRequest, DiscountsAvailableResponse, DiscountApplyLine, DiscountApplyRequest, DiscountApplyRejectedReason, DiscountApplyResponse, ShopCheckoutRequest, ShopCheckoutResponse, ShopDuplicateMembershipWarning, CustomerProfile, CustomerOrder, CustomerOrderFilter, CustomerOrderItem, CustomerOrderInstalmentPlan, CustomerOrderInstalmentPlanStatus, CustomerOrderInstalmentRow, CustomerOrderInstalmentStatus, CustomerOrderPaymentState, CustomerOrderRefund, EnabledModules, PortalMeResponse, PortalMeUpdateRequest, CustomerPass, CustomerPassCreditHistoryEntry, CustomerMembership, EventTicketBreakdownLine, CustomerEventRegistration, PortalEventTicket, CustomerAppointment, AppointmentBookingQuestionsTaskDetail, BookingQuestionsTaskDetail, BookingQuestionsAnswerValue, BookingQuestionsField, BookingQuestionsFieldOption, BookingQuestionsSection, BeforeYouComeTaskSummary, CustomerEventSeriesRegistration, EventGuest, PortalCredit, PortalCreditSummary, PortalCreditTransaction, PortalCreditResponse, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalDigitalProduct, PortalDigitalProductFile, PortalDigitalProductsResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalAppointmentBookingQuestionsResponse, PortalCreateAppointmentBookingQuestionsUploadUrlRequest, PortalCreateAppointmentBookingQuestionsUploadUrlResponse, PortalFinalizeAppointmentBookingQuestionsUploadRequest, PortalFinalizeAppointmentBookingQuestionsUploadResponse, PortalUpdateAppointmentBookingQuestionsRequest, PortalUpdateAppointmentBookingQuestionsResponse, PortalEventBookingQuestionsResponse, PortalCreateEventBookingQuestionsUploadUrlRequest, PortalCreateEventBookingQuestionsUploadUrlResponse, PortalFinalizeEventBookingQuestionsUploadRequest, PortalFinalizeEventBookingQuestionsUploadResponse, PortalUpdateEventBookingQuestionsRequest, PortalUpdateEventBookingQuestionsResponse, PortalWholeSeriesBookingQuestionsResponse, PortalCreateWholeSeriesBookingQuestionsUploadUrlRequest, PortalCreateWholeSeriesBookingQuestionsUploadUrlResponse, PortalFinalizeWholeSeriesBookingQuestionsUploadRequest, PortalFinalizeWholeSeriesBookingQuestionsUploadResponse, PortalUpdateWholeSeriesBookingQuestionsRequest, PortalUpdateWholeSeriesBookingQuestionsResponse, UpdateEventGuestsRequest, EventGuestsResponse, PortalCancelWholeSeriesRegistrationRequest, PortalCancelWholeSeriesRegistrationResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalCancelEventRegistrationRequest, PortalRefundInfo, PortalCancelEventRegistrationResult, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCancelMembershipAtPeriodEndResult, MagicLinkRequest, } from './types';
|
|
47
47
|
export { discountAvailabilityAllowsManualEntry, discountAvailabilityHasDiscounts, getAutoAppliedDiscountPreview, } from './types';
|
|
48
48
|
export type { BookingQuestionsDocumentAnswerValue } from '../../../portal/types';
|
|
49
49
|
export { deriveCreditProductLabels, getCreditProductCreditUnit, getCreditProductTypeLabel, getPortalCreditProductCreditNoun, } from './creditProducts';
|
|
@@ -47,12 +47,25 @@ export interface ApiSuccessResponse<T> {
|
|
|
47
47
|
success: true;
|
|
48
48
|
data: T;
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Field-level validation detail carried on an error envelope.
|
|
52
|
+
*
|
|
53
|
+
* The same shape as `FieldError` in `@riverbankcms/api` and
|
|
54
|
+
* `RiverbankApiError['fieldErrors']` in the SDK. Blocks does not depend on
|
|
55
|
+
* `@riverbankcms/api`, so the shape is restated here rather than imported.
|
|
56
|
+
*/
|
|
57
|
+
export interface ApiFieldError {
|
|
58
|
+
field: string;
|
|
59
|
+
code: string;
|
|
60
|
+
message: string;
|
|
61
|
+
}
|
|
50
62
|
/** API error response */
|
|
51
63
|
export interface ApiErrorResponse {
|
|
52
64
|
success: false;
|
|
53
65
|
error: {
|
|
54
66
|
message: string;
|
|
55
67
|
code?: string;
|
|
68
|
+
fieldErrors?: ApiFieldError[];
|
|
56
69
|
};
|
|
57
70
|
}
|
|
58
71
|
/** Standard API response */
|
|
@@ -5,28 +5,13 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { DirectCheckoutCollectionOptionKind } from './core';
|
|
7
7
|
import type { EventRegistrationOptionsRequest, EventRegistrationOptionsResponse } from '../../../blocks/event-registration';
|
|
8
|
-
import type { PublicEvent as _PublicEvent, EventVenue as _EventVenue,
|
|
8
|
+
import type { PublicEvent as _PublicEvent, EventVenue as _EventVenue, AccessRestriction as _AccessRestriction, PublicEventPricingOption as _PublicEventPricingOption, PublicEventPricingOptionAvailability as _PublicEventPricingOptionAvailability } from '../../../blocks/events/shared/types';
|
|
9
9
|
import type { EventScheduleScope, EventSurfaceScope } from '../../../blocks/events/shared/filtering';
|
|
10
10
|
export type PublicEvent = _PublicEvent;
|
|
11
11
|
export type EventVenue = _EventVenue;
|
|
12
|
-
export type PricingType = _PricingType;
|
|
13
12
|
export type AccessRestriction = _AccessRestriction;
|
|
14
|
-
export type
|
|
15
|
-
export type
|
|
16
|
-
export interface EligibilityEventTicketType {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
description: string | null;
|
|
20
|
-
priceAmount: number;
|
|
21
|
-
isActive: boolean;
|
|
22
|
-
sortOrder: number;
|
|
23
|
-
capacityMode: 'limited' | 'unlimited';
|
|
24
|
-
capacityLimit: number | null;
|
|
25
|
-
attendanceScope?: 'in_person' | 'online' | 'both';
|
|
26
|
-
saleStartsAt: string | null;
|
|
27
|
-
saleEndsAt: string | null;
|
|
28
|
-
availability: PublicEventTicketTypeAvailability;
|
|
29
|
-
}
|
|
13
|
+
export type PublicEventPricingOption = _PublicEventPricingOption;
|
|
14
|
+
export type PublicEventPricingOptionAvailability = _PublicEventPricingOptionAvailability;
|
|
30
15
|
export interface PublicEventsRequest {
|
|
31
16
|
siteId: string;
|
|
32
17
|
from?: string;
|
|
@@ -95,11 +80,11 @@ export interface EventRegisterGuest {
|
|
|
95
80
|
phone?: string | null;
|
|
96
81
|
}
|
|
97
82
|
export interface EventTicketSelectionRequest {
|
|
98
|
-
|
|
83
|
+
pricingOptionId?: string | null;
|
|
99
84
|
quantity: number;
|
|
100
85
|
}
|
|
101
86
|
export interface EventTicketLineSummary {
|
|
102
|
-
|
|
87
|
+
pricingOptionId: string | null;
|
|
103
88
|
label: string;
|
|
104
89
|
description: string | null;
|
|
105
90
|
quantity: number;
|
|
@@ -109,6 +94,13 @@ export interface EventTicketLineSummary {
|
|
|
109
94
|
}
|
|
110
95
|
export interface EventRegisterRequest {
|
|
111
96
|
siteId: string;
|
|
97
|
+
/**
|
|
98
|
+
* Client-generated command identity for this submission (UUID).
|
|
99
|
+
*
|
|
100
|
+
* Generated once per submission and kept across transport retries so the
|
|
101
|
+
* server can replay a lost response instead of registering twice.
|
|
102
|
+
*/
|
|
103
|
+
registrationCommandId: string;
|
|
112
104
|
subject: {
|
|
113
105
|
kind: 'occurrence';
|
|
114
106
|
occurrenceId: string;
|
|
@@ -209,7 +209,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
209
209
|
definition: import("../..").SystemBlockDefinition<unknown, Readonly<{
|
|
210
210
|
kind: "progressive";
|
|
211
211
|
buildRender: (source: Readonly<{
|
|
212
|
-
events?: import("
|
|
212
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
213
213
|
siteId: string;
|
|
214
214
|
apiBaseUrl?: string;
|
|
215
215
|
stage?: "preview" | "published";
|
|
@@ -253,7 +253,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
253
253
|
showMap: boolean;
|
|
254
254
|
showCapacity: boolean;
|
|
255
255
|
orientation: import("../..").CardOrientation;
|
|
256
|
-
events: readonly import("
|
|
256
|
+
events: readonly import("../../../../../api/src/index").PublicEvent[];
|
|
257
257
|
}>;
|
|
258
258
|
hydration: Readonly<{
|
|
259
259
|
siteId: string;
|
|
@@ -276,7 +276,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
276
276
|
contracts: Readonly<{
|
|
277
277
|
source: Readonly<{
|
|
278
278
|
encode: (value: Readonly<{
|
|
279
|
-
events?: import("
|
|
279
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
280
280
|
siteId: string;
|
|
281
281
|
apiBaseUrl?: string;
|
|
282
282
|
stage?: "preview" | "published";
|
|
@@ -306,7 +306,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
306
306
|
filterVenueId?: string | null;
|
|
307
307
|
}>) => unknown;
|
|
308
308
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
309
|
-
events?: import("
|
|
309
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
310
310
|
siteId: string;
|
|
311
311
|
apiBaseUrl?: string;
|
|
312
312
|
stage?: "preview" | "published";
|
|
@@ -353,7 +353,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
353
353
|
showMap: boolean;
|
|
354
354
|
showCapacity: boolean;
|
|
355
355
|
orientation: import("../..").CardOrientation;
|
|
356
|
-
events: readonly import("
|
|
356
|
+
events: readonly import("../../../../../api/src/index").PublicEvent[];
|
|
357
357
|
}>;
|
|
358
358
|
hydration: Readonly<{
|
|
359
359
|
siteId: string;
|
|
@@ -389,7 +389,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
389
389
|
showMap: boolean;
|
|
390
390
|
showCapacity: boolean;
|
|
391
391
|
orientation: import("../..").CardOrientation;
|
|
392
|
-
events: readonly import("
|
|
392
|
+
events: readonly import("../../../../../api/src/index").PublicEvent[];
|
|
393
393
|
}>;
|
|
394
394
|
hydration: Readonly<{
|
|
395
395
|
siteId: string;
|
|
@@ -418,7 +418,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
418
418
|
runtime: Readonly<{
|
|
419
419
|
kind: "progressive";
|
|
420
420
|
buildRender: (source: Readonly<{
|
|
421
|
-
events?: import("
|
|
421
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
422
422
|
siteId: string;
|
|
423
423
|
apiBaseUrl?: string;
|
|
424
424
|
stage?: "preview" | "published";
|
|
@@ -462,7 +462,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
462
462
|
showMap: boolean;
|
|
463
463
|
showCapacity: boolean;
|
|
464
464
|
orientation: import("../..").CardOrientation;
|
|
465
|
-
events: readonly import("
|
|
465
|
+
events: readonly import("../../../../../api/src/index").PublicEvent[];
|
|
466
466
|
}>;
|
|
467
467
|
hydration: Readonly<{
|
|
468
468
|
siteId: string;
|
|
@@ -485,7 +485,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
485
485
|
contracts: Readonly<{
|
|
486
486
|
source: Readonly<{
|
|
487
487
|
encode: (value: Readonly<{
|
|
488
|
-
events?: import("
|
|
488
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
489
489
|
siteId: string;
|
|
490
490
|
apiBaseUrl?: string;
|
|
491
491
|
stage?: "preview" | "published";
|
|
@@ -515,7 +515,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
515
515
|
filterVenueId?: string | null;
|
|
516
516
|
}>) => unknown;
|
|
517
517
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
518
|
-
events?: import("
|
|
518
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
519
519
|
siteId: string;
|
|
520
520
|
apiBaseUrl?: string;
|
|
521
521
|
stage?: "preview" | "published";
|
|
@@ -562,7 +562,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
562
562
|
showMap: boolean;
|
|
563
563
|
showCapacity: boolean;
|
|
564
564
|
orientation: import("../..").CardOrientation;
|
|
565
|
-
events: readonly import("
|
|
565
|
+
events: readonly import("../../../../../api/src/index").PublicEvent[];
|
|
566
566
|
}>;
|
|
567
567
|
hydration: Readonly<{
|
|
568
568
|
siteId: string;
|
|
@@ -598,7 +598,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
598
598
|
showMap: boolean;
|
|
599
599
|
showCapacity: boolean;
|
|
600
600
|
orientation: import("../..").CardOrientation;
|
|
601
|
-
events: readonly import("
|
|
601
|
+
events: readonly import("../../../../../api/src/index").PublicEvent[];
|
|
602
602
|
}>;
|
|
603
603
|
hydration: Readonly<{
|
|
604
604
|
siteId: string;
|
|
@@ -632,6 +632,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
632
632
|
buildRender: (source: import("../nodes/events/EventCalendar.interactive").EventCalendarSourceProps) => Readonly<{
|
|
633
633
|
display: import("../nodes/events/EventCalendar.interactive").EventCalendarDisplay;
|
|
634
634
|
hydration: Readonly<{
|
|
635
|
+
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
635
636
|
siteId: string;
|
|
636
637
|
stage?: "preview" | "published";
|
|
637
638
|
prefetchedEvents: boolean;
|
|
@@ -657,6 +658,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
657
658
|
encode: (value: Readonly<{
|
|
658
659
|
display: import("../nodes/events/EventCalendar.interactive").EventCalendarDisplay;
|
|
659
660
|
hydration: Readonly<{
|
|
661
|
+
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
660
662
|
siteId: string;
|
|
661
663
|
stage?: "preview" | "published";
|
|
662
664
|
prefetchedEvents: boolean;
|
|
@@ -676,6 +678,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
676
678
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
677
679
|
display: import("../nodes/events/EventCalendar.interactive").EventCalendarDisplay;
|
|
678
680
|
hydration: Readonly<{
|
|
681
|
+
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
679
682
|
siteId: string;
|
|
680
683
|
stage?: "preview" | "published";
|
|
681
684
|
prefetchedEvents: boolean;
|
|
@@ -703,6 +706,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
703
706
|
buildRender: (source: import("../nodes/events/EventCalendar.interactive").EventCalendarSourceProps) => Readonly<{
|
|
704
707
|
display: import("../nodes/events/EventCalendar.interactive").EventCalendarDisplay;
|
|
705
708
|
hydration: Readonly<{
|
|
709
|
+
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
706
710
|
siteId: string;
|
|
707
711
|
stage?: "preview" | "published";
|
|
708
712
|
prefetchedEvents: boolean;
|
|
@@ -728,6 +732,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
728
732
|
encode: (value: Readonly<{
|
|
729
733
|
display: import("../nodes/events/EventCalendar.interactive").EventCalendarDisplay;
|
|
730
734
|
hydration: Readonly<{
|
|
735
|
+
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
731
736
|
siteId: string;
|
|
732
737
|
stage?: "preview" | "published";
|
|
733
738
|
prefetchedEvents: boolean;
|
|
@@ -747,6 +752,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
747
752
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
748
753
|
display: import("../nodes/events/EventCalendar.interactive").EventCalendarDisplay;
|
|
749
754
|
hydration: Readonly<{
|
|
755
|
+
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
750
756
|
siteId: string;
|
|
751
757
|
stage?: "preview" | "published";
|
|
752
758
|
prefetchedEvents: boolean;
|
|
@@ -1693,10 +1699,8 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1693
1699
|
previewToken?: string | null;
|
|
1694
1700
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1695
1701
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1696
|
-
events?: import("
|
|
1697
|
-
|
|
1698
|
-
wholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1699
|
-
subjectWholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1702
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1703
|
+
wholeSeriesRunEvents?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1700
1704
|
className?: string | null;
|
|
1701
1705
|
buttonText?: string | null;
|
|
1702
1706
|
maxTickets?: string | null;
|
|
@@ -1727,10 +1731,8 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1727
1731
|
previewToken?: string | null;
|
|
1728
1732
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1729
1733
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1730
|
-
events?: import("
|
|
1731
|
-
|
|
1732
|
-
wholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1733
|
-
subjectWholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1734
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1735
|
+
wholeSeriesRunEvents?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1734
1736
|
className?: string | null;
|
|
1735
1737
|
buttonText?: string | null;
|
|
1736
1738
|
maxTickets?: string | null;
|
|
@@ -1756,10 +1758,8 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1756
1758
|
previewToken?: string | null;
|
|
1757
1759
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1758
1760
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1759
|
-
events?: import("
|
|
1760
|
-
|
|
1761
|
-
wholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1762
|
-
subjectWholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1761
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1762
|
+
wholeSeriesRunEvents?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1763
1763
|
className?: string | null;
|
|
1764
1764
|
buttonText?: string | null;
|
|
1765
1765
|
maxTickets?: string | null;
|
|
@@ -1803,10 +1803,8 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1803
1803
|
previewToken?: string | null;
|
|
1804
1804
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1805
1805
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1806
|
-
events?: import("
|
|
1807
|
-
|
|
1808
|
-
wholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1809
|
-
subjectWholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1806
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1807
|
+
wholeSeriesRunEvents?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1810
1808
|
className?: string | null;
|
|
1811
1809
|
buttonText?: string | null;
|
|
1812
1810
|
maxTickets?: string | null;
|
|
@@ -1837,10 +1835,8 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1837
1835
|
previewToken?: string | null;
|
|
1838
1836
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1839
1837
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1840
|
-
events?: import("
|
|
1841
|
-
|
|
1842
|
-
wholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1843
|
-
subjectWholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1838
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1839
|
+
wholeSeriesRunEvents?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1844
1840
|
className?: string | null;
|
|
1845
1841
|
buttonText?: string | null;
|
|
1846
1842
|
maxTickets?: string | null;
|
|
@@ -1866,10 +1862,8 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1866
1862
|
previewToken?: string | null;
|
|
1867
1863
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1868
1864
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1869
|
-
events?: import("
|
|
1870
|
-
|
|
1871
|
-
wholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1872
|
-
subjectWholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
1865
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1866
|
+
wholeSeriesRunEvents?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
1873
1867
|
className?: string | null;
|
|
1874
1868
|
buttonText?: string | null;
|
|
1875
1869
|
maxTickets?: string | null;
|
|
@@ -2234,7 +2228,7 @@ export declare const clientComponentRegistryEntries: {
|
|
|
2234
2228
|
component: React.ComponentType<Readonly<{
|
|
2235
2229
|
occurrenceContext?: import("../../../contracts").EventDetailsOccurrenceContext | null;
|
|
2236
2230
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
2237
|
-
events?: readonly import("
|
|
2231
|
+
events?: readonly import("../../../../../api/src/index").PublicEvent[] | null;
|
|
2238
2232
|
showVenue?: boolean;
|
|
2239
2233
|
showMap?: boolean;
|
|
2240
2234
|
showOtherDates?: boolean;
|
|
@@ -2279,6 +2273,7 @@ export declare const clientComponentRegistryEntries: {
|
|
|
2279
2273
|
} & Readonly<{
|
|
2280
2274
|
display: import("../nodes/events/EventCombined.interactive").EventCombinedDisplay;
|
|
2281
2275
|
hydration: Readonly<{
|
|
2276
|
+
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
2282
2277
|
siteId: string;
|
|
2283
2278
|
stage?: "preview" | "published";
|
|
2284
2279
|
prefetchedEvents: boolean;
|
|
@@ -109,7 +109,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
109
109
|
definition: RuntimeBackedBlockDefinition<Readonly<{
|
|
110
110
|
kind: "progressive";
|
|
111
111
|
buildRender: (source: Readonly<{
|
|
112
|
-
events?: import("
|
|
112
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
113
113
|
siteId: string;
|
|
114
114
|
apiBaseUrl?: string;
|
|
115
115
|
stage?: "preview" | "published";
|
|
@@ -153,7 +153,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
153
153
|
showMap: boolean;
|
|
154
154
|
showCapacity: boolean;
|
|
155
155
|
orientation: import("../..").CardOrientation;
|
|
156
|
-
events: readonly import("
|
|
156
|
+
events: readonly import("../../../../../api/src/index").PublicEvent[];
|
|
157
157
|
}>;
|
|
158
158
|
hydration: Readonly<{
|
|
159
159
|
siteId: string;
|
|
@@ -176,7 +176,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
176
176
|
contracts: Readonly<{
|
|
177
177
|
source: Readonly<{
|
|
178
178
|
encode: (value: Readonly<{
|
|
179
|
-
events?: import("
|
|
179
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
180
180
|
siteId: string;
|
|
181
181
|
apiBaseUrl?: string;
|
|
182
182
|
stage?: "preview" | "published";
|
|
@@ -206,7 +206,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
206
206
|
filterVenueId?: string | null;
|
|
207
207
|
}>) => unknown;
|
|
208
208
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
209
|
-
events?: import("
|
|
209
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
210
210
|
siteId: string;
|
|
211
211
|
apiBaseUrl?: string;
|
|
212
212
|
stage?: "preview" | "published";
|
|
@@ -253,7 +253,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
253
253
|
showMap: boolean;
|
|
254
254
|
showCapacity: boolean;
|
|
255
255
|
orientation: import("../..").CardOrientation;
|
|
256
|
-
events: readonly import("
|
|
256
|
+
events: readonly import("../../../../../api/src/index").PublicEvent[];
|
|
257
257
|
}>;
|
|
258
258
|
hydration: Readonly<{
|
|
259
259
|
siteId: string;
|
|
@@ -289,7 +289,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
289
289
|
showMap: boolean;
|
|
290
290
|
showCapacity: boolean;
|
|
291
291
|
orientation: import("../..").CardOrientation;
|
|
292
|
-
events: readonly import("
|
|
292
|
+
events: readonly import("../../../../../api/src/index").PublicEvent[];
|
|
293
293
|
}>;
|
|
294
294
|
hydration: Readonly<{
|
|
295
295
|
siteId: string;
|
|
@@ -321,6 +321,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
321
321
|
buildRender: (source: import("../nodes/events/EventCalendar.interactive").EventCalendarSourceProps) => Readonly<{
|
|
322
322
|
display: import("../nodes/events/EventCalendar.interactive").EventCalendarDisplay;
|
|
323
323
|
hydration: Readonly<{
|
|
324
|
+
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
324
325
|
siteId: string;
|
|
325
326
|
stage?: "preview" | "published";
|
|
326
327
|
prefetchedEvents: boolean;
|
|
@@ -346,6 +347,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
346
347
|
encode: (value: Readonly<{
|
|
347
348
|
display: import("../nodes/events/EventCalendar.interactive").EventCalendarDisplay;
|
|
348
349
|
hydration: Readonly<{
|
|
350
|
+
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
349
351
|
siteId: string;
|
|
350
352
|
stage?: "preview" | "published";
|
|
351
353
|
prefetchedEvents: boolean;
|
|
@@ -365,6 +367,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
365
367
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
366
368
|
display: import("../nodes/events/EventCalendar.interactive").EventCalendarDisplay;
|
|
367
369
|
hydration: Readonly<{
|
|
370
|
+
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
368
371
|
siteId: string;
|
|
369
372
|
stage?: "preview" | "published";
|
|
370
373
|
prefetchedEvents: boolean;
|
|
@@ -850,10 +853,8 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
850
853
|
previewToken?: string | null;
|
|
851
854
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
852
855
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
853
|
-
events?: import("
|
|
854
|
-
|
|
855
|
-
wholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
856
|
-
subjectWholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
856
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
857
|
+
wholeSeriesRunEvents?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
857
858
|
className?: string | null;
|
|
858
859
|
buttonText?: string | null;
|
|
859
860
|
maxTickets?: string | null;
|
|
@@ -884,10 +885,8 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
884
885
|
previewToken?: string | null;
|
|
885
886
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
886
887
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
887
|
-
events?: import("
|
|
888
|
-
|
|
889
|
-
wholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
890
|
-
subjectWholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
888
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
889
|
+
wholeSeriesRunEvents?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
891
890
|
className?: string | null;
|
|
892
891
|
buttonText?: string | null;
|
|
893
892
|
maxTickets?: string | null;
|
|
@@ -913,10 +912,8 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
913
912
|
previewToken?: string | null;
|
|
914
913
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
915
914
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
916
|
-
events?: import("
|
|
917
|
-
|
|
918
|
-
wholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
919
|
-
subjectWholeSeriesOffering?: import("../../blocks/events/whole-series").PublicWholeSeriesOffering | null;
|
|
915
|
+
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
916
|
+
wholeSeriesRunEvents?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
920
917
|
className?: string | null;
|
|
921
918
|
buttonText?: string | null;
|
|
922
919
|
maxTickets?: string | null;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { PublicEvent } from '../../blocks/events/shared/types';
|
|
2
2
|
import { type BookingTimeZone } from '../../../../../core/src/index';
|
|
3
|
+
import { type CalendarWindowPage, type CalendarReadProfile } from '../../blocks/events/shared/calendarWindow';
|
|
3
4
|
import type { CalendarDate } from '../../../../../calendar/src/index';
|
|
4
|
-
import { type CalendarViewport, type CalendarViewportKind, type WeekStart } from '../nodes/events/
|
|
5
|
+
import { type CalendarViewport, type CalendarViewportKind, type WeekStart } from '../nodes/events/domain';
|
|
5
6
|
import { type EventRuntimeFilters } from '../nodes/events/shared/listOptions';
|
|
6
7
|
import { type CalendarViewLoadState } from './useCalendarEvents.state';
|
|
7
8
|
export type { CalendarViewLoadState } from './useCalendarEvents.state';
|
|
@@ -9,10 +10,11 @@ type CalendarViewportFor<Kind extends CalendarViewportKind> = Extract<CalendarVi
|
|
|
9
10
|
kind: Kind;
|
|
10
11
|
}>>;
|
|
11
12
|
type UseCalendarEventsOptions = {
|
|
13
|
+
readProfile?: CalendarReadProfile;
|
|
12
14
|
/** @deprecated Site ID is now provided by BlockApiProvider context */
|
|
13
15
|
siteId?: string;
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
+
/** Server seed with explicit source-scan coverage. */
|
|
17
|
+
calendarWindow?: CalendarWindowPage;
|
|
16
18
|
/** Calendar viewport kind. Controls navigation units and visible days. */
|
|
17
19
|
view?: CalendarViewportKind;
|
|
18
20
|
/** First day of week for week view and month-grid padding. */
|
|
@@ -74,18 +76,19 @@ type DefaultCalendarViewportOptions = Omit<UseCalendarViewportOptions, 'view'> &
|
|
|
74
76
|
export declare function useCalendarViewport(options: DefaultCalendarViewportOptions): CalendarViewportState<'month'>;
|
|
75
77
|
export declare function useCalendarViewport<Kind extends CalendarViewportKind>(options: ExplicitCalendarViewportOptions<Kind>): CalendarViewportState<Kind>;
|
|
76
78
|
type UseCalendarEventCacheOptions = Readonly<{
|
|
79
|
+
readProfile?: CalendarReadProfile;
|
|
77
80
|
viewDate: CalendarDate;
|
|
78
|
-
|
|
81
|
+
calendarWindow?: CalendarWindowPage;
|
|
79
82
|
preloadMonths?: number;
|
|
80
83
|
filters?: EventRuntimeFilters;
|
|
81
84
|
stage?: 'preview' | 'published';
|
|
82
85
|
timeZone: BookingTimeZone;
|
|
83
86
|
}>;
|
|
84
87
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
88
|
+
* The reducer owns month data and request ownership. The hook only performs I/O.
|
|
89
|
+
* Requests for other months remain useful until the query context changes.
|
|
87
90
|
*/
|
|
88
|
-
export declare function useCalendarEventCache({ viewDate,
|
|
91
|
+
export declare function useCalendarEventCache({ readProfile, viewDate, calendarWindow, preloadMonths, filters, stage, timeZone, }: UseCalendarEventCacheOptions): Readonly<{
|
|
89
92
|
events: PublicEvent[];
|
|
90
93
|
loadState: CalendarViewLoadState;
|
|
91
94
|
retryCurrentView: () => void;
|
|
@@ -100,7 +103,7 @@ export declare function useCalendarEventCache({ viewDate, initialEvents, preload
|
|
|
100
103
|
* ```tsx
|
|
101
104
|
* const { events, viewDate, loading, goToPrevious, goToNext } = useCalendarEvents({
|
|
102
105
|
* siteId: 'site-123',
|
|
103
|
-
*
|
|
106
|
+
* calendarWindow: serverWindow,
|
|
104
107
|
* });
|
|
105
108
|
* ```
|
|
106
109
|
*/
|