@riverbankcms/sdk 0.130.0 → 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 +85 -0
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DiEpbOdw.mjs → PreviewEditorSidebar-DKQ5eFK9.mjs} +365 -106
- package/dist/{PreviewEditorUI-C6MvxnIa.mjs → PreviewEditorUI-CNTcOjCC.mjs} +3 -3
- package/dist/{PreviewQueryProvider-C2rnoPz6.mjs → PreviewQueryProvider-D51gQaG3.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DRXA_m5L.mjs → SdkPreviewModeRuntime-DJu3qu33.mjs} +91 -25
- package/dist/{SiteChromeCustomizeContext-BTHdv5_-.mjs → SiteChromeCustomizeContext-2TzT3vbj.mjs} +12577 -9240
- package/dist/_dts/ai/src/contracts/proposals.d.ts +991 -142
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +1092 -148
- package/dist/_dts/api/src/accountApi.d.ts +213 -0
- package/dist/_dts/api/src/accountEndpointDefinitions.d.ts +30 -0
- package/dist/_dts/api/src/accountEndpoints.d.ts +254 -0
- package/dist/_dts/api/src/apiCallParams.d.ts +60 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +18 -24
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +12 -24
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +44 -0
- package/dist/_dts/api/src/bookingSettingsSections.d.ts +9 -0
- package/dist/_dts/api/src/bookingVerticals.d.ts +1 -140
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +47 -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 +885 -721
- package/dist/_dts/api/src/event-destination-policy.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +173 -7
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +58 -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 +12 -4
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -0
- 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/oauth.d.ts +8 -0
- package/dist/_dts/api/src/preview-auth.d.ts +26 -0
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +11 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +29 -16
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +2 -0
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +3 -1
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +48 -0
- package/dist/_dts/api/src/sdkBookingVerticalContracts.d.ts +29 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +14 -45
- package/dist/_dts/api/src/sdkEndpointDefinitions.d.ts +23 -0
- package/dist/_dts/api/src/sdkEventCategoryContracts.d.ts +9 -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 +54 -12
- package/dist/_dts/api/src/settings/permissions.d.ts +2 -2
- package/dist/_dts/api/src/siteApiKeyEndpointDefinitions.d.ts +66 -0
- package/dist/_dts/api/src/siteInfrastructure.d.ts +3 -3
- package/dist/_dts/api/src/siteOnboarding.d.ts +3 -3
- package/dist/_dts/api/src/siteOperations.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +16 -14
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +0 -3
- package/dist/_dts/api/src/types.d.ts +8 -61
- package/dist/_dts/block-form/src/client/index.d.ts +15 -23
- package/dist/_dts/block-form/src/index.d.ts +23 -22
- 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/primitives/layout/Grid.d.ts +18 -1
- package/dist/_dts/blocks/src/subroutes/fold.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1 -0
- 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 +64 -3
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +26 -31
- 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/feature-cards.d.ts +25 -1
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +16 -39
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +0 -1
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +4 -63
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +1 -3
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +13 -2
- package/dist/_dts/blocks/src/system/fields/gridLayout.d.ts +20 -0
- package/dist/_dts/blocks/src/system/node/fragments/classNameBinding.d.ts +6 -1
- package/dist/_dts/blocks/src/system/node/fragments/styledCard.d.ts +31 -0
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +0 -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/useHeadlessBookingFlow.state.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +24 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.validationErrors.d.ts +17 -0
- 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/event-registration.headless.planning.d.ts +1 -1
- 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/eventScope.d.ts +1 -1
- 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/event-registration.server.d.ts +1 -1
- 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 +59 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +4 -1
- 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/components/FeedbackMessage.d.ts +17 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +1 -0
- package/dist/_dts/blocks/src/system/spacing.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/boxStyleClassNames.d.ts +109 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +4 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +40 -3
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +4 -37
- 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-editor/src/components/ContentFieldsForm.d.ts +2 -2
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +10 -6
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +10 -6
- 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/branded.d.ts +4 -0
- package/dist/_dts/core/src/event-page-selection.d.ts +22 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +25 -4
- 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 +6 -0
- package/dist/_dts/core/src/public-event-booking-availability.d.ts +8 -0
- package/dist/_dts/core/src/secret.d.ts +44 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +413 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/preparedManifest.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/blockPayload.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonVariantField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeSelectField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/inline-text/InlineTextField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewGroupOrderField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +1 -1
- 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/blocks/useBlockCustomizeControls.d.ts +1 -1
- 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/EntryEditorPanel.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewSiteFontStorageContext.d.ts +6 -0
- 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/siteFontPreview.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/sdk/contentStorage.d.ts +10 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -1
- package/dist/_dts/preview-next/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +3 -5
- package/dist/_dts/preview-next/src/refresh-contract.d.ts +1 -0
- package/dist/_dts/preview-next/src/route-contract.d.ts +7 -0
- 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 +64 -54
- 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/preview-next/keep-alive.d.ts +1 -1
- 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/components/Layout.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +9 -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/theme-bridge/types.d.ts +4 -2
- 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/core.d.ts +54 -10
- package/dist/_dts/theme-core/src/cards/decorations.d.ts +33 -0
- package/dist/_dts/theme-core/src/cards/generateDefaultCardSystem.d.ts +7 -2
- package/dist/_dts/theme-core/src/cards/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/cards/openCardVariant.d.ts +24 -0
- package/dist/_dts/theme-core/src/cards/roles.d.ts +38 -0
- package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +53 -8
- package/dist/_dts/theme-core/src/cards/types.d.ts +474 -28
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +59 -0
- package/dist/_dts/theme-core/src/header/paintTargets.d.ts +2 -2
- package/dist/_dts/theme-core/src/header/scrollTreatment.d.ts +3 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +30 -138
- package/dist/_dts/theme-core/src/palette/utils/contrast.d.ts +1 -0
- package/dist/_dts/theme-core/src/palette/utils/opaqueSurfaceColor.d.ts +6 -0
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -1
- package/dist/_dts/theme-core/src/schema.d.ts +302 -107
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +111 -102
- package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +12 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +9 -4
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +0 -20
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +111 -102
- package/dist/_dts/theme-core/src/site-styles/buttonSelectionCompiler.d.ts +18 -0
- package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +48 -0
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +21 -385
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +10 -18
- package/dist/_dts/theme-core/src/site-styles/headerLayoutTypes.d.ts +2 -4
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +2 -9
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +0 -2
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignAppearanceAvailability.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +22 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +9 -8
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntentEquality.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +2 -11
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +19 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +9 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +1 -62
- package/dist/_dts/theme-core/src/site-styles/selectionFallbackWarning.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +13 -12
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +62 -39
- package/dist/_dts/theme-core/src/siteChromePlanning.d.ts +9 -9
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +39 -0
- package/dist/_dts/ui/src/navigation-tabs.d.ts +5 -2
- package/dist/client/{DiscountCodeDisclosure-Ur-Xx1U_.mjs → DiscountCodeDisclosure-DO7llLxm.mjs} +12 -12
- package/dist/client/{EventCombined.client-EhscD4U6.mjs → EventCombined.client-xID7zN__.mjs} +38 -50
- package/dist/client/{EventListing.client-Bn26cFTY.mjs → EventListing.client-CriBslp0.mjs} +2 -2
- package/dist/client/{FeedbackMessage-ByMrs3cr.mjs → FeedbackMessage-CtLvvS_d.mjs} +15 -3
- package/dist/client/{LeafletStaticMap-BUw9Ntzr.mjs → LeafletStaticMap-DYmHnM8g.mjs} +1 -1
- package/dist/client/{StepIndicator-BfbdiVQI.mjs → StepIndicator-CGixP_LW.mjs} +3 -3
- package/dist/client/{CourseRegistrationWizard-Bvtz9G9g.mjs → WholeSeriesRegistrationWizard-BEjzSiOA.mjs} +1410 -1247
- package/dist/client/{accordion-CjIeof73.mjs → accordion-CgFbnnnQ.mjs} +1 -1
- package/dist/client/{bookingForm-DwEeovf_.mjs → bookingForm-dUyGpbxc.mjs} +56 -39
- package/dist/client/bookings.mjs +1096 -731
- package/dist/client/{carousel-BMrfgOba.mjs → carousel-BvBwkUzx.mjs} +2 -2
- package/dist/client/{carousel.client-CpwTUhIo.mjs → carousel.client-59G_WMr4.mjs} +1 -1
- package/dist/client/{cart-rXEdxTdb.mjs → cart-DiZENT2E.mjs} +3 -3
- package/dist/client/{checkout-D3JlSzh3.mjs → checkout-Dq13KIgR.mjs} +3 -3
- package/dist/client/client.mjs +10645 -6794
- package/dist/client/{colorStyles-BWpj_h4C.mjs → colorStyles-CrxJrPjJ.mjs} +277 -1
- package/dist/client/{context-CJz1Vlsz.mjs → context-B83PiNzm.mjs} +6 -21
- package/dist/client/{courseRegistration-DO5XvMAA.mjs → courseRegistration-CKC5NmyH.mjs} +11 -5
- package/dist/client/{eventCalendar-DO6rTqCn.mjs → eventCalendar-BF0Jatfw.mjs} +42 -45
- package/dist/client/{eventCombined-bJ3i_ovU.mjs → eventCombined-BuoCF8je.mjs} +3 -3
- package/dist/client/{eventDetails-CCbrXE7o.mjs → eventDetails-CKwh0S9s.mjs} +276 -94
- package/dist/client/{eventListing-Bdlt9YTm.mjs → eventListing-eUxaWFaB.mjs} +3 -3
- package/dist/client/{eventRegistration-B02lt6iY.mjs → eventRegistration-CfkNOkPb.mjs} +630 -138
- package/dist/client/{form-DrUBAAox.mjs → form-C17H1c_H.mjs} +4 -4
- package/dist/client/{headerSection-MzqvHL6T.mjs → headerSection-DEwUmrtt.mjs} +2 -2
- package/dist/client/hooks.mjs +3224 -2485
- package/dist/client/{locationMap-DG8BxTBm.mjs → locationMap-Pf2QwuvW.mjs} +3 -3
- package/dist/client/{media-CNE1Z-wb.mjs → media-BOHuueS5.mjs} +16 -4
- package/dist/client/{newsletterForm-BzO-Td3p.mjs → newsletterForm-BWQAH5Sv.mjs} +4 -4
- package/dist/client/pricing-CVdvbopJ.mjs +195 -0
- package/dist/client/{productDetail-CfQ7rhVK.mjs → productDetail-BZi1Fa_G.mjs} +3 -3
- package/dist/client/{productList-C23rOLUi.mjs → productList-qq-55DNk.mjs} +3 -3
- package/dist/client/{propsDecoder-CAZdhwjs.mjs → propsDecoder-BxmqPKdP.mjs} +859 -650
- package/dist/client/rendering/client.mjs +8658 -7862
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +11437 -7446
- package/dist/client/{scrollToBlock-DSSqVQr1.mjs → scrollToBlock-B3CcKdtG.mjs} +1 -1
- package/dist/client/{shop-BMToKLK7.mjs → shop-DNWJPut5.mjs} +7 -7
- package/dist/client/{shop-commerce-DB4JRKmp.mjs → shop-commerce-BhvQCosS.mjs} +8 -8
- package/dist/client/{shop-commerce-store-BOqSIOuc.mjs → shop-commerce-store-B04sCNnW.mjs} +1 -1
- package/dist/client/{shopShared-B6SK9DZv.mjs → shopShared-DNNgZlmW.mjs} +5 -5
- package/dist/client/{useEventFilters-CULOa4nB.mjs → useEventFilters-CUmhE24_.mjs} +329 -84
- package/dist/client/{usePolling-BGG_8-jl.mjs → usePolling-M5jG675x.mjs} +3 -3
- package/dist/preview-next/before-render.mjs +439 -168
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +7593 -29
- package/dist/preview-next/middleware.mjs +433 -167
- package/dist/{previewAuthStore-_GXFRg2W.mjs → previewAuthStore-BFKd4LrN.mjs} +432 -167
- package/dist/{sdk-runtime-hhSOMShR.mjs → sdk-runtime-BEXb1wqo.mjs} +2 -2
- package/dist/{separator-flRaFc14.mjs → separator-DGMuip1D.mjs} +1 -1
- package/dist/server/components.mjs +9596 -6347
- package/dist/server/config-validation.mjs +3224 -2486
- package/dist/server/config.mjs +3224 -2486
- package/dist/server/data.mjs +3224 -2485
- package/dist/server/index.mjs +486 -200
- package/dist/server/manifest.mjs +0 -1
- package/dist/server/next.mjs +10343 -7188
- package/dist/server/page-converter.mjs +1828 -2094
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +6750 -4519
- package/dist/server/rendering.mjs +9591 -6342
- package/dist/server/routing.mjs +3403 -1594
- package/dist/server/server.mjs +3274 -2671
- package/dist/server/theme-bridge.mjs +2979 -1639
- package/dist/server/theme.mjs +590 -176
- package/dist/styles/index.css +1896 -1129
- package/package.json +3 -2
- package/dist/_dts/api/src/bookingVerticalCatalog.d.ts +0 -746
- package/dist/_dts/block-form/src/client/blockDraftSaveability.d.ts +0 -1
- package/dist/_dts/block-form/src/widgets/index.d.ts +0 -20
- package/dist/_dts/blocks/src/system/runtime/api/requestBody.d.ts +0 -7
- 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/clsx-DgIEfj3H.mjs +0 -16
- package/dist/client/eventProductEligibility-AVxyCB1u.mjs +0 -50
- package/dist/client/pricing-NgK7ozkg.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
package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type CardRole } from "../../../../../../../theme-core/src/cards/index";
|
|
2
3
|
import type { ButtonVariant, CalendarTabViews, CalendarView, ColumnOption, EventLayout, EventScheduleScope, EventSurfaceScope, FilterAutoShow, PublicEvent, WeekStart } from "../../../../blocks/events/shared/types";
|
|
3
4
|
import { type EventListPaginationAction, type EventListPaginationMode, type EventPageSize } from "./listOptions";
|
|
4
5
|
import type { EventListingDisplay } from "../EventListing.interactive";
|
|
@@ -29,6 +30,7 @@ export type EventCollectionSourceProps = Readonly<{
|
|
|
29
30
|
showVenue?: boolean | null;
|
|
30
31
|
showMap?: boolean | null;
|
|
31
32
|
showCapacity?: boolean | null;
|
|
33
|
+
cardRole?: CardRole;
|
|
32
34
|
buttonVariant?: ButtonVariant;
|
|
33
35
|
buttonText?: string;
|
|
34
36
|
emptyMessage?: string;
|
|
@@ -56,6 +58,7 @@ export type EventCollectionDisplay = Readonly<{
|
|
|
56
58
|
showVenue: boolean;
|
|
57
59
|
showMap: boolean;
|
|
58
60
|
showCapacity: boolean;
|
|
61
|
+
cardRole: CardRole;
|
|
59
62
|
buttonVariant: ButtonVariant;
|
|
60
63
|
buttonText: string;
|
|
61
64
|
emptyMessage: string;
|
|
@@ -97,6 +100,12 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
97
100
|
readonly showVenue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
98
101
|
readonly showMap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
99
102
|
readonly showCapacity: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
103
|
+
readonly cardRole: z.ZodOptional<z.ZodEnum<{
|
|
104
|
+
open: "open";
|
|
105
|
+
default: "default";
|
|
106
|
+
none: "none";
|
|
107
|
+
alternative: "alternative";
|
|
108
|
+
}>>;
|
|
100
109
|
readonly buttonVariant: z.ZodOptional<z.ZodEnum<{
|
|
101
110
|
outline: "outline";
|
|
102
111
|
accent: "accent";
|
|
@@ -138,10 +147,11 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
138
147
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
139
148
|
course: "course";
|
|
140
149
|
event: "event";
|
|
141
|
-
performance: "performance";
|
|
142
150
|
class: "class";
|
|
151
|
+
term: "term";
|
|
143
152
|
workshop: "workshop";
|
|
144
153
|
retreat: "retreat";
|
|
154
|
+
performance: "performance";
|
|
145
155
|
}>>;
|
|
146
156
|
eventDestinationMode: z.ZodOptional<z.ZodEnum<{
|
|
147
157
|
"cms-managed": "cms-managed";
|
|
@@ -452,6 +462,24 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
452
462
|
label: z.ZodString;
|
|
453
463
|
}, z.core.$strip>], "kind">;
|
|
454
464
|
requiresRegistration: z.ZodBoolean;
|
|
465
|
+
bookingAvailability: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
466
|
+
kind: z.ZodLiteral<"open">;
|
|
467
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
468
|
+
kind: z.ZodLiteral<"closed">;
|
|
469
|
+
reason: z.ZodEnum<{
|
|
470
|
+
occurrence_cancelled: "occurrence_cancelled";
|
|
471
|
+
occurrence_completed: "occurrence_completed";
|
|
472
|
+
series_draft: "series_draft";
|
|
473
|
+
series_cancelled: "series_cancelled";
|
|
474
|
+
series_completed: "series_completed";
|
|
475
|
+
series_archived: "series_archived";
|
|
476
|
+
parent_archived: "parent_archived";
|
|
477
|
+
parent_inconsistent: "parent_inconsistent";
|
|
478
|
+
not_public: "not_public";
|
|
479
|
+
already_started: "already_started";
|
|
480
|
+
enrollment_closed: "enrollment_closed";
|
|
481
|
+
}>;
|
|
482
|
+
}, z.core.$strip>], "kind">;
|
|
455
483
|
deliveryMode: z.ZodEnum<{
|
|
456
484
|
in_person: "in_person";
|
|
457
485
|
hybrid: "hybrid";
|
|
@@ -498,6 +526,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
498
526
|
active: "active";
|
|
499
527
|
draft: "draft";
|
|
500
528
|
archived: "archived";
|
|
529
|
+
completed: "completed";
|
|
530
|
+
cancelled: "cancelled";
|
|
501
531
|
}>>;
|
|
502
532
|
timeZone: z.ZodString;
|
|
503
533
|
pricing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -845,10 +875,11 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
845
875
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
846
876
|
course: "course";
|
|
847
877
|
event: "event";
|
|
848
|
-
performance: "performance";
|
|
849
878
|
class: "class";
|
|
879
|
+
term: "term";
|
|
850
880
|
workshop: "workshop";
|
|
851
881
|
retreat: "retreat";
|
|
882
|
+
performance: "performance";
|
|
852
883
|
}>>;
|
|
853
884
|
eventDestinationMode: z.ZodOptional<z.ZodEnum<{
|
|
854
885
|
"cms-managed": "cms-managed";
|
|
@@ -1159,6 +1190,24 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1159
1190
|
label: z.ZodString;
|
|
1160
1191
|
}, z.core.$strip>], "kind">;
|
|
1161
1192
|
requiresRegistration: z.ZodBoolean;
|
|
1193
|
+
bookingAvailability: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1194
|
+
kind: z.ZodLiteral<"open">;
|
|
1195
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1196
|
+
kind: z.ZodLiteral<"closed">;
|
|
1197
|
+
reason: z.ZodEnum<{
|
|
1198
|
+
occurrence_cancelled: "occurrence_cancelled";
|
|
1199
|
+
occurrence_completed: "occurrence_completed";
|
|
1200
|
+
series_draft: "series_draft";
|
|
1201
|
+
series_cancelled: "series_cancelled";
|
|
1202
|
+
series_completed: "series_completed";
|
|
1203
|
+
series_archived: "series_archived";
|
|
1204
|
+
parent_archived: "parent_archived";
|
|
1205
|
+
parent_inconsistent: "parent_inconsistent";
|
|
1206
|
+
not_public: "not_public";
|
|
1207
|
+
already_started: "already_started";
|
|
1208
|
+
enrollment_closed: "enrollment_closed";
|
|
1209
|
+
}>;
|
|
1210
|
+
}, z.core.$strip>], "kind">;
|
|
1162
1211
|
deliveryMode: z.ZodEnum<{
|
|
1163
1212
|
in_person: "in_person";
|
|
1164
1213
|
hybrid: "hybrid";
|
|
@@ -1205,6 +1254,8 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1205
1254
|
active: "active";
|
|
1206
1255
|
draft: "draft";
|
|
1207
1256
|
archived: "archived";
|
|
1257
|
+
completed: "completed";
|
|
1258
|
+
cancelled: "cancelled";
|
|
1208
1259
|
}>>;
|
|
1209
1260
|
timeZone: z.ZodString;
|
|
1210
1261
|
pricing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1557,6 +1608,12 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1557
1608
|
readonly showVenue: z.ZodBoolean;
|
|
1558
1609
|
readonly showMap: z.ZodBoolean;
|
|
1559
1610
|
readonly showCapacity: z.ZodBoolean;
|
|
1611
|
+
readonly cardRole: z.ZodEnum<{
|
|
1612
|
+
open: "open";
|
|
1613
|
+
default: "default";
|
|
1614
|
+
none: "none";
|
|
1615
|
+
alternative: "alternative";
|
|
1616
|
+
}>;
|
|
1560
1617
|
readonly buttonVariant: z.ZodEnum<{
|
|
1561
1618
|
outline: "outline";
|
|
1562
1619
|
accent: "accent";
|
|
@@ -6,7 +6,10 @@ import type { CardOrientation, EventLayout, PublicEvent } from '../../../../bloc
|
|
|
6
6
|
/** Day names starting from Sunday — kept for back-compat re-export. */
|
|
7
7
|
export { DAY_NAMES, MONTH_NAMES } from '../../../../../../../calendar/src/index';
|
|
8
8
|
export type { WeekStart } from '../../../../../../../calendar/src/index';
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Column class mappings for grid layouts, derived from the canonical
|
|
11
|
+
* responsive column ladder (see gridUserColumnLadder).
|
|
12
|
+
*/
|
|
10
13
|
export declare const COLUMN_CLASSES: Record<string, string>;
|
|
11
14
|
/**
|
|
12
15
|
* Build container class based on layout mode
|
|
@@ -13,7 +13,7 @@ export type MagicLinkFormProps = {
|
|
|
13
13
|
/** Called when successfully sent (optional) */
|
|
14
14
|
onSuccess?: () => void;
|
|
15
15
|
/** CSS class prefix for styling (e.g., 'cp' for customer portal, 'er' for event registration, 'cr' for course registration) */
|
|
16
|
-
classPrefix?: 'cp' | 'er' | 'cr';
|
|
16
|
+
classPrefix?: 'cp' | 'er' | 'cr' | 'er-whole-series';
|
|
17
17
|
/** Whether to show compact/inline styling */
|
|
18
18
|
compact?: boolean;
|
|
19
19
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
type BlockDiscountCodeSurface = '
|
|
2
|
+
type BlockDiscountCodeSurface = 'event-registration' | 'whole-series-registration';
|
|
3
3
|
export type DiscountCodeDisclosureSurface = BlockDiscountCodeSurface | 'theme-form';
|
|
4
4
|
export declare const BLOCK_DISCOUNT_CODE_DISCLOSURE_CLASSES: {
|
|
5
|
-
readonly '
|
|
6
|
-
readonly root: "
|
|
7
|
-
readonly toggle: "
|
|
8
|
-
readonly form: "
|
|
9
|
-
readonly label: "
|
|
10
|
-
readonly row: "
|
|
11
|
-
readonly input: "
|
|
12
|
-
readonly apply: "
|
|
13
|
-
readonly remove: "
|
|
14
|
-
readonly hint: "
|
|
15
|
-
readonly feedback: "
|
|
5
|
+
readonly 'whole-series-registration': {
|
|
6
|
+
readonly root: "er-whole-series-discount";
|
|
7
|
+
readonly toggle: "er-whole-series-discount__toggle";
|
|
8
|
+
readonly form: "er-whole-series-discount__form";
|
|
9
|
+
readonly label: "er-whole-series-discount__label";
|
|
10
|
+
readonly row: "er-whole-series-discount__row";
|
|
11
|
+
readonly input: "er-whole-series-discount__input";
|
|
12
|
+
readonly apply: "er-whole-series-discount__apply";
|
|
13
|
+
readonly remove: "er-whole-series-discount__remove";
|
|
14
|
+
readonly hint: "er-whole-series-discount__hint";
|
|
15
|
+
readonly feedback: "er-whole-series-discount__feedback";
|
|
16
16
|
};
|
|
17
17
|
readonly 'event-registration': {
|
|
18
18
|
readonly root: "er-discount";
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
export type FeedbackTone = 'info' | 'success' | 'warning' | 'error';
|
|
3
3
|
export type FeedbackLiveMode = 'off' | 'polite' | 'assertive';
|
|
4
|
+
/**
|
|
5
|
+
* How loudly a feedback message presents itself. Orthogonal to tone: tone says
|
|
6
|
+
* what kind of message it is, treatment says how much room it takes up.
|
|
7
|
+
*
|
|
8
|
+
* - `panel` — the alert box. The default, and what every existing call site
|
|
9
|
+
* gets. Suits a genuine failure: a declined payment, a lost submission.
|
|
10
|
+
* - `field-note` — a quiet margin note attached to the control or group it
|
|
11
|
+
* describes. Suits inline validation, where the user has simply not finished
|
|
12
|
+
* something yet.
|
|
13
|
+
*
|
|
14
|
+
* Site styles own each treatment's appearance; the CSS is generated in
|
|
15
|
+
* theme-core (`status/generateStatusCss.ts`) from theme tokens, so a block
|
|
16
|
+
* only ever names the treatment.
|
|
17
|
+
*/
|
|
18
|
+
export type FeedbackTreatment = 'panel' | 'field-note';
|
|
4
19
|
export type FeedbackMessageProps = Readonly<{
|
|
5
20
|
tone: FeedbackTone;
|
|
21
|
+
treatment?: FeedbackTreatment;
|
|
6
22
|
children: ReactNode;
|
|
7
23
|
className?: string;
|
|
8
24
|
id?: string;
|
|
@@ -12,4 +28,4 @@ export type FeedbackMessageProps = Readonly<{
|
|
|
12
28
|
role?: 'alert' | 'status';
|
|
13
29
|
live?: FeedbackLiveMode;
|
|
14
30
|
}>;
|
|
15
|
-
export declare function FeedbackMessage({ tone, children, className, id, title, titleClassName, bodyClassName, role, live, }: FeedbackMessageProps): import("react").JSX.Element;
|
|
31
|
+
export declare function FeedbackMessage({ tone, treatment, children, className, id, title, titleClassName, bodyClassName, role, live, }: FeedbackMessageProps): import("react").JSX.Element;
|
|
@@ -15,7 +15,7 @@ export type { BookingOptionGroupViewModel, BookingOptionListProps, } from './Boo
|
|
|
15
15
|
export { FieldValidationMessage, getFieldValidationControlProps, } from './FieldValidationMessage';
|
|
16
16
|
export type { FieldValidationControlInput, FieldValidationControlProps, FieldValidationMessageProps, } from './FieldValidationMessage';
|
|
17
17
|
export { FeedbackMessage } from './FeedbackMessage';
|
|
18
|
-
export type { FeedbackLiveMode, FeedbackMessageProps, FeedbackTone } from './FeedbackMessage';
|
|
18
|
+
export type { FeedbackLiveMode, FeedbackMessageProps, FeedbackTone, FeedbackTreatment, } from './FeedbackMessage';
|
|
19
19
|
export { LoggedInAsUser } from './LoggedInAsUser';
|
|
20
20
|
export { StateIcon } from './StateIcon';
|
|
21
21
|
export type { LoggedInAsUserProps } from './LoggedInAsUser';
|
|
@@ -13,4 +13,5 @@ export type UseWaitlistClaimDeps = Readonly<{
|
|
|
13
13
|
useBlockApi: typeof useBlockApi;
|
|
14
14
|
}>;
|
|
15
15
|
export declare function useWaitlistClaim(): UseWaitlistClaimResult;
|
|
16
|
+
export declare function useWaitlistClaimForToken(token: string | null): UseWaitlistClaimResult;
|
|
16
17
|
export declare function useWaitlistClaimWithDeps(deps: UseWaitlistClaimDeps): UseWaitlistClaimResult;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* 2. TypeScript will error until you update both spacing maps
|
|
22
22
|
* 3. No way to get out of sync
|
|
23
23
|
*/
|
|
24
|
-
declare const SEMANTIC_SPACING_VALUES: readonly ["none", "compact", "cozy", "medium", "comfortable", "spacious"];
|
|
24
|
+
export declare const SEMANTIC_SPACING_VALUES: readonly ["none", "compact", "cozy", "medium", "comfortable", "spacious"];
|
|
25
25
|
/**
|
|
26
26
|
* Semantic spacing values used across the block system.
|
|
27
27
|
* These abstract away the specific CSS classes and provide a consistent vocabulary.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { type CardRole } from "../../../../../../theme-core/src/cards/index";
|
|
2
|
+
/**
|
|
3
|
+
* @file The one place box-style content becomes CSS classes.
|
|
4
|
+
*
|
|
5
|
+
* `boxStyles.all` runs this for the binding pipeline, and the React nodes that
|
|
6
|
+
* render a card outside that pipeline (offerings-preview) call it directly, so
|
|
7
|
+
* there is a single card-class emission path rather than copies that drift.
|
|
8
|
+
*/
|
|
9
|
+
/** The elevation class an elevated box gets when the theme defines a shadow. */
|
|
10
|
+
export declare const RAISED_SHADOW_CLASS = "rb-shadow-md";
|
|
11
|
+
/** Radius values to their `rb-*` classes (defined in `rb-utilities.css`). */
|
|
12
|
+
export declare const ROUNDED_CLASSES: Readonly<Record<string, string>>;
|
|
13
|
+
export declare const fixedFrameScopeClass = "rb-bg-motion-fixed-frame-scope";
|
|
14
|
+
export declare function hasFixedFrameBackgroundMotion(value: unknown): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The stable per-theme class for a card role. Generated card CSS emits these
|
|
17
|
+
* aliases alongside each `.card-{id}` rule, so content addresses "this site
|
|
18
|
+
* style's open card" without knowing which variant implements it.
|
|
19
|
+
*/
|
|
20
|
+
export declare function cardRoleClass(role: Exclude<CardRole, "none">): string;
|
|
21
|
+
/**
|
|
22
|
+
* The role class for a card slot the *block* owns structurally, where a Look
|
|
23
|
+
* may still name the surface.
|
|
24
|
+
*
|
|
25
|
+
* Some layouts have more than one card slot and decide themselves which one is
|
|
26
|
+
* the statement — the featured-editorial testimonials field is a lead voice
|
|
27
|
+
* beside its supporting voices, and that is structure, not composition. Those
|
|
28
|
+
* slots still have to honour a Look that picks a surface, or a role-picking
|
|
29
|
+
* Look would silently no-op under the layout. So the slot carries a default
|
|
30
|
+
* role and the Look's compiled role wins over it when there is one.
|
|
31
|
+
*
|
|
32
|
+
* An explicit `none` is honoured as boxlessness and emits no class, matching
|
|
33
|
+
* how the composite emitter reads it.
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* The role a card renders with, and the one place a set of card styles becomes
|
|
37
|
+
* a role.
|
|
38
|
+
*
|
|
39
|
+
* Precedence: a per-item override, then the `role` a Look or semantic field
|
|
40
|
+
* compiled onto the block's card styles. Persisted inputs are normalized at
|
|
41
|
+
* this boundary because raw block records do not pass through the theme schema.
|
|
42
|
+
*/
|
|
43
|
+
export declare function resolveCardRoleForBoxStyles(input: Record<string, unknown>, override: CardRole | null | undefined): CardRole | null;
|
|
44
|
+
/**
|
|
45
|
+
* Parse a block's own per-item surface vocabulary into a card role. The alias
|
|
46
|
+
* map is declared by the block (its persisted values are its own history), and
|
|
47
|
+
* `normalizeCardRole` remains the one untrusted-input boundary after that.
|
|
48
|
+
*/
|
|
49
|
+
export declare function resolveItemCardRole(value: unknown, aliases: Readonly<Record<string, string>> | undefined): CardRole | null;
|
|
50
|
+
/** The border widths `CardStylesContent['border']` can carry. */
|
|
51
|
+
export type BoxBorderWidth = "none" | "1" | "2" | "3";
|
|
52
|
+
/**
|
|
53
|
+
* A box border after the one legacy shape has been normalized away, parsed
|
|
54
|
+
* into the vocabulary the field actually declares. The record arrives here as
|
|
55
|
+
* raw persisted JSON, so parsing is this function's job and no reader
|
|
56
|
+
* downstream repeats it.
|
|
57
|
+
*/
|
|
58
|
+
export type NormalizedBoxBorder = Readonly<{
|
|
59
|
+
/** `null` means the box expresses no opinion and inherits its border. */
|
|
60
|
+
enabled: boolean | null;
|
|
61
|
+
width: BoxBorderWidth | undefined;
|
|
62
|
+
colorToken: string | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
/**
|
|
65
|
+
* A box's border record with `{ width: 'none' }`-without-`enabled` resolved.
|
|
66
|
+
*
|
|
67
|
+
* That shape used to mean two different things to two different readers: the
|
|
68
|
+
* old private offerings emitter read it as border-off, while the shared
|
|
69
|
+
* emitter read it as "no opinion" and left the caller's base `rb-border` in
|
|
70
|
+
* place. Same persisted bytes, opposite answers. A width of `none` says there
|
|
71
|
+
* is no border, so it is read as `enabled: false` here — once, at the one
|
|
72
|
+
* place box-style content is interpreted — and every reader downstream now
|
|
73
|
+
* agrees.
|
|
74
|
+
*
|
|
75
|
+
* Nothing persisted carries the shape (the #1297 usage audit found zero rows;
|
|
76
|
+
* the authoring UI cannot produce it, since the width control is gated on
|
|
77
|
+
* `enabled === true`), so this is boundary hygiene rather than a migration.
|
|
78
|
+
*/
|
|
79
|
+
export declare function normalizeBoxStylesBorder(value: unknown): NormalizedBoxBorder | null;
|
|
80
|
+
/**
|
|
81
|
+
* The class list for a set of box styles: the caller's base class, the border /
|
|
82
|
+
* spacing / elevation / radius overrides the box carries, and its card surface.
|
|
83
|
+
*
|
|
84
|
+
* Pure, so the React nodes that render a card outside the binding pipeline
|
|
85
|
+
* (offerings-preview) share this one emission path with `boxStyles.all` instead
|
|
86
|
+
* of keeping a copy that drifts.
|
|
87
|
+
*/
|
|
88
|
+
export declare function boxStyleClassNames(value: unknown, options: Readonly<{
|
|
89
|
+
axis?: "y" | "all";
|
|
90
|
+
baseClass?: string;
|
|
91
|
+
includeSpacing?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* A card role that wins over the one compiled into the box styles — the
|
|
94
|
+
* per-item override in blocks that let individual cards pick their surface.
|
|
95
|
+
*/
|
|
96
|
+
cardRoleOverride?: CardRole | null;
|
|
97
|
+
/**
|
|
98
|
+
* A structural slot's default surface when neither the item nor compiled
|
|
99
|
+
* card styles names one. An explicit `none` still wins over this fallback.
|
|
100
|
+
*/
|
|
101
|
+
cardRoleFallback?: Exclude<CardRole, "none">;
|
|
102
|
+
/**
|
|
103
|
+
* The elevation class an elevated box gets. Defaults to the standard raised
|
|
104
|
+
* shadow; pass `null` to opt out explicitly (the binding pipeline does that
|
|
105
|
+
* for a theme whose medium shadow is `none`). Omitting it must never
|
|
106
|
+
* silently flatten a raised card, hence the default.
|
|
107
|
+
*/
|
|
108
|
+
raisedClass?: string | null;
|
|
109
|
+
}>): string;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { resolveSurfaceForeground, type ResolvedSurfaceForeground } from '../../../../../../theme-core/src/surfaces/index';
|
|
2
|
+
import type { ThemeHeader } from '../../../../../../theme-core/src/schema';
|
|
1
3
|
import type { TransformContext } from '../core';
|
|
4
|
+
export declare function resolveHeaderLeafTextColor(header: Partial<ThemeHeader> | undefined): NonNullable<ThemeHeader['textColor']>;
|
|
5
|
+
export declare function resolveHeaderRootForeground(header: Partial<ThemeHeader> | undefined, palette: Parameters<typeof resolveSurfaceForeground>[1], isTransparent: boolean): ResolvedSurfaceForeground;
|
|
2
6
|
export declare function resolveSurfaceForegroundStyles(value: unknown, context: TransformContext, options?: Readonly<{
|
|
3
7
|
fallbackToken?: string;
|
|
4
8
|
}>): Record<string, string>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type TransformDefinition } from "./core";
|
|
2
2
|
import type { SemanticSpacing } from "../../spacing";
|
|
3
|
+
import type { CardRole } from "../../../../../theme-core/src/cards/index";
|
|
3
4
|
/**
|
|
4
5
|
* Maps semantic spacing values to CSS-only `rb-*` spacing classes.
|
|
5
6
|
*
|
|
@@ -59,14 +60,50 @@ export declare const boxStylesCompositeTransform: TransformDefinition<{
|
|
|
59
60
|
axis?: "y" | "all";
|
|
60
61
|
baseClass?: string;
|
|
61
62
|
includeSpacing?: boolean;
|
|
63
|
+
cardRoleOverride?: CardRole | null;
|
|
62
64
|
}>;
|
|
63
|
-
|
|
65
|
+
type CardRoleClassOptions = {
|
|
64
66
|
baseClass?: string;
|
|
67
|
+
axis?: "y" | "all";
|
|
68
|
+
/** Where the block's compiled card styles live on the view model. */
|
|
69
|
+
stylesPath?: string;
|
|
70
|
+
/** The block's own per-item surface vocabulary, mapped onto card roles. */
|
|
71
|
+
itemRoleAliases?: Readonly<Record<string, string>>;
|
|
72
|
+
/**
|
|
73
|
+
* `surface` renders the card container (box styles plus the role class);
|
|
74
|
+
* `media` / `content` render the shared child hooks generated card CSS
|
|
75
|
+
* targets, and only while a role is actually in play.
|
|
76
|
+
*/
|
|
77
|
+
emit?: "surface" | "media" | "content";
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Card classes for a block whose items may each pick their own surface.
|
|
81
|
+
*
|
|
82
|
+
* Bound from the per-item role so it can see the repeated item, and reads the
|
|
83
|
+
* block's compiled card styles off the view model — the two live in different
|
|
84
|
+
* binding scopes. Precedence: the Look's block-level role is the base, an
|
|
85
|
+
* explicit per-item role overrides it, and the user's own card fields (border,
|
|
86
|
+
* background, radius) ride along on top as they always have.
|
|
87
|
+
*/
|
|
88
|
+
export declare const cardRoleClassTransform: TransformDefinition<CardRoleClassOptions>;
|
|
89
|
+
/**
|
|
90
|
+
* The role class for a layout's own card slot, bound from the block's compiled
|
|
91
|
+
* card styles so a Look that picks a surface still reaches a slot the layout
|
|
92
|
+
* assigned a default role to.
|
|
93
|
+
*/
|
|
94
|
+
export declare const cardSlotRoleTransform: TransformDefinition<{
|
|
95
|
+
baseClass?: string;
|
|
96
|
+
slotDefault: Exclude<CardRole, "none">;
|
|
65
97
|
}>;
|
|
66
|
-
|
|
98
|
+
type BoxStylesBorderColorOptions = {
|
|
67
99
|
fallbackToken?: string;
|
|
68
100
|
returnEmptyForDefault?: boolean;
|
|
69
|
-
|
|
101
|
+
/** Read card styles here when the bound value is a per-item role. */
|
|
102
|
+
stylesPath?: string;
|
|
103
|
+
/** Map a block's per-item surface vocabulary onto canonical card roles. */
|
|
104
|
+
itemRoleAliases?: Readonly<Record<string, string>>;
|
|
105
|
+
};
|
|
106
|
+
export declare const boxStylesBorderColorTransform: TransformDefinition<BoxStylesBorderColorOptions>;
|
|
70
107
|
type SectionClassNameOptions = {
|
|
71
108
|
baseClass?: string;
|
|
72
109
|
containerStylesPath?: string;
|
|
@@ -9,4 +9,5 @@ import { contentTransforms } from "./content";
|
|
|
9
9
|
import { headerRuntimeTransforms } from "./headerRuntime";
|
|
10
10
|
export declare const builtinTransformDefinitions: import("./core").TransformDefinition<unknown>[];
|
|
11
11
|
export declare const defaultTransforms: import("./core").TransformRegistry;
|
|
12
|
+
export { boxStyleClassNames } from "./_utils/boxStyleClassNames";
|
|
12
13
|
export { formattingTransforms, layoutTransforms, uiTransforms, mediaTransforms, backgroundTransforms, linksTransforms, boxStylesTransforms, contentTransforms, headerRuntimeTransforms, };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type
|
|
3
|
-
import type { ThemeTokens } from '../../theme';
|
|
2
|
+
import { type ThemeHeader } from '../../../../../theme-core/src/schema';
|
|
4
3
|
import { type TransformDefinition } from './core';
|
|
5
4
|
declare const headerLogoClassSchema: z.ZodObject<{
|
|
6
5
|
base: z.ZodOptional<z.ZodString>;
|
|
@@ -13,7 +12,7 @@ export declare const headerLogoTextVisibleTransform: TransformDefinition;
|
|
|
13
12
|
*
|
|
14
13
|
* - `'inline'` → classic variant with the historical logo-left / nav-right row
|
|
15
14
|
* - `'centered'`→ classic variant with a centred (flex-1) nav and a right CTA
|
|
16
|
-
* - `'other'` → not a classic variant (centered/floating
|
|
15
|
+
* - `'other'` → not a classic variant (centered/floating handle it)
|
|
17
16
|
*
|
|
18
17
|
* Consumed by the site-header block's `$when` gates so the two classic rows are
|
|
19
18
|
* mutually exclusive without introducing a new top-level header variant.
|
|
@@ -32,47 +31,15 @@ declare const headerRootClassSchema: z.ZodObject<{
|
|
|
32
31
|
invert: z.ZodOptional<z.ZodString>;
|
|
33
32
|
}, z.core.$strip>;
|
|
34
33
|
type HeaderRootOptions = z.infer<typeof headerRootClassSchema>;
|
|
35
|
-
export
|
|
36
|
-
export declare function resolveBackgroundVisualStyles(backgroundColor: string | undefined, tokens: ThemeTokens, defaultToken?: string): {
|
|
34
|
+
export declare function resolveBackgroundVisualStyles(backgroundColor: string | undefined, defaultToken?: string): {
|
|
37
35
|
backgroundToken: string;
|
|
38
|
-
paletteHex: string | null;
|
|
39
|
-
backgroundHex: string | null;
|
|
40
|
-
isBackgroundDark: boolean;
|
|
41
|
-
textColorToken: "text";
|
|
42
|
-
textColorOverride: string | null;
|
|
43
|
-
isTransparent: boolean;
|
|
44
|
-
} | {
|
|
45
|
-
backgroundToken: string;
|
|
46
|
-
paletteHex: string | undefined;
|
|
47
|
-
backgroundHex: string;
|
|
48
|
-
isBackgroundDark: boolean;
|
|
49
|
-
textColorToken: "text" | undefined;
|
|
50
|
-
textColorOverride: string | null;
|
|
51
36
|
isTransparent: boolean;
|
|
52
37
|
};
|
|
53
|
-
export declare function resolveHeaderVisualStyles(header: Partial<ThemeHeader> | undefined
|
|
54
|
-
backgroundToken: string;
|
|
55
|
-
paletteHex: string | null;
|
|
56
|
-
backgroundHex: string | null;
|
|
57
|
-
isBackgroundDark: boolean;
|
|
58
|
-
textColorToken: "text";
|
|
59
|
-
textColorOverride: string | null;
|
|
60
|
-
isTransparent: boolean;
|
|
61
|
-
} | {
|
|
38
|
+
export declare function resolveHeaderVisualStyles(header: Partial<ThemeHeader> | undefined): {
|
|
62
39
|
backgroundToken: string;
|
|
63
|
-
paletteHex: string | undefined;
|
|
64
|
-
backgroundHex: string;
|
|
65
|
-
isBackgroundDark: boolean;
|
|
66
|
-
textColorToken: "text" | undefined;
|
|
67
|
-
textColorOverride: string | null;
|
|
68
40
|
isTransparent: boolean;
|
|
69
41
|
} | {
|
|
70
42
|
readonly backgroundToken: "transparent";
|
|
71
|
-
readonly paletteHex: null;
|
|
72
|
-
readonly backgroundHex: null;
|
|
73
|
-
readonly isBackgroundDark: false;
|
|
74
|
-
readonly textColorToken: "text";
|
|
75
|
-
readonly textColorOverride: null;
|
|
76
43
|
readonly isTransparent: true;
|
|
77
44
|
};
|
|
78
45
|
export declare const headerRootClassTransform: TransformDefinition<HeaderRootOptions>;
|
|
@@ -100,9 +100,6 @@ export declare const transformDefinitions: {
|
|
|
100
100
|
readonly 'boxStyles.semanticGapValue': TransformDefinition<{
|
|
101
101
|
fallback?: import("../spacing").SemanticSpacing;
|
|
102
102
|
}>;
|
|
103
|
-
readonly 'boxStyles.cardVariantClass': TransformDefinition<{
|
|
104
|
-
baseClass?: string;
|
|
105
|
-
}>;
|
|
106
103
|
};
|
|
107
104
|
export type TransformId = keyof typeof transformDefinitions;
|
|
108
105
|
type OptionsOf<T> = T extends TransformDefinition<infer O> ? O : never;
|
|
@@ -123,7 +120,7 @@ export declare function bindProp(from: string, opts?: {
|
|
|
123
120
|
readonly $bind: {
|
|
124
121
|
readonly pick?: "value" | "context" | "collection" | undefined;
|
|
125
122
|
readonly fallback?: {} | null | undefined;
|
|
126
|
-
readonly transforms?: TransformStep<"string.uppercase" | "value.fallback" | "date.formatShort" | "value.csv" | "layout.maxWidthClass" | "layout.headerRootClass" | "layout.footerRootClass" | "layout.headerRootStyle" | "layout.headerSectionBackground" | "layout.footerRootStyle" | "ui.headerNavLinkClass" | "ui.headingClassFromAlignment" | "ui.bodyClassFromAlignment" | "ui.stackAlignFromAlignment" | "ui.sectionStateTone" | "ui.heroContentWrapperClass" | "ui.heroCtaJustify" | "ui.heroStackJustifyFromVerticalAlignment" | "ui.heroGridClassFromVerticalAlignment" | "ui.conditionalClass" | "ui.twoColumnContainerClass" | "ui.twoColumnFlexBasis" | "media.fromUrl" | "content.interpolateRichTextTokens" | "boxStyles.semanticGap" | "boxStyles.semanticGapValue" | "
|
|
123
|
+
readonly transforms?: TransformStep<"string.uppercase" | "value.fallback" | "date.formatShort" | "value.csv" | "layout.maxWidthClass" | "layout.headerRootClass" | "layout.footerRootClass" | "layout.headerRootStyle" | "layout.headerSectionBackground" | "layout.footerRootStyle" | "ui.headerNavLinkClass" | "ui.headingClassFromAlignment" | "ui.bodyClassFromAlignment" | "ui.stackAlignFromAlignment" | "ui.sectionStateTone" | "ui.heroContentWrapperClass" | "ui.heroCtaJustify" | "ui.heroStackJustifyFromVerticalAlignment" | "ui.heroGridClassFromVerticalAlignment" | "ui.conditionalClass" | "ui.twoColumnContainerClass" | "ui.twoColumnFlexBasis" | "media.fromUrl" | "content.interpolateRichTextTokens" | "boxStyles.semanticGap" | "boxStyles.semanticGapValue" | "layout.headerLogoClass" | "layout.headerLogoMediaClass" | "layout.headerLogoTextVisible" | "layout.footerBottomBarClass" | "layout.footerBottomBarContainerClass" | "layout.footerBottomBarStyle" | "layout.footerSplitMainClass" | "layout.footerLogoClass" | "layout.footerLogoMediaClass" | "layout.footerLogoTextVisible" | "layout.headerRuntimeContract">[] | undefined;
|
|
127
124
|
readonly from: string;
|
|
128
125
|
};
|
|
129
126
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type BookingInstalmentPlanConfig } from '../../../core/src/index';
|
|
2
|
+
export type BookingInstalmentScheduleRow = Readonly<{
|
|
3
|
+
id: string;
|
|
4
|
+
sequence: number;
|
|
5
|
+
stateAtBooking: 'paid_today' | 'scheduled';
|
|
6
|
+
dueAt: string;
|
|
7
|
+
amountCents: number;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function buildBookingInstalmentSchedule(input: Readonly<{
|
|
10
|
+
anchorAt: string;
|
|
11
|
+
totalAmountCents: number;
|
|
12
|
+
plan: BookingInstalmentPlanConfig;
|
|
13
|
+
}>): readonly BookingInstalmentScheduleRow[];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { NonNegativeCents } from '../../../core/src/index';
|
|
2
|
+
import type { OrderRefundMode } from './orderRefundPolicy';
|
|
3
|
+
export type CanonicalRefundMethod = 'cash' | 'credit';
|
|
4
|
+
export type OrderRefundRail = 'cash' | 'credit' | 'mixed';
|
|
5
|
+
export type CanonicalRefundPlannerErrorCode = 'already_refunded' | 'idempotency_amount_mismatch' | 'idempotency_method_mismatch' | 'refund_in_progress' | 'invalid_amount' | 'amount_exceeds_remaining' | 'pass_revoke_requires_full_refund' | 'refund_failed';
|
|
6
|
+
export type CanonicalRefundSnapshot = Readonly<{
|
|
7
|
+
id: string;
|
|
8
|
+
status: 'pending' | 'succeeded' | 'failed' | 'reconciliation_needed';
|
|
9
|
+
amountCents: NonNegativeCents;
|
|
10
|
+
refundRail: OrderRefundRail;
|
|
11
|
+
refundMode: OrderRefundMode;
|
|
12
|
+
failureCode: string | null;
|
|
13
|
+
failureMessage: string | null;
|
|
14
|
+
isStale: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
export type CanonicalRefundPlannerInput = Readonly<{
|
|
17
|
+
refundMethod: CanonicalRefundMethod;
|
|
18
|
+
refundMode: OrderRefundMode;
|
|
19
|
+
requestedAmountCents: NonNegativeCents | undefined;
|
|
20
|
+
remainingRefundableCents: NonNegativeCents;
|
|
21
|
+
refundedSoFarCents: NonNegativeCents;
|
|
22
|
+
requireFullRemainingRefund: boolean;
|
|
23
|
+
acceptableExistingRails: readonly OrderRefundRail[];
|
|
24
|
+
existingByIdempotency: CanonicalRefundSnapshot | null;
|
|
25
|
+
latestPending: CanonicalRefundSnapshot | null;
|
|
26
|
+
}>;
|
|
27
|
+
export type CanonicalRefundPlannerDecision = Readonly<{
|
|
28
|
+
kind: 'existing_succeeded';
|
|
29
|
+
refund: CanonicalRefundSnapshot;
|
|
30
|
+
totalRefundedCents: NonNegativeCents;
|
|
31
|
+
remainingRefundableCents: NonNegativeCents;
|
|
32
|
+
}> | Readonly<{
|
|
33
|
+
kind: 'resume_pending';
|
|
34
|
+
refund: CanonicalRefundSnapshot;
|
|
35
|
+
requestedAmountCents: NonNegativeCents;
|
|
36
|
+
}> | Readonly<{
|
|
37
|
+
kind: 'create_pending';
|
|
38
|
+
requestedAmountCents: NonNegativeCents;
|
|
39
|
+
}> | Readonly<{
|
|
40
|
+
kind: 'failed';
|
|
41
|
+
errorCode: CanonicalRefundPlannerErrorCode;
|
|
42
|
+
errorMessage: string;
|
|
43
|
+
refund: CanonicalRefundSnapshot | null;
|
|
44
|
+
amountCents: NonNegativeCents | null;
|
|
45
|
+
totalRefundedCents: NonNegativeCents;
|
|
46
|
+
remainingRefundableCents: NonNegativeCents;
|
|
47
|
+
}>;
|
|
48
|
+
export declare function planCanonicalRefundRequest(input: CanonicalRefundPlannerInput): CanonicalRefundPlannerDecision;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type NonEmptyArray, type Result } from '../../../core/src/index';
|
|
2
|
+
export type CheckoutCollectionPlanningError = Readonly<{
|
|
3
|
+
_tag: 'CheckoutCollectionPlanningError';
|
|
4
|
+
code: 'shop_shipping_not_configured';
|
|
5
|
+
message: string;
|
|
6
|
+
}>;
|
|
7
|
+
export type CheckoutCollectionPlan<TCountryCode extends string = string> = Readonly<{
|
|
8
|
+
kind: 'digital_only';
|
|
9
|
+
automaticTaxEnabled: boolean;
|
|
10
|
+
billingAddressCollection: 'auto';
|
|
11
|
+
}> | Readonly<{
|
|
12
|
+
kind: 'requires_shipping';
|
|
13
|
+
automaticTaxEnabled: boolean;
|
|
14
|
+
billingAddressCollection: 'auto';
|
|
15
|
+
allowedShippingCountries: NonEmptyArray<TCountryCode>;
|
|
16
|
+
}>;
|
|
17
|
+
export type CheckoutCollectionItemKind = 'event_ticket' | 'product' | 'pass' | 'course_enrollment' | 'appointment';
|
|
18
|
+
export type CheckoutCollectionProductItem = Readonly<{
|
|
19
|
+
validated: Readonly<{
|
|
20
|
+
type: 'product';
|
|
21
|
+
product: Readonly<{
|
|
22
|
+
requiresShipping: boolean;
|
|
23
|
+
}>;
|
|
24
|
+
}>;
|
|
25
|
+
}>;
|
|
26
|
+
export type CheckoutCollectionNonProductItem = Readonly<{
|
|
27
|
+
validated: Readonly<{
|
|
28
|
+
type: Exclude<CheckoutCollectionItemKind, 'product'>;
|
|
29
|
+
}>;
|
|
30
|
+
}>;
|
|
31
|
+
export type CheckoutCollectionItem = CheckoutCollectionProductItem | CheckoutCollectionNonProductItem;
|
|
32
|
+
export type CheckoutCollectionCart<TItem extends CheckoutCollectionItem = CheckoutCollectionItem> = Readonly<{
|
|
33
|
+
items: readonly TItem[];
|
|
34
|
+
}>;
|
|
35
|
+
export declare function buildCheckoutCollectionPlan<TCountryCode extends string, TItem extends CheckoutCollectionItem>(options: Readonly<{
|
|
36
|
+
settledCart: CheckoutCollectionCart<TItem>;
|
|
37
|
+
automaticTaxEnabled: boolean;
|
|
38
|
+
allowedShippingCountries: readonly TCountryCode[];
|
|
39
|
+
}>): Result<CheckoutCollectionPlan<TCountryCode>, CheckoutCollectionPlanningError>;
|