@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Theme } from '../schema';
|
|
2
|
+
import type { CardRole } from '../cards';
|
|
2
3
|
export type Brand<T, TBrand extends string> = T & {
|
|
3
4
|
readonly __brand: TBrand;
|
|
4
5
|
};
|
|
@@ -99,7 +100,6 @@ export type DesignResolutionPolicy = 'generated' | 'user' | 'admin' | 'sdk';
|
|
|
99
100
|
export type DesignIssueSeverity = 'blocking' | 'repairable' | 'advisory';
|
|
100
101
|
export declare function designIssueSeverityForPolicy(policy: DesignResolutionPolicy): DesignIssueSeverity;
|
|
101
102
|
export type SiteStyleSurfaceIntent = 'base' | 'muted-band' | 'accent-band' | 'brand-depth-band' | 'hero-image';
|
|
102
|
-
export type SiteStyleItemSurfaceIntent = 'none' | 'default' | 'flat' | 'outlined' | 'raised' | 'inset' | 'editorial' | 'color-blocked';
|
|
103
103
|
export type SiteStyleSectionTransitionIntent = 'none' | 'soft-fade-short' | 'soft-fade-long' | 'soft-fade-expansive' | 'wave-edge' | 'wave-edge-balanced' | 'wave-edge-gentle' | 'wave-edge-bold' | 'wave-edge-drift' | 'angle-edge' | 'angle-edge-subtle' | 'angle-edge-steep';
|
|
104
104
|
export type SiteStyleEmphasis = 'low' | 'medium' | 'high';
|
|
105
105
|
export type SectionHeightIntent = 'default' | 'banner' | 'hero' | 'immersive';
|
|
@@ -200,7 +200,6 @@ export type ImageSurfaceTreatment = Readonly<{
|
|
|
200
200
|
intensity?: ImageSurfaceTreatmentIntensity;
|
|
201
201
|
}>;
|
|
202
202
|
export type ImageSurfaceTreatmentKind = ImageSurfaceTreatment['kind'];
|
|
203
|
-
export type TestimonialCardTreatment = 'default' | 'statement' | 'non-carded' | 'accent-quote' | 'editorial-serif-quote';
|
|
204
203
|
export declare const tileTreatmentValues: readonly ["default", "quiet", "brand-depth"];
|
|
205
204
|
export type TileTreatment = (typeof tileTreatmentValues)[number];
|
|
206
205
|
export declare const eventListTreatmentValues: readonly ["plain", "lined-panel", "ruled-register", "editorial-register", "dense-index"];
|
|
@@ -209,6 +208,14 @@ export declare const introCompositionTreatmentValues: readonly ["editorial-state
|
|
|
209
208
|
export type IntroCompositionTreatment = (typeof introCompositionTreatmentValues)[number];
|
|
210
209
|
export declare const featureCardCompositionTreatmentValues: readonly ["asymmetric-emphasis", "framed-programme"];
|
|
211
210
|
export type FeatureCardCompositionTreatment = (typeof featureCardCompositionTreatmentValues)[number];
|
|
211
|
+
export declare const testimonialsCompositionTreatmentValues: readonly ["open-editorial", "evergreen-lead", "room-and-response", "open-floor"];
|
|
212
|
+
export type TestimonialsCompositionTreatment = (typeof testimonialsCompositionTreatmentValues)[number];
|
|
213
|
+
/**
|
|
214
|
+
* How an offerings preview arranges its groups. Structure only — the group
|
|
215
|
+
* card surface is the Look's `cardRole` and the site style's card system.
|
|
216
|
+
*/
|
|
217
|
+
export declare const offeringsPreviewCompositionTreatmentValues: readonly ["paired-feature-cards", "open-editorial-columns", "joined-programme-panel"];
|
|
218
|
+
export type OfferingsPreviewCompositionTreatment = (typeof offeringsPreviewCompositionTreatmentValues)[number];
|
|
212
219
|
/**
|
|
213
220
|
* A closed description of structural presentation selected by a Look.
|
|
214
221
|
* Concrete spacing, radii, colour, and shadow remain site-style concerns.
|
|
@@ -219,6 +226,12 @@ export type BlockCompositionIntent = Readonly<{
|
|
|
219
226
|
}> | Readonly<{
|
|
220
227
|
kind: 'feature-cards';
|
|
221
228
|
treatment: FeatureCardCompositionTreatment;
|
|
229
|
+
}> | Readonly<{
|
|
230
|
+
kind: 'testimonials';
|
|
231
|
+
treatment: TestimonialsCompositionTreatment;
|
|
232
|
+
}> | Readonly<{
|
|
233
|
+
kind: 'offerings-preview';
|
|
234
|
+
treatment: OfferingsPreviewCompositionTreatment;
|
|
222
235
|
}>;
|
|
223
236
|
export type BlockCompositionCapability = Readonly<{
|
|
224
237
|
kind: 'none';
|
|
@@ -228,6 +241,12 @@ export type BlockCompositionCapability = Readonly<{
|
|
|
228
241
|
}> | Readonly<{
|
|
229
242
|
kind: 'feature-cards';
|
|
230
243
|
treatments: NonEmptyReadonlyArray<FeatureCardCompositionTreatment>;
|
|
244
|
+
}> | Readonly<{
|
|
245
|
+
kind: 'testimonials';
|
|
246
|
+
treatments: NonEmptyReadonlyArray<TestimonialsCompositionTreatment>;
|
|
247
|
+
}> | Readonly<{
|
|
248
|
+
kind: 'offerings-preview';
|
|
249
|
+
treatments: NonEmptyReadonlyArray<OfferingsPreviewCompositionTreatment>;
|
|
231
250
|
}>;
|
|
232
251
|
export declare const eyebrowTreatmentValues: readonly ["plain", "accent", "pill", "accent-pill", "pill-bounce", "accent-pill-bounce"];
|
|
233
252
|
export type EyebrowTreatment = (typeof eyebrowTreatmentValues)[number];
|
|
@@ -283,16 +302,21 @@ export type GeneratedFlushPanelFrameIntent = Readonly<{
|
|
|
283
302
|
export type GeneratedContentFrameIntent = PlainFrameIntent | GeneratedPanelFrameIntent | GeneratedFlushPanelFrameIntent;
|
|
284
303
|
export type UserContentFrameIntent = ContentFrameIntent;
|
|
285
304
|
export type AdvancedContentFrameIntent = ContentFrameIntent | AdvancedDetachedDesignValue;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
305
|
+
/**
|
|
306
|
+
* Card roles are a closed, global vocabulary — every source may express the
|
|
307
|
+
* whole set, unlike surfaces or frames where generation is deliberately
|
|
308
|
+
* narrower than the user catalog.
|
|
309
|
+
*/
|
|
310
|
+
export type GeneratedCardRoleIntent = CardRole;
|
|
311
|
+
export type UserCardRoleIntent = CardRole;
|
|
312
|
+
export type AdvancedCardRoleIntent = CardRole | AdvancedDetachedDesignValue;
|
|
289
313
|
export type GeneratedSectionTransitionIntent = Extract<SiteStyleSectionTransitionIntent, 'none' | 'soft-fade-short' | 'soft-fade-long'>;
|
|
290
314
|
export type UserSectionTransitionIntent = SiteStyleSectionTransitionIntent;
|
|
291
315
|
export type AdvancedSectionTransitionIntent = SiteStyleSectionTransitionIntent | AdvancedDetachedDesignValue;
|
|
292
316
|
export type GeneratedBlockDesignIntent = Readonly<{
|
|
293
317
|
sectionSurface: GeneratedDesignChoice<GeneratedSurfaceIntent>;
|
|
294
318
|
contentFrame: GeneratedDesignChoice<GeneratedContentFrameIntent>;
|
|
295
|
-
|
|
319
|
+
cardRole: GeneratedDesignChoice<GeneratedCardRoleIntent>;
|
|
296
320
|
transitionAfter: GeneratedDesignChoice<GeneratedSectionTransitionIntent>;
|
|
297
321
|
emphasis: GeneratedDesignChoice<SiteStyleEmphasis>;
|
|
298
322
|
}>;
|
|
@@ -319,14 +343,14 @@ export type GeneratedPageDesignIntent<TBlockId extends string = string> = Readon
|
|
|
319
343
|
export type UserBlockDesignIntent = Readonly<{
|
|
320
344
|
sectionSurface: UserDesignChoice<UserSurfaceIntent>;
|
|
321
345
|
contentFrame: UserDesignChoice<UserContentFrameIntent>;
|
|
322
|
-
|
|
346
|
+
cardRole: UserDesignChoice<UserCardRoleIntent>;
|
|
323
347
|
transitionAfter: UserDesignChoice<UserSectionTransitionIntent>;
|
|
324
348
|
emphasis: UserDesignChoice<SiteStyleEmphasis>;
|
|
325
349
|
}>;
|
|
326
350
|
export type AdvancedBlockDesignIntent = Readonly<{
|
|
327
351
|
sectionSurface: AdvancedDesignChoice<AdvancedSurfaceIntent>;
|
|
328
352
|
contentFrame: AdvancedDesignChoice<AdvancedContentFrameIntent>;
|
|
329
|
-
|
|
353
|
+
cardRole: AdvancedDesignChoice<AdvancedCardRoleIntent>;
|
|
330
354
|
transitionAfter: AdvancedDesignChoice<AdvancedSectionTransitionIntent>;
|
|
331
355
|
emphasis: AdvancedDesignChoice<SiteStyleEmphasis>;
|
|
332
356
|
}>;
|
|
@@ -383,7 +407,6 @@ export type DesignSystemTemplate = Readonly<{
|
|
|
383
407
|
compositionBudget: CompositionBudget;
|
|
384
408
|
supportedSectionSurfaces: readonly SiteStyleSurfaceIntent[];
|
|
385
409
|
supportedContentFrames: readonly FrameKind[];
|
|
386
|
-
supportedItemSurfaces: readonly SiteStyleItemSurfaceIntent[];
|
|
387
410
|
supportedTransitions: readonly SiteStyleSectionTransitionIntent[];
|
|
388
411
|
}>;
|
|
389
412
|
export type SiteTheme = Readonly<{
|
|
@@ -407,7 +430,12 @@ export type BlockDesignPlan<TBlockId extends string = DesignBlockId, TPurpose ex
|
|
|
407
430
|
appearancePresetId?: AppearancePresetId;
|
|
408
431
|
sectionSurface: SiteStyleSurfaceIntent;
|
|
409
432
|
contentFrame: ContentFrameIntent;
|
|
410
|
-
|
|
433
|
+
/**
|
|
434
|
+
* Which card role this block asks the site style for. Absent means the same
|
|
435
|
+
* as `none`: the Look asks for no site-style card, and the block's own
|
|
436
|
+
* composition governs what the item looks like.
|
|
437
|
+
*/
|
|
438
|
+
cardRole?: CardRole;
|
|
411
439
|
transitionAfter: SiteStyleSectionTransitionIntent;
|
|
412
440
|
emphasis: SiteStyleEmphasis;
|
|
413
441
|
sectionHeight?: SectionHeightIntent;
|
|
@@ -416,7 +444,6 @@ export type BlockDesignPlan<TBlockId extends string = DesignBlockId, TPurpose ex
|
|
|
416
444
|
heroTypographyScale?: HeroTypographyScaleIntent;
|
|
417
445
|
imageSurfaceTreatment?: ImageSurfaceTreatment;
|
|
418
446
|
imageSurfaceMotion?: ImageSurfaceMotion;
|
|
419
|
-
testimonialCardTreatment?: TestimonialCardTreatment;
|
|
420
447
|
tileTreatment?: TileTreatment;
|
|
421
448
|
eventListTreatment?: EventListTreatment;
|
|
422
449
|
eyebrowTreatment?: EyebrowTreatment;
|
|
@@ -427,12 +454,15 @@ export type ResolvedBlockDesignPlan<TBlockId extends string = DesignBlockId, TPu
|
|
|
427
454
|
appliedSectionSurface: SiteStyleSurfaceIntent;
|
|
428
455
|
appliedContentFrame: ContentFrameIntent;
|
|
429
456
|
appliedTransitionAfter: SiteStyleSectionTransitionIntent;
|
|
430
|
-
|
|
457
|
+
/**
|
|
458
|
+
* The card role after capability gating. `null` (or absent) means no
|
|
459
|
+
* site-style card is applied; the block renders its own composition.
|
|
460
|
+
*/
|
|
461
|
+
appliedCardRole?: CardRole | null;
|
|
431
462
|
appliedSectionHeight: SectionHeightIntent;
|
|
432
463
|
appliedHeroLegibility: HeroLegibilityStrategy;
|
|
433
464
|
appliedImageSurfaceTreatment: ImageSurfaceTreatment;
|
|
434
465
|
appliedImageSurfaceMotion: ImageSurfaceMotion;
|
|
435
|
-
appliedTestimonialCardTreatment: TestimonialCardTreatment;
|
|
436
466
|
appliedTileTreatment: TileTreatment;
|
|
437
467
|
appliedEventListTreatment: EventListTreatment;
|
|
438
468
|
appliedEyebrowTreatment: EyebrowTreatment;
|
|
@@ -454,6 +484,14 @@ export type HeadingDecorationCapability = Readonly<{
|
|
|
454
484
|
kind: 'supported';
|
|
455
485
|
families: NonEmptyReadonlyArray<VisibleHeadingDecorationFamily>;
|
|
456
486
|
}>;
|
|
487
|
+
/**
|
|
488
|
+
* Whether a block can carry a card surface, and by which path.
|
|
489
|
+
*
|
|
490
|
+
* - `supported` — the block renders the card-role path: a Look's `cardRole`
|
|
491
|
+
* compiles into `_cardStyles.role` and the site style owns the appearance.
|
|
492
|
+
* - `unsupported` — the block has no card surface at all.
|
|
493
|
+
*/
|
|
494
|
+
export type CardRoleCapability = 'supported' | 'unsupported';
|
|
457
495
|
export type DesignedBlockDesignCapabilityInput = Readonly<{
|
|
458
496
|
/** Looks are optional composition presets, not the baseline block design. */
|
|
459
497
|
looks?: 'supported';
|
|
@@ -461,11 +499,10 @@ export type DesignedBlockDesignCapabilityInput = Readonly<{
|
|
|
461
499
|
/** Rich backgrounds require an explicit block-level legibility contract. */
|
|
462
500
|
richBackgrounds?: 'supported';
|
|
463
501
|
contentFrames: FrameCapability;
|
|
464
|
-
|
|
502
|
+
cardRoles: CardRoleCapability;
|
|
465
503
|
sectionHeights?: NonEmptyReadonlyArray<SectionHeightIntent>;
|
|
466
504
|
imageSurfaceTreatments?: NonEmptyReadonlyArray<ImageSurfaceTreatmentKind>;
|
|
467
505
|
imageSurfaceMotions?: NonEmptyReadonlyArray<ImageSurfaceMotion>;
|
|
468
|
-
testimonialCardTreatments?: NonEmptyReadonlyArray<TestimonialCardTreatment>;
|
|
469
506
|
tileTreatments?: NonEmptyReadonlyArray<TileTreatment>;
|
|
470
507
|
eventListTreatments?: NonEmptyReadonlyArray<EventListTreatment>;
|
|
471
508
|
eyebrowTreatments?: NonEmptyReadonlyArray<EyebrowTreatment>;
|
|
@@ -482,11 +519,10 @@ export type DesignedBlockDesignCapability = Readonly<{
|
|
|
482
519
|
sectionSurfaces: 'supported' | 'unsupported';
|
|
483
520
|
richBackgrounds?: 'supported';
|
|
484
521
|
contentFrames: FrameCapability;
|
|
485
|
-
|
|
522
|
+
cardRoles: CardRoleCapability;
|
|
486
523
|
sectionHeights: NonEmptyReadonlyArray<SectionHeightIntent>;
|
|
487
524
|
imageSurfaceTreatments: NonEmptyReadonlyArray<ImageSurfaceTreatmentKind>;
|
|
488
525
|
imageSurfaceMotions: NonEmptyReadonlyArray<ImageSurfaceMotion>;
|
|
489
|
-
testimonialCardTreatments: NonEmptyReadonlyArray<TestimonialCardTreatment>;
|
|
490
526
|
tileTreatments: NonEmptyReadonlyArray<TileTreatment>;
|
|
491
527
|
eventListTreatments: NonEmptyReadonlyArray<EventListTreatment>;
|
|
492
528
|
eyebrowTreatments: NonEmptyReadonlyArray<EyebrowTreatment>;
|
|
@@ -504,7 +540,7 @@ export type BlockDesignCapability = DesignedBlockDesignCapability | NoBlockDesig
|
|
|
504
540
|
export type BlockDesignCapabilityMap = Readonly<Partial<Record<string, BlockDesignCapability>>>;
|
|
505
541
|
export declare function defineBlockDesignCapability<const TCapability extends DesignedBlockDesignCapabilityInput>(capability: NoExtraKeys<TCapability, DesignedBlockDesignCapabilityInput>): DesignedBlockDesignCapability;
|
|
506
542
|
export declare function defineNoBlockDesignCapability(reason: UnsupportedBlockDesignCapabilityReason): NoBlockDesignCapability;
|
|
507
|
-
export type DesignRepairAction = 'fallback-block-design' | 'fallback-section-surface' | 'fallback-content-frame' | 'fallback-
|
|
543
|
+
export type DesignRepairAction = 'fallback-block-design' | 'fallback-section-surface' | 'fallback-content-frame' | 'fallback-card-role' | 'fallback-section-height' | 'fallback-image-surface-treatment' | 'fallback-image-surface-motion' | 'fallback-tile-treatment' | 'fallback-event-list-treatment' | 'fallback-eyebrow-treatment' | 'fallback-accordion-icon-treatment' | 'remove-composition' | 'remove-hero-legibility' | 'remove-transition' | 'fallback-hero-legibility' | 'reduce-accent-density' | 'reduce-panel-density' | 'reduce-transition-mix' | 'reduce-primary-ctas' | 'reduce-media-density' | 'reduce-decorative-repetition';
|
|
508
544
|
export type UnsupportedSectionSurfaceIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<{
|
|
509
545
|
kind: 'unsupported-section-surface';
|
|
510
546
|
blockId: TBlockId;
|
|
@@ -527,16 +563,17 @@ export type UnsupportedContentFrameIssue<TBlockId extends string = DesignBlockId
|
|
|
527
563
|
severity: DesignIssueSeverity;
|
|
528
564
|
allowedRepairActions: readonly ['fallback-content-frame'];
|
|
529
565
|
}>;
|
|
530
|
-
export type
|
|
531
|
-
kind: 'unsupported-
|
|
566
|
+
export type UnsupportedCardRoleIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<{
|
|
567
|
+
kind: 'unsupported-card-role';
|
|
532
568
|
blockId: TBlockId;
|
|
533
569
|
blockKind: string;
|
|
534
570
|
purpose: TPurpose;
|
|
535
|
-
|
|
536
|
-
|
|
571
|
+
/** The card role the block asked its site style for. */
|
|
572
|
+
requested: CardRole;
|
|
573
|
+
fallback: 'none';
|
|
537
574
|
policy: DesignResolutionPolicy;
|
|
538
575
|
severity: DesignIssueSeverity;
|
|
539
|
-
allowedRepairActions: readonly ['fallback-
|
|
576
|
+
allowedRepairActions: readonly ['fallback-card-role'];
|
|
540
577
|
}>;
|
|
541
578
|
export type UnsupportedSectionHeightIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<{
|
|
542
579
|
kind: 'unsupported-section-height';
|
|
@@ -573,17 +610,6 @@ export type UnsupportedImageSurfaceMotionIssue<TBlockId extends string = DesignB
|
|
|
573
610
|
severity: DesignIssueSeverity;
|
|
574
611
|
allowedRepairActions: readonly ['fallback-image-surface-motion'];
|
|
575
612
|
}>;
|
|
576
|
-
export type UnsupportedTestimonialCardTreatmentIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<{
|
|
577
|
-
kind: 'unsupported-testimonial-card-treatment';
|
|
578
|
-
blockId: TBlockId;
|
|
579
|
-
blockKind: string;
|
|
580
|
-
purpose: TPurpose;
|
|
581
|
-
requested: TestimonialCardTreatment;
|
|
582
|
-
fallback: 'default';
|
|
583
|
-
policy: DesignResolutionPolicy;
|
|
584
|
-
severity: DesignIssueSeverity;
|
|
585
|
-
allowedRepairActions: readonly ['fallback-testimonial-card-treatment'];
|
|
586
|
-
}>;
|
|
587
613
|
export type UnsupportedTileTreatmentIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<{
|
|
588
614
|
kind: 'unsupported-tile-treatment';
|
|
589
615
|
blockId: TBlockId;
|
|
@@ -677,7 +703,7 @@ export type HeroLegibilityOverriddenByImageSurfaceTreatmentIssue<TBlockId extend
|
|
|
677
703
|
export type BlockDesignCapabilityRequest = Readonly<{
|
|
678
704
|
sectionSurface: SiteStyleSurfaceIntent;
|
|
679
705
|
contentFrame: ContentFrameIntent;
|
|
680
|
-
|
|
706
|
+
cardRole?: CardRole;
|
|
681
707
|
transitionAfter: SiteStyleSectionTransitionIntent;
|
|
682
708
|
sectionHeight?: SectionHeightIntent;
|
|
683
709
|
heroLegibility?: HeroLegibilityStrategy;
|
|
@@ -685,7 +711,6 @@ export type BlockDesignCapabilityRequest = Readonly<{
|
|
|
685
711
|
heroTypographyScale?: HeroTypographyScaleIntent;
|
|
686
712
|
imageSurfaceTreatment?: ImageSurfaceTreatment;
|
|
687
713
|
imageSurfaceMotion?: ImageSurfaceMotion;
|
|
688
|
-
testimonialCardTreatment?: TestimonialCardTreatment;
|
|
689
714
|
tileTreatment?: TileTreatment;
|
|
690
715
|
eventListTreatment?: EventListTreatment;
|
|
691
716
|
eyebrowTreatment?: EyebrowTreatment;
|
|
@@ -695,7 +720,6 @@ export type BlockDesignCapabilityRequest = Readonly<{
|
|
|
695
720
|
export type BlockDesignCapabilityFallback = Readonly<{
|
|
696
721
|
sectionSurface: 'base';
|
|
697
722
|
contentFrame: PlainFrameIntent;
|
|
698
|
-
itemSurface: 'none';
|
|
699
723
|
transitionAfter: 'none';
|
|
700
724
|
sectionHeight: 'default';
|
|
701
725
|
heroLegibility: 'none';
|
|
@@ -703,7 +727,6 @@ export type BlockDesignCapabilityFallback = Readonly<{
|
|
|
703
727
|
kind: 'none';
|
|
704
728
|
}>;
|
|
705
729
|
imageSurfaceMotion: 'static';
|
|
706
|
-
testimonialCardTreatment: 'default';
|
|
707
730
|
tileTreatment: 'default';
|
|
708
731
|
eventListTreatment: 'plain';
|
|
709
732
|
eyebrowTreatment: 'plain';
|
|
@@ -755,7 +778,7 @@ export type HeroImageWithoutLegibilityIssue<TBlockId extends string = DesignBloc
|
|
|
755
778
|
severity: DesignIssueSeverity;
|
|
756
779
|
allowedRepairActions: readonly ['fallback-hero-legibility'];
|
|
757
780
|
}>;
|
|
758
|
-
export type DesignResolutionIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = UnsupportedSectionSurfaceIssue<TBlockId, TPurpose> | UnsupportedContentFrameIssue<TBlockId, TPurpose> |
|
|
781
|
+
export type DesignResolutionIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = UnsupportedSectionSurfaceIssue<TBlockId, TPurpose> | UnsupportedContentFrameIssue<TBlockId, TPurpose> | UnsupportedCardRoleIssue<TBlockId, TPurpose> | UnsupportedSectionHeightIssue<TBlockId, TPurpose> | UnsupportedImageSurfaceTreatmentIssue<TBlockId, TPurpose> | UnsupportedImageSurfaceMotionIssue<TBlockId, TPurpose> | UnsupportedTileTreatmentIssue<TBlockId, TPurpose> | UnsupportedEventListTreatmentIssue<TBlockId, TPurpose> | UnsupportedEyebrowTreatmentIssue<TBlockId, TPurpose> | UnsupportedAccordionIconTreatmentIssue<TBlockId, TPurpose> | UnsupportedBlockCompositionIssue<TBlockId, TPurpose> | ImageSurfaceTreatmentWithoutImageSurfaceIssue<TBlockId, TPurpose> | ImageSurfaceMotionWithoutImageSurfaceIssue<TBlockId, TPurpose> | HeroLegibilityOverriddenByImageSurfaceTreatmentIssue<TBlockId, TPurpose> | MissingBlockDesignCapabilityIssue<TBlockId, TPurpose> | UnsupportedBlockDesignCapabilityIssue<TBlockId, TPurpose> | RemovedTransitionForFlushFrameIssue<TBlockId, TPurpose> | HeroImageWithoutLegibilityIssue<TBlockId, TPurpose>;
|
|
759
782
|
export type DesignRepairResultForIssue<TIssue extends DesignResolutionIssue<string, string>> = {
|
|
760
783
|
[TKind in TIssue['kind']]: Readonly<{
|
|
761
784
|
kind: TKind extends 'removed-transition-for-flush-frame' ? 'repaired' : 'fallbackApplied';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { HeaderPositioning, Theme } from
|
|
2
|
-
import { type SiteChromePlacementPlan } from
|
|
3
|
-
import { type SiteOverlayHeaderClearancePlan } from
|
|
4
|
-
export type SiteTopShellBehavior =
|
|
1
|
+
import type { HeaderPositioning, Theme } from './schema';
|
|
2
|
+
import { type SiteChromePlacementPlan } from './siteChromePlacement';
|
|
3
|
+
import { type SiteOverlayHeaderClearancePlan } from './siteChromeOverlayClearance';
|
|
4
|
+
export type SiteTopShellBehavior = 'normal-flow' | 'shared-sticky-shell' | 'banner-above-overlay-header';
|
|
5
5
|
export type SiteTopShellPlan = Readonly<{
|
|
6
|
-
behavior:
|
|
6
|
+
behavior: 'normal-flow';
|
|
7
7
|
contentStartsUnderHeader: boolean;
|
|
8
8
|
requiresHeaderOffset: false;
|
|
9
9
|
}> | Readonly<{
|
|
10
|
-
behavior:
|
|
10
|
+
behavior: 'shared-sticky-shell';
|
|
11
11
|
contentStartsUnderHeader: false;
|
|
12
12
|
requiresHeaderOffset: false;
|
|
13
13
|
}> | Readonly<{
|
|
14
|
-
behavior:
|
|
14
|
+
behavior: 'banner-above-overlay-header';
|
|
15
15
|
contentStartsUnderHeader: true;
|
|
16
16
|
requiresHeaderOffset: true;
|
|
17
17
|
}>;
|
|
18
|
-
export type SiteDocumentLayoutMode =
|
|
18
|
+
export type SiteDocumentLayoutMode = 'normal-flow' | 'header-overlay';
|
|
19
19
|
export type SiteDocumentPlan = Readonly<{
|
|
20
20
|
placement: SiteChromePlacementPlan;
|
|
21
21
|
topShell: SiteTopShellPlan;
|
|
@@ -24,7 +24,7 @@ export type SiteDocumentPlan = Readonly<{
|
|
|
24
24
|
}>;
|
|
25
25
|
export type SiteDocumentPlanInput = Readonly<{
|
|
26
26
|
headerPositioning: HeaderPositioning;
|
|
27
|
-
headerVariant?: Theme[
|
|
27
|
+
headerVariant?: Theme['header']['variant'] | null;
|
|
28
28
|
hasVisibleBanner: boolean;
|
|
29
29
|
hasVisibleHeader?: boolean;
|
|
30
30
|
}>;
|
|
@@ -16,6 +16,7 @@ export interface GenerateStatusCssParams {
|
|
|
16
16
|
* Creates scoped CSS classes for:
|
|
17
17
|
* - .status-error, .status-success, .status-warning, .status-info, .status-muted (text colors)
|
|
18
18
|
* - .alert, .alert-error, .alert-success, .alert-warning, .alert-info (styled containers)
|
|
19
|
+
* - .feedback-note, .feedback-note-* (the "field-note" feedback treatment)
|
|
19
20
|
* - .required-marker (required field indicator)
|
|
20
21
|
* - .button-link (text-styled button)
|
|
21
22
|
*
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ThemeColorToken } from '../tokens/themeColorTokens';
|
|
2
|
+
import type { SurfaceForegroundRole } from './foregroundRoles';
|
|
3
|
+
export { ORDINARY_TEXT_MIN_CONTRAST_RATIO } from '../palette/utils/contrast';
|
|
4
|
+
export type ResolvedSurfaceForegroundTokens = Readonly<Record<SurfaceForegroundRole, ThemeColorToken>>;
|
|
5
|
+
export type ResolvedSurfaceForeground = Readonly<{
|
|
6
|
+
kind: 'known';
|
|
7
|
+
roles: ResolvedSurfaceForegroundTokens;
|
|
8
|
+
}> | Readonly<{
|
|
9
|
+
kind: 'unknown';
|
|
10
|
+
}>;
|
|
11
|
+
export type SurfaceForegroundBackground = Readonly<{
|
|
12
|
+
type: 'color' | 'gradient' | 'image' | 'video';
|
|
13
|
+
color?: string | null;
|
|
14
|
+
textColor?: string | null;
|
|
15
|
+
headingColor?: string | null;
|
|
16
|
+
linkColor?: string | null;
|
|
17
|
+
supportingColor?: string | null;
|
|
18
|
+
}>;
|
|
19
|
+
export type SurfaceForegroundCandidates = Readonly<{
|
|
20
|
+
text?: string | null;
|
|
21
|
+
heading?: string | null;
|
|
22
|
+
link?: string | null;
|
|
23
|
+
supporting?: string | null;
|
|
24
|
+
}>;
|
|
25
|
+
export type SurfaceForegroundResolutionOptions = Readonly<{
|
|
26
|
+
/** Opaque surface underneath translucent colour backgrounds. */
|
|
27
|
+
compositeBase?: string | null;
|
|
28
|
+
}>;
|
|
29
|
+
type Palette = Readonly<Record<string, string>>;
|
|
30
|
+
/**
|
|
31
|
+
* Resolve the complete foreground contract for an effective page/section or
|
|
32
|
+
* site-chrome background.
|
|
33
|
+
*
|
|
34
|
+
* Deterministic colour backgrounds are validated at ordinary-text WCAG AA.
|
|
35
|
+
* Existing image/video/gradient treatments are trusted only when they already
|
|
36
|
+
* carry a usable foreground token; this function deliberately does not claim
|
|
37
|
+
* pixel-level contrast proof for media.
|
|
38
|
+
*/
|
|
39
|
+
export declare function resolveSurfaceForeground(background: SurfaceForegroundBackground | null, palette: Palette, candidates?: SurfaceForegroundCandidates, options?: SurfaceForegroundResolutionOptions): ResolvedSurfaceForeground;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
export type NavigationTab = {
|
|
2
2
|
id: string;
|
|
3
3
|
label: React.ReactNode;
|
|
4
|
+
/** Stable automation hook owned by the feature composing this tab. */
|
|
5
|
+
testId?: string;
|
|
4
6
|
badge?: number;
|
|
5
7
|
content?: React.ReactNode;
|
|
6
8
|
};
|
|
7
9
|
export type NavigationTabsVariant = 'default';
|
|
8
10
|
export type NavigationTabsProps = {
|
|
9
11
|
tabs: NavigationTab[];
|
|
10
|
-
|
|
12
|
+
/** `null` intentionally renders the navigation with no selected tab. */
|
|
13
|
+
activeTab?: string | null;
|
|
11
14
|
onTabChange?: (tabId: string) => void;
|
|
12
15
|
variant?: NavigationTabsVariant;
|
|
13
16
|
urlParam?: string;
|
|
@@ -34,4 +37,4 @@ export type NavigationTabPanelsProps = {
|
|
|
34
37
|
* Optional companion component for rendering tab content panels.
|
|
35
38
|
* Use this when tabs control content visibility (not just state).
|
|
36
39
|
*/
|
|
37
|
-
export declare function NavigationTabPanels({ tabs, activeTab, className }: NavigationTabPanelsProps): import("react").JSX.Element;
|
|
40
|
+
export declare function NavigationTabPanels({ tabs, activeTab, className, }: NavigationTabPanelsProps): import("react").JSX.Element;
|
package/dist/client/{DiscountCodeDisclosure-Ur-Xx1U_.mjs → DiscountCodeDisclosure-DO7llLxm.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { et as themeButtonClassName } from "./propsDecoder-BxmqPKdP.mjs";
|
|
3
3
|
import { useId } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/api/types/discounts.ts
|
|
@@ -20,17 +20,17 @@ function getAutoAppliedDiscountPreview(availability) {
|
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region ../blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.tsx
|
|
22
22
|
const BLOCK_DISCOUNT_CODE_DISCLOSURE_CLASSES = {
|
|
23
|
-
"
|
|
24
|
-
root: "
|
|
25
|
-
toggle: "
|
|
26
|
-
form: "
|
|
27
|
-
label: "
|
|
28
|
-
row: "
|
|
29
|
-
input: "
|
|
30
|
-
apply: "
|
|
31
|
-
remove: "
|
|
32
|
-
hint: "
|
|
33
|
-
feedback: "
|
|
23
|
+
"whole-series-registration": {
|
|
24
|
+
root: "er-whole-series-discount",
|
|
25
|
+
toggle: "er-whole-series-discount__toggle",
|
|
26
|
+
form: "er-whole-series-discount__form",
|
|
27
|
+
label: "er-whole-series-discount__label",
|
|
28
|
+
row: "er-whole-series-discount__row",
|
|
29
|
+
input: "er-whole-series-discount__input",
|
|
30
|
+
apply: "er-whole-series-discount__apply",
|
|
31
|
+
remove: "er-whole-series-discount__remove",
|
|
32
|
+
hint: "er-whole-series-discount__hint",
|
|
33
|
+
feedback: "er-whole-series-discount__feedback"
|
|
34
34
|
},
|
|
35
35
|
"event-registration": {
|
|
36
36
|
root: "er-discount",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as EventCardClient, i as EventPaginatedListView, n as useEventPagination, o as EventFilters, r as toError, t as useEventFilters } from "./useEventFilters-
|
|
5
|
-
import { n as useBlockApi } from "./context-
|
|
2
|
+
import { D as clsx } from "./colorStyles-CrxJrPjJ.mjs";
|
|
3
|
+
import { A as getEventRuntimeFiltersKey, B as formatTime, G as resolveEventLinkProps, H as getContainerClass, L as formatEventPrice, P as formatDate, St as assertNever, U as groupEventsByDate, V as getCardOrientation, et as themeButtonClassName, k as buildEventRuntimeFilters, q as getEventAvailability, z as formatEventTeacherLine } from "./propsDecoder-BxmqPKdP.mjs";
|
|
4
|
+
import { a as EventCardClient, i as EventPaginatedListView, n as useEventPagination, o as EventFilters, r as toError, t as useEventFilters } from "./useEventFilters-CUmhE24_.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-B83PiNzm.mjs";
|
|
6
6
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
|
|
7
7
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
8
8
|
import React, { createContext, useCallback, useContext, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
@@ -741,6 +741,30 @@ const WeekAgendaView = ({ days, events, showCapacity, emptyMessage = "No events
|
|
|
741
741
|
});
|
|
742
742
|
};
|
|
743
743
|
//#endregion
|
|
744
|
+
//#region ../blocks/src/system/runtime/nodes/events/shared/EventModalCloseButton.tsx
|
|
745
|
+
function EventModalCloseButton({ closeButtonRef, onClose }) {
|
|
746
|
+
return /* @__PURE__ */ jsx("button", {
|
|
747
|
+
ref: closeButtonRef,
|
|
748
|
+
type: "button",
|
|
749
|
+
className: "ec-modal-close",
|
|
750
|
+
onClick: onClose,
|
|
751
|
+
"aria-label": "Close",
|
|
752
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
753
|
+
width: "24",
|
|
754
|
+
height: "24",
|
|
755
|
+
fill: "none",
|
|
756
|
+
stroke: "currentColor",
|
|
757
|
+
strokeWidth: "2",
|
|
758
|
+
viewBox: "0 0 24 24",
|
|
759
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
760
|
+
strokeLinecap: "round",
|
|
761
|
+
strokeLinejoin: "round",
|
|
762
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
763
|
+
})
|
|
764
|
+
})
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
//#endregion
|
|
744
768
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventDetailModal.tsx
|
|
745
769
|
/**
|
|
746
770
|
* EventDetailModal - Modal overlay displaying full EventCard details
|
|
@@ -748,7 +772,7 @@ const WeekAgendaView = ({ days, events, showCapacity, emptyMessage = "No events
|
|
|
748
772
|
* Reuses EventCard component directly for DRY implementation.
|
|
749
773
|
* EventCard already includes the CTA button to navigate to the full event page.
|
|
750
774
|
*/
|
|
751
|
-
function EventDetailModal({ event, showCapacity, onClose, portalRoot,
|
|
775
|
+
function EventDetailModal({ event, showCapacity, onClose, portalRoot, cardRole = "default", buttonVariant = "primary", buttonText, showMap = true }) {
|
|
752
776
|
return /* @__PURE__ */ jsx(ModalShell, {
|
|
753
777
|
title: event.title ? `${event.title}` : "Event details",
|
|
754
778
|
titleId: "ec-event-modal-title",
|
|
@@ -758,31 +782,12 @@ function EventDetailModal({ event, showCapacity, onClose, portalRoot, cardVarian
|
|
|
758
782
|
overlayClassName: "ec-modal-overlay",
|
|
759
783
|
modalClassName: "ec-modal ec-modal--event",
|
|
760
784
|
renderSrOnlyTitle: true,
|
|
761
|
-
renderHeader: (
|
|
762
|
-
ref: closeButtonRef,
|
|
763
|
-
type: "button",
|
|
764
|
-
className: "ec-modal-close",
|
|
765
|
-
onClick: onClose,
|
|
766
|
-
"aria-label": "Close",
|
|
767
|
-
children: /* @__PURE__ */ jsx("svg", {
|
|
768
|
-
width: "24",
|
|
769
|
-
height: "24",
|
|
770
|
-
fill: "none",
|
|
771
|
-
stroke: "currentColor",
|
|
772
|
-
strokeWidth: "2",
|
|
773
|
-
viewBox: "0 0 24 24",
|
|
774
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
775
|
-
strokeLinecap: "round",
|
|
776
|
-
strokeLinejoin: "round",
|
|
777
|
-
d: "M6 18L18 6M6 6l12 12"
|
|
778
|
-
})
|
|
779
|
-
})
|
|
780
|
-
}),
|
|
785
|
+
renderHeader: (props) => /* @__PURE__ */ jsx(EventModalCloseButton, { ...props }),
|
|
781
786
|
children: /* @__PURE__ */ jsx("div", {
|
|
782
787
|
className: "ec-modal-content",
|
|
783
788
|
children: /* @__PURE__ */ jsx(EventCardClient, {
|
|
784
789
|
event,
|
|
785
|
-
|
|
790
|
+
cardRole,
|
|
786
791
|
buttonVariant,
|
|
787
792
|
buttonText,
|
|
788
793
|
showImage: true,
|
|
@@ -814,26 +819,7 @@ function DayEventsModal({ date, events, showCapacity, onClose, onSelectEvent, po
|
|
|
814
819
|
portalRoot,
|
|
815
820
|
overlayClassName: "ec-modal-overlay",
|
|
816
821
|
modalClassName: "ec-modal ec-modal--day",
|
|
817
|
-
renderHeader: (
|
|
818
|
-
ref: closeButtonRef,
|
|
819
|
-
type: "button",
|
|
820
|
-
className: "ec-modal-close",
|
|
821
|
-
onClick: onClose,
|
|
822
|
-
"aria-label": "Close",
|
|
823
|
-
children: /* @__PURE__ */ jsx("svg", {
|
|
824
|
-
width: "24",
|
|
825
|
-
height: "24",
|
|
826
|
-
fill: "none",
|
|
827
|
-
stroke: "currentColor",
|
|
828
|
-
strokeWidth: "2",
|
|
829
|
-
viewBox: "0 0 24 24",
|
|
830
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
831
|
-
strokeLinecap: "round",
|
|
832
|
-
strokeLinejoin: "round",
|
|
833
|
-
d: "M6 18L18 6M6 6l12 12"
|
|
834
|
-
})
|
|
835
|
-
})
|
|
836
|
-
}),
|
|
822
|
+
renderHeader: (props) => /* @__PURE__ */ jsx(EventModalCloseButton, { ...props }),
|
|
837
823
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
838
824
|
className: "ec-modal-header",
|
|
839
825
|
children: [/* @__PURE__ */ jsx("h2", {
|
|
@@ -868,7 +854,7 @@ function DayEventsModal({ date, events, showCapacity, onClose, onSelectEvent, po
|
|
|
868
854
|
* - EventDetailModal for single event view
|
|
869
855
|
* - DayEventsModal for day events list (clicking an event switches to event modal)
|
|
870
856
|
*/
|
|
871
|
-
function EventModals({ showCapacity,
|
|
857
|
+
function EventModals({ showCapacity, cardRole, buttonVariant, buttonText }) {
|
|
872
858
|
const markerRef = React.useRef(null);
|
|
873
859
|
const [portalRoot, setPortalRoot] = React.useState(null);
|
|
874
860
|
const { modalState, openEventModal, closeModal } = useEventModal();
|
|
@@ -896,7 +882,7 @@ function EventModals({ showCapacity, cardVariant, buttonVariant, buttonText }) {
|
|
|
896
882
|
event: modalState.event,
|
|
897
883
|
onClose: closeModal,
|
|
898
884
|
portalRoot,
|
|
899
|
-
|
|
885
|
+
cardRole,
|
|
900
886
|
buttonVariant,
|
|
901
887
|
buttonText,
|
|
902
888
|
showCapacity
|
|
@@ -960,6 +946,7 @@ function toEventCombinedControllerProps(props) {
|
|
|
960
946
|
showVenue: props.render.display.showVenue,
|
|
961
947
|
showMap: props.render.display.showMap,
|
|
962
948
|
showCapacity: props.render.display.showCapacity,
|
|
949
|
+
cardRole: props.render.display.cardRole,
|
|
963
950
|
buttonVariant: props.render.display.buttonVariant,
|
|
964
951
|
buttonText: props.render.display.buttonText,
|
|
965
952
|
emptyMessage: props.render.display.emptyMessage,
|
|
@@ -975,7 +962,7 @@ function toEventCombinedControllerProps(props) {
|
|
|
975
962
|
const EventCombinedClient = ({ events: initialEvents, siteId, stage, listLayout = "stack", listColumns = "3", eventsPerPage = 12, paginationAction = {
|
|
976
963
|
kind: "loadMore",
|
|
977
964
|
label: "Load more events"
|
|
978
|
-
}, startOfWeek = "monday", calendarTabViews = "both", defaultCalendarView, showFilters, showCategoryFilter = "auto", showVenueFilter, showStaffFilter, eventSurface, filterEventPresets, scheduleScope, filterCategoryIds, filterStaffMemberId, filterVenueId, showVenue, showMap, showCapacity, buttonVariant = "primary", buttonText = "Book", emptyMessage = "No upcoming events scheduled.", className }) => {
|
|
965
|
+
}, startOfWeek = "monday", calendarTabViews = "both", defaultCalendarView, showFilters, showCategoryFilter = "auto", showVenueFilter, showStaffFilter, eventSurface, filterEventPresets, scheduleScope, filterCategoryIds, filterStaffMemberId, filterVenueId, showVenue, showMap, showCapacity, cardRole, buttonVariant = "primary", buttonText = "Book", emptyMessage = "No upcoming events scheduled.", className }) => {
|
|
979
966
|
const fetchInitialEventsOnMount = initialEvents == null;
|
|
980
967
|
const resolvedShowFilters = showFilters ?? true;
|
|
981
968
|
const resolvedShowVenueFilter = showVenueFilter ?? false;
|
|
@@ -1067,7 +1054,7 @@ const EventCombinedClient = ({ events: initialEvents, siteId, stage, listLayout
|
|
|
1067
1054
|
emptyMessage,
|
|
1068
1055
|
loadingMessage: "Loading events…",
|
|
1069
1056
|
containerClass,
|
|
1070
|
-
|
|
1057
|
+
cardRole,
|
|
1071
1058
|
buttonVariant,
|
|
1072
1059
|
buttonText,
|
|
1073
1060
|
showVenue: resolvedShowVenue,
|
|
@@ -1216,6 +1203,7 @@ const EventCombinedClient = ({ events: initialEvents, siteId, stage, listLayout
|
|
|
1216
1203
|
})
|
|
1217
1204
|
]
|
|
1218
1205
|
}), /* @__PURE__ */ jsx(EventModals, {
|
|
1206
|
+
cardRole,
|
|
1219
1207
|
buttonVariant,
|
|
1220
1208
|
buttonText,
|
|
1221
1209
|
showCapacity: resolvedShowCapacity
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { i as EventPaginatedListView, n as useEventPagination, o as EventFilters, t as useEventFilters } from "./useEventFilters-
|
|
2
|
+
import { k as buildEventRuntimeFilters } from "./propsDecoder-BxmqPKdP.mjs";
|
|
3
|
+
import { i as EventPaginatedListView, n as useEventPagination, o as EventFilters, t as useEventFilters } from "./useEventFilters-CUmhE24_.mjs";
|
|
4
4
|
import { useId, useMemo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
|
|
@@ -3,13 +3,25 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
function joinClasses(...parts) {
|
|
4
4
|
return parts.filter((part) => typeof part === "string" && part.length > 0).join(" ");
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* The class each treatment contributes on top of whatever the caller passed.
|
|
8
|
+
*
|
|
9
|
+
* `panel` contributes nothing: its callers already pass `alert alert-*`, so
|
|
10
|
+
* adopting the vocabulary changes no existing rendering. `field-note` needs a
|
|
11
|
+
* single hook — its tone styling keys off `data-feedback-tone` in the
|
|
12
|
+
* theme-generated CSS rather than off a second class.
|
|
13
|
+
*/
|
|
14
|
+
function treatmentClass(treatment) {
|
|
15
|
+
return treatment === "field-note" ? "feedback-note" : void 0;
|
|
16
|
+
}
|
|
17
|
+
function FeedbackMessage({ tone, treatment = "panel", children, className, id, title, titleClassName, bodyClassName, role = "status", live }) {
|
|
7
18
|
const resolvedLive = live ?? (role === "alert" ? "assertive" : "polite");
|
|
8
|
-
const shouldWrapBody = Boolean(title || bodyClassName);
|
|
19
|
+
const shouldWrapBody = Boolean(title || bodyClassName) || treatment === "field-note";
|
|
9
20
|
return /* @__PURE__ */ jsxs("div", {
|
|
10
21
|
id,
|
|
11
|
-
className,
|
|
22
|
+
className: joinClasses(className, treatmentClass(treatment)) || void 0,
|
|
12
23
|
"data-feedback-tone": tone,
|
|
24
|
+
"data-feedback-treatment": treatment,
|
|
13
25
|
role,
|
|
14
26
|
"aria-live": resolvedLive === "off" ? void 0 : resolvedLive,
|
|
15
27
|
children: [title ? /* @__PURE__ */ jsx("p", {
|