@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
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type CardRole } from '../cards';
|
|
3
|
+
/**
|
|
4
|
+
* The legacy `itemSurface` treatment vocabulary, and how it reads as a card
|
|
5
|
+
* role.
|
|
6
|
+
*
|
|
7
|
+
* `itemSurface` named a *treatment* ("raised", "inset"); a role names *which
|
|
8
|
+
* card* a Look wants and defers the appearance to the site style. Phase 3
|
|
9
|
+
* deleted the treatment vocabulary and the recipe table it fed, so this map is
|
|
10
|
+
* no longer a migration coexistence device — it is the one parse boundary where
|
|
11
|
+
* persisted design plans written before the cutover still load, normalizing to
|
|
12
|
+
* the role they meant.
|
|
13
|
+
*
|
|
14
|
+
* Per-value rationale is recorded in
|
|
15
|
+
* `.project/plans/1297-card-role-contract-site-styles-own-card-surfaces/mapping-table.md`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const legacyItemSurfaceCardRoles: {
|
|
18
|
+
readonly none: "none";
|
|
19
|
+
readonly flat: "default";
|
|
20
|
+
readonly default: "default";
|
|
21
|
+
readonly outlined: "default";
|
|
22
|
+
readonly raised: "default";
|
|
23
|
+
readonly inset: "alternative";
|
|
24
|
+
readonly editorial: "open";
|
|
25
|
+
readonly 'color-blocked': "alternative";
|
|
26
|
+
};
|
|
27
|
+
export type LegacyItemSurfaceValue = keyof typeof legacyItemSurfaceCardRoles;
|
|
28
|
+
/**
|
|
29
|
+
* The enum form of the legacy vocabulary, for schemas that still parse it.
|
|
30
|
+
* Derived from the map so the two cannot drift.
|
|
31
|
+
*/
|
|
32
|
+
export declare const legacyItemSurfaceValues: [LegacyItemSurfaceValue, ...LegacyItemSurfaceValue[]];
|
|
33
|
+
/**
|
|
34
|
+
* Read a card role from untrusted input, accepting the legacy `itemSurface`
|
|
35
|
+
* vocabulary as aliases. Returns `null` for anything else.
|
|
36
|
+
*/
|
|
37
|
+
export declare function cardRoleFromLegacyVocabulary(value: unknown): CardRole | null;
|
|
38
|
+
/**
|
|
39
|
+
* The parse boundary for card roles reaching design intents and persisted
|
|
40
|
+
* design plans: roles pass through, legacy `itemSurface` values normalize to
|
|
41
|
+
* the role they meant, everything else fails the parse.
|
|
42
|
+
*/
|
|
43
|
+
export declare const cardRoleWithLegacyAliasSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
|
|
44
|
+
open: "open";
|
|
45
|
+
default: "default";
|
|
46
|
+
none: "none";
|
|
47
|
+
alternative: "alternative";
|
|
48
|
+
}>>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Theme } from '../schema';
|
|
2
|
+
import type { ButtonSystem } from '../buttons/types';
|
|
3
|
+
import type { ButtonStyleSelection } from '../buttons/styles/selection';
|
|
2
4
|
import type { HeaderLayoutStyleSelection, HeaderLogoContext } from './headerLayoutStyles';
|
|
3
5
|
import type { FooterLookId } from './footerLooks';
|
|
4
6
|
import type { BrandDisplayMode, LogoSizePolicy } from './logoBranding';
|
|
@@ -26,6 +28,22 @@ export type FooterCompilationDirective = Readonly<{
|
|
|
26
28
|
footer: Theme['footer'];
|
|
27
29
|
footerLookId: FooterLookId | null;
|
|
28
30
|
}>;
|
|
31
|
+
export type ButtonUpdateRecompileReason = 'selection-change' | 'missing-applied-buttons';
|
|
32
|
+
export type ButtonRecompileDirective<TReason extends ButtonUpdateRecompileReason = ButtonUpdateRecompileReason> = Readonly<{
|
|
33
|
+
kind: 'recompile';
|
|
34
|
+
selection: ButtonStyleSelection;
|
|
35
|
+
reason: TReason;
|
|
36
|
+
}>;
|
|
37
|
+
export type ReplacementButtonRecompileDirective = Readonly<{
|
|
38
|
+
kind: 'recompile';
|
|
39
|
+
selection: ButtonStyleSelection | null;
|
|
40
|
+
reason: 'site-style-replacement';
|
|
41
|
+
}>;
|
|
42
|
+
export type ButtonCompilationDirective = Readonly<{
|
|
43
|
+
kind: 'preserve';
|
|
44
|
+
buttons: ButtonSystem;
|
|
45
|
+
selection: ButtonStyleSelection;
|
|
46
|
+
}> | ButtonRecompileDirective;
|
|
29
47
|
export type ReplacementBrandPresentation = Readonly<{
|
|
30
48
|
kind: 'apply-logo-context';
|
|
31
49
|
logo: HeaderLogoContext;
|
|
@@ -34,15 +52,18 @@ export type ReplacementBrandPresentation = Readonly<{
|
|
|
34
52
|
}>;
|
|
35
53
|
export type SiteThemeCompilationPlan = Readonly<{
|
|
36
54
|
kind: 'replace-site-style';
|
|
55
|
+
buttons: ReplacementButtonRecompileDirective;
|
|
37
56
|
header: HeaderRecompileDirective;
|
|
38
57
|
footerLookId: FooterLookId | null;
|
|
39
58
|
}> | Readonly<{
|
|
40
59
|
kind: 'update-selection';
|
|
60
|
+
buttons: ButtonCompilationDirective;
|
|
41
61
|
header: HeaderCompilationDirective;
|
|
42
62
|
footer: FooterCompilationDirective;
|
|
43
63
|
}>;
|
|
44
64
|
export declare function replaceSiteStyleCompilationPlan(input: Readonly<{
|
|
45
65
|
headerSelection: HeaderLayoutStyleSelection;
|
|
66
|
+
buttonStyleSelection?: ButtonStyleSelection | null;
|
|
46
67
|
footerLookId?: FooterLookId | null;
|
|
47
68
|
headerLogo?: HeaderLogoContext;
|
|
48
69
|
}>): Extract<SiteThemeCompilationPlan, {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { type DesignBlockId, type DesignResolutionPolicy, type DesignSystemTemplateId, type
|
|
3
|
-
import { type SchemaVersionedJsonParseIssue } from './schemaVersionedJson';
|
|
2
|
+
import { type DesignBlockId, type DesignResolutionPolicy, type DesignSystemTemplateId, type SiteStyleId } from './types';
|
|
4
3
|
import { type ThemeV2CompilerOwnedFieldName, type ThemeV2RuntimeStyleFieldName } from './rawStyleFields';
|
|
5
4
|
export { themeV2RuntimeStyleFieldNames, type ThemeV2RuntimeStyleFieldName, } from './rawStyleFields';
|
|
6
5
|
export declare const themeV2DesignStateSchemaVersion: 1;
|
|
@@ -32,29 +31,6 @@ export type BlockRuntimeStyleAuthority<TBlockId extends string = DesignBlockId>
|
|
|
32
31
|
fields: NonEmptyRuntimeStyleFieldNames;
|
|
33
32
|
authority: StyleAuthority;
|
|
34
33
|
}>;
|
|
35
|
-
export type PersistedPageDesignStateV1<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<PageDesignState<TBlockId, TPurpose> & {
|
|
36
|
-
schemaVersion: typeof themeV2DesignStateSchemaVersion;
|
|
37
|
-
siteStyleId: SiteStyleId;
|
|
38
|
-
templateId: DesignSystemTemplateId;
|
|
39
|
-
templateVersion: number;
|
|
40
|
-
resolverVersion: number;
|
|
41
|
-
styleAuthorities: readonly BlockRuntimeStyleAuthority<TBlockId>[];
|
|
42
|
-
}>;
|
|
43
|
-
/**
|
|
44
|
-
* Current persisted design state alias. When boundary overrides or full page
|
|
45
|
-
* rhythm payloads land, add PersistedPageDesignStateV2 and widen this union.
|
|
46
|
-
*/
|
|
47
|
-
export type PersistedPageDesignState<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = PersistedPageDesignStateV1<TBlockId, TPurpose>;
|
|
48
|
-
export type DesignStateParseIssue = SchemaVersionedJsonParseIssue;
|
|
49
|
-
export type DesignStateParseResult<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<{
|
|
50
|
-
kind: 'absent';
|
|
51
|
-
}> | Readonly<{
|
|
52
|
-
kind: 'parsed';
|
|
53
|
-
state: PersistedPageDesignState<TBlockId, TPurpose>;
|
|
54
|
-
}> | Readonly<{
|
|
55
|
-
kind: 'invalid';
|
|
56
|
-
issue: DesignStateParseIssue;
|
|
57
|
-
}>;
|
|
58
34
|
export type RuntimeStyleClassification = Readonly<{
|
|
59
35
|
kind: 'clean-auto';
|
|
60
36
|
fields: readonly [];
|
|
@@ -106,164 +82,6 @@ export type PageStyleAuthoritySummary<TBlockId extends string = DesignBlockId> =
|
|
|
106
82
|
legacyRawBlockIds: readonly [];
|
|
107
83
|
advancedDetachedBlockIds: readonly TBlockId[];
|
|
108
84
|
}>;
|
|
109
|
-
export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
110
|
-
blockId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBlockId, string>>;
|
|
111
|
-
blockKind: z.ZodString;
|
|
112
|
-
purpose: z.ZodString;
|
|
113
|
-
sectionSurface: z.ZodEnum<{
|
|
114
|
-
base: "base";
|
|
115
|
-
"muted-band": "muted-band";
|
|
116
|
-
"accent-band": "accent-band";
|
|
117
|
-
"brand-depth-band": "brand-depth-band";
|
|
118
|
-
"hero-image": "hero-image";
|
|
119
|
-
}>;
|
|
120
|
-
contentFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
121
|
-
kind: z.ZodLiteral<"plain">;
|
|
122
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
123
|
-
kind: z.ZodLiteral<"panel">;
|
|
124
|
-
treatment: z.ZodEnum<{
|
|
125
|
-
raised: "raised";
|
|
126
|
-
editorial: "editorial";
|
|
127
|
-
inset: "inset";
|
|
128
|
-
}>;
|
|
129
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
130
|
-
kind: z.ZodLiteral<"flush-panel">;
|
|
131
|
-
treatment: z.ZodEnum<{
|
|
132
|
-
"media-panel": "media-panel";
|
|
133
|
-
}>;
|
|
134
|
-
bleed: z.ZodEnum<{
|
|
135
|
-
end: "end";
|
|
136
|
-
both: "both";
|
|
137
|
-
start: "start";
|
|
138
|
-
}>;
|
|
139
|
-
}, z.core.$strict>], "kind">;
|
|
140
|
-
itemSurface: z.ZodEnum<{
|
|
141
|
-
flat: "flat";
|
|
142
|
-
default: "default";
|
|
143
|
-
none: "none";
|
|
144
|
-
raised: "raised";
|
|
145
|
-
editorial: "editorial";
|
|
146
|
-
"color-blocked": "color-blocked";
|
|
147
|
-
inset: "inset";
|
|
148
|
-
outlined: "outlined";
|
|
149
|
-
}>;
|
|
150
|
-
transitionAfter: z.ZodEnum<{
|
|
151
|
-
none: "none";
|
|
152
|
-
"soft-fade-short": "soft-fade-short";
|
|
153
|
-
"soft-fade-long": "soft-fade-long";
|
|
154
|
-
"soft-fade-expansive": "soft-fade-expansive";
|
|
155
|
-
"wave-edge": "wave-edge";
|
|
156
|
-
"wave-edge-balanced": "wave-edge-balanced";
|
|
157
|
-
"wave-edge-gentle": "wave-edge-gentle";
|
|
158
|
-
"wave-edge-bold": "wave-edge-bold";
|
|
159
|
-
"wave-edge-drift": "wave-edge-drift";
|
|
160
|
-
"angle-edge": "angle-edge";
|
|
161
|
-
"angle-edge-subtle": "angle-edge-subtle";
|
|
162
|
-
"angle-edge-steep": "angle-edge-steep";
|
|
163
|
-
}>;
|
|
164
|
-
emphasis: z.ZodEnum<{
|
|
165
|
-
medium: "medium";
|
|
166
|
-
high: "high";
|
|
167
|
-
low: "low";
|
|
168
|
-
}>;
|
|
169
|
-
sectionHeight: z.ZodOptional<z.ZodEnum<{
|
|
170
|
-
default: "default";
|
|
171
|
-
hero: "hero";
|
|
172
|
-
banner: "banner";
|
|
173
|
-
immersive: "immersive";
|
|
174
|
-
}>>;
|
|
175
|
-
heroLegibility: z.ZodOptional<z.ZodEnum<{
|
|
176
|
-
none: "none";
|
|
177
|
-
"scrim-gradient": "scrim-gradient";
|
|
178
|
-
"solid-panel": "solid-panel";
|
|
179
|
-
}>>;
|
|
180
|
-
heroComposition: z.ZodOptional<z.ZodEnum<{
|
|
181
|
-
center: "center";
|
|
182
|
-
"bottom-left": "bottom-left";
|
|
183
|
-
}>>;
|
|
184
|
-
heroTypographyScale: z.ZodOptional<z.ZodEnum<{
|
|
185
|
-
display: "display";
|
|
186
|
-
poster: "poster";
|
|
187
|
-
editorial: "editorial";
|
|
188
|
-
quiet: "quiet";
|
|
189
|
-
}>>;
|
|
190
|
-
imageSurfaceTreatment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
191
|
-
kind: z.ZodLiteral<"none">;
|
|
192
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
193
|
-
kind: z.ZodLiteral<"brand-scrim">;
|
|
194
|
-
token: z.ZodEnum<{
|
|
195
|
-
accent: "accent";
|
|
196
|
-
primary: "primary";
|
|
197
|
-
secondary: "secondary";
|
|
198
|
-
}>;
|
|
199
|
-
intensity: z.ZodOptional<z.ZodEnum<{
|
|
200
|
-
soft: "soft";
|
|
201
|
-
strong: "strong";
|
|
202
|
-
balanced: "balanced";
|
|
203
|
-
}>>;
|
|
204
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
205
|
-
kind: z.ZodLiteral<"brand-wash">;
|
|
206
|
-
token: z.ZodEnum<{
|
|
207
|
-
accent: "accent";
|
|
208
|
-
primary: "primary";
|
|
209
|
-
secondary: "secondary";
|
|
210
|
-
}>;
|
|
211
|
-
intensity: z.ZodOptional<z.ZodEnum<{
|
|
212
|
-
soft: "soft";
|
|
213
|
-
strong: "strong";
|
|
214
|
-
balanced: "balanced";
|
|
215
|
-
}>>;
|
|
216
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
217
|
-
kind: z.ZodLiteral<"neutral-scrim">;
|
|
218
|
-
intensity: z.ZodOptional<z.ZodEnum<{
|
|
219
|
-
soft: "soft";
|
|
220
|
-
strong: "strong";
|
|
221
|
-
balanced: "balanced";
|
|
222
|
-
}>>;
|
|
223
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
224
|
-
kind: z.ZodLiteral<"neutral-wash">;
|
|
225
|
-
intensity: z.ZodOptional<z.ZodEnum<{
|
|
226
|
-
soft: "soft";
|
|
227
|
-
strong: "strong";
|
|
228
|
-
balanced: "balanced";
|
|
229
|
-
}>>;
|
|
230
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
231
|
-
kind: z.ZodLiteral<"solid-panel">;
|
|
232
|
-
intensity: z.ZodOptional<z.ZodEnum<{
|
|
233
|
-
soft: "soft";
|
|
234
|
-
strong: "strong";
|
|
235
|
-
balanced: "balanced";
|
|
236
|
-
}>>;
|
|
237
|
-
}, z.core.$strict>], "kind">>;
|
|
238
|
-
imageSurfaceMotion: z.ZodOptional<z.ZodEnum<{
|
|
239
|
-
static: "static";
|
|
240
|
-
"fixed-frame": "fixed-frame";
|
|
241
|
-
}>>;
|
|
242
|
-
testimonialCardTreatment: z.ZodOptional<z.ZodEnum<{
|
|
243
|
-
default: "default";
|
|
244
|
-
"accent-quote": "accent-quote";
|
|
245
|
-
}>>;
|
|
246
|
-
tileTreatment: z.ZodOptional<z.ZodEnum<{
|
|
247
|
-
default: "default";
|
|
248
|
-
quiet: "quiet";
|
|
249
|
-
"brand-depth": "brand-depth";
|
|
250
|
-
}>>;
|
|
251
|
-
eventListTreatment: z.ZodOptional<z.ZodEnum<{
|
|
252
|
-
plain: "plain";
|
|
253
|
-
"lined-panel": "lined-panel";
|
|
254
|
-
"ruled-register": "ruled-register";
|
|
255
|
-
"editorial-register": "editorial-register";
|
|
256
|
-
"dense-index": "dense-index";
|
|
257
|
-
}>>;
|
|
258
|
-
eyebrowTreatment: z.ZodOptional<z.ZodEnum<{
|
|
259
|
-
accent: "accent";
|
|
260
|
-
pill: "pill";
|
|
261
|
-
plain: "plain";
|
|
262
|
-
"accent-pill": "accent-pill";
|
|
263
|
-
"pill-bounce": "pill-bounce";
|
|
264
|
-
"accent-pill-bounce": "accent-pill-bounce";
|
|
265
|
-
}>>;
|
|
266
|
-
}, z.core.$strict>;
|
|
267
85
|
export declare const styleAuthoritySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
268
86
|
kind: z.ZodLiteral<"theme-v2">;
|
|
269
87
|
source: z.ZodEnum<{
|
|
@@ -320,213 +138,29 @@ export declare const blockRuntimeStyleAuthoritySchema: z.ZodObject<{
|
|
|
320
138
|
reason: z.ZodLiteral<"detached-custom-runtime-fields">;
|
|
321
139
|
}, z.core.$strict>], "kind">;
|
|
322
140
|
}, z.core.$strict>;
|
|
323
|
-
export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
324
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
325
|
-
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
|
|
326
|
-
templateId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignSystemTemplateId, string>>;
|
|
327
|
-
templateVersion: z.ZodNumber;
|
|
328
|
-
resolverVersion: z.ZodNumber;
|
|
329
|
-
rhythmPresetId: z.ZodString;
|
|
330
|
-
blocks: z.ZodArray<z.ZodObject<{
|
|
331
|
-
blockId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBlockId, string>>;
|
|
332
|
-
blockKind: z.ZodString;
|
|
333
|
-
purpose: z.ZodString;
|
|
334
|
-
sectionSurface: z.ZodEnum<{
|
|
335
|
-
base: "base";
|
|
336
|
-
"muted-band": "muted-band";
|
|
337
|
-
"accent-band": "accent-band";
|
|
338
|
-
"brand-depth-band": "brand-depth-band";
|
|
339
|
-
"hero-image": "hero-image";
|
|
340
|
-
}>;
|
|
341
|
-
contentFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
342
|
-
kind: z.ZodLiteral<"plain">;
|
|
343
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
344
|
-
kind: z.ZodLiteral<"panel">;
|
|
345
|
-
treatment: z.ZodEnum<{
|
|
346
|
-
raised: "raised";
|
|
347
|
-
editorial: "editorial";
|
|
348
|
-
inset: "inset";
|
|
349
|
-
}>;
|
|
350
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
351
|
-
kind: z.ZodLiteral<"flush-panel">;
|
|
352
|
-
treatment: z.ZodEnum<{
|
|
353
|
-
"media-panel": "media-panel";
|
|
354
|
-
}>;
|
|
355
|
-
bleed: z.ZodEnum<{
|
|
356
|
-
end: "end";
|
|
357
|
-
both: "both";
|
|
358
|
-
start: "start";
|
|
359
|
-
}>;
|
|
360
|
-
}, z.core.$strict>], "kind">;
|
|
361
|
-
itemSurface: z.ZodEnum<{
|
|
362
|
-
flat: "flat";
|
|
363
|
-
default: "default";
|
|
364
|
-
none: "none";
|
|
365
|
-
raised: "raised";
|
|
366
|
-
editorial: "editorial";
|
|
367
|
-
"color-blocked": "color-blocked";
|
|
368
|
-
inset: "inset";
|
|
369
|
-
outlined: "outlined";
|
|
370
|
-
}>;
|
|
371
|
-
transitionAfter: z.ZodEnum<{
|
|
372
|
-
none: "none";
|
|
373
|
-
"soft-fade-short": "soft-fade-short";
|
|
374
|
-
"soft-fade-long": "soft-fade-long";
|
|
375
|
-
"soft-fade-expansive": "soft-fade-expansive";
|
|
376
|
-
"wave-edge": "wave-edge";
|
|
377
|
-
"wave-edge-balanced": "wave-edge-balanced";
|
|
378
|
-
"wave-edge-gentle": "wave-edge-gentle";
|
|
379
|
-
"wave-edge-bold": "wave-edge-bold";
|
|
380
|
-
"wave-edge-drift": "wave-edge-drift";
|
|
381
|
-
"angle-edge": "angle-edge";
|
|
382
|
-
"angle-edge-subtle": "angle-edge-subtle";
|
|
383
|
-
"angle-edge-steep": "angle-edge-steep";
|
|
384
|
-
}>;
|
|
385
|
-
emphasis: z.ZodEnum<{
|
|
386
|
-
medium: "medium";
|
|
387
|
-
high: "high";
|
|
388
|
-
low: "low";
|
|
389
|
-
}>;
|
|
390
|
-
sectionHeight: z.ZodOptional<z.ZodEnum<{
|
|
391
|
-
default: "default";
|
|
392
|
-
hero: "hero";
|
|
393
|
-
banner: "banner";
|
|
394
|
-
immersive: "immersive";
|
|
395
|
-
}>>;
|
|
396
|
-
heroLegibility: z.ZodOptional<z.ZodEnum<{
|
|
397
|
-
none: "none";
|
|
398
|
-
"scrim-gradient": "scrim-gradient";
|
|
399
|
-
"solid-panel": "solid-panel";
|
|
400
|
-
}>>;
|
|
401
|
-
heroComposition: z.ZodOptional<z.ZodEnum<{
|
|
402
|
-
center: "center";
|
|
403
|
-
"bottom-left": "bottom-left";
|
|
404
|
-
}>>;
|
|
405
|
-
heroTypographyScale: z.ZodOptional<z.ZodEnum<{
|
|
406
|
-
display: "display";
|
|
407
|
-
poster: "poster";
|
|
408
|
-
editorial: "editorial";
|
|
409
|
-
quiet: "quiet";
|
|
410
|
-
}>>;
|
|
411
|
-
imageSurfaceTreatment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
412
|
-
kind: z.ZodLiteral<"none">;
|
|
413
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
414
|
-
kind: z.ZodLiteral<"brand-scrim">;
|
|
415
|
-
token: z.ZodEnum<{
|
|
416
|
-
accent: "accent";
|
|
417
|
-
primary: "primary";
|
|
418
|
-
secondary: "secondary";
|
|
419
|
-
}>;
|
|
420
|
-
intensity: z.ZodOptional<z.ZodEnum<{
|
|
421
|
-
soft: "soft";
|
|
422
|
-
strong: "strong";
|
|
423
|
-
balanced: "balanced";
|
|
424
|
-
}>>;
|
|
425
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
426
|
-
kind: z.ZodLiteral<"brand-wash">;
|
|
427
|
-
token: z.ZodEnum<{
|
|
428
|
-
accent: "accent";
|
|
429
|
-
primary: "primary";
|
|
430
|
-
secondary: "secondary";
|
|
431
|
-
}>;
|
|
432
|
-
intensity: z.ZodOptional<z.ZodEnum<{
|
|
433
|
-
soft: "soft";
|
|
434
|
-
strong: "strong";
|
|
435
|
-
balanced: "balanced";
|
|
436
|
-
}>>;
|
|
437
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
438
|
-
kind: z.ZodLiteral<"neutral-scrim">;
|
|
439
|
-
intensity: z.ZodOptional<z.ZodEnum<{
|
|
440
|
-
soft: "soft";
|
|
441
|
-
strong: "strong";
|
|
442
|
-
balanced: "balanced";
|
|
443
|
-
}>>;
|
|
444
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
445
|
-
kind: z.ZodLiteral<"neutral-wash">;
|
|
446
|
-
intensity: z.ZodOptional<z.ZodEnum<{
|
|
447
|
-
soft: "soft";
|
|
448
|
-
strong: "strong";
|
|
449
|
-
balanced: "balanced";
|
|
450
|
-
}>>;
|
|
451
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
452
|
-
kind: z.ZodLiteral<"solid-panel">;
|
|
453
|
-
intensity: z.ZodOptional<z.ZodEnum<{
|
|
454
|
-
soft: "soft";
|
|
455
|
-
strong: "strong";
|
|
456
|
-
balanced: "balanced";
|
|
457
|
-
}>>;
|
|
458
|
-
}, z.core.$strict>], "kind">>;
|
|
459
|
-
imageSurfaceMotion: z.ZodOptional<z.ZodEnum<{
|
|
460
|
-
static: "static";
|
|
461
|
-
"fixed-frame": "fixed-frame";
|
|
462
|
-
}>>;
|
|
463
|
-
testimonialCardTreatment: z.ZodOptional<z.ZodEnum<{
|
|
464
|
-
default: "default";
|
|
465
|
-
"accent-quote": "accent-quote";
|
|
466
|
-
}>>;
|
|
467
|
-
tileTreatment: z.ZodOptional<z.ZodEnum<{
|
|
468
|
-
default: "default";
|
|
469
|
-
quiet: "quiet";
|
|
470
|
-
"brand-depth": "brand-depth";
|
|
471
|
-
}>>;
|
|
472
|
-
eventListTreatment: z.ZodOptional<z.ZodEnum<{
|
|
473
|
-
plain: "plain";
|
|
474
|
-
"lined-panel": "lined-panel";
|
|
475
|
-
"ruled-register": "ruled-register";
|
|
476
|
-
"editorial-register": "editorial-register";
|
|
477
|
-
"dense-index": "dense-index";
|
|
478
|
-
}>>;
|
|
479
|
-
eyebrowTreatment: z.ZodOptional<z.ZodEnum<{
|
|
480
|
-
accent: "accent";
|
|
481
|
-
pill: "pill";
|
|
482
|
-
plain: "plain";
|
|
483
|
-
"accent-pill": "accent-pill";
|
|
484
|
-
"pill-bounce": "pill-bounce";
|
|
485
|
-
"accent-pill-bounce": "accent-pill-bounce";
|
|
486
|
-
}>>;
|
|
487
|
-
}, z.core.$strict>>;
|
|
488
|
-
styleAuthorities: z.ZodArray<z.ZodObject<{
|
|
489
|
-
unit: z.ZodLiteral<"block-runtime-fields">;
|
|
490
|
-
blockId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBlockId, string>>;
|
|
491
|
-
fields: z.ZodPipe<z.ZodArray<z.ZodEnum<{
|
|
492
|
-
_frameStyles: "_frameStyles";
|
|
493
|
-
_sectionStyles: "_sectionStyles";
|
|
494
|
-
_containerStyles: "_containerStyles";
|
|
495
|
-
_cardStyles: "_cardStyles";
|
|
496
|
-
_transitionStyles: "_transitionStyles";
|
|
497
|
-
styleGroup: "styleGroup";
|
|
498
|
-
}>>, z.ZodTransform<NonEmptyRuntimeStyleFieldNames, ("_frameStyles" | "_sectionStyles" | "_containerStyles" | "_cardStyles" | "_transitionStyles" | "styleGroup")[]>>;
|
|
499
|
-
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
500
|
-
kind: z.ZodLiteral<"theme-v2">;
|
|
501
|
-
source: z.ZodEnum<{
|
|
502
|
-
user: "user";
|
|
503
|
-
admin: "admin";
|
|
504
|
-
sdk: "sdk";
|
|
505
|
-
generated: "generated";
|
|
506
|
-
}>;
|
|
507
|
-
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
|
|
508
|
-
templateId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignSystemTemplateId, string>>;
|
|
509
|
-
templateVersion: z.ZodNumber;
|
|
510
|
-
resolverVersion: z.ZodNumber;
|
|
511
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
512
|
-
kind: z.ZodLiteral<"legacy-raw">;
|
|
513
|
-
reason: z.ZodEnum<{
|
|
514
|
-
"pre-theme-v2": "pre-theme-v2";
|
|
515
|
-
"manual-runtime-fields": "manual-runtime-fields";
|
|
516
|
-
}>;
|
|
517
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
518
|
-
kind: z.ZodLiteral<"advanced-detached">;
|
|
519
|
-
reason: z.ZodLiteral<"detached-custom-runtime-fields">;
|
|
520
|
-
}, z.core.$strict>], "kind">;
|
|
521
|
-
}, z.core.$strict>>;
|
|
522
|
-
}, z.core.$strict>;
|
|
523
|
-
export declare function parsePersistedPageDesignState(value: unknown): DesignStateParseResult;
|
|
524
141
|
export declare function collectRuntimeStyleFieldNames(content: Readonly<Record<string, unknown>>): readonly ThemeV2RuntimeStyleFieldName[];
|
|
525
142
|
export declare function classifyRuntimeStyleFields(input: Readonly<{
|
|
526
143
|
content: Readonly<Record<string, unknown>>;
|
|
527
144
|
authority?: StyleAuthority;
|
|
528
145
|
}>): RuntimeStyleClassification;
|
|
529
146
|
export declare function canWriteThemeV2RuntimeFields(authority: StyleAuthority | undefined): authority is ThemeV2StyleAuthority;
|
|
147
|
+
/**
|
|
148
|
+
* Replace every compiler-owned field on a block's content with a fresh compiled
|
|
149
|
+
* set — the one primitive both writers of compiled output share.
|
|
150
|
+
*
|
|
151
|
+
* Replacement rather than merge is the whole point: a field the new
|
|
152
|
+
* compilation does not produce must *go*, or a recompile onto a Look that asks
|
|
153
|
+
* for no card leaves the old `_cardStyles` sitting there claiming a surface
|
|
154
|
+
* nobody asked for. Every writer that discovers compiler ownership for itself
|
|
155
|
+
* eventually forgets one of these names, so nobody does.
|
|
156
|
+
*
|
|
157
|
+
* Pure, and deliberately free of authority checks — those belong to the
|
|
158
|
+
* persistence wrapper, not to the shape of the content.
|
|
159
|
+
*/
|
|
160
|
+
export declare function withCompiledRuntimeStyleFields<TContent extends Record<string, unknown>, TFields extends ThemeV2RuntimeStyleFields>(input: Readonly<{
|
|
161
|
+
content: TContent;
|
|
162
|
+
fields: TFields;
|
|
163
|
+
}>): Omit<TContent, ThemeV2CompilerOwnedFieldName> & TFields;
|
|
530
164
|
/**
|
|
531
165
|
* Persisted Theme V2 output is compile-at-write: once a block has Theme V2
|
|
532
166
|
* authority, compiler-owned runtime fields are replaced in the same content
|
|
@@ -538,4 +172,6 @@ export declare function replaceCompiledRuntimeStyleFields<TContent extends Recor
|
|
|
538
172
|
fields: TFields;
|
|
539
173
|
authority?: StyleAuthority;
|
|
540
174
|
}>): RuntimeStyleWriteResultForFields<TContent, TFields>;
|
|
541
|
-
export declare function summarizePageStyleAuthorities<TBlockId extends string>(state:
|
|
175
|
+
export declare function summarizePageStyleAuthorities<TBlockId extends string>(state: Readonly<{
|
|
176
|
+
styleAuthorities: readonly BlockRuntimeStyleAuthority<TBlockId>[];
|
|
177
|
+
}>): PageStyleAuthoritySummary<TBlockId>;
|
|
@@ -76,22 +76,18 @@ export declare const generatedBlockDesignIntentSchema: z.ZodObject<{
|
|
|
76
76
|
}>;
|
|
77
77
|
}, z.core.$strict>], "kind">;
|
|
78
78
|
}, z.core.$strict>], "kind">;
|
|
79
|
-
|
|
79
|
+
cardRole: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
80
|
source: z.ZodLiteral<"generated">;
|
|
81
81
|
kind: z.ZodLiteral<"auto">;
|
|
82
82
|
}, z.core.$strict>, z.ZodObject<{
|
|
83
83
|
source: z.ZodLiteral<"generated">;
|
|
84
84
|
kind: z.ZodLiteral<"explicit">;
|
|
85
|
-
value: z.ZodEnum<{
|
|
86
|
-
|
|
85
|
+
value: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
|
|
86
|
+
open: "open";
|
|
87
87
|
default: "default";
|
|
88
88
|
none: "none";
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"color-blocked": "color-blocked";
|
|
92
|
-
inset: "inset";
|
|
93
|
-
outlined: "outlined";
|
|
94
|
-
}>;
|
|
89
|
+
alternative: "alternative";
|
|
90
|
+
}>>;
|
|
95
91
|
}, z.core.$strict>], "kind">;
|
|
96
92
|
transitionAfter: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
97
93
|
source: z.ZodLiteral<"generated">;
|
|
@@ -231,22 +227,18 @@ export declare const generatedPageDesignIntentSchema: z.ZodObject<{
|
|
|
231
227
|
}>;
|
|
232
228
|
}, z.core.$strict>], "kind">;
|
|
233
229
|
}, z.core.$strict>], "kind">;
|
|
234
|
-
|
|
230
|
+
cardRole: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
235
231
|
source: z.ZodLiteral<"generated">;
|
|
236
232
|
kind: z.ZodLiteral<"auto">;
|
|
237
233
|
}, z.core.$strict>, z.ZodObject<{
|
|
238
234
|
source: z.ZodLiteral<"generated">;
|
|
239
235
|
kind: z.ZodLiteral<"explicit">;
|
|
240
|
-
value: z.ZodEnum<{
|
|
241
|
-
|
|
236
|
+
value: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
|
|
237
|
+
open: "open";
|
|
242
238
|
default: "default";
|
|
243
239
|
none: "none";
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
"color-blocked": "color-blocked";
|
|
247
|
-
inset: "inset";
|
|
248
|
-
outlined: "outlined";
|
|
249
|
-
}>;
|
|
240
|
+
alternative: "alternative";
|
|
241
|
+
}>>;
|
|
250
242
|
}, z.core.$strict>], "kind">;
|
|
251
243
|
transitionAfter: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
252
244
|
source: z.ZodLiteral<"generated">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ThemeHeader } from '../schema';
|
|
2
2
|
import type { HeaderInteractionPaletteOptionGroup } from './headerInteractionPalette';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ResolvedSurfaceForeground } from '../surfaces';
|
|
4
4
|
import { type BrandDisplayMode, type LogoAccommodationOption, type LogoFacts, type LogoSizePolicy } from './logoBranding';
|
|
5
5
|
import { type Brand } from './types';
|
|
6
6
|
export declare const headerLayoutIdValues: readonly ["classic", "centered", "floating"];
|
|
@@ -97,11 +97,9 @@ export type HeaderOpeningSectionContext = Readonly<{
|
|
|
97
97
|
canAdjust: true;
|
|
98
98
|
}> | Readonly<{
|
|
99
99
|
kind: 'color-section';
|
|
100
|
-
contrast: 'light' | 'dark' | 'unknown';
|
|
101
100
|
canAdjust: boolean;
|
|
102
101
|
}> | Readonly<{
|
|
103
102
|
kind: 'gradient-section';
|
|
104
|
-
contrast: 'light' | 'dark' | 'unknown';
|
|
105
103
|
canAdjust: boolean;
|
|
106
104
|
}> | Readonly<{
|
|
107
105
|
kind: 'dynamic-media';
|
|
@@ -128,7 +126,7 @@ export type HeaderLogoContext = HeaderLogoShapeContext | HeaderLogoFactsContext;
|
|
|
128
126
|
export declare const defaultHeaderLogoContext: HeaderLogoContext;
|
|
129
127
|
export type HeaderSelectionContext = Readonly<{
|
|
130
128
|
openingSection: HeaderOpeningSectionContext;
|
|
131
|
-
openingForeground:
|
|
129
|
+
openingForeground: ResolvedSurfaceForeground;
|
|
132
130
|
logo: HeaderLogoContext;
|
|
133
131
|
navigation: Readonly<{
|
|
134
132
|
itemCount: number;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import type { Theme } from '../schema';
|
|
2
|
-
import {
|
|
2
|
+
import type { ResolvedSurfaceForeground } from '../surfaces';
|
|
3
3
|
import type { HeaderStyleDefinition } from './headerLayoutTypes';
|
|
4
|
-
export type HeaderOpeningForeground = Readonly<{
|
|
5
|
-
kind: 'known';
|
|
6
|
-
token: ThemeColorToken;
|
|
7
|
-
evidence: 'declared-opening-surface' | 'theme-default';
|
|
8
|
-
}> | Readonly<{
|
|
9
|
-
kind: 'unknown';
|
|
10
|
-
}>;
|
|
11
4
|
export type HeaderOpeningForegroundContext = Readonly<{
|
|
12
|
-
openingForeground:
|
|
5
|
+
openingForeground: ResolvedSurfaceForeground;
|
|
13
6
|
}>;
|
|
14
7
|
export type HeaderStyleAvailability = Readonly<{
|
|
15
8
|
kind: 'available';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { BlockDesignPlan, DesignBlockId, ResolvedBlockDesignPlan } from './types';
|
|
2
2
|
import type { HeaderLayoutStyleSelection, HeaderOpeningSectionContext } from './headerLayoutStyles';
|
|
3
|
-
import type { HeaderOpeningForeground } from './headerOpeningForeground';
|
|
4
3
|
export type HeaderOpeningSectionRepair = 'promote-opening-hero-surface' | 'add-opening-contrast-overlay' | 'add-opening-top-spacing';
|
|
5
4
|
export type HeaderOpeningSectionPlan<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
6
5
|
plan: readonly BlockDesignPlan<TBlockId>[];
|
|
@@ -16,7 +15,6 @@ export declare function planGeneratedHeaderOpeningSection<TBlockId extends Desig
|
|
|
16
15
|
recommendedHeaderSelections: readonly HeaderLayoutStyleSelection[];
|
|
17
16
|
}>): HeaderOpeningSectionPlan<TBlockId>;
|
|
18
17
|
export declare function deriveHeaderOpeningSectionContextFromContent(input: HeaderOpeningContentSnapshot): HeaderOpeningSectionContext;
|
|
19
|
-
export declare function deriveHeaderOpeningForegroundFromContent(input: HeaderOpeningContentSnapshot): HeaderOpeningForeground;
|
|
20
18
|
export declare function deriveHeaderOpeningSectionContext(input: Readonly<{
|
|
21
19
|
openingBlock: ResolvedBlockDesignPlan | null;
|
|
22
20
|
openingContent?: Record<string, unknown> | null;
|