@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,14 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Theme } from '../../../../blocks/src/index';
|
|
3
|
-
import { type ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
|
|
3
|
+
import { type ButtonStyleSelection, type ButtonStyleSelectionRepair } from '../../../../theme-core/src/buttons/index';
|
|
4
4
|
export type ButtonStylePickerProps = Readonly<{
|
|
5
5
|
selections: readonly ButtonStyleSelection[];
|
|
6
6
|
current: ButtonStyleSelection;
|
|
7
7
|
previewTheme: Theme;
|
|
8
8
|
onPreview: (selection: ButtonStyleSelection) => void;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
+
repairs?: readonly ButtonStyleSelectionRepair[];
|
|
10
11
|
}>;
|
|
11
|
-
export declare function ButtonStylePicker({ selections, current, previewTheme, onPreview, disabled, }: ButtonStylePickerProps): React.JSX.Element;
|
|
12
|
+
export declare function ButtonStylePicker({ selections, current, previewTheme, onPreview, disabled, repairs, }: ButtonStylePickerProps): React.JSX.Element;
|
|
12
13
|
export declare function ButtonStylePreviewPair({ selection, previewTheme, compact, }: Readonly<{
|
|
13
14
|
selection: ButtonStyleSelection;
|
|
14
15
|
previewTheme: Theme;
|
|
@@ -5,6 +5,7 @@ import type { SurfaceId } from '../../../../surfaces/src/index';
|
|
|
5
5
|
import type { EntrySubrouteContextData, BookingOfferingPresetSummary, Theme } from '../../../../blocks/src/index';
|
|
6
6
|
import { type ContentTypeSchema } from '../../../../content-model/src/index';
|
|
7
7
|
import { type ZoomLevel } from '../../../../content-editor/src/index';
|
|
8
|
+
import { type StyleConfiguratorProps } from './StyleConfigurator';
|
|
8
9
|
import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
|
|
9
10
|
import type { FooterLookId, HeaderLayoutStyleSelection, HeaderLogoContext } from '../../../../theme-core/src/site-styles/index';
|
|
10
11
|
import type { ViewportMode, ViewportWidth } from './PreviewViewportControls';
|
|
@@ -35,6 +36,7 @@ export type PreviewEditorSidebarProps = {
|
|
|
35
36
|
themeSelectionUpdatedAt?: string | null;
|
|
36
37
|
/** Persisted Style configurator selections (Phase C / E). */
|
|
37
38
|
themeSelectionButtonStyleSelection?: ButtonStyleSelection | null;
|
|
39
|
+
themeSelectionButtonStyleRepairs?: StyleConfiguratorProps['buttonStyleRepairs'];
|
|
38
40
|
themeSelectionHeaderSelection?: HeaderLayoutStyleSelection | null;
|
|
39
41
|
themeSelectionFooterLookId?: FooterLookId | null;
|
|
40
42
|
themeSelectionHeaderLogo?: HeaderLogoContext;
|
|
@@ -56,4 +58,4 @@ export type PreviewEditorSidebarProps = {
|
|
|
56
58
|
onViewportWidthChange: (width: ViewportWidth) => void;
|
|
57
59
|
onZoomChange: (zoom: ZoomLevel) => void;
|
|
58
60
|
};
|
|
59
|
-
export declare function PreviewEditorSidebar({ surfaceId, siteId, dashboardBaseUrl, pageId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, theme, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonStyleSelection, themeSelectionHeaderSelection, themeSelectionFooterLookId, themeSelectionHeaderLogo, apiClient, bearerToken, entrySubrouteContext, assistantPanel, sdkConfig, bookingOfferingPresets, siteStyleAccess, activeTab, onTabChange, onClose, onFooterSaved, viewportMode, viewportWidth, zoom, onViewportModeChange, onViewportWidthChange, onZoomChange, }: PreviewEditorSidebarProps): React.JSX.Element;
|
|
61
|
+
export declare function PreviewEditorSidebar({ surfaceId, siteId, dashboardBaseUrl, pageId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, theme, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonStyleSelection, themeSelectionButtonStyleRepairs, themeSelectionHeaderSelection, themeSelectionFooterLookId, themeSelectionHeaderLogo, apiClient, bearerToken, entrySubrouteContext, assistantPanel, sdkConfig, bookingOfferingPresets, siteStyleAccess, activeTab, onTabChange, onClose, onFooterSaved, viewportMode, viewportWidth, zoom, onViewportModeChange, onViewportWidthChange, onZoomChange, }: PreviewEditorSidebarProps): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type ComponentProps, type ReactNode } from 'react';
|
|
2
2
|
import { BlockApiProvider } from '../../../../blocks/src/client';
|
|
3
|
-
import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
|
|
3
|
+
import type { ButtonStyleSelection, ButtonStyleSelectionRepair } from '../../../../theme-core/src/buttons/index';
|
|
4
4
|
import type { FooterLookId, HeaderLayoutStyleSelection, HeaderLogoContext } from '../../../../theme-core/src/site-styles/index';
|
|
5
5
|
import type { EntrySubrouteContextData, BookingOfferingPresetSummary, MediaAssetIndexItem, Theme } from '../../../../blocks/src/index';
|
|
6
6
|
import type { ContentTypeSchema } from '../../../../content-model/src/index';
|
|
@@ -51,6 +51,7 @@ type PreviewShellCommonProps = {
|
|
|
51
51
|
* complete palette state.
|
|
52
52
|
*/
|
|
53
53
|
themeSelectionButtonStyleSelection?: ButtonStyleSelection | null;
|
|
54
|
+
themeSelectionButtonStyleRepairs?: readonly ButtonStyleSelectionRepair[];
|
|
54
55
|
themeSelectionHeaderSelection?: HeaderLayoutStyleSelection | null;
|
|
55
56
|
themeSelectionFooterLookId?: FooterLookId | null;
|
|
56
57
|
themeSelectionHeaderLogo?: HeaderLogoContext;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type EntrySubrouteContextData, type BookingOfferingPresetSummary, type Theme } from '../../../../blocks/src/index';
|
|
3
|
-
import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
|
|
3
|
+
import type { ButtonStyleSelection, ButtonStyleSelectionRepair } from '../../../../theme-core/src/buttons/index';
|
|
4
4
|
import type { HeaderLogoContext, FooterLookId, HeaderLayoutStyleSelection } from '../../../../theme-core/src/site-styles/index';
|
|
5
5
|
import type { ContentTypeSchema } from '../../../../content-model/src/index';
|
|
6
6
|
import type { ApiClient } from '../../../../api/src/request';
|
|
@@ -27,6 +27,7 @@ type PreviewShellLayoutCommonProps = {
|
|
|
27
27
|
themeSelectionVersion?: number | null;
|
|
28
28
|
themeSelectionUpdatedAt?: string | null;
|
|
29
29
|
themeSelectionButtonStyleSelection?: ButtonStyleSelection | null;
|
|
30
|
+
themeSelectionButtonStyleRepairs?: readonly ButtonStyleSelectionRepair[];
|
|
30
31
|
themeSelectionHeaderSelection?: HeaderLayoutStyleSelection | null;
|
|
31
32
|
themeSelectionFooterLookId?: FooterLookId | null;
|
|
32
33
|
themeSelectionHeaderLogo?: HeaderLogoContext;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ApiClient } from '../../../../api/src/request';
|
|
3
3
|
import type { Theme } from '../../../../blocks/src/index';
|
|
4
|
+
import { type ButtonStyleSelectionRepair } from '../../../../theme-core/src/buttons/index';
|
|
4
5
|
import { type HeaderLogoContext } from '../../../../theme-core/src/site-styles/index';
|
|
5
6
|
import { type StyleConfiguratorInitialSelections } from './styleConfiguratorSnapshot';
|
|
6
7
|
export type StyleConfiguratorProps = Readonly<{
|
|
@@ -13,7 +14,8 @@ export type StyleConfiguratorProps = Readonly<{
|
|
|
13
14
|
selectionUpdatedAt?: string | null;
|
|
14
15
|
/** Server-persisted design selections. */
|
|
15
16
|
initialSelections: StyleConfiguratorInitialSelections & Readonly<Record<string, unknown>>;
|
|
17
|
+
buttonStyleRepairs?: readonly ButtonStyleSelectionRepair[];
|
|
16
18
|
headerLogoContext?: HeaderLogoContext;
|
|
17
19
|
onFocusedSurfaceChange?: (focused: boolean) => void;
|
|
18
20
|
}>;
|
|
19
|
-
export declare function StyleConfigurator({ siteId, apiClient, theme, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, headerLogoContext, onFocusedSurfaceChange, }: StyleConfiguratorProps): React.JSX.Element;
|
|
21
|
+
export declare function StyleConfigurator({ siteId, apiClient, theme, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, buttonStyleRepairs, headerLogoContext, onFocusedSurfaceChange, }: StyleConfiguratorProps): React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SelectionFallbackWarning } from '../../../../theme-core/src/site-styles/previewCompiler';
|
|
2
|
+
type StyleConfiguratorWarningNoticeProps = Readonly<{
|
|
3
|
+
warnings: ReadonlyArray<SelectionFallbackWarning>;
|
|
4
|
+
onDismiss: () => void;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function StyleConfiguratorWarningNotice({ warnings, onDismiss, }: StyleConfiguratorWarningNoticeProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Theme } from '../../../../blocks/src/index';
|
|
2
|
-
import type
|
|
2
|
+
import { type ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
|
|
3
3
|
import type { FooterLookId, HeaderLayoutId, HeaderLogoContext, HeaderStyleId, SiteChromeSurface } from '../../../../theme-core/src/site-styles/index';
|
|
4
4
|
import { type CuratedSiteStyle, type SelectionFallbackWarning, type SiteThemeSelectionsResult, type SiteStyleId } from '../../../../theme-core/src/site-styles/previewCompiler';
|
|
5
5
|
export type SiteStylePreviewSelection = Readonly<{
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiClient, ApiResult } from '../../../api/src/public/index';
|
|
2
|
+
import type { RiverbankClient } from './types';
|
|
3
|
+
type EventSubrouteReadDeps = Readonly<{
|
|
4
|
+
apiClient: ApiClient;
|
|
5
|
+
resilientFetchData: <T>(cacheKey: string, fetcher: (signal: AbortSignal) => Promise<ApiResult<T>>, options: Readonly<{
|
|
6
|
+
signal?: AbortSignal;
|
|
7
|
+
}>) => Promise<T>;
|
|
8
|
+
}>;
|
|
9
|
+
type EventSubrouteReadOperations = Pick<RiverbankClient, 'resolveEventOccurrence' | 'resolveEventRun'>;
|
|
10
|
+
export declare function createEventSubrouteReadOperations(deps: EventSubrouteReadDeps): EventSubrouteReadOperations;
|
|
11
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicWeeklySlotAvailabilityResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicTeamMembersResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, PublicEventsResponse, PublicWholeSeriesOfferingResponse, ResolveEventOccurrenceResponse, RouteDecisionResponse, RouteOutcomeResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, PublicProductCategorySelector } from '../public-api/contracts';
|
|
1
|
+
import type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicWeeklySlotAvailabilityResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicTeamMembersResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, PublicEventsResponse, PublicWholeSeriesOfferingResponse, ResolveEventOccurrenceResponse, ResolveEventRunResponse, RouteDecisionResponse, RouteOutcomeResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, PublicProductCategorySelector } from '../public-api/contracts';
|
|
2
2
|
import type { PublishedRuntimeCacheAdapter, PublishedRuntimeCacheAdapterErrorKind } from './runtimeCachePolicy';
|
|
3
|
-
|
|
3
|
+
import type { EventPageSurfaceSubjectRefWire } from '../../../core/src/index';
|
|
4
|
+
export type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicWeeklySlotAvailabilityResponse, PublicEventsResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicTeamMembersResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, PublicWholeSeriesOfferingResponse, ResolveEventOccurrenceResponse, ResolveEventRunResponse, RouteDecisionResponse, RouteOutcomeResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, } from '../public-api/contracts';
|
|
4
5
|
/**
|
|
5
6
|
* Pagination metadata returned when `includeMeta: true`
|
|
6
7
|
*/
|
|
@@ -561,23 +562,29 @@ export interface RiverbankClient {
|
|
|
561
562
|
* // Resolve occurrence by date
|
|
562
563
|
* const result = await client.resolveEventOccurrence({
|
|
563
564
|
* siteId: 'site-id',
|
|
564
|
-
*
|
|
565
|
+
* subject: { kind: 'eventSeries', eventSeriesId: 'event-series-id' },
|
|
565
566
|
* segment: '2025-01-15',
|
|
566
567
|
* });
|
|
567
568
|
*
|
|
568
569
|
* // Resolve occurrence by UUID
|
|
569
570
|
* const result = await client.resolveEventOccurrence({
|
|
570
571
|
* siteId: 'site-id',
|
|
571
|
-
*
|
|
572
|
+
* subject: { kind: 'eventSeries', eventSeriesId: 'event-series-id' },
|
|
572
573
|
* segment: 'abc123-...',
|
|
573
574
|
* });
|
|
574
575
|
* ```
|
|
575
576
|
*/
|
|
576
577
|
resolveEventOccurrence(params: {
|
|
577
578
|
siteId: string;
|
|
578
|
-
|
|
579
|
+
subject: EventPageSurfaceSubjectRefWire;
|
|
579
580
|
segment: string;
|
|
580
581
|
} & SdkMethodOptions): Promise<ResolveEventOccurrenceResponse>;
|
|
582
|
+
/** Resolve one run slug within a canonical parent Event. */
|
|
583
|
+
resolveEventRun(params: {
|
|
584
|
+
siteId: string;
|
|
585
|
+
subject: EventPageSurfaceSubjectRefWire;
|
|
586
|
+
segment: string;
|
|
587
|
+
} & SdkMethodOptions): Promise<ResolveEventRunResponse>;
|
|
581
588
|
/**
|
|
582
589
|
* Check if a path has a configured redirect rule
|
|
583
590
|
*
|
|
@@ -27,6 +27,6 @@ export { Layout } from './rendering/components/Layout';
|
|
|
27
27
|
export type { LayoutProps, HeaderData, FooterData } from './rendering/components/Layout';
|
|
28
28
|
export type { SdkThemeResponsiveMode, SdkThemeRuntime, } from './rendering/themeRuntime';
|
|
29
29
|
export { PageRenderer, ThemeScope, buildThemeRuntime, RichText, resolveImageUrl, resolveImageUrlWithContext, resolveImageSourceSetWithContext, ImagePresets, } from './rendering';
|
|
30
|
-
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, CollectionContent, ColumnsContent, CtaFullContent, EmbedContent, EventCalendarContent, EventDetailsContent, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FormBlockContent, GiftingContent, HeroContent, HeroMedia, ImageGalleryContent, MediaTextContent, NewsletterSignupContent, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, SystemBlockContentByKind, SystemBlockContentFor, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, VideoGridContent, ImageOptions, ResolveImageUrlContext, ResolveImageSourceSetOptions, ResolvedImageSourceSet, PageOutline, RouteMap, Theme, ThemeTokens, Media, TipTapNode, LinkValue, RichTextPrimitiveProps, } from './rendering';
|
|
30
|
+
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, CollectionContent, ColumnsContent, CtaFullContent, EmbedContent, EventCalendarContent, EventDetailsContent, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FormBlockContent, GiftingContent, HeroContent, HeroMedia, ImageGalleryContent, IntroContent, MediaTextContent, NewsletterSignupContent, OfferingsPreviewContent, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, SystemBlockContentByKind, SystemBlockContentFor, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, VideoGridContent, ImageOptions, ResolveImageUrlContext, ResolveImageSourceSetOptions, ResolvedImageSourceSet, PageOutline, RouteMap, Theme, ThemeTokens, Media, TipTapNode, LinkValue, RichTextPrimitiveProps, } from './rendering';
|
|
31
31
|
export type { BlockOverrideProps, BlockOverrideRegistration, BlockOverrideRegistrations, BlockOverrides, BlockOverrideComponent, CustomBlockOverrideKey, KnownSystemBlockOverrides, KnownBlockOverrideKey, LazyBlockOverrideFactory, LazyBlockOverrideRegistration, StrictBlockOverrideRegistrations, StrictBlockOverrides, SystemBlockOverrideKey, } from './rendering';
|
|
32
32
|
export { defineBlockOverrideRegistrations, defineBlockOverrides, defineLazyBlockOverride, } from './rendering';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { TipTapNode, TipTapMark, RichTextDoc, InlineText, InlineTextAccentTone, InlineTextHighlightTone, InlineTextMark, InlineTextRun, Media, LinkValue, InternalRouteOnlyLinkValue, InternalResolvedLinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, } from './content';
|
|
2
|
-
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CartContent, CardRole, CardStylesContent, CheckoutContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, ContentFrameIntent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, FeatureCardLegacySurfaceRole, FeatureCardSurfaceRole, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, LocationMapContent, LayoutAlign, LayoutWidth, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, NewsletterSignupPreset, ProductDetailContent, ProductListContent, RecurringScheduleContent, SectionStylesContent, SemanticIconId, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, BlockIconValue, FeatureCardIconTreatment, } from './system-block-content';
|
|
2
|
+
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CartContent, CardRole, CardStylesContent, CheckoutContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, ContentFrameIntent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, FeatureCardLegacySurfaceRole, FeatureCardSurfaceRole, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, IntroContent, LocationMapContent, LayoutAlign, LayoutWidth, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, NewsletterSignupPreset, OfferingsPreviewContent, ProductDetailContent, ProductListContent, RecurringScheduleContent, SectionStylesContent, SemanticIconId, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, BlockIconValue, FeatureCardIconTreatment, } from './system-block-content';
|
|
3
3
|
export type { PageOutline, PageRuntimeBoundary, BlockOutline, RouteMap, RouteMapEntry, OccurrenceContextData, EntrySubrouteContextData, } from './page';
|
|
4
4
|
export type { Theme, ThemeTokens } from './theme';
|
|
5
5
|
export type { CustomCssDeclarationsInput, CustomCssRuleInput, CustomCssNestedRuleInput, CustomCssAtRuleInput, KeyframesAtRuleInput, FontFaceAtRuleInput, MediaAtRuleInput, SupportsAtRuleInput, RawAtRuleInput, } from './custom-css';
|
|
@@ -28,16 +28,5 @@ export type RouteMapEntry = string | {
|
|
|
28
28
|
[key: string]: unknown;
|
|
29
29
|
};
|
|
30
30
|
export type RouteMap = Record<string, RouteMapEntry>;
|
|
31
|
-
export type OccurrenceContextData =
|
|
32
|
-
|
|
33
|
-
seriesId: string;
|
|
34
|
-
startsAt: string;
|
|
35
|
-
endsAt: string;
|
|
36
|
-
timeZone: string;
|
|
37
|
-
capacityOverride?: number | null;
|
|
38
|
-
overrides?: Record<string, unknown> | null;
|
|
39
|
-
};
|
|
40
|
-
export type EntrySubrouteContextData = {
|
|
41
|
-
kind: 'event-occurrence';
|
|
42
|
-
occurrence: OccurrenceContextData;
|
|
43
|
-
};
|
|
31
|
+
export type OccurrenceContextData = import('../../../core/src/index').EventOccurrenceContextData;
|
|
32
|
+
export type EntrySubrouteContextData = import('../../../core/src/index').EventPageSubrouteContext;
|
|
@@ -9,6 +9,7 @@ import type { EventRegistrationContent } from './event-registration-content';
|
|
|
9
9
|
export type { EventRegistrationContent } from './event-registration-content';
|
|
10
10
|
import type { Brand, EventCategoryId, RichTextDoc, VenueId } from '../../../core/src/index';
|
|
11
11
|
import type { SiteFooterContent as BlocksSiteFooterContent } from '../../../blocks/src/system/blocks/site-footer';
|
|
12
|
+
import type { EventDetailsContent as BlocksEventDetailsContent } from '../../../blocks/src/system/blocks/event-details';
|
|
12
13
|
import type { EventCalendarContent as BlocksEventCalendarContent } from '../../../blocks/src/system/blocks/events/event-calendar';
|
|
13
14
|
import type { CalendarTabViews as BlocksCalendarTabViews, CalendarView as BlocksCalendarView, ColumnOption as BlocksColumnOption, DisplayMode as BlocksDisplayMode, EventLayout as BlocksEventLayout, FilterAutoShow as BlocksFilterAutoShow, WeekStart as BlocksWeekStart } from '../../../blocks/src/system/blocks/events/shared/types';
|
|
14
15
|
import type { CardStylesContent as BlocksCardStylesContent, ContainerStylesContent as BlocksContainerStylesContent, ContentFrameIntent as BlocksContentFrameIntent, SectionStylesContent as BlocksSectionStylesContent } from '../../../blocks/src/index';
|
|
@@ -158,9 +159,6 @@ export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'acc
|
|
|
158
159
|
* each role; content names the role.
|
|
159
160
|
*/
|
|
160
161
|
export type CardRole = 'none' | 'open' | 'default' | 'alternative';
|
|
161
|
-
export type CardVariantRole = 'default' | 'alternative';
|
|
162
|
-
export type LegacyCardVariantRoleAlias = 'variant1' | 'variant2' | 'statement';
|
|
163
|
-
export type EventCardVariantInput = CardVariantRole | LegacyCardVariantRoleAlias;
|
|
164
162
|
export type EventSurfacePreset = 'course' | 'term' | 'class' | 'workshop' | 'retreat' | 'performance';
|
|
165
163
|
export type EventSurfaceScope = 'all' | 'regularClassSchedule' | 'specialDatedEvents' | 'custom';
|
|
166
164
|
export type EventScheduleScope = 'any' | 'recurring' | 'oneOff';
|
|
@@ -170,17 +168,7 @@ export type EventScheduleScope = 'any' | 'recurring' | 'oneOff';
|
|
|
170
168
|
* eight fields before this. `SiteFooterContent` is aliased for the same reason.
|
|
171
169
|
*/
|
|
172
170
|
export type EventCalendarContent = BlocksEventCalendarContent;
|
|
173
|
-
export type EventDetailsContent =
|
|
174
|
-
heading?: string | null;
|
|
175
|
-
showVenue?: boolean | null;
|
|
176
|
-
showMap?: boolean | null;
|
|
177
|
-
showOtherDates?: boolean | null;
|
|
178
|
-
otherDatesLimit?: '3' | '5' | '10' | null;
|
|
179
|
-
showCost?: boolean | null;
|
|
180
|
-
showAcceptedPasses?: boolean | null;
|
|
181
|
-
showAcceptedMemberships?: boolean | null;
|
|
182
|
-
_sectionStyles?: SectionStylesContent;
|
|
183
|
-
};
|
|
171
|
+
export type EventDetailsContent = BlocksEventDetailsContent;
|
|
184
172
|
export type EventListingContent = {
|
|
185
173
|
heading?: string | null;
|
|
186
174
|
description?: unknown;
|
|
@@ -190,7 +178,7 @@ export type EventListingContent = {
|
|
|
190
178
|
paginationMode?: 'loadMore' | 'seeAllLink' | null;
|
|
191
179
|
seeAllUrl?: string | null;
|
|
192
180
|
loadMoreText?: string | null;
|
|
193
|
-
|
|
181
|
+
_cardStyles?: CardStylesContent;
|
|
194
182
|
buttonVariant?: ButtonVariant | null;
|
|
195
183
|
buttonText?: string | null;
|
|
196
184
|
showVenue?: boolean | null;
|
|
@@ -213,7 +201,7 @@ export type EventSpotlightContent = {
|
|
|
213
201
|
ctaUrl?: LinkValue | string | null;
|
|
214
202
|
layout?: 'grid' | 'stack' | null;
|
|
215
203
|
columns?: '2' | '3' | null;
|
|
216
|
-
|
|
204
|
+
_cardStyles?: CardStylesContent;
|
|
217
205
|
buttonVariant?: ButtonVariant | null;
|
|
218
206
|
buttonText?: string | null;
|
|
219
207
|
showVenue?: boolean | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PageContentResult } from '../rendering/helpers/loadContent';
|
|
2
|
+
export type PageMetadataProjection = Readonly<{
|
|
3
|
+
name: string;
|
|
4
|
+
purpose?: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function projectPageMetadata(content: PageContentResult, preview: boolean): PageMetadataProjection;
|
|
7
|
+
export declare function pageMetadataTitleMode(content: PageContentResult, preview: boolean): 'exact' | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RiverbankClient } from '../client/types';
|
|
2
|
+
import { type LoadContentResult } from '../rendering/helpers/loadContent';
|
|
3
|
+
import type { EntrySubrouteData } from '../routing/resolvePageContent';
|
|
4
|
+
type EventSubrouteClient = Pick<RiverbankClient, 'resolveEventOccurrence' | 'resolveEventRun'>;
|
|
5
|
+
export declare function resolveEventPageSubroute(input: Readonly<{
|
|
6
|
+
siteId: string;
|
|
7
|
+
client: EventSubrouteClient;
|
|
8
|
+
content: LoadContentResult;
|
|
9
|
+
kind?: string | null;
|
|
10
|
+
segment: string;
|
|
11
|
+
}>): Promise<EntrySubrouteData | null>;
|
|
12
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import type { MediaAssetIndexItem, SiteFooterContent, SiteHeaderContent } from '
|
|
|
4
4
|
import type { CompiledBoundaryRuntime } from '../../../theme-core/src/site-styles/index';
|
|
5
5
|
import type { BlockFieldConfig as SdkBlockFieldConfig, BlockFieldOptionsMap as SdkBlockFieldOptionsMap, ContentConfig as SdkContentConfig, ContainerOptionsConfig as SdkContainerOptionsConfig, FieldSelectOption as SdkFieldSelectOption, SdkCustomBlock, SdkThemeConfig, SdkThemePalette, SectionBackground as SdkSectionBackground, SectionOptionsConfig as SdkSectionOptionsConfig, SiteStyleConfig as SdkSiteStyleConfig } from '../config/types';
|
|
6
6
|
import type { PublicTeamMemberBlockItem } from './teamMemberContracts';
|
|
7
|
+
import type { ResolveEventSubrouteResponse } from './eventSubrouteContracts';
|
|
7
8
|
export type { PublicTeamMemberBlockItem, PublicTeamMemberPhoto, PublicTeamMemberSummary, } from './teamMemberContracts';
|
|
8
9
|
export type { PublicWholeSeriesOfferingResponse } from './wholeSeriesContracts';
|
|
9
10
|
export type RuntimeSiteSdkConfig = {
|
|
@@ -268,7 +269,7 @@ export type SiteRouteRecord = {
|
|
|
268
269
|
publishedAt?: string | null;
|
|
269
270
|
};
|
|
270
271
|
export type SiteBookingOfferingPresetSummary = ApiSiteBookingOfferingPresetSummary;
|
|
271
|
-
type SiteSelectionResponse = Pick<ApiSiteBySlugResponse, 'theme' | 'themeId' | 'selectionId' | 'selectionVersion' | 'selectionUpdatedAt' | 'selectionButtonStyleSelection' | 'selectionHeaderSelection' | 'selectionFooterLookId'>;
|
|
272
|
+
type SiteSelectionResponse = Pick<ApiSiteBySlugResponse, 'theme' | 'themeId' | 'selectionId' | 'selectionVersion' | 'selectionUpdatedAt' | 'selectionButtonStyleSelection' | 'selectionButtonStyleRepairs' | 'selectionHeaderSelection' | 'selectionFooterLookId'>;
|
|
272
273
|
export type SiteResponse = SiteSelectionResponse & {
|
|
273
274
|
site: {
|
|
274
275
|
id: string;
|
|
@@ -638,18 +639,7 @@ export type PublicMembershipsResponse = {
|
|
|
638
639
|
eligibleCategoryNames: string[];
|
|
639
640
|
}>;
|
|
640
641
|
};
|
|
641
|
-
export type ResolveEventOccurrenceResponse
|
|
642
|
-
occurrence: {
|
|
643
|
-
id: string;
|
|
644
|
-
seriesId: string;
|
|
645
|
-
startsAt: string;
|
|
646
|
-
endsAt: string;
|
|
647
|
-
timeZone: string;
|
|
648
|
-
status: string;
|
|
649
|
-
capacityOverride: number | null;
|
|
650
|
-
overridesJson: Record<string, unknown>;
|
|
651
|
-
} | null;
|
|
652
|
-
};
|
|
642
|
+
export type { ResolveEventOccurrenceResponse, ResolveEventRunResponse, ResolveEventSubrouteResponse, } from './eventSubrouteContracts';
|
|
653
643
|
export type CheckRedirectResponse = {
|
|
654
644
|
redirectTo: string | null;
|
|
655
645
|
status?: number;
|
|
@@ -705,7 +695,7 @@ export type SitemapRoutesResponse = {
|
|
|
705
695
|
pageSize: number;
|
|
706
696
|
allowIndexingInProduction: boolean;
|
|
707
697
|
};
|
|
708
|
-
export type PublicEndpointName = 'getSite' | 'getContentByPath' | 'resolveRouteOutcome' | 'resolveRouteDecision' | 'listPublishedEntries' | 'getPublishedEntryPreview' | 'getPublicFormById' | 'listPublicForms' | 'getPublicBookingServices' | 'getPublicWeeklySlotAvailability' | 'getPublicChallenge' | 'listPublicEvents' | 'batchBlockLoaders' | 'listPublicTeamMembers' | 'listPublicProducts' | 'listPublicPasses' | 'listPublicMemberships' | '
|
|
698
|
+
export type PublicEndpointName = 'getSite' | 'getContentByPath' | 'resolveRouteOutcome' | 'resolveRouteDecision' | 'listPublishedEntries' | 'getPublishedEntryPreview' | 'getPublicFormById' | 'listPublicForms' | 'getPublicBookingServices' | 'getPublicWeeklySlotAvailability' | 'getPublicChallenge' | 'listPublicEvents' | 'batchBlockLoaders' | 'listPublicTeamMembers' | 'listPublicProducts' | 'listPublicPasses' | 'listPublicMemberships' | 'resolveEventSubroute' | 'checkRedirect' | 'getRoutableContent' | 'getPublicRoutableContent' | 'getPublicSitemapRoutes';
|
|
709
699
|
export type PublicAPIEndpoints = {
|
|
710
700
|
getSite: APIEndpointBase<never, {
|
|
711
701
|
id?: string;
|
|
@@ -834,11 +824,7 @@ export type PublicAPIEndpoints = {
|
|
|
834
824
|
siteId: string;
|
|
835
825
|
categories?: string;
|
|
836
826
|
}, PublicMembershipsResponse>;
|
|
837
|
-
|
|
838
|
-
siteId: string;
|
|
839
|
-
eventSeriesIds: string;
|
|
840
|
-
segment: string;
|
|
841
|
-
}, ResolveEventOccurrenceResponse>;
|
|
827
|
+
resolveEventSubroute: APIEndpointBase<never, NonNullable<APIEndpoints['resolveEventSubroute']['query']>, ResolveEventSubrouteResponse>;
|
|
842
828
|
checkRedirect: APIEndpointBase<never, {
|
|
843
829
|
site: string;
|
|
844
830
|
path: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { APIEndpoints } from '../../../api/src/index';
|
|
2
|
+
export type ResolveEventSubrouteResponse = NonNullable<APIEndpoints['resolveEventSubroute']['response']>;
|
|
3
|
+
export type ResolveEventOccurrenceResponse = Readonly<{
|
|
4
|
+
occurrence: Extract<ResolveEventSubrouteResponse['subroute'], {
|
|
5
|
+
kind: 'event-occurrence';
|
|
6
|
+
}>['occurrence'] | null;
|
|
7
|
+
}>;
|
|
8
|
+
export type ResolveEventRunResponse = Readonly<{
|
|
9
|
+
run: Extract<ResolveEventSubrouteResponse['subroute'], {
|
|
10
|
+
kind: 'event-run';
|
|
11
|
+
}>['run'] | null;
|
|
12
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiResult, HTTPMethod, PublicAPIEndpoints, PublicEndpointName } from './contracts';
|
|
2
|
-
export declare const PUBLIC_ENDPOINT_NAMES: readonly ["getSite", "getContentByPath", "resolveRouteOutcome", "resolveRouteDecision", "listPublishedEntries", "getPublishedEntryPreview", "getPublicFormById", "listPublicForms", "getPublicBookingServices", "getPublicWeeklySlotAvailability", "getPublicChallenge", "listPublicEvents", "batchBlockLoaders", "listPublicTeamMembers", "listPublicProducts", "listPublicPasses", "listPublicMemberships", "
|
|
2
|
+
export declare const PUBLIC_ENDPOINT_NAMES: readonly ["getSite", "getContentByPath", "resolveRouteOutcome", "resolveRouteDecision", "listPublishedEntries", "getPublishedEntryPreview", "getPublicFormById", "listPublicForms", "getPublicBookingServices", "getPublicWeeklySlotAvailability", "getPublicChallenge", "listPublicEvents", "batchBlockLoaders", "listPublicTeamMembers", "listPublicProducts", "listPublicPasses", "listPublicMemberships", "resolveEventSubroute", "checkRedirect", "getRoutableContent", "getPublicRoutableContent", "getPublicSitemapRoutes"];
|
|
3
3
|
export type ApiClient = <E extends PublicEndpointName>(params: {
|
|
4
4
|
endpoint: E;
|
|
5
5
|
params?: PublicAPIEndpoints[E]['query'];
|
|
@@ -1,2 +1,46 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
export type BlockApiAuth = Readonly<{
|
|
3
|
+
type: 'api-key';
|
|
4
|
+
key: string;
|
|
5
|
+
}> | Readonly<{
|
|
6
|
+
type: 'bearer';
|
|
7
|
+
token: string;
|
|
8
|
+
}> | Readonly<{
|
|
9
|
+
type: 'none';
|
|
10
|
+
}>;
|
|
11
|
+
export type BlockApiConfig = Readonly<{
|
|
12
|
+
baseUrl: string;
|
|
13
|
+
auth: BlockApiAuth;
|
|
14
|
+
siteId?: string;
|
|
15
|
+
isPreview?: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
export type NewsletterSubscribeInput = Readonly<{
|
|
18
|
+
email: string;
|
|
19
|
+
firstName?: string;
|
|
20
|
+
lastName?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
company?: string;
|
|
23
|
+
phone?: string;
|
|
24
|
+
target: Readonly<{
|
|
25
|
+
tag: 'published_block_ref';
|
|
26
|
+
destinationRef: Readonly<{
|
|
27
|
+
tag: 'block_ref';
|
|
28
|
+
blockId: string;
|
|
29
|
+
}>;
|
|
30
|
+
}>;
|
|
31
|
+
tags?: string[];
|
|
32
|
+
}>;
|
|
33
|
+
export type NewsletterSubscribeResult = Readonly<{
|
|
34
|
+
subscribed: boolean;
|
|
35
|
+
requiresConfirmation?: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
export declare function BlockApiProvider({ config, children, }: Readonly<{
|
|
38
|
+
config: BlockApiConfig;
|
|
39
|
+
children: ReactNode;
|
|
40
|
+
}>): ReactElement;
|
|
41
|
+
/** Narrow client contract for custom newsletter override renderers. */
|
|
42
|
+
export declare function useNewsletterBlockApi(): Readonly<{
|
|
43
|
+
subscribeNewsletter(input: NewsletterSubscribeInput): Promise<NewsletterSubscribeResult>;
|
|
44
|
+
}>;
|
|
1
45
|
export declare const clientComponentRegistry: Record<string, unknown>;
|
|
2
46
|
export { BlocksIslandsHydrator } from './islands/BlocksIslandsHydrator';
|
|
@@ -20,7 +20,7 @@ export type { LoadPageParams, LoadPageResult } from './helpers/loadPage';
|
|
|
20
20
|
export { loadContent, isPageContent, isEntryContent, isPageSurfaceContent, } from './helpers/loadContent';
|
|
21
21
|
export type { LoadContentParams, LoadContentResult, ContentEntryData, PagePreviewMetadata, SiteData, } from './helpers/loadContent';
|
|
22
22
|
export type { BlockLoaderMap, DataLoaderContext, DataLoaderFn, DataLoaderOverrides, DataLoaderPreviewStage, DataLoaderRenderTarget, DataLoaderSearchParams, DataLoaderValue, } from '../data/types';
|
|
23
|
-
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CardStylesContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, ContentFrameIntent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, CardRole, FeatureCardLegacySurfaceRole, FeatureCardSurfaceRole, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, LayoutAlign, LayoutWidth, Media, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, NewsletterSignupPreset, RichTextDoc, TipTapNode, TipTapMark, LinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, PageOutline, BlockOutline, RouteMap, RouteMapEntry, OccurrenceContextData, EntrySubrouteContextData, Theme, ThemeTokens, SectionStylesContent, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, MediaAssetIndexItem, ImageOptions, ResolveImageUrlContext, ResolveImageUrlContextInput, ResolveImageSourceSetOptions, ResolvedImageSourceSet, } from '../contracts';
|
|
23
|
+
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CardStylesContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, ContentFrameIntent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, CardRole, FeatureCardLegacySurfaceRole, FeatureCardSurfaceRole, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, IntroContent, LayoutAlign, LayoutWidth, Media, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, NewsletterSignupPreset, OfferingsPreviewContent, RichTextDoc, TipTapNode, TipTapMark, LinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, PageOutline, BlockOutline, RouteMap, RouteMapEntry, OccurrenceContextData, EntrySubrouteContextData, Theme, ThemeTokens, SectionStylesContent, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, MediaAssetIndexItem, ImageOptions, ResolveImageUrlContext, ResolveImageUrlContextInput, ResolveImageSourceSetOptions, ResolvedImageSourceSet, } from '../contracts';
|
|
24
24
|
export { ImagePresets } from '../contracts';
|
|
25
25
|
export { RichText } from './primitives/RichText';
|
|
26
26
|
export { resolveImageUrl, resolveImageUrlWithContext, resolveImageSourceSetWithContext, } from './image';
|
|
@@ -27,7 +27,7 @@ export type ShouldAttemptEntrySubrouteArgs = {
|
|
|
27
27
|
entryTypeKey: string | null;
|
|
28
28
|
segment: string;
|
|
29
29
|
};
|
|
30
|
-
export type KnownEntrySubrouteKind = 'event-occurrence';
|
|
30
|
+
export type KnownEntrySubrouteKind = 'event-occurrence' | 'event-run';
|
|
31
31
|
/**
|
|
32
32
|
* Parse a path into parent path and last segment.
|
|
33
33
|
* Returns null when no parent/segment split exists.
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Resolves URL segments like "2025-01-15" or "abc123-uuid" to event occurrence data.
|
|
5
5
|
*/
|
|
6
6
|
import type { RiverbankClient, ResolveEventOccurrenceResponse } from '../client/types';
|
|
7
|
+
import type { EventPageSurfaceSubjectRefWire } from '../../../core/src/index';
|
|
7
8
|
import { isISODateString, isUUID, isValidSegment } from './segmentValidators';
|
|
8
9
|
/**
|
|
9
10
|
* Data for a resolved event occurrence
|
|
@@ -32,9 +33,9 @@ export type ResolveOccurrenceParams = {
|
|
|
32
33
|
*/
|
|
33
34
|
siteId: string;
|
|
34
35
|
/**
|
|
35
|
-
* Event
|
|
36
|
+
* Canonical Event page subject that owns the occurrence.
|
|
36
37
|
*/
|
|
37
|
-
|
|
38
|
+
subject: EventPageSurfaceSubjectRefWire;
|
|
38
39
|
/**
|
|
39
40
|
* URL segment to resolve - either a date (YYYY-MM-DD) or UUID
|
|
40
41
|
*/
|
|
@@ -56,7 +57,7 @@ export type ResolveOccurrenceParams = {
|
|
|
56
57
|
* const result = await resolveOccurrence({
|
|
57
58
|
* client,
|
|
58
59
|
* siteId: 'your-site-id',
|
|
59
|
-
*
|
|
60
|
+
* subject: pageSurface.subject,
|
|
60
61
|
* segment: params.occurrence, // e.g., "2025-01-15"
|
|
61
62
|
* });
|
|
62
63
|
*
|
|
@@ -7,12 +7,16 @@
|
|
|
7
7
|
* Both SDK and frontend inject their own auth/loaders, but share the same resolution logic.
|
|
8
8
|
*/
|
|
9
9
|
import type { ContentTypeRoutingInfo } from './contentTypeResolver';
|
|
10
|
-
import type { ResolveEventOccurrenceResponse } from '../client/types';
|
|
10
|
+
import type { ResolveEventOccurrenceResponse, ResolveEventRunResponse } from '../client/types';
|
|
11
11
|
export type OccurrenceData = NonNullable<ResolveEventOccurrenceResponse['occurrence']>;
|
|
12
|
-
export type
|
|
12
|
+
export type EventRunData = NonNullable<ResolveEventRunResponse['run']>;
|
|
13
|
+
export type EntrySubrouteData = Readonly<{
|
|
13
14
|
kind: 'event-occurrence';
|
|
14
15
|
occurrence: OccurrenceData;
|
|
15
|
-
}
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
kind: 'event-run';
|
|
18
|
+
run: EventRunData;
|
|
19
|
+
}>;
|
|
16
20
|
export type PublicLoadStage = 'site_lookup' | 'content_lookup' | 'entry_subroute_lookup' | 'redirect_lookup' | 'content_normalization';
|
|
17
21
|
export type PublicContentLoadError = {
|
|
18
22
|
kind: 'timeout';
|
|
@@ -44,7 +44,7 @@ export type ContextualButtonResolution = Readonly<{
|
|
|
44
44
|
}> | Readonly<{
|
|
45
45
|
kind: 'repaired';
|
|
46
46
|
requestedRole: VariantRole;
|
|
47
|
-
candidate: 'surface-outline' | VariantRole;
|
|
47
|
+
candidate: 'contextual-hover' | 'surface-outline' | VariantRole;
|
|
48
48
|
states: ResolvedButtonColourStates;
|
|
49
49
|
focusIndicator: ResolvedButtonFocusIndicator;
|
|
50
50
|
boundary: Readonly<{
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ButtonColourPalette, type KnownButtonSurface } from './buttonColourContract';
|
|
2
|
+
import { type ContextualButtonHover, type OpaqueButtonColourToken } from './types';
|
|
3
|
+
type ShadeDirection = ContextualButtonHover['fallbackDirection'];
|
|
4
|
+
export type ContextualHoverResolution = Readonly<{
|
|
5
|
+
kind: 'resolved';
|
|
6
|
+
token: OpaqueButtonColourToken;
|
|
7
|
+
direction: ShadeDirection;
|
|
8
|
+
evidence: 'known-surface' | 'fallback-direction';
|
|
9
|
+
}> | Readonly<{
|
|
10
|
+
kind: 'unavailable';
|
|
11
|
+
reason: 'no-distinct-shade' | 'no-text-safe-candidate' | 'no-surface-safe-candidate';
|
|
12
|
+
}>;
|
|
13
|
+
export type ButtonContextualHoverRepair = Readonly<{
|
|
14
|
+
kind: 'preferred-token-replaced';
|
|
15
|
+
preferredToken: OpaqueButtonColourToken;
|
|
16
|
+
contextualToken: OpaqueButtonColourToken;
|
|
17
|
+
}>;
|
|
18
|
+
export type ContextualHoverPreferenceResolution = Readonly<{
|
|
19
|
+
kind: 'resolved';
|
|
20
|
+
token: OpaqueButtonColourToken;
|
|
21
|
+
repair: ButtonContextualHoverRepair | null;
|
|
22
|
+
}> | Extract<ContextualHoverResolution, {
|
|
23
|
+
kind: 'unavailable';
|
|
24
|
+
}>;
|
|
25
|
+
export declare function resolveContextualHoverPreference(input: Readonly<{
|
|
26
|
+
instruction: ContextualButtonHover;
|
|
27
|
+
palette: ButtonColourPalette;
|
|
28
|
+
surface?: KnownButtonSurface;
|
|
29
|
+
}>): ContextualHoverPreferenceResolution;
|
|
30
|
+
/**
|
|
31
|
+
* Resolves semantic shade movement from real palette steps. The persisted
|
|
32
|
+
* instruction owns the colour family and deterministic unknown-surface
|
|
33
|
+
* fallback; a proven surface may select the opposite direction when it gives
|
|
34
|
+
* the button stronger separation while retaining the shared contrast contract.
|
|
35
|
+
*/
|
|
36
|
+
export declare function resolveContextualHover(input: Readonly<{
|
|
37
|
+
instruction: ContextualButtonHover;
|
|
38
|
+
palette: ButtonColourPalette;
|
|
39
|
+
surface?: KnownButtonSurface;
|
|
40
|
+
}>): ContextualHoverResolution;
|
|
41
|
+
export {};
|
|
@@ -9,6 +9,7 @@ export * from './classNames';
|
|
|
9
9
|
export * from './generateButtonCss';
|
|
10
10
|
export * from './resolveButtonColourStates';
|
|
11
11
|
export * from './buttonSurfaceContext';
|
|
12
|
+
export * from './contextualHover';
|
|
12
13
|
export * from './affordanceIcons';
|
|
13
14
|
export * from './generateDefaultButtonSystem';
|
|
14
15
|
export * from './constants';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ButtonGlobalSettings, ButtonVariant, OpaqueButtonColourToken, VariantEffects } from './types';
|
|
2
|
+
import type { ButtonContextualHoverRepair } from './contextualHover';
|
|
2
3
|
import { type ButtonColourContractError, type ButtonColourPalette, type ButtonVisualState, type KnownButtonSurface } from './buttonColourContract';
|
|
3
4
|
export { BUTTON_CONTRAST_POLICY, BUTTON_VISUAL_STATES, formatButtonColourContractError, type ButtonColourContractError, type ButtonColourPalette, type ButtonVisualState, type KnownButtonSurface, } from './buttonColourContract';
|
|
4
5
|
export { classifyButtonEffectId, type ButtonEffectClassification, } from './effectClassification';
|
|
@@ -40,10 +41,12 @@ export type ButtonColourContractResult = Readonly<{
|
|
|
40
41
|
states: ResolvedButtonColourStates;
|
|
41
42
|
focusIndicator: ResolvedButtonFocusIndicator;
|
|
42
43
|
nonColourEffects: VariantEffects;
|
|
44
|
+
contextualHoverRepair: ButtonContextualHoverRepair | null;
|
|
43
45
|
}> | Readonly<{
|
|
44
46
|
ok: false;
|
|
45
47
|
error: ButtonColourContractError;
|
|
46
48
|
}>;
|
|
49
|
+
export type { ButtonContextualHoverRepair } from './contextualHover';
|
|
47
50
|
export declare function compileButtonColourStates(input: Readonly<{
|
|
48
51
|
variant: ButtonVariant;
|
|
49
52
|
global: ButtonGlobalSettings;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ButtonColourPalette, KnownButtonSurface } from './buttonColourContract';
|
|
2
|
+
import { type ButtonContextualHoverRepair } from './contextualHover';
|
|
3
|
+
import type { ButtonColourTreatment, ButtonGlobalSettings, ButtonVariant } from './types';
|
|
4
|
+
export type ResolvedButtonHoverTreatment = Readonly<{
|
|
5
|
+
treatment: ButtonColourTreatment;
|
|
6
|
+
repair: ButtonContextualHoverRepair | null;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function resolveButtonHoverTreatment(input: Readonly<{
|
|
9
|
+
variant: ButtonVariant;
|
|
10
|
+
global: ButtonGlobalSettings;
|
|
11
|
+
fallback: ButtonColourTreatment;
|
|
12
|
+
palette: ButtonColourPalette;
|
|
13
|
+
surface?: KnownButtonSurface;
|
|
14
|
+
}>): ResolvedButtonHoverTreatment;
|