@riverbankcms/sdk 0.143.0 → 0.145.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/dist/{PreviewEditorSidebar-DROGfMKi.mjs → PreviewEditorSidebar-O-V6Pl5a.mjs} +20 -26
- package/dist/{PreviewEditorUI-BaRjhFu-.mjs → PreviewEditorUI-1UlX_9cw.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BCYICImX.mjs → PreviewQueryProvider-BxGwdOCV.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-OIABYLES.mjs → SdkPreviewModeRuntime-DYbA_4iv.mjs} +431 -351
- package/dist/{SiteChromeCustomizeContext-ohjTvZbc.mjs → SiteChromeCustomizeContext-CNTKQ9nx.mjs} +3989 -2769
- package/dist/_dts/ai/src/contracts/proposals.d.ts +4719 -66
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +429 -6
- package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +49 -0
- package/dist/_dts/api/src/appointmentServiceCategoryEndpoints.d.ts +75 -0
- package/dist/_dts/api/src/appointmentServiceContracts.d.ts +80 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +8 -1
- package/dist/_dts/api/src/billing.d.ts +1 -1
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +8 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +3 -1
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -12
- package/dist/_dts/api/src/communications.d.ts +14 -22
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
- package/dist/_dts/api/src/endpoints.d.ts +105 -58
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +2 -0
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -4
- package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +0 -23
- package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +3 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +35 -1
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +13 -0
- package/dist/_dts/api/src/publicNewsletterEndpointDefinitions.d.ts +58 -0
- package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +3 -3
- package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkSettingsContracts.d.ts +8 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -8
- package/dist/_dts/api/src/siteSettings.d.ts +17 -7
- package/dist/_dts/api/src/types.d.ts +2 -1
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/block-form/src/backend/types.d.ts +14 -0
- package/dist/_dts/block-form/src/client/index.d.ts +1 -0
- package/dist/_dts/block-form/src/context/RepeaterHostActionsContext.d.ts +30 -0
- package/dist/_dts/block-form/src/context/index.d.ts +1 -0
- package/dist/_dts/block-form/src/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +4 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +5 -2
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +11 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useEmptyStateFocusAfterRemoval.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +15 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +5 -2
- package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -4
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +58 -10
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/pageRenderJoins.d.ts +68 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -27
- package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +7 -4
- package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +40 -23
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +3 -0
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
- package/dist/_dts/blocks/src/system/constants/events.d.ts +10 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +29 -3
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/api/context.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/api/readAuthority.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -13
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +9 -4
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +22 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +7 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +57 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-categories.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-choices.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +13 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +7 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +6 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/header-control.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +6 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +20 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/ThemedButton.d.ts +58 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/chromeLogo.d.ts +23 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +4 -1
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
- package/dist/_dts/core/src/appointment-service-categories.d.ts +108 -0
- package/dist/_dts/core/src/editor-state.d.ts +6 -0
- package/dist/_dts/core/src/event-catalogue.d.ts +27 -0
- package/dist/_dts/core/src/event-preset-vocabulary.d.ts +7 -0
- package/dist/_dts/core/src/index.d.ts +3 -0
- package/dist/_dts/core/src/public-profile.d.ts +9 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +676 -241
- package/dist/_dts/db/src/schemas/forms.d.ts +286 -2
- package/dist/_dts/editor-blocks/src/block-editor/{BlockCardHeader.d.ts → BlockCardFrame.d.ts} +11 -3
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +6 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +16 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +13 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +29 -0
- package/dist/_dts/logger/src/console.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +7 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +1 -3
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
- package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +1 -0
- package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +8 -0
- package/dist/_dts/sdk/src/client/types.d.ts +4 -1
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +7 -2
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +2 -2
- package/dist/_dts/sdk/src/navigation/index.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +21 -15
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/client.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/islands/enhancers/shopShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +3 -13
- package/dist/_dts/theme-core/src/customCss/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/customCss/patch.d.ts +0 -5
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/layout/boundaryCss.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +8 -0
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +1 -3
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/joinTreatment.d.ts +132 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorBoundaries.d.ts +31 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +33 -29
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/pageFlowPresets.d.ts +36 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -10
- package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +17 -4
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +20 -74
- package/dist/_dts/theme-core/src/site-styles/sectionBoundaryComposition.d.ts +95 -0
- package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +80 -518
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +9 -4
- package/dist/_dts/theme-core/src/site-styles/transitionCatalogue.d.ts +320 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +3 -18
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/logoVariant.d.ts +26 -0
- package/dist/_dts/theme-core/src/utils/colorStyles.d.ts +10 -0
- package/dist/_dts/ui/src/editor-item-card.d.ts +116 -0
- package/dist/_dts/ui/src/index.d.ts +1 -0
- package/dist/client/{BookingConsentAgreement-BoCtvzzu.mjs → BookingConsentAgreement-DlVOmpW4.mjs} +4 -55
- package/dist/client/{DiscountCodeDisclosure-B5S30nZk.mjs → DiscountCodeDisclosure-T9q623PQ.mjs} +27 -17
- package/dist/client/{EventCombined.client-CeZ2-zSt.mjs → EventCombined.client-DnsUeONl.mjs} +54 -46
- package/dist/client/{EventListing.client-DJN3j8B3.mjs → EventListing.client-CNBFqJS4.mjs} +3 -4
- package/dist/client/{LeafletStaticMap-RjtGzDQT.mjs → LeafletStaticMap-C7higg52.mjs} +1 -1
- package/dist/client/ThemedButton-LAJTNrS8.mjs +412 -0
- package/dist/client/{accordion-DOmnDoyg.mjs → accordion-BcNF9TjX.mjs} +1 -1
- package/dist/client/{bookingForm-C0vk7pgS.mjs → bookingForm-BUaQ3S03.mjs} +161 -75
- package/dist/client/bookings.mjs +392 -182
- package/dist/client/{carousel-BZJ7pno3.mjs → carousel-CTdF6e0V.mjs} +2 -2
- package/dist/client/{carousel.client-DQTjCVQT.mjs → carousel.client-jahpU9Vz.mjs} +1 -1
- package/dist/client/{cart-CaeVAHJl.mjs → cart-pGtyf_XU.mjs} +3 -3
- package/dist/client/{checkout-7wmoNDtG.mjs → checkout-Da9WSn7Y.mjs} +3 -3
- package/dist/client/{checkoutUrls-FL6lRkrt.mjs → checkoutUrls-CW3-78uu.mjs} +1 -1
- package/dist/client/client.mjs +3819 -2717
- package/dist/client/{colorStyles-3013aRAY.mjs → colorStyles-CuJBiS-1.mjs} +16 -4
- package/dist/client/{context-BOimxE3U.mjs → context-BFeY_Wbm.mjs} +24 -8
- package/dist/client/{dates-BnzVksi4.mjs → dates-BhwVSxDg.mjs} +2 -2
- package/dist/client/{eventCalendar-l-fpaslC.mjs → eventCalendar-BAtdnR4s.mjs} +39 -50
- package/dist/client/{eventCombined-DGGvssK6.mjs → eventCombined-RksA3tRC.mjs} +5 -4
- package/dist/client/{eventDetails-DRiCm_hL.mjs → eventDetails-BB9hB4wR.mjs} +4 -4
- package/dist/client/{eventListing-dph8loYX.mjs → eventListing-BpJBkviM.mjs} +5 -4
- package/dist/client/{eventRegistration-ClBohmbY.mjs → eventRegistration-B18jFq_o.mjs} +83 -68
- package/dist/client/{form-BLVVAnd3.mjs → form-Dodt8Y8t.mjs} +9 -10
- package/dist/client/{headerSection-DHy4C8Ix.mjs → headerSection-B0qj9ttg.mjs} +23 -30
- package/dist/client/hooks.mjs +807 -162
- package/dist/client/{locationMap-6HuS28ck.mjs → locationMap-gn-iMk7a.mjs} +9 -10
- package/dist/client/{media-DHpfFwd3.mjs → media-BtJ37tzS.mjs} +1 -1
- package/dist/client/{newsletterForm-xOdcOhZP.mjs → newsletterForm-oByLdFkr.mjs} +31 -11
- package/dist/client/{pricing-ChinRYFt.mjs → pricing-BOU0_Hai.mjs} +1 -1
- package/dist/client/{productDetail-0chA5gbK.mjs → productDetail-D9v1zH2j.mjs} +3 -3
- package/dist/client/{productList-OoINA0h1.mjs → productList-D-mItx1n.mjs} +3 -3
- package/dist/client/{propsDecoder-CIZ-hbIG.mjs → propsDecoder-C3TP_z4x.mjs} +158 -61
- package/dist/client/rendering/client.mjs +2785 -2000
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3855 -2694
- package/dist/client/{routeIslandApiConfig-UNsfPcYq.mjs → routeIslandApiConfig-DzN1W0sq.mjs} +8 -1
- package/dist/client/{scrollToBlock-BPZl0gPZ.mjs → scrollToBlock-CWs8EIdo.mjs} +1 -1
- package/dist/client/{shop-CLJFqNIq.mjs → shop-Dufw7N7o.mjs} +45 -58
- package/dist/client/{shop-commerce-PpANg5wB.mjs → shop-commerce-gklw_hLF.mjs} +42 -55
- package/dist/client/{shop-commerce-store-TA_Kz2ku.mjs → shop-commerce-store-Sf1eyTaZ.mjs} +1 -1
- package/dist/client/{shopShared-DzcFcA5g.mjs → shopShared-B5nyA41S.mjs} +6 -5
- package/dist/client/{useEventFilters-CFU21QZo.mjs → useEventFilters-CLL829vy.mjs} +66 -355
- package/dist/preview-next/before-render.mjs +147 -77
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-chrome.css +8 -0
- package/dist/preview-next/keepAlive.mjs +147 -77
- package/dist/preview-next/middleware.mjs +147 -77
- package/dist/{previewAuthStore-JA6-I_sL.mjs → previewAuthStore-BxAFlu-j.mjs} +147 -77
- package/dist/{sdk-runtime-CDKl0Fr7.mjs → sdk-runtime-D0uZFev7.mjs} +2 -2
- package/dist/{separator-BTp96X32.mjs → separator-EvdCAn4V.mjs} +1 -1
- package/dist/server/components.mjs +2548 -1607
- package/dist/server/config-validation.mjs +794 -160
- package/dist/server/config.mjs +794 -160
- package/dist/server/data.mjs +806 -161
- package/dist/server/index.mjs +167 -85
- package/dist/server/navigation.mjs +28 -1
- package/dist/server/next.mjs +14930 -14036
- package/dist/server/page-converter.mjs +494 -113
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2537 -1590
- package/dist/server/rendering.mjs +2571 -1618
- package/dist/server/routing.mjs +918 -200
- package/dist/server/server.mjs +819 -205
- package/dist/server/theme-bridge.mjs +1232 -28
- package/dist/server/theme.mjs +6 -4
- package/dist/styles/index.css +6 -0
- package/package.json +2 -1
|
@@ -2,8 +2,8 @@ import { type CardStylesOverride, type ContainerStylesOverride, type SectionStyl
|
|
|
2
2
|
import { type ExpandedPalette } from '../palette/expandPalette';
|
|
3
3
|
import { type ButtonStyleSelection } from '../buttons/styles';
|
|
4
4
|
import { type RuntimeStyleWriteResultForFields, type StyleAuthority } from './designState';
|
|
5
|
-
import { type ContentFrameIntent, type BlockCompositionIntent, type EyebrowTreatment, type FlushFrameTreatment, type
|
|
6
|
-
import { type
|
|
5
|
+
import { type ContentFrameIntent, type BlockCompositionIntent, type EyebrowTreatment, type FlushFrameTreatment, type DesignBlockId, type PanelFrameTreatment, type ResolvedBlockDesignPlan, type ResolvedPageDesignPlan, type SiteStyleSurfaceIntent, type ThemeTokenRecipes } from './types';
|
|
6
|
+
import { type PageRuntimeJoin } from './joinTreatment';
|
|
7
7
|
import { type ThemeColorToken } from '../tokens';
|
|
8
8
|
import { type GradientPresetId } from '../gradients';
|
|
9
9
|
export type SemanticSpacing = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable' | 'spacious';
|
|
@@ -39,7 +39,6 @@ export type DesignRuntimeRules = Readonly<{
|
|
|
39
39
|
sectionSurfaces: Readonly<Record<SiteStyleSurfaceIntent, SectionSurfaceRuntimeRule>>;
|
|
40
40
|
defaultEyebrowTreatment?: EyebrowTreatment;
|
|
41
41
|
heroLegibility: Readonly<Record<Exclude<NonNullable<ResolvedBlockDesignPlan['appliedHeroLegibility']>, 'none'>, NonNullable<ImageSectionBackgroundOverride['overlay']>>>;
|
|
42
|
-
transitionClassName: (transition: SiteStyleSectionTransitionIntent, fromSurface: SiteStyleSurfaceIntent, toSurface: SiteStyleSurfaceIntent) => string | null;
|
|
43
42
|
}>;
|
|
44
43
|
export type ComponentRuntimeRules = Readonly<{
|
|
45
44
|
panelFrames: Readonly<Record<PanelFrameTreatment, ContainerStylesOverride>>;
|
|
@@ -52,40 +51,8 @@ export type CompiledBlockRuntimeFields = Readonly<{
|
|
|
52
51
|
_contentCardStyles?: ContainerStylesOverride;
|
|
53
52
|
_heroLayoutStyles?: HeroLayoutStylesOverride;
|
|
54
53
|
_cardStyles?: CardStylesOverride;
|
|
55
|
-
_transitionStyles?: CompiledTransitionRuntime;
|
|
56
54
|
blockLook?: string;
|
|
57
55
|
blockComposition?: BlockCompositionIntent;
|
|
58
|
-
styleGroup?: string;
|
|
59
|
-
}>;
|
|
60
|
-
export type CompiledTransitionEndpoint = Readonly<{
|
|
61
|
-
kind: 'surface';
|
|
62
|
-
surface: SiteStyleSurfaceIntent;
|
|
63
|
-
}> | Readonly<{
|
|
64
|
-
kind: 'color-token';
|
|
65
|
-
token: ThemeColorToken;
|
|
66
|
-
}>;
|
|
67
|
-
export type CompiledTransitionRuntime = Readonly<{
|
|
68
|
-
treatment: SiteStyleSectionTransitionIntent;
|
|
69
|
-
from: CompiledTransitionEndpoint;
|
|
70
|
-
to: CompiledTransitionEndpoint;
|
|
71
|
-
cssVars: Readonly<{
|
|
72
|
-
from: string;
|
|
73
|
-
to: string;
|
|
74
|
-
}>;
|
|
75
|
-
}>;
|
|
76
|
-
export type CompiledBoundaryRuntime<TBlockId extends string = string> = Readonly<{
|
|
77
|
-
boundaryId: DesignBoundaryId | string;
|
|
78
|
-
previousBlockId: TBlockId;
|
|
79
|
-
nextBlockId: TBlockId;
|
|
80
|
-
treatment: SiteStyleSectionTransitionIntent;
|
|
81
|
-
metrics: SectionBoundaryRuntimeMetrics;
|
|
82
|
-
from: CompiledTransitionEndpoint;
|
|
83
|
-
to: CompiledTransitionEndpoint;
|
|
84
|
-
cssVars: Readonly<{
|
|
85
|
-
from: string;
|
|
86
|
-
to: string;
|
|
87
|
-
}>;
|
|
88
|
-
styleGroup: string;
|
|
89
56
|
}>;
|
|
90
57
|
export type HeroLayoutStylesOverride = Readonly<{
|
|
91
58
|
contentAlignment?: 'left' | 'center' | 'right';
|
|
@@ -93,7 +60,11 @@ export type HeroLayoutStylesOverride = Readonly<{
|
|
|
93
60
|
contentMaxWidth?: 'default' | 'narrow' | 'medium' | 'wide';
|
|
94
61
|
typographyScale?: NonNullable<ResolvedBlockDesignPlan['heroTypographyScale']>;
|
|
95
62
|
}>;
|
|
96
|
-
export declare const compiledRuntimeStyleFieldNames: readonly ["_frameStyles", "_sectionStyles", "_containerStyles", "_contentCardStyles", "_heroLayoutStyles", "_cardStyles", "
|
|
63
|
+
export declare const compiledRuntimeStyleFieldNames: readonly ["_frameStyles", "_sectionStyles", "_containerStyles", "_contentCardStyles", "_heroLayoutStyles", "_cardStyles", "blockLook", "blockComposition"];
|
|
64
|
+
/**
|
|
65
|
+
* Removes every compiler-owned field, plus a stale transition `styleGroup`.
|
|
66
|
+
* An authored `styleGroup` is content and survives.
|
|
67
|
+
*/
|
|
97
68
|
export declare function stripCompiledRuntimeStyleFields<TContent extends Record<string, unknown>>(content: TContent): Record<string, unknown>;
|
|
98
69
|
export type CompiledBlockRuntime = Readonly<{
|
|
99
70
|
blockId: string;
|
|
@@ -113,12 +84,6 @@ export type CompileBlockRuntimeInput<TBlockId extends string, TPurpose extends s
|
|
|
113
84
|
designRules?: DesignRuntimeRules;
|
|
114
85
|
componentRules?: ComponentRuntimeRules;
|
|
115
86
|
sectionSpacing?: SemanticSpacing;
|
|
116
|
-
sectionAdjacency?: SectionAdjacency;
|
|
117
|
-
/**
|
|
118
|
-
* @deprecated Prefer `sectionAdjacency`. Kept for isolated block callers that
|
|
119
|
-
* compile one block with an explicit following section surface.
|
|
120
|
-
*/
|
|
121
|
-
nextSectionSurface?: SiteStyleSurfaceIntent;
|
|
122
87
|
}>;
|
|
123
88
|
export type CompileBlockRuntimeIntoContentInput<TBlockId extends string, TPurpose extends string, TContent extends Record<string, unknown>> = CompileBlockRuntimeInput<TBlockId, TPurpose> & Readonly<{
|
|
124
89
|
content: TContent;
|
|
@@ -128,25 +93,13 @@ export type CompiledPageRuntime<TBlockId extends string = string> = Readonly<{
|
|
|
128
93
|
blocks: readonly (CompiledBlockRuntime & Readonly<{
|
|
129
94
|
blockId: TBlockId;
|
|
130
95
|
}>)[];
|
|
131
|
-
|
|
96
|
+
joins: readonly PageRuntimeJoin<TBlockId>[];
|
|
132
97
|
}>;
|
|
133
|
-
export type SectionAdjacency = Readonly<{
|
|
134
|
-
kind: 'next-section';
|
|
135
|
-
surface: SiteStyleSurfaceIntent;
|
|
136
|
-
}> | Readonly<{
|
|
137
|
-
kind: 'terminal-surface';
|
|
138
|
-
surface: SiteStyleSurfaceIntent;
|
|
139
|
-
}> | Readonly<{
|
|
140
|
-
kind: 'page-end';
|
|
141
|
-
}>;
|
|
142
|
-
export type TerminalSectionAdjacency = Extract<SectionAdjacency, Readonly<{
|
|
143
|
-
kind: 'terminal-surface' | 'page-end';
|
|
144
|
-
}>>;
|
|
145
98
|
export declare function defineDesignRuntimeRules<const TRules extends DesignRuntimeRules>(rules: TRules): TRules;
|
|
146
99
|
export declare function defineComponentRuntimeRules<const TRules extends ComponentRuntimeRules>(rules: TRules): TRules;
|
|
147
100
|
/**
|
|
148
101
|
* Default design rules translate semantic page-level choices into the current
|
|
149
|
-
* runtime's section background
|
|
102
|
+
* runtime's section background vocabulary.
|
|
150
103
|
*/
|
|
151
104
|
export declare const defaultDesignRuntimeRules: {
|
|
152
105
|
readonly sectionSurfaces: {
|
|
@@ -193,7 +146,6 @@ export declare const defaultDesignRuntimeRules: {
|
|
|
193
146
|
readonly opacity: 0.88;
|
|
194
147
|
};
|
|
195
148
|
};
|
|
196
|
-
readonly transitionClassName: (transition: SiteStyleSectionTransitionIntent, fromSurface: SiteStyleSurfaceIntent, toSurface: SiteStyleSurfaceIntent) => string | null;
|
|
197
149
|
};
|
|
198
150
|
/**
|
|
199
151
|
* Default component rules translate frame and item-surface semantics into the
|
|
@@ -245,33 +197,27 @@ export declare const defaultComponentRuntimeRules: {
|
|
|
245
197
|
export declare function compileBlockRuntimeFields<TBlockId extends string, TPurpose extends string>(input: CompileBlockRuntimeInput<TBlockId, TPurpose>): CompiledBlockRuntime & Readonly<{
|
|
246
198
|
blockId: TBlockId;
|
|
247
199
|
}>;
|
|
248
|
-
export declare function compileTransitionRuntime(input: Readonly<{
|
|
249
|
-
treatment: SiteStyleSectionTransitionIntent;
|
|
250
|
-
from: CompiledTransitionEndpoint;
|
|
251
|
-
to: CompiledTransitionEndpoint;
|
|
252
|
-
}>): CompiledTransitionRuntime;
|
|
253
|
-
export declare function compileBoundaryRuntime<TBlockId extends string>(input: Readonly<{
|
|
254
|
-
boundaryId: DesignBoundaryId | string;
|
|
255
|
-
previousBlockId: TBlockId;
|
|
256
|
-
nextBlockId: TBlockId;
|
|
257
|
-
treatment: SiteStyleSectionTransitionIntent;
|
|
258
|
-
fromSurface: SiteStyleSurfaceIntent;
|
|
259
|
-
toSurface: SiteStyleSurfaceIntent;
|
|
260
|
-
rules?: DesignRuntimeRules;
|
|
261
|
-
}>): CompiledBoundaryRuntime<TBlockId> | null;
|
|
262
200
|
/**
|
|
263
201
|
* Compiles block runtime fields and writes them into content only when Theme V2
|
|
264
202
|
* owns that block's runtime-style fields.
|
|
265
203
|
*/
|
|
266
204
|
export declare function compileBlockRuntimeFieldsIntoContent<TBlockId extends string, TPurpose extends string, TContent extends Record<string, unknown>>(input: CompileBlockRuntimeIntoContentInput<TBlockId, TPurpose, TContent>): RuntimeStyleWriteResultForFields<TContent, CompiledBlockRuntimeFields>;
|
|
267
|
-
/**
|
|
268
|
-
|
|
205
|
+
/**
|
|
206
|
+
* Compiles a resolved page plan into legacy runtime fields for each resolved
|
|
207
|
+
* block, plus the public runtime joins between them.
|
|
208
|
+
*
|
|
209
|
+
* Joins come from `resolveJoinTreatment`; plans no longer carry a treatment.
|
|
210
|
+
* Only joins whose two blocks were compiled are kept, and they leave as intent
|
|
211
|
+
* only: the blocks renderer composes each one from final content after
|
|
212
|
+
* omission, including whether it draws at all (issue 1422).
|
|
213
|
+
*/
|
|
214
|
+
export declare function compilePageRuntimeFields<TBlockId extends DesignBlockId, TPurpose extends string>(input: Readonly<{
|
|
269
215
|
resolved: ResolvedPageDesignPlan<TBlockId, TPurpose>;
|
|
216
|
+
joins: readonly PageRuntimeJoin<TBlockId>[];
|
|
270
217
|
surfaceResolutionContext: SurfaceResolutionContext;
|
|
271
218
|
designRules?: DesignRuntimeRules;
|
|
272
219
|
componentRules?: ComponentRuntimeRules;
|
|
273
220
|
sectionSpacing?: SemanticSpacing;
|
|
274
|
-
terminalSectionAdjacency?: TerminalSectionAdjacency;
|
|
275
221
|
}>): CompiledPageRuntime<TBlockId>;
|
|
276
222
|
type PaletteCompileOptions = Readonly<{
|
|
277
223
|
/** A complete concrete palette supplied by the theme/editor boundary. */
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { type ThemeColorToken } from '../tokens/themeColorTokens';
|
|
2
|
+
import type { DecorativeTransitionIntent } from './transitionCatalogue';
|
|
3
|
+
import { type FrameKind } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* What one side of a join offers a boundary to paint with. Only theme tokens
|
|
6
|
+
* paint: media, gradients and literal colours cannot be matched by a flat
|
|
7
|
+
* shape, so they are unpainted and the boundary draws inside the other side.
|
|
8
|
+
*/
|
|
9
|
+
export type BoundaryEndpoint = Readonly<{
|
|
10
|
+
kind: 'paint';
|
|
11
|
+
token: ThemeColorToken;
|
|
12
|
+
}> | Readonly<{
|
|
13
|
+
kind: 'unpainted';
|
|
14
|
+
reason: 'media' | 'gradient' | 'literal-color';
|
|
15
|
+
}>;
|
|
16
|
+
export type BoundaryComposition = Readonly<{
|
|
17
|
+
kind: 'paint-to-paint';
|
|
18
|
+
from: ThemeColorToken;
|
|
19
|
+
to: ThemeColorToken;
|
|
20
|
+
}> | Readonly<{
|
|
21
|
+
kind: 'unpainted-to-paint';
|
|
22
|
+
to: ThemeColorToken;
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
kind: 'paint-to-unpainted';
|
|
25
|
+
from: ThemeColorToken;
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* What composition needs to know about one side of a join, read from the
|
|
29
|
+
* content that finally renders: what the section paints with and the frame it
|
|
30
|
+
* draws.
|
|
31
|
+
*/
|
|
32
|
+
export type SectionFacts = Readonly<{
|
|
33
|
+
endpoint: BoundaryEndpoint;
|
|
34
|
+
frame: FrameKind;
|
|
35
|
+
}>;
|
|
36
|
+
export type BoundaryNotShownReason = 'both-unpainted' | 'flush-panel';
|
|
37
|
+
export type BoundaryOutcome = Readonly<{
|
|
38
|
+
kind: 'shown';
|
|
39
|
+
composition: BoundaryComposition;
|
|
40
|
+
}> | Readonly<{
|
|
41
|
+
kind: 'not-shown';
|
|
42
|
+
reason: BoundaryNotShownReason;
|
|
43
|
+
}>;
|
|
44
|
+
/**
|
|
45
|
+
* `centred` straddles the join; `previous` sits inside the previous section,
|
|
46
|
+
* anchored to its bottom; `next` sits inside the next section, anchored to its
|
|
47
|
+
* top and mirrored vertically.
|
|
48
|
+
*/
|
|
49
|
+
export type BoundaryPlacement = 'centred' | 'previous' | 'next';
|
|
50
|
+
export type BoundaryLayout = Readonly<{
|
|
51
|
+
placement: BoundaryPlacement;
|
|
52
|
+
/**
|
|
53
|
+
* Extra section padding the boundary needs, as CSS lengths. `before` is
|
|
54
|
+
* reserved inside the previous section (above the join) and `after` inside
|
|
55
|
+
* the next section (below it). Null means no reserve on that side.
|
|
56
|
+
*/
|
|
57
|
+
reserves: Readonly<{
|
|
58
|
+
before: string | null;
|
|
59
|
+
after: string | null;
|
|
60
|
+
}>;
|
|
61
|
+
paint: Readonly<{
|
|
62
|
+
band: ThemeColorToken | null;
|
|
63
|
+
shape: ThemeColorToken;
|
|
64
|
+
}>;
|
|
65
|
+
}>;
|
|
66
|
+
/**
|
|
67
|
+
* Classifies a section from its final render content. `_sectionStyles`
|
|
68
|
+
* already holds the effective background (Look default, page-design override
|
|
69
|
+
* and block-authored media merged by `resolveSectionBackground`), so this only
|
|
70
|
+
* reads it and never re-decides precedence. A missing or unparseable
|
|
71
|
+
* background is the page background, as it is for the renderer.
|
|
72
|
+
*/
|
|
73
|
+
export declare function boundaryEndpointForSectionContent(content: Record<string, unknown>): BoundaryEndpoint;
|
|
74
|
+
/**
|
|
75
|
+
* Reads both facts from final render content in one place. `_frameStyles` is
|
|
76
|
+
* the compiled frame; content without one (no page design, an SDK block)
|
|
77
|
+
* draws a plain frame.
|
|
78
|
+
*/
|
|
79
|
+
export declare function sectionFactsForContent(content: Record<string, unknown>): SectionFacts;
|
|
80
|
+
/**
|
|
81
|
+
* The frame rule: a flush panel owns the edge it runs to, so no break is
|
|
82
|
+
* drawn next to one. The single home for this rule; the generated
|
|
83
|
+
* pipeline's budget and the site-style lab ask it with their plan frames.
|
|
84
|
+
*/
|
|
85
|
+
export declare function frameNotShownReason(previous: FrameKind, next: FrameKind): Extract<BoundaryNotShownReason, 'flush-panel'> | null;
|
|
86
|
+
/**
|
|
87
|
+
* Decides whether and how a join draws. The frame rule wins before paint is
|
|
88
|
+
* considered; two unpainted sides show nothing.
|
|
89
|
+
*/
|
|
90
|
+
export declare function composeBoundary(previous: SectionFacts, next: SectionFacts): BoundaryOutcome;
|
|
91
|
+
/**
|
|
92
|
+
* Placement, reserves and paint for a shown boundary, derived from the
|
|
93
|
+
* composition and the catalogue's metrics for the treatment.
|
|
94
|
+
*/
|
|
95
|
+
export declare function boundaryLayout(intent: DecorativeTransitionIntent, composition: BoundaryComposition): BoundaryLayout;
|