@riverbankcms/sdk 0.130.2 → 0.134.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 +13 -3
- package/dist/{PreviewEditorSidebar-BY-1QdE2.mjs → PreviewEditorSidebar-DfRhJPFQ.mjs} +351 -95
- package/dist/{PreviewEditorUI-BS34jI9_.mjs → PreviewEditorUI-Dppxcr_g.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BD0kOjtI.mjs → PreviewQueryProvider-D51gQaG3.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-B1pWnhu-.mjs → SdkPreviewModeRuntime-8CyGCXir.mjs} +91 -21
- package/dist/{SiteChromeCustomizeContext-BhUG_72i.mjs → SiteChromeCustomizeContext-DVMTMvqA.mjs} +6896 -4335
- package/dist/_dts/ai/src/contracts/proposals.d.ts +1105 -533
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +363 -276
- package/dist/_dts/api/src/accountApi.d.ts +5 -5
- package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/bookingConfig.d.ts +13 -9
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +8 -19
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +31 -2
- package/dist/_dts/api/src/bookingOperations.d.ts +2 -14
- package/dist/_dts/api/src/bookingVerticals.d.ts +1 -140
- package/dist/_dts/api/src/bookings.d.ts +2 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +45 -12
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -2
- package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +2 -2
- package/dist/_dts/api/src/courses.d.ts +1 -19
- package/dist/_dts/api/src/endpoints.d.ts +469 -349
- package/dist/_dts/api/src/event-destination-policy.d.ts +1 -1
- package/dist/_dts/api/src/eventManagementContracts.d.ts +91 -1
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +32 -0
- package/dist/_dts/api/src/giftingDashboard.d.ts +117 -0
- package/dist/_dts/api/src/giftingEndpointDefinitions.d.ts +124 -0
- package/dist/_dts/api/src/index.d.ts +4 -4
- 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 +1 -0
- package/dist/_dts/api/src/navigation/contracts.d.ts +9 -6
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +3 -4
- package/dist/_dts/api/src/navigation/linkResolver.d.ts +6 -2
- package/dist/_dts/api/src/navigation/types.d.ts +23 -6
- package/dist/_dts/api/src/navigation.d.ts +1 -1
- package/dist/_dts/api/src/publicBookingService.d.ts +15 -0
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +11 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +28 -13
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +2 -0
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +3 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +3 -3
- package/dist/_dts/api/src/sdkBookingVerticalContracts.d.ts +29 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +9 -32
- package/dist/_dts/api/src/sdkEndpointDefinitions.d.ts +23 -0
- package/dist/_dts/api/src/sdkSettingsContracts.d.ts +25 -0
- package/dist/_dts/api/src/sdkThemeCatalogContracts.d.ts +20 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +64 -54
- package/dist/_dts/api/src/siteBanner.d.ts +4 -2
- package/dist/_dts/api/src/siteOnboarding.d.ts +3 -3
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +4 -10
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +0 -3
- package/dist/_dts/api/src/types.d.ts +2 -3
- package/dist/_dts/api/src/webhooks.d.ts +12 -12
- package/dist/_dts/blocks/src/PageRenderer.d.ts +2 -13
- package/dist/_dts/blocks/src/client.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +9 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +54 -116
- package/dist/_dts/blocks/src/index.d.ts +4 -3
- package/dist/_dts/blocks/src/primitives/content/components/RichText.d.ts +2 -2
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +1 -0
- package/dist/_dts/blocks/src/subroutes/fold.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/index.d.ts +0 -3
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +2 -50
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +1 -929
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +1 -97
- package/dist/_dts/blocks/src/system/blocks/event-details.d.ts +39 -6
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -3
- package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +42 -20
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +5 -9
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/index.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/pricing.d.ts +50 -0
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/schemas.d.ts +135 -0
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +84 -0
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +148 -148
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/shared/bookingConsent.d.ts +36 -0
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +7 -8
- package/dist/_dts/blocks/src/system/manifest/hydrateLinks.d.ts +9 -2
- package/dist/_dts/blocks/src/system/manifest/resolveBlockData.d.ts +8 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +79 -79
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +2 -11
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/blockComposition.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/multi-step/DynamicFormFields.d.ts +3 -19
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +45 -72
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +22 -37
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useSelectedAppointmentConsentForm.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.consent.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.field-values.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.fields.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +38 -144
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +5 -19
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-page-surface-scope.d.ts +2 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.client.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +19 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +25 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +75 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/view.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SiteCreditPreviewPanel.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +21 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/siteCreditPreview.d.ts +51 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +6 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/validation.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/BookingModeStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/CheckIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/ErrorStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/MembershipHero.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/PaymentFailedStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/StepIndicator.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/VerifyingTimeoutStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationActiveSteps.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration/CourseRegistrationErrorBoundary.d.ts → event-registration/whole-series/WholeSeriesRegistrationErrorBoundary.d.ts} +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationTerminalContent.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationWizard.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/components.d.ts +46 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/index.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/presentation.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/pricing.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/types.d.ts +18 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration/useCourseEligibility.d.ts → event-registration/whole-series/useWholeSeriesEligibility.d.ts} +6 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesPaymentVerification.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationActions.d.ts +35 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration/useCourseRegistrationPortal.d.ts → event-registration/whole-series/useWholeSeriesRegistrationPortal.d.ts} +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationSelection.d.ts +35 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationWizard.d.ts +185 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration/useCourseWaitlistSelection.d.ts → event-registration/whole-series/useWholeSeriesWaitlistSelection.d.ts} +5 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/utils.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/whole-series-registration.headless.contract.d.ts +7 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/whole-series-registration.headless.planning.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesPageSurfaceScope.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration/courseRegistrationViewState.d.ts → event-registration/whole-series/wholeSeriesRegistrationViewState.d.ts} +7 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/wizardSteps.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +24 -54
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +12 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.server.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventSpotlight.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventDetailModal.d.ts +4 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModalCloseButton.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModals.d.ts +4 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +51 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingConsentAgreement.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.d.ts +12 -12
- package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +1 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/boxStyleClassNames.d.ts +30 -11
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +15 -4
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -4
- package/dist/_dts/blocks/src/system/types/link.d.ts +7 -1
- package/dist/_dts/commerce/src/purchase/bookingInstalmentSchedule.d.ts +13 -0
- package/dist/_dts/commerce/src/purchase/cancellationPolicy.d.ts +7 -0
- package/dist/_dts/commerce/src/purchase/canonicalRefundPlanner.d.ts +48 -0
- package/dist/_dts/commerce/src/purchase/checkoutCollectionPlan.d.ts +39 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +40 -0
- package/dist/_dts/commerce/src/purchase/checkoutDiscountContextPlanning.d.ts +80 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/checkoutOrderItemProjection.d.ts +22 -0
- package/dist/_dts/commerce/src/purchase/checkoutPaymentFlow.d.ts +50 -0
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +30 -0
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +10 -0
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +53 -0
- package/dist/_dts/commerce/src/purchase/checkoutQuantity.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +76 -0
- package/dist/_dts/commerce/src/purchase/checkoutSettlement.d.ts +46 -0
- package/dist/_dts/commerce/src/purchase/checkoutStripeFinalizationPlanning.d.ts +12 -0
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +125 -0
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +55 -0
- package/dist/_dts/commerce/src/purchase/confirmationEmailPayment.d.ts +91 -0
- package/dist/_dts/commerce/src/purchase/discountApplication.d.ts +74 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +55 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +86 -0
- package/dist/_dts/commerce/src/purchase/order-number.d.ts +33 -0
- package/dist/_dts/commerce/src/purchase/orderCancellationPlan.d.ts +19 -0
- package/dist/_dts/commerce/src/purchase/orderCompletionEmailPlan.d.ts +71 -0
- package/dist/_dts/commerce/src/purchase/orderConfirmationPlanning.d.ts +120 -0
- package/dist/_dts/commerce/src/purchase/orderFulfillmentPlan.d.ts +81 -0
- package/dist/_dts/commerce/src/purchase/orderFulfillmentResult.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/orderHistoryLedgerFilters.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/orderHistorySource.d.ts +11 -0
- package/dist/_dts/commerce/src/purchase/orderInstalmentAdminSettlement.d.ts +43 -0
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +29 -0
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +44 -0
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +24 -0
- package/dist/_dts/commerce/src/purchase/orderInstalmentPlan.d.ts +40 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +151 -0
- package/dist/_dts/commerce/src/purchase/orderItemSupport.d.ts +14 -0
- package/dist/_dts/commerce/src/purchase/orderListFilters.d.ts +3 -0
- package/dist/_dts/commerce/src/purchase/orderPaymentLinkPlanning.d.ts +60 -0
- package/dist/_dts/commerce/src/purchase/orderPaymentReceipt.d.ts +184 -0
- package/dist/_dts/commerce/src/purchase/orderPaymentState.d.ts +135 -0
- package/dist/_dts/commerce/src/purchase/orderPlanningTypes.d.ts +102 -0
- package/dist/_dts/commerce/src/purchase/orderRefundPlanning.d.ts +50 -0
- package/dist/_dts/commerce/src/purchase/orderRefundPolicy.d.ts +36 -0
- package/dist/_dts/commerce/src/purchase/orderTotals.d.ts +23 -0
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +39 -0
- package/dist/_dts/commerce/src/purchase/pendingCheckoutSessionClaim.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/persistedCheckoutLines.d.ts +27 -0
- package/dist/_dts/commerce/src/purchase/protectedDepositRefundPolicy.d.ts +86 -0
- package/dist/_dts/commerce/src/purchase/refundPolicy.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +40 -0
- package/dist/_dts/commerce/src/purchase/result.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/settlement.d.ts +97 -0
- package/dist/_dts/commerce/src/purchase/shopRefundPlanning.d.ts +43 -0
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +31 -0
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +10 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +168 -0
- package/dist/_dts/commerce/src/shop/shipmentEligibility.d.ts +14 -0
- package/dist/_dts/commerce/src/utils/assertNever.d.ts +1 -0
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +4 -0
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +4 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +4 -4
- package/dist/_dts/core/src/booking-consent.d.ts +8 -0
- package/dist/_dts/core/src/booking-vertical-catalog.d.ts +741 -0
- package/dist/_dts/core/src/booking-vertical-config.d.ts +66 -0
- package/dist/_dts/core/src/booking-vertical-definitions.d.ts +68 -0
- package/dist/_dts/{api/src/bookingVerticalPreset.d.ts → core/src/booking-vertical-preset.d.ts} +1 -1
- package/dist/_dts/core/src/booking-verticals.d.ts +98 -0
- package/dist/_dts/core/src/event-page-selection.d.ts +22 -0
- package/dist/_dts/core/src/event-pricing.d.ts +5 -0
- package/dist/_dts/core/src/event-series-behaviour.d.ts +16 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +81 -3
- package/dist/_dts/db/src/schemas/forms.d.ts +25 -25
- package/dist/_dts/db/src/types/jsonb.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +2 -1
- package/dist/_dts/editor/src/primitives/rich-text/config.d.ts +2 -1
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/linkPopoverUtils.d.ts +3 -2
- package/dist/_dts/editor/src/primitives/rich-text/useRichTextEditor.d.ts +3 -4
- package/dist/_dts/media-core/src/fileUploadCompletion.d.ts +3 -0
- package/dist/_dts/media-core/src/fileUploadDurableFinalization.d.ts +2 -0
- package/dist/_dts/media-core/src/identifiers.d.ts +10 -0
- package/dist/_dts/media-core/src/mediaWriteNormalizer.d.ts +2 -6
- package/dist/_dts/media-core/src/types.d.ts +2 -1
- package/dist/_dts/media-core/src/usageScanner.d.ts +1 -1
- package/dist/_dts/media-editor/src/index.d.ts +2 -2
- package/dist/_dts/media-editor/src/mediaSelection.d.ts +1 -22
- package/dist/_dts/media-editor/src/useMediaSelection.d.ts +0 -9
- package/dist/_dts/preview-next/src/client/preview/ButtonHoverRoleControls.d.ts +10 -0
- package/dist/_dts/preview-next/src/client/preview/ButtonStylePicker.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfiguratorWarningNotice.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +1 -1
- package/dist/_dts/sdk/src/bookings/types.d.ts +7 -89
- package/dist/_dts/sdk/src/client/eventSubrouteReadOperations.d.ts +11 -0
- package/dist/_dts/sdk/src/client/types.d.ts +12 -5
- package/dist/_dts/sdk/src/components.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +30 -30
- package/dist/_dts/sdk/src/contracts/content.d.ts +10 -36
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +2 -13
- package/dist/_dts/sdk/src/contracts/rendering.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -16
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +9 -9
- package/dist/_dts/sdk/src/next/pageMetadataProjection.d.ts +7 -0
- package/dist/_dts/sdk/src/next/resolveEventPageSubroute.d.ts +12 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +11 -38
- package/dist/_dts/sdk/src/public-api/eventSubrouteContracts.d.ts +12 -0
- package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +44 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/entrySubroutes.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/resolveOccurrence.d.ts +4 -3
- package/dist/_dts/sdk/src/routing/resolvePageContent.d.ts +7 -3
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/contextualHover.d.ts +41 -0
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +3 -0
- package/dist/_dts/theme-core/src/buttons/resolveButtonHoverTreatment.d.ts +14 -0
- package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +21 -4
- package/dist/_dts/theme-core/src/buttons/styles/recipes/flatInk.d.ts +92 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +10 -150
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +57 -102
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +50 -2
- package/dist/_dts/theme-core/src/buttons/types.d.ts +41 -12
- package/dist/_dts/theme-core/src/cards/types.d.ts +7 -29
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +90 -75
- package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -4
- 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 +98 -110
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +27 -0
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +27 -0
- package/dist/_dts/theme-core/src/site-styles/buttonSelectionCompiler.d.ts +18 -0
- package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +2 -11
- package/dist/_dts/theme-core/src/site-styles/selectionFallbackWarning.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +13 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +1 -1
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/callout.d.ts +1 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/_dts/ui/src/navigation-tabs.d.ts +2 -0
- package/dist/client/{StepIndicator-CLjQhkDb.mjs → BookingConsentAgreement-BxgpGEFD.mjs} +26 -4
- package/dist/client/{DiscountCodeDisclosure-BPZ-yfGI.mjs → DiscountCodeDisclosure-CfuPOHD0.mjs} +12 -12
- package/dist/client/{EventCombined.client-Cjt3kKYR.mjs → EventCombined.client-DB8Qfzi-.mjs} +37 -49
- package/dist/client/{EventListing.client-DY9dn6Fh.mjs → EventListing.client-DD4X8hp4.mjs} +2 -2
- package/dist/client/{LeafletStaticMap--2c61XYn.mjs → LeafletStaticMap-QhgIBQbv.mjs} +1 -1
- package/dist/client/{CourseRegistrationWizard-DGW9F0SQ.mjs → WholeSeriesRegistrationWizard-DwtC7bCs.mjs} +1460 -1247
- package/dist/client/{accordion-_boYwHHi.mjs → accordion-DFXpLvwg.mjs} +1 -1
- package/dist/client/{bookingForm--AqEfyBX.mjs → bookingForm-sI05d3lk.mjs} +73 -47
- package/dist/client/bookings.mjs +1719 -706
- package/dist/client/{carousel-CVI2dqZr.mjs → carousel-wjyWTZCh.mjs} +1 -1
- package/dist/client/{cart-DR6IiPz9.mjs → cart-DCwdpA4i.mjs} +3 -3
- package/dist/client/{checkout-CsrGAfQt.mjs → checkout-DTDW3l0R.mjs} +3 -3
- package/dist/client/checkoutUrls-DQYC_Br-.mjs +187 -0
- package/dist/client/client.mjs +6830 -3672
- package/dist/client/{context-B83PiNzm.mjs → context-TSK1CGx8.mjs} +1 -14
- package/dist/client/{courseRegistration-aNJVaLa3.mjs → courseRegistration-A-Tg7qw_.mjs} +11 -5
- package/dist/client/{eventCalendar-OZ7h59VN.mjs → eventCalendar-B0Zg-i_w.mjs} +41 -44
- package/dist/client/{eventCombined-BbJ6bFKz.mjs → eventCombined-B8Y2wizd.mjs} +3 -3
- package/dist/client/{eventDetails-BLyUBiCT.mjs → eventDetails-DPDOwURJ.mjs} +276 -94
- package/dist/client/{eventListing-DuP1yhBS.mjs → eventListing-CjBcmSLn.mjs} +3 -3
- package/dist/client/{eventRegistration-BXyECPa-.mjs → eventRegistration-CK30HsAq.mjs} +730 -190
- package/dist/client/{form-BA4t3kKU.mjs → form-CUXfsABE.mjs} +2 -2
- package/dist/client/{headerSection-CpNaJxhW.mjs → headerSection-N-mN3rjr.mjs} +2 -2
- package/dist/client/hooks.mjs +1418 -484
- package/dist/client/{locationMap-3HGMCL7_.mjs → locationMap-oiIDQMBt.mjs} +2 -2
- package/dist/client/{newsletterForm-C2s6Mw67.mjs → newsletterForm-CkQ2tTrM.mjs} +2 -2
- package/dist/client/pricing-Caa0QWzh.mjs +195 -0
- package/dist/client/{productDetail-C9joWhdE.mjs → productDetail-CnidyrsN.mjs} +3 -3
- package/dist/client/{productList-CjzdU3pB.mjs → productList-CttYcS_S.mjs} +3 -3
- package/dist/client/{propsDecoder-CBPGXEYX.mjs → propsDecoder-CeUMxI9a.mjs} +677 -350
- package/dist/client/rendering/client.mjs +6075 -4150
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +7589 -4388
- package/dist/client/{scrollToBlock-DZ73aEX6.mjs → scrollToBlock-lPr1oqxB.mjs} +1 -1
- package/dist/client/{shop-CQRai7hj.mjs → shop-DXQtMo2O.mjs} +6 -6
- package/dist/client/{shop-commerce-hP9UboOx.mjs → shop-commerce-quDL411J.mjs} +7 -164
- package/dist/client/{shop-commerce-store-DiD5a32e.mjs → shop-commerce-store-Dnu-8Iub.mjs} +1 -1
- package/dist/client/{shopShared-DP8DXTkF.mjs → shopShared-BWPUURvG.mjs} +3 -3
- package/dist/client/{useEventFilters-pF_OJNQP.mjs → useEventFilters-DRhWp2_5.mjs} +196 -7
- package/dist/client/{usePolling-Cls91SD2.mjs → usePolling-UN4WKnaM.mjs} +3 -3
- package/dist/preview-next/before-render.mjs +247 -60
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +247 -60
- package/dist/preview-next/middleware.mjs +247 -60
- package/dist/{previewAuthStore-CX1C_KJ4.mjs → previewAuthStore-BFKd4LrN.mjs} +247 -60
- package/dist/{sdk-runtime-5CcPAI14.mjs → sdk-runtime-Ca5RD78X.mjs} +2 -2
- package/dist/{separator-BXlYN_gr.mjs → separator-CMhj6BTi.mjs} +1 -1
- package/dist/server/components.mjs +3578 -1614
- package/dist/server/config-validation.mjs +1418 -485
- package/dist/server/config.mjs +1418 -485
- package/dist/server/data.mjs +1418 -484
- package/dist/server/index.mjs +289 -81
- package/dist/server/manifest.mjs +0 -1
- package/dist/server/next.mjs +3761 -1794
- package/dist/server/page-converter.mjs +911 -261
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3580 -1613
- package/dist/server/rendering.mjs +3578 -1614
- package/dist/server/routing.mjs +1687 -689
- package/dist/server/server.mjs +1458 -563
- package/dist/server/theme-bridge.mjs +1996 -935
- package/dist/server/theme.mjs +346 -133
- package/dist/styles/index.css +1602 -796
- package/package.json +2 -2
- package/dist/_dts/api/src/bookingVerticalCatalog.d.ts +0 -746
- package/dist/_dts/api/src/eventSeriesPresentationPreset.d.ts +0 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/CourseRegistrationWizard.d.ts +0 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/StepIndicator.d.ts +0 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/components.d.ts +0 -45
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/pricing.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCoursePaymentVerification.d.ts +0 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationActions.d.ts +0 -35
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationSelection.d.ts +0 -31
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +0 -102
- package/dist/client/checkoutUrls-Ct8Mxna3.mjs +0 -26
- package/dist/client/eventProductEligibility-AVxyCB1u.mjs +0 -50
- package/dist/client/pricing-BiqIMgZk.mjs +0 -174
- /package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/PortalAuthSidebar.d.ts +0 -0
- /package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/SuccessStep.d.ts +0 -0
- /package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/WaitlistStep.d.ts +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BookingFormData } from "./booking-form.state";
|
|
2
|
+
export type BookingFieldValue = string | number | boolean | readonly string[] | null;
|
|
3
|
+
export declare function collectInitialBookingFieldValues(initialData: Partial<BookingFormData>): Record<string, BookingFieldValue>;
|
|
4
|
+
export declare function omitBookingConsentEntries<T>(record: Readonly<Record<string, T>>): Record<string, T>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { BookingRequirementConsentField } from '../../blocks/shared/bookingConsent';
|
|
2
|
+
export type BookingFormFieldOption = Readonly<{
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}>;
|
|
6
|
+
export type StandardBookingFormField = Readonly<{
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
type: 'text' | 'email' | 'textarea' | 'select' | 'radio' | 'checkbox' | 'tel' | 'url' | 'number' | 'date' | 'time';
|
|
10
|
+
required?: boolean;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
helpText?: string;
|
|
13
|
+
options?: readonly BookingFormFieldOption[];
|
|
14
|
+
multiple?: boolean;
|
|
15
|
+
minLength?: number;
|
|
16
|
+
maxLength?: number;
|
|
17
|
+
pattern?: string;
|
|
18
|
+
min?: number;
|
|
19
|
+
max?: number;
|
|
20
|
+
}>;
|
|
21
|
+
export type BookingFormField = StandardBookingFormField | BookingRequirementConsentField;
|
|
@@ -3,6 +3,8 @@ import type { BlockApiConfig, EligibleAppointmentPackage } from "../api/types";
|
|
|
3
3
|
import type { TimeSlot } from "../api/types";
|
|
4
4
|
import type { BookingFormConfig, BookingFormData, BookingFormField, BookingPaymentStepResolution, BookingFormServicesSource, BookingFormService, BookingSelectedCollectionOptionKind, BookingSubmissionData } from "./booking-form.state";
|
|
5
5
|
import type { BookingValidationErrors } from "./booking-form.validationErrors";
|
|
6
|
+
import { type BookingFieldValue } from "./booking-form.field-values";
|
|
7
|
+
export type { BookingFieldValue } from "./booking-form.field-values";
|
|
6
8
|
export type LoadState<T> = Readonly<{
|
|
7
9
|
tag: "idle";
|
|
8
10
|
}> | Readonly<{
|
|
@@ -28,7 +30,6 @@ export type BookingFlowStep = Readonly<{
|
|
|
28
30
|
}>;
|
|
29
31
|
export type BookingFieldId = Brand<string, "BookingFieldId">;
|
|
30
32
|
export declare const unsafeAsBookingFieldId: (id: string) => BookingFieldId;
|
|
31
|
-
export type BookingFieldValue = string | number | boolean | readonly string[] | null;
|
|
32
33
|
export type BookingSlotView = Readonly<{
|
|
33
34
|
key: string;
|
|
34
35
|
startAt: string;
|
|
@@ -58,24 +58,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
58
58
|
name: string;
|
|
59
59
|
schemaJson?: Readonly<{
|
|
60
60
|
version?: string;
|
|
61
|
-
fields?: readonly
|
|
62
|
-
id: string;
|
|
63
|
-
label: string;
|
|
64
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
65
|
-
required?: boolean;
|
|
66
|
-
placeholder?: string;
|
|
67
|
-
helpText?: string;
|
|
68
|
-
options?: readonly Readonly<{
|
|
69
|
-
value: string;
|
|
70
|
-
label: string;
|
|
71
|
-
}>[];
|
|
72
|
-
multiple?: boolean;
|
|
73
|
-
minLength?: number;
|
|
74
|
-
maxLength?: number;
|
|
75
|
-
pattern?: string;
|
|
76
|
-
min?: number;
|
|
77
|
-
max?: number;
|
|
78
|
-
}>[];
|
|
61
|
+
fields?: readonly import("./booking-form.fields").BookingFormField[];
|
|
79
62
|
}>;
|
|
80
63
|
settingsJson?: Readonly<{
|
|
81
64
|
type: "booking";
|
|
@@ -126,24 +109,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
126
109
|
}>;
|
|
127
110
|
schema?: Readonly<{
|
|
128
111
|
version?: string;
|
|
129
|
-
fields: readonly
|
|
130
|
-
id: string;
|
|
131
|
-
label: string;
|
|
132
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
133
|
-
required?: boolean;
|
|
134
|
-
placeholder?: string;
|
|
135
|
-
helpText?: string;
|
|
136
|
-
options?: readonly Readonly<{
|
|
137
|
-
value: string;
|
|
138
|
-
label: string;
|
|
139
|
-
}>[];
|
|
140
|
-
multiple?: boolean;
|
|
141
|
-
minLength?: number;
|
|
142
|
-
maxLength?: number;
|
|
143
|
-
pattern?: string;
|
|
144
|
-
min?: number;
|
|
145
|
-
max?: number;
|
|
146
|
-
}>[];
|
|
112
|
+
fields: readonly import("./booking-form.fields").BookingFormField[];
|
|
147
113
|
}>;
|
|
148
114
|
}> | null;
|
|
149
115
|
services: readonly Readonly<{
|
|
@@ -171,6 +137,12 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
171
137
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
172
138
|
reason: "online_payment_configured_before_launch";
|
|
173
139
|
}>;
|
|
140
|
+
consent?: Readonly<{
|
|
141
|
+
requirementId: string;
|
|
142
|
+
title: string;
|
|
143
|
+
agreement: import("../../../../../core/src/index").RichTextDoc;
|
|
144
|
+
checkboxLabel: string;
|
|
145
|
+
}>;
|
|
174
146
|
}>[];
|
|
175
147
|
spamProtectionEnabled?: boolean;
|
|
176
148
|
}>;
|
|
@@ -201,24 +173,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
201
173
|
name: string;
|
|
202
174
|
schemaJson?: Readonly<{
|
|
203
175
|
version?: string;
|
|
204
|
-
fields?: readonly
|
|
205
|
-
id: string;
|
|
206
|
-
label: string;
|
|
207
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
208
|
-
required?: boolean;
|
|
209
|
-
placeholder?: string;
|
|
210
|
-
helpText?: string;
|
|
211
|
-
options?: readonly Readonly<{
|
|
212
|
-
value: string;
|
|
213
|
-
label: string;
|
|
214
|
-
}>[];
|
|
215
|
-
multiple?: boolean;
|
|
216
|
-
minLength?: number;
|
|
217
|
-
maxLength?: number;
|
|
218
|
-
pattern?: string;
|
|
219
|
-
min?: number;
|
|
220
|
-
max?: number;
|
|
221
|
-
}>[];
|
|
176
|
+
fields?: readonly import("./booking-form.fields").BookingFormField[];
|
|
222
177
|
}>;
|
|
223
178
|
settingsJson?: Readonly<{
|
|
224
179
|
type: "booking";
|
|
@@ -259,24 +214,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
259
214
|
name: string;
|
|
260
215
|
schemaJson?: Readonly<{
|
|
261
216
|
version?: string;
|
|
262
|
-
fields?: readonly
|
|
263
|
-
id: string;
|
|
264
|
-
label: string;
|
|
265
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
266
|
-
required?: boolean;
|
|
267
|
-
placeholder?: string;
|
|
268
|
-
helpText?: string;
|
|
269
|
-
options?: readonly Readonly<{
|
|
270
|
-
value: string;
|
|
271
|
-
label: string;
|
|
272
|
-
}>[];
|
|
273
|
-
multiple?: boolean;
|
|
274
|
-
minLength?: number;
|
|
275
|
-
maxLength?: number;
|
|
276
|
-
pattern?: string;
|
|
277
|
-
min?: number;
|
|
278
|
-
max?: number;
|
|
279
|
-
}>[];
|
|
217
|
+
fields?: readonly import("./booking-form.fields").BookingFormField[];
|
|
280
218
|
}>;
|
|
281
219
|
settingsJson?: Readonly<{
|
|
282
220
|
type: "booking";
|
|
@@ -330,24 +268,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
330
268
|
}>;
|
|
331
269
|
schema?: Readonly<{
|
|
332
270
|
version?: string;
|
|
333
|
-
fields: readonly
|
|
334
|
-
id: string;
|
|
335
|
-
label: string;
|
|
336
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
337
|
-
required?: boolean;
|
|
338
|
-
placeholder?: string;
|
|
339
|
-
helpText?: string;
|
|
340
|
-
options?: readonly Readonly<{
|
|
341
|
-
value: string;
|
|
342
|
-
label: string;
|
|
343
|
-
}>[];
|
|
344
|
-
multiple?: boolean;
|
|
345
|
-
minLength?: number;
|
|
346
|
-
maxLength?: number;
|
|
347
|
-
pattern?: string;
|
|
348
|
-
min?: number;
|
|
349
|
-
max?: number;
|
|
350
|
-
}>[];
|
|
271
|
+
fields: readonly import("./booking-form.fields").BookingFormField[];
|
|
351
272
|
}>;
|
|
352
273
|
}> | null;
|
|
353
274
|
services: readonly Readonly<{
|
|
@@ -375,6 +296,12 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
375
296
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
376
297
|
reason: "online_payment_configured_before_launch";
|
|
377
298
|
}>;
|
|
299
|
+
consent?: Readonly<{
|
|
300
|
+
requirementId: string;
|
|
301
|
+
title: string;
|
|
302
|
+
agreement: import("../../../../../core/src/index").RichTextDoc;
|
|
303
|
+
checkboxLabel: string;
|
|
304
|
+
}>;
|
|
378
305
|
}>[];
|
|
379
306
|
spamProtectionEnabled?: boolean;
|
|
380
307
|
}>;
|
|
@@ -414,24 +341,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
414
341
|
}>;
|
|
415
342
|
schema?: Readonly<{
|
|
416
343
|
version?: string;
|
|
417
|
-
fields: readonly
|
|
418
|
-
id: string;
|
|
419
|
-
label: string;
|
|
420
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
421
|
-
required?: boolean;
|
|
422
|
-
placeholder?: string;
|
|
423
|
-
helpText?: string;
|
|
424
|
-
options?: readonly Readonly<{
|
|
425
|
-
value: string;
|
|
426
|
-
label: string;
|
|
427
|
-
}>[];
|
|
428
|
-
multiple?: boolean;
|
|
429
|
-
minLength?: number;
|
|
430
|
-
maxLength?: number;
|
|
431
|
-
pattern?: string;
|
|
432
|
-
min?: number;
|
|
433
|
-
max?: number;
|
|
434
|
-
}>[];
|
|
344
|
+
fields: readonly import("./booking-form.fields").BookingFormField[];
|
|
435
345
|
}>;
|
|
436
346
|
}> | null;
|
|
437
347
|
services: readonly Readonly<{
|
|
@@ -459,6 +369,12 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
459
369
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
460
370
|
reason: "online_payment_configured_before_launch";
|
|
461
371
|
}>;
|
|
372
|
+
consent?: Readonly<{
|
|
373
|
+
requirementId: string;
|
|
374
|
+
title: string;
|
|
375
|
+
agreement: import("../../../../../core/src/index").RichTextDoc;
|
|
376
|
+
checkboxLabel: string;
|
|
377
|
+
}>;
|
|
462
378
|
}>[];
|
|
463
379
|
spamProtectionEnabled?: boolean;
|
|
464
380
|
}>;
|
|
@@ -510,24 +426,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
510
426
|
}>;
|
|
511
427
|
schema?: Readonly<{
|
|
512
428
|
version?: string;
|
|
513
|
-
fields: readonly
|
|
514
|
-
id: string;
|
|
515
|
-
label: string;
|
|
516
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
517
|
-
required?: boolean;
|
|
518
|
-
placeholder?: string;
|
|
519
|
-
helpText?: string;
|
|
520
|
-
options?: readonly Readonly<{
|
|
521
|
-
value: string;
|
|
522
|
-
label: string;
|
|
523
|
-
}>[];
|
|
524
|
-
multiple?: boolean;
|
|
525
|
-
minLength?: number;
|
|
526
|
-
maxLength?: number;
|
|
527
|
-
pattern?: string;
|
|
528
|
-
min?: number;
|
|
529
|
-
max?: number;
|
|
530
|
-
}>[];
|
|
429
|
+
fields: readonly import("./booking-form.fields").BookingFormField[];
|
|
531
430
|
}>;
|
|
532
431
|
}> | null;
|
|
533
432
|
services: readonly Readonly<{
|
|
@@ -555,6 +454,12 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
555
454
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
556
455
|
reason: "online_payment_configured_before_launch";
|
|
557
456
|
}>;
|
|
457
|
+
consent?: Readonly<{
|
|
458
|
+
requirementId: string;
|
|
459
|
+
title: string;
|
|
460
|
+
agreement: import("../../../../../core/src/index").RichTextDoc;
|
|
461
|
+
checkboxLabel: string;
|
|
462
|
+
}>;
|
|
558
463
|
}>[];
|
|
559
464
|
spamProtectionEnabled?: boolean;
|
|
560
465
|
}>;
|
|
@@ -603,24 +508,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
603
508
|
}>;
|
|
604
509
|
schema?: Readonly<{
|
|
605
510
|
version?: string;
|
|
606
|
-
fields: readonly
|
|
607
|
-
id: string;
|
|
608
|
-
label: string;
|
|
609
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
610
|
-
required?: boolean;
|
|
611
|
-
placeholder?: string;
|
|
612
|
-
helpText?: string;
|
|
613
|
-
options?: readonly Readonly<{
|
|
614
|
-
value: string;
|
|
615
|
-
label: string;
|
|
616
|
-
}>[];
|
|
617
|
-
multiple?: boolean;
|
|
618
|
-
minLength?: number;
|
|
619
|
-
maxLength?: number;
|
|
620
|
-
pattern?: string;
|
|
621
|
-
min?: number;
|
|
622
|
-
max?: number;
|
|
623
|
-
}>[];
|
|
511
|
+
fields: readonly import("./booking-form.fields").BookingFormField[];
|
|
624
512
|
}>;
|
|
625
513
|
}> | null;
|
|
626
514
|
services: readonly Readonly<{
|
|
@@ -648,6 +536,12 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
648
536
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
649
537
|
reason: "online_payment_configured_before_launch";
|
|
650
538
|
}>;
|
|
539
|
+
consent?: Readonly<{
|
|
540
|
+
requirementId: string;
|
|
541
|
+
title: string;
|
|
542
|
+
agreement: import("../../../../../core/src/index").RichTextDoc;
|
|
543
|
+
checkboxLabel: string;
|
|
544
|
+
}>;
|
|
651
545
|
}>[];
|
|
652
546
|
spamProtectionEnabled?: boolean;
|
|
653
547
|
}>;
|
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
import type { BlockBookingPaymentTerms } from "../../blocks/shared/bookingPaymentTerms";
|
|
2
|
+
import { type BlockBookingConsent } from "../../blocks/shared/bookingConsent";
|
|
2
3
|
import type { AppointmentBookingStatusResponse } from "../api/types";
|
|
3
4
|
import type { BookingFormDataReservedKey } from "./booking-form.reserved-fields";
|
|
5
|
+
import type { BookingFormField } from "./booking-form.fields";
|
|
6
|
+
export type { BookingFormField, BookingFormFieldOption, StandardBookingFormField, } from "./booking-form.fields";
|
|
4
7
|
export { APPOINTMENT_BOOKING_BLOCK_ID, BOOKING_FORM_DATA_RESERVED_KEYS, BOOKING_FORM_DATA_RESERVED_KEY_VALUES, collectBookingReservedFieldCollisions, findBookingFormDataReservedFieldCollisions, formatBookingReservedFieldCollisionMessages, formatBookingFormDataReservedFieldMessage, isBookingFormDataReservedKey, type BookingFormDataReservedKey, type BookingReservedFieldCollision, } from "./booking-form.reserved-fields";
|
|
5
|
-
export type BookingFormFieldOption = Readonly<{
|
|
6
|
-
value: string;
|
|
7
|
-
label: string;
|
|
8
|
-
}>;
|
|
9
|
-
export type BookingFormField = Readonly<{
|
|
10
|
-
id: string;
|
|
11
|
-
label: string;
|
|
12
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
13
|
-
required?: boolean;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
helpText?: string;
|
|
16
|
-
options?: readonly BookingFormFieldOption[];
|
|
17
|
-
multiple?: boolean;
|
|
18
|
-
minLength?: number;
|
|
19
|
-
maxLength?: number;
|
|
20
|
-
pattern?: string;
|
|
21
|
-
min?: number;
|
|
22
|
-
max?: number;
|
|
23
|
-
}>;
|
|
24
8
|
export type BookingFormSettings = Readonly<{
|
|
25
9
|
type: "booking";
|
|
26
10
|
serviceId?: string;
|
|
@@ -80,7 +64,9 @@ export type BookingFormService = Readonly<{
|
|
|
80
64
|
priceCurrency?: string | null;
|
|
81
65
|
paymentTerms?: BlockBookingPaymentTerms;
|
|
82
66
|
paymentTermsAvailability?: BlockBookingPaymentTermsAvailability;
|
|
67
|
+
consent?: BlockBookingConsent;
|
|
83
68
|
}>;
|
|
69
|
+
export { projectSelectedAppointmentConsentIntoForm, resolveSelectedAppointmentConsent, type SelectedAppointmentConsent, } from "./booking-form.consent";
|
|
84
70
|
export type BookingFormServicesSource = readonly BookingFormService[] | Readonly<{
|
|
85
71
|
services?: readonly BookingFormService[];
|
|
86
72
|
}> | Readonly<Record<string, BookingFormService>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { PublicEvent } from "../../blocks/events/shared/types";
|
|
3
|
-
import type {
|
|
3
|
+
import type { StandardBookingFormField, BookingFormService, BookingFormServicesSource, BookingFormSettings, BookingFormSourceRecord } from "./booking-form.state";
|
|
4
4
|
import type { EventRegistrationSourceProps } from "./event-registration.interactive";
|
|
5
5
|
export declare const APPOINTMENT_BOOKING_RUNTIME_FORM_ID = "booking-form";
|
|
6
6
|
export type BookingFormRebookContext = Readonly<{
|
|
@@ -26,7 +26,7 @@ export type BookingFormSourceProps = Readonly<{
|
|
|
26
26
|
spamProtectionEnabled?: boolean;
|
|
27
27
|
className?: string | null;
|
|
28
28
|
}>;
|
|
29
|
-
export declare const bookingFieldSchema: z.ZodType<
|
|
29
|
+
export declare const bookingFieldSchema: z.ZodType<StandardBookingFormField>;
|
|
30
30
|
export declare const bookingSettingsSchema: z.ZodType<BookingFormSettings>;
|
|
31
31
|
export declare const bookingSourceFormSchema: z.ZodType<BookingFormSourceRecord>;
|
|
32
32
|
export type AppointmentBookingRuntimeTarget = Readonly<{
|
|
@@ -96,6 +96,7 @@ export type AppointmentBookingServiceSourceInput = Readonly<{
|
|
|
96
96
|
priceCurrency?: string | null;
|
|
97
97
|
paymentTerms?: BookingFormService["paymentTerms"];
|
|
98
98
|
paymentTermsAvailability?: BookingFormService["paymentTermsAvailability"];
|
|
99
|
+
consent?: BookingFormService["consent"];
|
|
99
100
|
}>;
|
|
100
101
|
export type AppointmentBookingSourceProps = BookingFormSourceProps & Readonly<{
|
|
101
102
|
siteId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { EventPageSurfaceSubject, EventPageSurfaceSubjectParseError } from '../../../../../core/src/index';
|
|
2
2
|
import type { PublicCourse } from '../../blocks/courses/shared/types';
|
|
3
3
|
export type CoursePageSurfaceScope = Readonly<{
|
|
4
4
|
kind: 'absent';
|
|
@@ -10,8 +10,5 @@ export type CoursePageSurfaceScope = Readonly<{
|
|
|
10
10
|
kind: 'unsupported';
|
|
11
11
|
reason: EventPageSurfaceSubjectParseError['kind'];
|
|
12
12
|
}>;
|
|
13
|
-
/**
|
|
14
|
-
* Resolves native course-page ownership without falling back to entry or slug
|
|
15
|
-
* coincidence when a page-surface subject is present but invalid.
|
|
16
|
-
*/
|
|
13
|
+
/** Temporary Course-block adapter over canonical Event run scoping. */
|
|
17
14
|
export declare function resolveCoursePageSurfaceScope(courses: readonly PublicCourse[], subjectValue: unknown): CoursePageSurfaceScope;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { WholeSeriesRegistrationClientProps } from './event-registration/whole-series';
|
|
3
3
|
import type { CourseRegistrationInteractiveIslandProps } from './course-registration.interactive';
|
|
4
|
-
export type CourseRegistrationClientProps =
|
|
4
|
+
export type CourseRegistrationClientProps = Omit<WholeSeriesRegistrationClientProps, 'runs'> & Readonly<{
|
|
5
|
+
courses?: WholeSeriesRegistrationClientProps['runs'];
|
|
6
|
+
}>;
|
|
5
7
|
export type CourseRegistrationIslandClientProps = CourseRegistrationInteractiveIslandProps;
|
|
6
8
|
export declare function CourseRegistrationClient(props: CourseRegistrationClientProps): React.JSX.Element;
|
|
7
9
|
export declare function CourseRegistrationIslandClient(props: CourseRegistrationIslandClientProps): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockButtonRole } from '../../constants/buttonRoles';
|
|
2
2
|
import type { PublicCourse } from '../../blocks/courses/shared/types';
|
|
3
|
-
import type {
|
|
3
|
+
import type { WholeSeriesRegistrationClientProps } from './event-registration/whole-series/types';
|
|
4
4
|
import { type InteractiveIslandProps } from '../../../contracts/islands';
|
|
5
5
|
import { type EventRegistrationPageSurfaceSubject } from './event-registration/eventScope';
|
|
6
6
|
export type CourseRegistrationSourceProps = Readonly<{
|
|
@@ -27,7 +27,9 @@ export type CourseRegistrationDisplay = Readonly<{
|
|
|
27
27
|
className: string | null;
|
|
28
28
|
summaryButtonText: string;
|
|
29
29
|
}>;
|
|
30
|
-
export type CourseRegistrationHydration = Readonly<Omit<
|
|
30
|
+
export type CourseRegistrationHydration = Readonly<Omit<WholeSeriesRegistrationClientProps, 'runs' | 'siteId' | 'stage' | 'buttonText' | 'className'> & {
|
|
31
|
+
courses?: PublicCourse[] | null;
|
|
32
|
+
}>;
|
|
31
33
|
type CourseRegistrationIslandMeta = Readonly<{
|
|
32
34
|
siteId?: string;
|
|
33
35
|
apiBaseUrl?: string;
|
|
@@ -62,7 +64,9 @@ export declare const courseRegistrationBlockRuntime: Readonly<{
|
|
|
62
64
|
className: string | null;
|
|
63
65
|
summaryButtonText: string;
|
|
64
66
|
}>;
|
|
65
|
-
hydration: Readonly<Omit<
|
|
67
|
+
hydration: Readonly<Omit<WholeSeriesRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "runs"> & {
|
|
68
|
+
courses?: PublicCourse[] | null;
|
|
69
|
+
}>;
|
|
66
70
|
}>;
|
|
67
71
|
contracts: Readonly<{
|
|
68
72
|
source: Readonly<{
|
|
@@ -111,7 +115,9 @@ export declare const courseRegistrationBlockRuntime: Readonly<{
|
|
|
111
115
|
className: string | null;
|
|
112
116
|
summaryButtonText: string;
|
|
113
117
|
}>;
|
|
114
|
-
hydration: Readonly<Omit<
|
|
118
|
+
hydration: Readonly<Omit<WholeSeriesRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "runs"> & {
|
|
119
|
+
courses?: PublicCourse[] | null;
|
|
120
|
+
}>;
|
|
115
121
|
}>) => unknown;
|
|
116
122
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
117
123
|
display: Readonly<{
|
|
@@ -120,7 +126,9 @@ export declare const courseRegistrationBlockRuntime: Readonly<{
|
|
|
120
126
|
className: string | null;
|
|
121
127
|
summaryButtonText: string;
|
|
122
128
|
}>;
|
|
123
|
-
hydration: Readonly<Omit<
|
|
129
|
+
hydration: Readonly<Omit<WholeSeriesRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "runs"> & {
|
|
130
|
+
courses?: PublicCourse[] | null;
|
|
131
|
+
}>;
|
|
124
132
|
}>>;
|
|
125
133
|
}>;
|
|
126
134
|
}>;
|
|
@@ -142,7 +150,9 @@ export declare const courseRegistrationInteractiveIslandPropsCodec: Readonly<{
|
|
|
142
150
|
className: string | null;
|
|
143
151
|
summaryButtonText: string;
|
|
144
152
|
}>;
|
|
145
|
-
hydration: Readonly<Omit<
|
|
153
|
+
hydration: Readonly<Omit<WholeSeriesRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "runs"> & {
|
|
154
|
+
courses?: PublicCourse[] | null;
|
|
155
|
+
}>;
|
|
146
156
|
}>>;
|
|
147
157
|
}>) => unknown;
|
|
148
158
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<Readonly<{
|
|
@@ -161,7 +171,9 @@ export declare const courseRegistrationInteractiveIslandPropsCodec: Readonly<{
|
|
|
161
171
|
className: string | null;
|
|
162
172
|
summaryButtonText: string;
|
|
163
173
|
}>;
|
|
164
|
-
hydration: Readonly<Omit<
|
|
174
|
+
hydration: Readonly<Omit<WholeSeriesRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "runs"> & {
|
|
175
|
+
courses?: PublicCourse[] | null;
|
|
176
|
+
}>;
|
|
165
177
|
}>>;
|
|
166
178
|
}>>;
|
|
167
179
|
}>;
|
|
@@ -8,12 +8,33 @@ export type OccurrenceContextLike = {
|
|
|
8
8
|
endsAt: string;
|
|
9
9
|
timeZone: string;
|
|
10
10
|
} | null;
|
|
11
|
-
|
|
11
|
+
type OrdinaryPublicEvent = PublicEvent & {
|
|
12
|
+
bookingScope: 'single_occurrence';
|
|
13
|
+
};
|
|
14
|
+
type WholeSeriesPublicEvent = PublicEvent & {
|
|
15
|
+
bookingScope: 'whole_series';
|
|
16
|
+
};
|
|
17
|
+
export type EventDetailsSelection = Readonly<{
|
|
18
|
+
kind: 'empty';
|
|
19
|
+
mode: 'next';
|
|
20
|
+
selected: null;
|
|
21
|
+
otherDates: readonly [];
|
|
22
|
+
timeZone: string;
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
kind: 'ordinary';
|
|
25
|
+
mode: 'selected' | 'next';
|
|
26
|
+
selected: OrdinaryPublicEvent;
|
|
27
|
+
otherDates: OrdinaryPublicEvent[];
|
|
28
|
+
timeZone: string;
|
|
29
|
+
}> | Readonly<{
|
|
30
|
+
kind: 'wholeSeries';
|
|
31
|
+
phase: 'upcoming' | 'inProgress' | 'completed';
|
|
12
32
|
mode: 'selected' | 'next' | 'completed';
|
|
13
|
-
selected:
|
|
14
|
-
otherDates:
|
|
33
|
+
selected: WholeSeriesPublicEvent;
|
|
34
|
+
otherDates: WholeSeriesPublicEvent[];
|
|
35
|
+
sessions: readonly [WholeSeriesPublicEvent, ...WholeSeriesPublicEvent[]];
|
|
15
36
|
timeZone: string;
|
|
16
|
-
}
|
|
37
|
+
}>;
|
|
17
38
|
export declare function selectEventDetails(args: {
|
|
18
39
|
events: PublicEvent[] | null | undefined;
|
|
19
40
|
occurrenceContext: OccurrenceContextLike | null | undefined;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { EventAutoApplyDiscountPreview } from '../../../blocks/event-details';
|
|
2
|
+
import type { PublicEvent } from '../../../blocks/events/shared/types';
|
|
3
|
+
import type { PublicMembershipProductCollection, PublicPassProductCollection } from '../../../blocks/shop';
|
|
4
|
+
import type { EventRegistrationPageSurfaceSubject } from '../event-registration/eventScope';
|
|
5
|
+
import { type OccurrenceContextLike } from './logic';
|
|
6
|
+
export type EventDetailsPresentationInput = Readonly<{
|
|
7
|
+
occurrenceContext?: OccurrenceContextLike | null;
|
|
8
|
+
subject?: EventRegistrationPageSurfaceSubject | null;
|
|
9
|
+
events?: PublicEvent[] | null;
|
|
10
|
+
showVenue?: boolean;
|
|
11
|
+
showMap?: boolean;
|
|
12
|
+
showOtherDates?: boolean;
|
|
13
|
+
otherDatesLimit?: string;
|
|
14
|
+
showCost?: boolean;
|
|
15
|
+
showTitle?: boolean;
|
|
16
|
+
showDescription?: boolean;
|
|
17
|
+
showCapacity?: boolean;
|
|
18
|
+
showAcceptedPasses?: boolean;
|
|
19
|
+
showAcceptedMemberships?: boolean;
|
|
20
|
+
sitePasses?: PublicPassProductCollection | null;
|
|
21
|
+
siteMemberships?: PublicMembershipProductCollection | null;
|
|
22
|
+
autoApplyDiscount?: EventAutoApplyDiscountPreview | null;
|
|
23
|
+
nowIso?: string;
|
|
24
|
+
}>;
|
|
25
|
+
export declare function resolveEventDetailsPresentation(input: EventDetailsPresentationInput): {
|
|
26
|
+
autoApplyDiscount: EventAutoApplyDiscountPreview | null;
|
|
27
|
+
applicablePasses: ({
|
|
28
|
+
purchaseAvailability: "purchasable";
|
|
29
|
+
id: string;
|
|
30
|
+
productUseCase: "event_pass" | "appointment_package";
|
|
31
|
+
name: string;
|
|
32
|
+
description: string | null;
|
|
33
|
+
price: number;
|
|
34
|
+
currency: string;
|
|
35
|
+
creditsTotal: number;
|
|
36
|
+
pricePerCredit: number;
|
|
37
|
+
validDays: number | null;
|
|
38
|
+
eligibleCategoryIds: string[];
|
|
39
|
+
eligibleCategoryNames: string[];
|
|
40
|
+
} | {
|
|
41
|
+
purchaseAvailability: "display_only";
|
|
42
|
+
unavailabilityReason: "online_payments_unavailable";
|
|
43
|
+
id: string;
|
|
44
|
+
productUseCase: "event_pass" | "appointment_package";
|
|
45
|
+
name: string;
|
|
46
|
+
description: string | null;
|
|
47
|
+
price: number;
|
|
48
|
+
currency: string;
|
|
49
|
+
creditsTotal: number;
|
|
50
|
+
pricePerCredit: number;
|
|
51
|
+
validDays: number | null;
|
|
52
|
+
eligibleCategoryIds: string[];
|
|
53
|
+
eligibleCategoryNames: string[];
|
|
54
|
+
})[];
|
|
55
|
+
applicableMemberships: {
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
description: string | null;
|
|
59
|
+
price: number;
|
|
60
|
+
currency: string;
|
|
61
|
+
billingInterval: "month" | "year";
|
|
62
|
+
eligibleCategoryIds: string[];
|
|
63
|
+
eligibleCategoryNames: string[];
|
|
64
|
+
}[];
|
|
65
|
+
showVenue: boolean;
|
|
66
|
+
showMap: boolean;
|
|
67
|
+
showOtherDates: boolean;
|
|
68
|
+
showCost: boolean;
|
|
69
|
+
showTitle: boolean;
|
|
70
|
+
showDescription: boolean;
|
|
71
|
+
showCapacity: boolean;
|
|
72
|
+
showAcceptedPasses: boolean;
|
|
73
|
+
showAcceptedMemberships: boolean;
|
|
74
|
+
selection: import("./logic").EventDetailsSelection;
|
|
75
|
+
};
|
|
@@ -18,6 +18,9 @@ export type EventDetailsViewProps = {
|
|
|
18
18
|
showMap: boolean;
|
|
19
19
|
showOtherDates: boolean;
|
|
20
20
|
showCost?: boolean;
|
|
21
|
+
showTitle?: boolean;
|
|
22
|
+
showDescription?: boolean;
|
|
23
|
+
showCapacity?: boolean;
|
|
21
24
|
showAcceptedPasses?: boolean;
|
|
22
25
|
showAcceptedMemberships?: boolean;
|
|
23
26
|
applicablePasses?: PublicPassProduct[];
|
|
@@ -27,5 +30,5 @@ export type EventDetailsViewProps = {
|
|
|
27
30
|
mapClassName?: string;
|
|
28
31
|
renderVenueMap?: (args: RenderVenueMapArgs) => React.ReactNode;
|
|
29
32
|
};
|
|
30
|
-
export declare function EventDetailsView(
|
|
33
|
+
export declare function EventDetailsView(props: EventDetailsViewProps): React.JSX.Element;
|
|
31
34
|
export {};
|
|
@@ -4,7 +4,7 @@ import type { EventDetailsIslandProps } from '../../../contracts';
|
|
|
4
4
|
import type { PublicEvent } from '../../blocks/events/shared/types';
|
|
5
5
|
import type { EventRegistrationPageSurfaceSubject } from './event-registration/eventScope';
|
|
6
6
|
import type { PublicMembershipProductCollection, PublicPassProductCollection } from '../../blocks/shop';
|
|
7
|
-
import {
|
|
7
|
+
import type { OccurrenceContextLike } from './event-details/logic';
|
|
8
8
|
export type EventDetailsClientProps = Readonly<{
|
|
9
9
|
occurrenceContext?: OccurrenceContextLike | null;
|
|
10
10
|
subject?: EventRegistrationPageSurfaceSubject | null;
|
|
@@ -14,6 +14,9 @@ export type EventDetailsClientProps = Readonly<{
|
|
|
14
14
|
showOtherDates?: boolean;
|
|
15
15
|
otherDatesLimit?: string;
|
|
16
16
|
showCost?: boolean;
|
|
17
|
+
showTitle?: boolean;
|
|
18
|
+
showDescription?: boolean;
|
|
19
|
+
showCapacity?: boolean;
|
|
17
20
|
showAcceptedPasses?: boolean;
|
|
18
21
|
showAcceptedMemberships?: boolean;
|
|
19
22
|
/** Response from listPublicPasses API. */
|
|
@@ -27,6 +30,6 @@ export type EventDetailsClientProps = Readonly<{
|
|
|
27
30
|
children?: React.ReactNode;
|
|
28
31
|
}>;
|
|
29
32
|
export type EventDetailsIslandClientProps = EventDetailsIslandProps;
|
|
30
|
-
export declare function EventDetailsClient(
|
|
33
|
+
export declare function EventDetailsClient(props: EventDetailsClientProps): React.JSX.Element;
|
|
31
34
|
export declare function EventDetailsIslandClient(props: EventDetailsIslandClientProps): React.JSX.Element;
|
|
32
35
|
export default EventDetailsClient;
|