@riverbankcms/sdk 0.130.2 → 0.132.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 +3 -3
- package/dist/{PreviewEditorSidebar-BY-1QdE2.mjs → PreviewEditorSidebar-DKQ5eFK9.mjs} +351 -95
- package/dist/{PreviewEditorUI-BS34jI9_.mjs → PreviewEditorUI-CNTcOjCC.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BD0kOjtI.mjs → PreviewQueryProvider-D51gQaG3.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-B1pWnhu-.mjs → SdkPreviewModeRuntime-DJu3qu33.mjs} +48 -9
- package/dist/{SiteChromeCustomizeContext-BhUG_72i.mjs → SiteChromeCustomizeContext-2TzT3vbj.mjs} +6417 -4184
- package/dist/_dts/ai/src/contracts/proposals.d.ts +723 -151
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +151 -64
- 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/bookingVerticals.d.ts +1 -140
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +45 -12
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -1
- package/dist/_dts/api/src/courses.d.ts +1 -19
- package/dist/_dts/api/src/endpoints.d.ts +466 -346
- 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/dashboardBookingsNav.d.ts +3 -4
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +11 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +25 -12
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +2 -0
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +2 -2
- 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 +16 -6
- 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 +1 -2
- package/dist/_dts/blocks/src/PageRenderer.d.ts +2 -13
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +9 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +26 -44
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- 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 +6 -6
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +2 -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 +81 -0
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +9 -9
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +7 -8
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/blockComposition.d.ts +1 -1
- 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 +21 -36
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +6 -6
- 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/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 +3 -3
- 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 +2 -0
- 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 +45 -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 +5 -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 +19 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.d.ts +12 -12
- 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/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/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 +3 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +72 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +4 -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-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/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/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +2 -13
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -16
- 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 +5 -19
- 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/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 +29 -0
- package/dist/_dts/theme-core/src/cards/types.d.ts +3 -25
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +21 -6
- package/dist/_dts/theme-core/src/schema.d.ts +21 -33
- 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/compilationPlan.d.ts +21 -0
- 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/ui/src/navigation-tabs.d.ts +2 -0
- package/dist/client/{DiscountCodeDisclosure-BPZ-yfGI.mjs → DiscountCodeDisclosure-DO7llLxm.mjs} +12 -12
- package/dist/client/{EventCombined.client-Cjt3kKYR.mjs → EventCombined.client-xID7zN__.mjs} +36 -48
- package/dist/client/{EventListing.client-DY9dn6Fh.mjs → EventListing.client-CriBslp0.mjs} +2 -2
- package/dist/client/{LeafletStaticMap--2c61XYn.mjs → LeafletStaticMap-DYmHnM8g.mjs} +1 -1
- package/dist/client/{StepIndicator-CLjQhkDb.mjs → StepIndicator-CGixP_LW.mjs} +2 -2
- package/dist/client/{CourseRegistrationWizard-DGW9F0SQ.mjs → WholeSeriesRegistrationWizard-BEjzSiOA.mjs} +1408 -1245
- package/dist/client/{accordion-_boYwHHi.mjs → accordion-CgFbnnnQ.mjs} +1 -1
- package/dist/client/{bookingForm--AqEfyBX.mjs → bookingForm-dUyGpbxc.mjs} +5 -5
- package/dist/client/bookings.mjs +635 -471
- package/dist/client/{carousel-CVI2dqZr.mjs → carousel-BvBwkUzx.mjs} +1 -1
- package/dist/client/{cart-DR6IiPz9.mjs → cart-DiZENT2E.mjs} +3 -3
- package/dist/client/{checkout-CsrGAfQt.mjs → checkout-Dq13KIgR.mjs} +3 -3
- package/dist/client/client.mjs +6291 -3452
- package/dist/client/{courseRegistration-aNJVaLa3.mjs → courseRegistration-CKC5NmyH.mjs} +10 -4
- package/dist/client/{eventCalendar-OZ7h59VN.mjs → eventCalendar-BF0Jatfw.mjs} +40 -43
- package/dist/client/{eventCombined-BbJ6bFKz.mjs → eventCombined-BuoCF8je.mjs} +2 -2
- package/dist/client/{eventDetails-BLyUBiCT.mjs → eventDetails-CKwh0S9s.mjs} +276 -94
- package/dist/client/{eventListing-DuP1yhBS.mjs → eventListing-eUxaWFaB.mjs} +2 -2
- package/dist/client/{eventRegistration-BXyECPa-.mjs → eventRegistration-CfkNOkPb.mjs} +625 -132
- package/dist/client/{form-BA4t3kKU.mjs → form-C17H1c_H.mjs} +1 -1
- package/dist/client/{headerSection-CpNaJxhW.mjs → headerSection-DEwUmrtt.mjs} +2 -2
- package/dist/client/hooks.mjs +1312 -481
- package/dist/client/{locationMap-3HGMCL7_.mjs → locationMap-Pf2QwuvW.mjs} +2 -2
- package/dist/client/{newsletterForm-C2s6Mw67.mjs → newsletterForm-BWQAH5Sv.mjs} +1 -1
- package/dist/client/pricing-CVdvbopJ.mjs +195 -0
- package/dist/client/{productDetail-C9joWhdE.mjs → productDetail-BZi1Fa_G.mjs} +3 -3
- package/dist/client/{productList-CjzdU3pB.mjs → productList-qq-55DNk.mjs} +3 -3
- package/dist/client/{propsDecoder-CBPGXEYX.mjs → propsDecoder-BxmqPKdP.mjs} +412 -196
- package/dist/client/rendering/client.mjs +5685 -4037
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +7006 -4124
- package/dist/client/{scrollToBlock-DZ73aEX6.mjs → scrollToBlock-B3CcKdtG.mjs} +1 -1
- package/dist/client/{shop-CQRai7hj.mjs → shop-DNWJPut5.mjs} +5 -5
- package/dist/client/{shop-commerce-hP9UboOx.mjs → shop-commerce-BhvQCosS.mjs} +4 -4
- package/dist/client/{shop-commerce-store-DiD5a32e.mjs → shop-commerce-store-B04sCNnW.mjs} +1 -1
- package/dist/client/{shopShared-DP8DXTkF.mjs → shopShared-DNNgZlmW.mjs} +2 -2
- package/dist/client/{useEventFilters-pF_OJNQP.mjs → useEventFilters-CUmhE24_.mjs} +195 -6
- package/dist/client/{usePolling-Cls91SD2.mjs → usePolling-M5jG675x.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-BEXb1wqo.mjs} +2 -2
- package/dist/{separator-BXlYN_gr.mjs → separator-DGMuip1D.mjs} +1 -1
- package/dist/server/components.mjs +3461 -1577
- package/dist/server/config-validation.mjs +1312 -482
- package/dist/server/config.mjs +1312 -482
- package/dist/server/data.mjs +1312 -481
- package/dist/server/index.mjs +289 -81
- package/dist/server/manifest.mjs +0 -1
- package/dist/server/next.mjs +3576 -1689
- package/dist/server/page-converter.mjs +797 -250
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3461 -1576
- package/dist/server/rendering.mjs +3461 -1577
- package/dist/server/routing.mjs +1555 -616
- package/dist/server/server.mjs +1352 -560
- package/dist/server/theme-bridge.mjs +1992 -931
- package/dist/server/theme.mjs +346 -133
- package/dist/styles/index.css +1602 -796
- package/package.json +1 -1
- 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/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
|
@@ -1,97 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Shared types for course display blocks
|
|
3
|
-
*/
|
|
4
|
-
import type { BlockBookingPaymentTerms } from '../../shared/bookingPaymentTerms';
|
|
5
|
-
import type { PublicTeamMemberSummary } from '../../shared/teamMembers';
|
|
6
|
-
import type { BlockButtonRole } from '../../../constants/buttonRoles';
|
|
7
|
-
/**
|
|
8
|
-
* Course status values
|
|
9
|
-
*/
|
|
10
|
-
export type CourseStatus = 'active' | 'draft' | 'cancelled';
|
|
11
|
-
/**
|
|
12
|
-
* Venue information for courses
|
|
13
|
-
*/
|
|
14
|
-
export type CourseVenue = {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
address: string | null;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Session (occurrence) information for a course
|
|
21
|
-
*/
|
|
22
|
-
export type CourseSession = {
|
|
23
|
-
id: string;
|
|
24
|
-
startsAt: string;
|
|
25
|
-
endsAt: string;
|
|
26
|
-
timeZone: string;
|
|
27
|
-
capacityOverride?: number | null;
|
|
28
|
-
overrides?: Record<string, unknown> | null;
|
|
29
|
-
};
|
|
30
|
-
export type CoursePricingOption = {
|
|
31
|
-
id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
description: string | null;
|
|
34
|
-
priceAmount: number;
|
|
35
|
-
isActive: boolean;
|
|
36
|
-
sortOrder: number;
|
|
37
|
-
capacityLimit: number | null;
|
|
38
|
-
saleStartsAt: string | null;
|
|
39
|
-
saleEndsAt: string | null;
|
|
40
|
-
attendanceScope?: 'in_person' | 'online' | 'both' | null;
|
|
41
|
-
};
|
|
42
|
-
export type CoursePricing = {
|
|
43
|
-
bookingRequirement: 'none' | 'required';
|
|
44
|
-
pricingStrategy: 'free' | 'single' | 'tiered' | 'sliding_scale';
|
|
45
|
-
currency: string;
|
|
46
|
-
singlePriceAmount: number | null;
|
|
47
|
-
slidingMinAmount?: number | null;
|
|
48
|
-
slidingMaxAmount?: number | null;
|
|
49
|
-
slidingSuggestedAmount?: number | null;
|
|
50
|
-
paymentTerms: BlockBookingPaymentTerms;
|
|
51
|
-
options: readonly CoursePricingOption[];
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Public course data from the API
|
|
55
|
-
* Used by Course Registration block
|
|
56
|
-
*/
|
|
57
|
-
export type PublicWholeSeriesOffering = {
|
|
58
|
-
/** Canonical event-series identity backing this concrete bookable run. */
|
|
59
|
-
eventSeriesId: string;
|
|
60
|
-
/** Offering identity owning the public course page and its available runs. */
|
|
61
|
-
eventOfferingId: string;
|
|
62
|
-
title: string;
|
|
63
|
-
slug: string;
|
|
64
|
-
/** Rich text description (ProseMirror/TipTap JSON format) */
|
|
65
|
-
description: unknown;
|
|
66
|
-
teamMembers?: PublicTeamMemberSummary[];
|
|
67
|
-
/** Enrollment is open if the course has not started yet */
|
|
68
|
-
enrollmentOpen: boolean;
|
|
69
|
-
/** Canonical shared pricing model for the whole-series run. */
|
|
70
|
-
pricing: CoursePricing;
|
|
71
|
-
/** Currency code (ISO 4217) */
|
|
72
|
-
currency: string;
|
|
73
|
-
/** Shared booking payment-terms model for appointments/events/courses. */
|
|
74
|
-
paymentTerms: BlockBookingPaymentTerms;
|
|
75
|
-
/** Maximum enrollment capacity (null = unlimited) */
|
|
76
|
-
enrollmentCapacity: number | null;
|
|
77
|
-
/** Whether memberships can be used for free enrollment */
|
|
78
|
-
acceptsMemberships: boolean;
|
|
79
|
-
/** Course status */
|
|
80
|
-
status: CourseStatus;
|
|
81
|
-
/** Total number of sessions in the course */
|
|
82
|
-
sessionsCount: number;
|
|
83
|
-
/** Number of enrolled students */
|
|
84
|
-
enrolledCount: number;
|
|
85
|
-
/** Available spots (null if unlimited) */
|
|
86
|
-
availableSpots: number | null;
|
|
87
|
-
/** All sessions in the course */
|
|
88
|
-
sessions: CourseSession[];
|
|
89
|
-
/** Venue information */
|
|
90
|
-
venue: CourseVenue | null;
|
|
91
|
-
};
|
|
92
|
-
/** Deployed course blocks retain this presentation alias for stored content. */
|
|
93
|
-
export type PublicCourse = PublicWholeSeriesOffering;
|
|
94
|
-
/**
|
|
95
|
-
* Button variant options for course actions
|
|
96
|
-
*/
|
|
97
|
-
export type ButtonVariant = BlockButtonRole;
|
|
1
|
+
export type { WholeSeriesOfferingStatus as CourseStatus, WholeSeriesVenue as CourseVenue, WholeSeriesSession as CourseSession, WholeSeriesPricingOption as CoursePricingOption, WholeSeriesPricing as CoursePricing, PublicWholeSeriesOffering, PublicWholeSeriesOffering as PublicCourse, ButtonVariant, } from '../../events/whole-series/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import type { SystemBlockDefinition } from
|
|
3
|
-
import type { SectionStylesContent } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { SystemBlockDefinition } from '../registry';
|
|
3
|
+
import type { SectionStylesContent } from '../fields/boxStyles';
|
|
4
4
|
/**
|
|
5
5
|
* Event Details Block
|
|
6
6
|
*
|
|
@@ -29,6 +29,24 @@ export declare const eventDetailsManifest: import("..").DefinedBlockManifest<{
|
|
|
29
29
|
readonly ui: {
|
|
30
30
|
readonly intent: "display";
|
|
31
31
|
};
|
|
32
|
+
}, {
|
|
33
|
+
readonly id: "showTitle";
|
|
34
|
+
readonly type: "boolean";
|
|
35
|
+
readonly label: "Show event title";
|
|
36
|
+
readonly required: false;
|
|
37
|
+
readonly defaultValue: false;
|
|
38
|
+
readonly ui: {
|
|
39
|
+
readonly intent: "display";
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
readonly id: "showDescription";
|
|
43
|
+
readonly type: "boolean";
|
|
44
|
+
readonly label: "Show event description";
|
|
45
|
+
readonly required: false;
|
|
46
|
+
readonly defaultValue: false;
|
|
47
|
+
readonly ui: {
|
|
48
|
+
readonly intent: "display";
|
|
49
|
+
};
|
|
32
50
|
}, {
|
|
33
51
|
readonly id: "showMap";
|
|
34
52
|
readonly type: "boolean";
|
|
@@ -64,10 +82,22 @@ export declare const eventDetailsManifest: import("..").DefinedBlockManifest<{
|
|
|
64
82
|
}, {
|
|
65
83
|
readonly value: "10";
|
|
66
84
|
readonly label: "10 dates";
|
|
85
|
+
}, {
|
|
86
|
+
readonly value: "all";
|
|
87
|
+
readonly label: "All dates";
|
|
67
88
|
}];
|
|
68
89
|
readonly ui: {
|
|
69
90
|
readonly intent: "display";
|
|
70
91
|
};
|
|
92
|
+
}, {
|
|
93
|
+
readonly id: "showCapacity";
|
|
94
|
+
readonly type: "boolean";
|
|
95
|
+
readonly label: "Show capacity";
|
|
96
|
+
readonly required: false;
|
|
97
|
+
readonly defaultValue: false;
|
|
98
|
+
readonly ui: {
|
|
99
|
+
readonly intent: "display";
|
|
100
|
+
};
|
|
71
101
|
}, {
|
|
72
102
|
readonly id: "showCost";
|
|
73
103
|
readonly type: "boolean";
|
|
@@ -103,9 +133,12 @@ export declare const eventDetailsManifest: import("..").DefinedBlockManifest<{
|
|
|
103
133
|
export type EventDetailsContent = {
|
|
104
134
|
heading?: string | null;
|
|
105
135
|
showVenue?: boolean | null;
|
|
136
|
+
showTitle?: boolean | null;
|
|
137
|
+
showDescription?: boolean | null;
|
|
106
138
|
showMap?: boolean | null;
|
|
107
139
|
showOtherDates?: boolean | null;
|
|
108
|
-
otherDatesLimit?:
|
|
140
|
+
otherDatesLimit?: '3' | '5' | '10' | 'all' | null;
|
|
141
|
+
showCapacity?: boolean | null;
|
|
109
142
|
showCost?: boolean | null;
|
|
110
143
|
showAcceptedPasses?: boolean | null;
|
|
111
144
|
showAcceptedMemberships?: boolean | null;
|
|
@@ -125,11 +158,11 @@ type EventAutoApplyDiscountPreviewBase = {
|
|
|
125
158
|
* `@riverbankcms/api/src/eventAutoApplyDiscountPreview.typetest.ts`.
|
|
126
159
|
*/
|
|
127
160
|
export type EventAutoApplyDiscountPreview = (EventAutoApplyDiscountPreviewBase & {
|
|
128
|
-
discountType:
|
|
161
|
+
discountType: 'percent';
|
|
129
162
|
discountPercent: number;
|
|
130
163
|
discountAmountCents: null;
|
|
131
164
|
}) | (EventAutoApplyDiscountPreviewBase & {
|
|
132
|
-
discountType:
|
|
165
|
+
discountType: 'fixed';
|
|
133
166
|
discountPercent: null;
|
|
134
167
|
discountAmountCents: number;
|
|
135
168
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EventCategoryId, VenueId } from '../../../../../core/src/index';
|
|
2
2
|
import type { SystemBlockDefinition } from '../../registry';
|
|
3
|
-
import { type ContainerStylesContent, type SectionStylesContent } from '../../fields/boxStyles';
|
|
3
|
+
import { type CardStylesContent, type ContainerStylesContent, type SectionStylesContent } from '../../fields/boxStyles';
|
|
4
4
|
import type { DisplayMode, EventLayout, ColumnOption, WeekStart, FilterAutoShow, CalendarTabViews, CalendarView, ButtonVariant, EventScheduleScope, EventSurfacePreset, EventSurfaceScope } from './shared/types';
|
|
5
5
|
import { eventCalendarBlockRuntime } from '../../runtime/nodes/events/EventCalendar.interactive';
|
|
6
6
|
export declare function normalizeEventCalendarContent(content: unknown): EventCalendarContent;
|
|
@@ -77,6 +77,7 @@ export type EventCalendarContent = EventCalendarFilterContent & {
|
|
|
77
77
|
startOfWeek?: WeekStart | null;
|
|
78
78
|
calendarTabViews?: CalendarTabViews | null;
|
|
79
79
|
defaultCalendarView?: CalendarView | null;
|
|
80
|
+
_cardStyles?: CardStylesContent;
|
|
80
81
|
buttonVariant?: ButtonVariant | null;
|
|
81
82
|
buttonText?: string | null;
|
|
82
83
|
showCapacity?: boolean | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SystemBlockDefinition } from "../../registry";
|
|
2
|
-
import { type ContainerStylesContent, type SectionStylesContent } from "../../fields/boxStyles";
|
|
2
|
+
import { type CardStylesContent, type ContainerStylesContent, type SectionStylesContent } from "../../fields/boxStyles";
|
|
3
3
|
import { eventListingBlockRuntime } from "../../runtime/nodes/events/EventListing.interactive";
|
|
4
4
|
import type { BlockButtonRole } from "../../constants/buttonRoles";
|
|
5
|
-
import type {
|
|
5
|
+
import type { EventScheduleScope, EventSurfacePreset, EventSurfaceScope } from "./shared/types";
|
|
6
6
|
export declare const eventListingManifest: import("../..").DefinedBlockManifest<{
|
|
7
7
|
readonly additionalFields: readonly [{
|
|
8
8
|
readonly id: "layout";
|
|
@@ -36,7 +36,7 @@ export type EventListingContent = {
|
|
|
36
36
|
paginationMode?: "loadMore" | "seeAllLink" | null;
|
|
37
37
|
seeAllUrl?: string | null;
|
|
38
38
|
loadMoreText?: string | null;
|
|
39
|
-
|
|
39
|
+
_cardStyles?: CardStylesContent;
|
|
40
40
|
buttonVariant?: BlockButtonRole | null;
|
|
41
41
|
buttonText?: string | null;
|
|
42
42
|
showVenue?: boolean | null;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { LinkValue } from "../../types/link";
|
|
2
2
|
import type { SystemBlockDefinition } from "../../registry";
|
|
3
3
|
import type { NodeDefinition } from "../../node";
|
|
4
|
-
import { type SectionStylesContent } from "../../fields/boxStyles";
|
|
4
|
+
import { type CardStylesContent, type SectionStylesContent } from "../../fields/boxStyles";
|
|
5
5
|
import { type BlockConfig, type BlockContentShapeInput, type DefinedBlockManifest } from "../../defineBlock";
|
|
6
|
-
import type { EventCardVariantInput } from "./shared/types";
|
|
7
6
|
import type { BlockButtonRole } from "../../constants/buttonRoles";
|
|
8
7
|
/**
|
|
9
8
|
* Event Spotlight Block
|
|
@@ -34,7 +33,7 @@ export type EventSpotlightContent = {
|
|
|
34
33
|
ctaUrl?: LinkValue | string | null;
|
|
35
34
|
layout?: "grid" | "stack" | null;
|
|
36
35
|
columns?: "2" | "3" | null;
|
|
37
|
-
|
|
36
|
+
_cardStyles?: CardStylesContent;
|
|
38
37
|
buttonVariant?: BlockButtonRole | null;
|
|
39
38
|
buttonText?: string | null;
|
|
40
39
|
showVenue?: boolean | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const eventSurfacePresetValues: readonly ["
|
|
1
|
+
import { type EventCategoryId, type VenueId } from "../../../../../../core/src/index";
|
|
2
|
+
export declare const eventSurfacePresetValues: readonly ["class", "course", "term", "workshop", "retreat", "performance"];
|
|
3
3
|
export declare const eventSurfaceScopeValues: readonly ["all", "regularClassSchedule", "specialDatedEvents", "custom"];
|
|
4
4
|
export declare const eventScheduleScopeValues: readonly ["any", "recurring", "oneOff"];
|
|
5
5
|
export type EventSurfacePreset = (typeof eventSurfacePresetValues)[number];
|
|
@@ -2,11 +2,11 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const eventPresetSchema: z.ZodEnum<{
|
|
3
3
|
course: "course";
|
|
4
4
|
event: "event";
|
|
5
|
-
term: "term";
|
|
6
|
-
performance: "performance";
|
|
7
5
|
class: "class";
|
|
6
|
+
term: "term";
|
|
8
7
|
workshop: "workshop";
|
|
9
8
|
retreat: "retreat";
|
|
9
|
+
performance: "performance";
|
|
10
10
|
}>;
|
|
11
11
|
export declare const eventScheduleScopeSchema: z.ZodEnum<{
|
|
12
12
|
recurring: "recurring";
|
|
@@ -397,11 +397,11 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
397
397
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
398
398
|
course: "course";
|
|
399
399
|
event: "event";
|
|
400
|
-
term: "term";
|
|
401
|
-
performance: "performance";
|
|
402
400
|
class: "class";
|
|
401
|
+
term: "term";
|
|
403
402
|
workshop: "workshop";
|
|
404
403
|
retreat: "retreat";
|
|
404
|
+
performance: "performance";
|
|
405
405
|
}>>;
|
|
406
406
|
eventDestinationMode: z.ZodOptional<z.ZodEnum<{
|
|
407
407
|
"cms-managed": "cms-managed";
|
|
@@ -1090,11 +1090,11 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1090
1090
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
1091
1091
|
course: "course";
|
|
1092
1092
|
event: "event";
|
|
1093
|
-
term: "term";
|
|
1094
|
-
performance: "performance";
|
|
1095
1093
|
class: "class";
|
|
1094
|
+
term: "term";
|
|
1096
1095
|
workshop: "workshop";
|
|
1097
1096
|
retreat: "retreat";
|
|
1097
|
+
performance: "performance";
|
|
1098
1098
|
}>>;
|
|
1099
1099
|
eventDestinationMode: z.ZodOptional<z.ZodEnum<{
|
|
1100
1100
|
"cms-managed": "cms-managed";
|
|
@@ -6,10 +6,9 @@ import type { Media } from '../../../../lib/media';
|
|
|
6
6
|
import type { RichTextDoc } from '../../../manifest/richTextSchema';
|
|
7
7
|
import type { BlockBookingPaymentTerms } from '../../shared/bookingPaymentTerms';
|
|
8
8
|
import type { PublicTeamMemberSummary } from '../../shared/teamMembers';
|
|
9
|
-
import type {
|
|
9
|
+
import type { WholeSeriesPricing } from '../whole-series';
|
|
10
10
|
import type { eventCalendarDefaultViewValues, eventCalendarDisplayModeValues, eventCalendarListLayoutValues } from '../../../constants/events';
|
|
11
11
|
import type { EventScheduleScope, EventSurfacePreset, EventSurfaceScope } from './filtering';
|
|
12
|
-
import type { CardVariantRole, LegacyCardVariantRoleAlias } from '../../../../../../theme-core/src/cards/index';
|
|
13
12
|
import type { BlockButtonRole } from '../../../constants/buttonRoles';
|
|
14
13
|
/**
|
|
15
14
|
* Geographic coordinates for venue location
|
|
@@ -165,18 +164,12 @@ export type PublicEvent = {
|
|
|
165
164
|
/** Registration projection when this occurrence belongs to one whole-series booking. */
|
|
166
165
|
wholeSeries?: {
|
|
167
166
|
eventSeriesId: string;
|
|
168
|
-
pricing:
|
|
167
|
+
pricing: WholeSeriesPricing;
|
|
169
168
|
currency: string;
|
|
170
169
|
/** True if the whole-series registration window remains open. */
|
|
171
170
|
enrollmentOpen: boolean;
|
|
172
171
|
} | null;
|
|
173
172
|
};
|
|
174
|
-
/**
|
|
175
|
-
* Card variant options for event display
|
|
176
|
-
*/
|
|
177
|
-
export type CardVariant = CardVariantRole;
|
|
178
|
-
export type LegacyEventCardVariant = LegacyCardVariantRoleAlias;
|
|
179
|
-
export type EventCardVariantInput = CardVariant | LegacyEventCardVariant;
|
|
180
173
|
/**
|
|
181
174
|
* Card orientation options for event display
|
|
182
175
|
* - vertical: Standard card layout with image on top (grid mode)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type PlanningDateInput } from '../../../../../../core/src/index';
|
|
2
|
+
import type { WholeSeriesPricingOption, PublicWholeSeriesOffering } from './types';
|
|
3
|
+
export type WholeSeriesPriceDisplay = Readonly<{
|
|
4
|
+
kind: 'free';
|
|
5
|
+
currency: string;
|
|
6
|
+
}> | Readonly<{
|
|
7
|
+
kind: 'exact';
|
|
8
|
+
amount: number;
|
|
9
|
+
currency: string;
|
|
10
|
+
}> | Readonly<{
|
|
11
|
+
kind: 'from';
|
|
12
|
+
amount: number;
|
|
13
|
+
currency: string;
|
|
14
|
+
}> | Readonly<{
|
|
15
|
+
kind: 'range';
|
|
16
|
+
minAmount: number;
|
|
17
|
+
maxAmount: number;
|
|
18
|
+
currency: string;
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
kind: 'unavailable';
|
|
21
|
+
currency: string;
|
|
22
|
+
}>;
|
|
23
|
+
export type ResolvedWholeSeriesPricingState = Readonly<{
|
|
24
|
+
currency: string;
|
|
25
|
+
display: WholeSeriesPriceDisplay;
|
|
26
|
+
selectableOptions: readonly WholeSeriesPricingOption[];
|
|
27
|
+
requiresSelection: boolean;
|
|
28
|
+
selectedOption: WholeSeriesPricingOption | null;
|
|
29
|
+
slidingScale: Readonly<{
|
|
30
|
+
minAmount: number;
|
|
31
|
+
maxAmount: number;
|
|
32
|
+
suggestedAmount: number | null;
|
|
33
|
+
}> | null;
|
|
34
|
+
selectedSlidingAmount: number | null;
|
|
35
|
+
selectedPriceAmount: number | null;
|
|
36
|
+
selectedRequiresPayment: boolean;
|
|
37
|
+
hasPaidSelection: boolean;
|
|
38
|
+
hasFreeSelection: boolean;
|
|
39
|
+
}>;
|
|
40
|
+
type WholeSeriesCurrencyFormatOptions = Readonly<{
|
|
41
|
+
locale?: string;
|
|
42
|
+
minimumFractionDigits?: number;
|
|
43
|
+
maximumFractionDigits?: number;
|
|
44
|
+
}>;
|
|
45
|
+
export declare function getSelectableWholeSeriesPricingOptions(offering: Pick<PublicWholeSeriesOffering, 'pricing'>, nowInput?: PlanningDateInput): readonly WholeSeriesPricingOption[];
|
|
46
|
+
export declare function resolveWholeSeriesPricingState(offering: Pick<PublicWholeSeriesOffering, 'pricing' | 'currency'>, selectedPricingOptionId?: string | null, selectedSlidingAmountOrNowInput?: number | null | PlanningDateInput, nowInput?: PlanningDateInput): ResolvedWholeSeriesPricingState;
|
|
47
|
+
export declare function formatWholeSeriesPriceDisplay(display: WholeSeriesPriceDisplay, locale?: string): string;
|
|
48
|
+
export declare function formatWholeSeriesCurrencyAmount(amount: number, currency: string, options?: WholeSeriesCurrencyFormatOptions): string;
|
|
49
|
+
export declare function formatWholeSeriesPriceAmount(amount: number, currency: string, locale?: string): string;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { PublicWholeSeriesOffering } from './types';
|
|
3
|
+
export declare const wholeSeriesVenueSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
address: z.ZodNullable<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const wholeSeriesSessionSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
startsAt: z.ZodString;
|
|
11
|
+
endsAt: z.ZodString;
|
|
12
|
+
timeZone: z.ZodString;
|
|
13
|
+
capacityOverride: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
overrides: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const wholeSeriesTeamMemberSummarySchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
roleLabel: z.ZodNullable<z.ZodString>;
|
|
20
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
21
|
+
profilePath: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const wholeSeriesPricingOptionSchema: z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
description: z.ZodNullable<z.ZodString>;
|
|
27
|
+
priceAmount: z.ZodNumber;
|
|
28
|
+
isActive: z.ZodBoolean;
|
|
29
|
+
sortOrder: z.ZodNumber;
|
|
30
|
+
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
32
|
+
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
33
|
+
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
34
|
+
in_person: "in_person";
|
|
35
|
+
both: "both";
|
|
36
|
+
online: "online";
|
|
37
|
+
}>>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export declare const wholeSeriesPricingSchema: z.ZodObject<{
|
|
40
|
+
bookingRequirement: z.ZodEnum<{
|
|
41
|
+
required: "required";
|
|
42
|
+
none: "none";
|
|
43
|
+
}>;
|
|
44
|
+
pricingStrategy: z.ZodEnum<{
|
|
45
|
+
single: "single";
|
|
46
|
+
sliding_scale: "sliding_scale";
|
|
47
|
+
free: "free";
|
|
48
|
+
tiered: "tiered";
|
|
49
|
+
}>;
|
|
50
|
+
currency: z.ZodString;
|
|
51
|
+
singlePriceAmount: z.ZodNullable<z.ZodNumber>;
|
|
52
|
+
slidingMinAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
slidingMaxAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
+
slidingSuggestedAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
|
+
paymentTerms: z.ZodObject<{
|
|
56
|
+
allowedOptions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
57
|
+
kind: z.ZodLiteral<"upfront">;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
kind: z.ZodLiteral<"deferred_manual">;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
kind: z.ZodLiteral<"instalment_plan">;
|
|
62
|
+
plan: z.ZodUnion<readonly [z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
64
|
+
depositAmountCents: z.ZodNumber;
|
|
65
|
+
depositRefundability: z.ZodEnum<{
|
|
66
|
+
refundable: "refundable";
|
|
67
|
+
non_refundable: "non_refundable";
|
|
68
|
+
}>;
|
|
69
|
+
remainderDueCount: z.ZodNumber;
|
|
70
|
+
intervalUnit: z.ZodEnum<{
|
|
71
|
+
day: "day";
|
|
72
|
+
week: "week";
|
|
73
|
+
month: "month";
|
|
74
|
+
}>;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
77
|
+
depositAmountCents: z.ZodNumber;
|
|
78
|
+
depositRefundability: z.ZodEnum<{
|
|
79
|
+
refundable: "refundable";
|
|
80
|
+
non_refundable: "non_refundable";
|
|
81
|
+
}>;
|
|
82
|
+
instalmentCount: z.ZodNumber;
|
|
83
|
+
intervalCount: z.ZodNumber;
|
|
84
|
+
intervalUnit: z.ZodEnum<{
|
|
85
|
+
day: "day";
|
|
86
|
+
week: "week";
|
|
87
|
+
month: "month";
|
|
88
|
+
}>;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
91
|
+
instalmentCount: z.ZodNumber;
|
|
92
|
+
intervalCount: z.ZodNumber;
|
|
93
|
+
intervalUnit: z.ZodEnum<{
|
|
94
|
+
day: "day";
|
|
95
|
+
week: "week";
|
|
96
|
+
month: "month";
|
|
97
|
+
}>;
|
|
98
|
+
}, z.core.$strip>]>;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
kind: z.ZodLiteral<"flexible_balance">;
|
|
101
|
+
config: z.ZodObject<{
|
|
102
|
+
upfrontAmountCents: z.ZodNumber;
|
|
103
|
+
dueDateRule: z.ZodUnion<readonly [z.ZodObject<{
|
|
104
|
+
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
105
|
+
daysBeforeStart: z.ZodNumber;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
108
|
+
dueAt: z.ZodString;
|
|
109
|
+
}, z.core.$strip>]>;
|
|
110
|
+
depositRefundability: z.ZodEnum<{
|
|
111
|
+
refundable: "refundable";
|
|
112
|
+
non_refundable: "non_refundable";
|
|
113
|
+
}>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
}, z.core.$strip>]>>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
options: z.ZodArray<z.ZodObject<{
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
name: z.ZodString;
|
|
120
|
+
description: z.ZodNullable<z.ZodString>;
|
|
121
|
+
priceAmount: z.ZodNumber;
|
|
122
|
+
isActive: z.ZodBoolean;
|
|
123
|
+
sortOrder: z.ZodNumber;
|
|
124
|
+
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
125
|
+
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
126
|
+
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
127
|
+
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
128
|
+
in_person: "in_person";
|
|
129
|
+
both: "both";
|
|
130
|
+
online: "online";
|
|
131
|
+
}>>>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
export declare const publicWholeSeriesOfferingSchema: z.ZodType<PublicWholeSeriesOffering>;
|
|
135
|
+
export declare const publicWholeSeriesOfferingsArraySchema: z.ZodArray<z.ZodType<PublicWholeSeriesOffering, unknown, z.core.$ZodTypeInternals<PublicWholeSeriesOffering, unknown>>>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/** Canonical public model for Events booked as one complete run. */
|
|
2
|
+
import type { BlockBookingPaymentTerms } from '../../shared/bookingPaymentTerms';
|
|
3
|
+
import type { PublicTeamMemberSummary } from '../../shared/teamMembers';
|
|
4
|
+
import type { BlockButtonRole } from '../../../constants/buttonRoles';
|
|
5
|
+
export type WholeSeriesOfferingStatus = 'active' | 'draft' | 'cancelled';
|
|
6
|
+
export type WholeSeriesVenue = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
address: string | null;
|
|
10
|
+
};
|
|
11
|
+
export type WholeSeriesSession = {
|
|
12
|
+
id: string;
|
|
13
|
+
startsAt: string;
|
|
14
|
+
endsAt: string;
|
|
15
|
+
timeZone: string;
|
|
16
|
+
capacityOverride?: number | null;
|
|
17
|
+
overrides?: Record<string, unknown> | null;
|
|
18
|
+
};
|
|
19
|
+
export type WholeSeriesPricingOption = {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
description: string | null;
|
|
23
|
+
priceAmount: number;
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
sortOrder: number;
|
|
26
|
+
capacityLimit: number | null;
|
|
27
|
+
saleStartsAt: string | null;
|
|
28
|
+
saleEndsAt: string | null;
|
|
29
|
+
attendanceScope?: 'in_person' | 'online' | 'both' | null;
|
|
30
|
+
};
|
|
31
|
+
export type WholeSeriesPricing = {
|
|
32
|
+
bookingRequirement: 'none' | 'required';
|
|
33
|
+
pricingStrategy: 'free' | 'single' | 'tiered' | 'sliding_scale';
|
|
34
|
+
currency: string;
|
|
35
|
+
singlePriceAmount: number | null;
|
|
36
|
+
slidingMinAmount?: number | null;
|
|
37
|
+
slidingMaxAmount?: number | null;
|
|
38
|
+
slidingSuggestedAmount?: number | null;
|
|
39
|
+
paymentTerms: BlockBookingPaymentTerms;
|
|
40
|
+
options: readonly WholeSeriesPricingOption[];
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Public whole-series offering data from the API.
|
|
44
|
+
* Used by Event registration and details surfaces.
|
|
45
|
+
*/
|
|
46
|
+
export type PublicWholeSeriesOffering = {
|
|
47
|
+
/** Canonical event-series identity backing this concrete bookable run. */
|
|
48
|
+
eventSeriesId: string;
|
|
49
|
+
/** Offering identity owning the public Event page and its available runs. */
|
|
50
|
+
eventOfferingId: string;
|
|
51
|
+
title: string;
|
|
52
|
+
slug: string;
|
|
53
|
+
/** Rich text description (ProseMirror/TipTap JSON format) */
|
|
54
|
+
description: unknown;
|
|
55
|
+
teamMembers?: PublicTeamMemberSummary[];
|
|
56
|
+
/** Registration is open if the run has not started yet. */
|
|
57
|
+
enrollmentOpen: boolean;
|
|
58
|
+
/** Canonical shared pricing model for the whole-series run. */
|
|
59
|
+
pricing: WholeSeriesPricing;
|
|
60
|
+
/** Currency code (ISO 4217) */
|
|
61
|
+
currency: string;
|
|
62
|
+
/** Shared booking payment-terms model for appointments and Events. */
|
|
63
|
+
paymentTerms: BlockBookingPaymentTerms;
|
|
64
|
+
/** Maximum enrollment capacity (null = unlimited) */
|
|
65
|
+
enrollmentCapacity: number | null;
|
|
66
|
+
/** Whether memberships can be used for free enrollment */
|
|
67
|
+
acceptsMemberships: boolean;
|
|
68
|
+
/** Operational status of the run. */
|
|
69
|
+
status: WholeSeriesOfferingStatus;
|
|
70
|
+
/** Total number of sessions in the run. */
|
|
71
|
+
sessionsCount: number;
|
|
72
|
+
/** Number of enrolled students */
|
|
73
|
+
enrolledCount: number;
|
|
74
|
+
/** Available spots (null if unlimited) */
|
|
75
|
+
availableSpots: number | null;
|
|
76
|
+
/** Every session included in this run. */
|
|
77
|
+
sessions: WholeSeriesSession[];
|
|
78
|
+
/** Venue information */
|
|
79
|
+
venue: WholeSeriesVenue | null;
|
|
80
|
+
};
|
|
81
|
+
export type ButtonVariant = BlockButtonRole;
|