@riverbankcms/sdk 0.129.1 → 0.130.2
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 +33 -11
- package/dist/{PreviewEditorSidebar-DceRseRV.mjs → PreviewEditorSidebar-BY-1QdE2.mjs} +327 -250
- package/dist/{PreviewEditorUI-BNunq3kk.mjs → PreviewEditorUI-BS34jI9_.mjs} +3 -3
- package/dist/{PreviewQueryProvider-B1kbhaJD.mjs → PreviewQueryProvider-BD0kOjtI.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-Bt87-62u.mjs → SdkPreviewModeRuntime-B1pWnhu-.mjs} +235 -211
- package/dist/{SiteChromeCustomizeContext-BLl-OlL4.mjs → SiteChromeCustomizeContext-BhUG_72i.mjs} +12981 -11912
- package/dist/_dts/ai/src/contracts/proposalPrimitives.d.ts +52 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +5256 -29129
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +33429 -0
- 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/appointmentSetup.d.ts +21 -9
- package/dist/_dts/api/src/bookingConfig.d.ts +12 -64
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +17 -16
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +15 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/bookingSettingsSections.d.ts +9 -0
- package/dist/_dts/api/src/bookingVerticals.d.ts +2 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +2 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -5
- package/dist/_dts/api/src/endpoints.d.ts +1355 -1318
- package/dist/_dts/api/src/event-destination-policy.d.ts +1 -1
- package/dist/_dts/api/src/eventManagementContracts.d.ts +152 -0
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +26 -0
- package/dist/_dts/api/src/eventSeriesPresentationPreset.d.ts +12 -0
- package/dist/_dts/api/src/index.d.ts +12 -3
- 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/oauth.d.ts +8 -0
- package/dist/_dts/api/src/preview-auth.d.ts +26 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +22 -47
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +5 -5
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +0 -1
- package/dist/_dts/api/src/sdk-event-schedule.d.ts +5 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +114 -20
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +48 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +43 -79
- package/dist/_dts/api/src/sdkEventCategoryContracts.d.ts +9 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +35 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +2256 -302
- 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/siteOperations.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +17 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +23 -37
- package/dist/_dts/api/src/types.d.ts +7 -59
- 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/contracts/index.d.ts +2 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +6 -8
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +36 -14
- package/dist/_dts/blocks/src/index.d.ts +5 -3
- package/dist/_dts/blocks/src/lib/media.d.ts +9 -539
- package/dist/_dts/blocks/src/primitives/layout/Grid.d.ts +18 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +61 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +24 -22
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +25 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +142 -120
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +37 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-nav-groups-layout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +3 -0
- 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/componentFactory.d.ts +5 -5
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +9 -9
- package/dist/_dts/blocks/src/system/customize/serializeBackgroundOverride.d.ts +3 -0
- package/dist/_dts/blocks/src/system/fields/background.d.ts +2 -20
- package/dist/_dts/blocks/src/system/fields/backgroundContent.d.ts +17 -0
- package/dist/_dts/blocks/src/system/fields/backgroundContentAudit.d.ts +20 -0
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +18 -34
- package/dist/_dts/blocks/src/system/fields/gridLayout.d.ts +20 -0
- package/dist/_dts/blocks/src/system/fragments/builder.d.ts +1 -0
- package/dist/_dts/blocks/src/system/fragments/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/helpers/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +10 -45
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +7 -4
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/writeCanonicalization.d.ts +4 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +123 -55
- 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/registry.d.ts +2 -0
- 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/api/types/shop.d.ts +2 -37
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +61 -24
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +30 -12
- package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +3 -5
- package/dist/_dts/blocks/src/system/runtime/header/headerScrollRuntime.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/header/runtimeContract.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +4 -2
- 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/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/view.d.ts +3 -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/eventScope.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.frame.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.server.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.pass-contract.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.state.d.ts +3 -3
- 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/spacing.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/boxStyleClassNames.d.ts +90 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +7 -1
- package/dist/_dts/blocks/src/system/transforms/registry/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +29 -1
- package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +4 -1
- package/dist/_dts/blocks/src/system/transforms/registry/headerRuntime.d.ts +3 -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 +4 -40
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +41 -43
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +4 -2
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +2 -17
- package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +5 -0
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -2
- package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +21 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +11 -1
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +26 -0
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +6 -6
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +6 -6
- package/dist/_dts/content-model/src/templates/defaults.d.ts +7 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +2 -2
- package/dist/_dts/core/src/booking-time-zone.d.ts +6 -0
- package/dist/_dts/core/src/branded.d.ts +4 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +25 -4
- package/dist/_dts/core/src/footer-composition-types.d.ts +4 -4
- package/dist/_dts/core/src/footer-navigation-layout.d.ts +4 -0
- package/dist/_dts/core/src/index.d.ts +4 -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 +379 -18
- 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/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +1 -1
- 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/FooterSidebarDisclosure.d.ts +8 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +15 -17
- package/dist/_dts/preview-next/src/client/preview/PreviewFooterEditorPanel.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewSiteFontStorageContext.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +6 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +7 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +12 -11
- package/dist/_dts/preview-next/src/client/preview/siteChromeSelectionRows.d.ts +53 -0
- package/dist/_dts/preview-next/src/client/preview/siteFontPreview.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/siteStyleAccess.d.ts +1 -6
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +6 -15
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +4 -6
- 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/config/types.d.ts +1 -0
- package/dist/_dts/sdk/src/config/validation.d.ts +2 -0
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +64 -79
- package/dist/_dts/sdk/src/next/catch-all-theme-admission.d.ts +23 -0
- package/dist/_dts/sdk/src/next/index.d.ts +8 -6
- package/dist/_dts/sdk/src/next/resolveTheme.d.ts +1 -2
- package/dist/_dts/sdk/src/next/types.d.ts +10 -0
- package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -16
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +4 -3
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +5 -3
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +15 -2
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +11 -0
- 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/blockOverrides.d.ts +1 -1
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +184 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +96 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +78 -0
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +9 -57
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +6 -3
- package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +8 -7
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +11 -0
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -0
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +5 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +51 -4
- 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 +489 -21
- 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/lib/media.d.ts +583 -10
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +5085 -1524
- 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 +5300 -2019
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +84 -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 +84 -102
- package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +48 -0
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +6 -14
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +29 -102
- package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +3 -76
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +21 -385
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -7
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipelineHelpers.d.ts +17 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +10 -18
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +281 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutResolution.d.ts +13 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/{headerLookTypes.d.ts → headerLayoutTypes.d.ts} +18 -90
- package/dist/_dts/theme-core/src/site-styles/headerNavStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +7 -11
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -4
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/imageSurfaceBackground.d.ts +14 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +6 -1
- 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 +14 -41
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +19 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +32 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +9 -68
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +13 -12
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +50 -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 +3 -2
- package/dist/client/{CourseRegistrationWizard-xRmA7REV.mjs → CourseRegistrationWizard-DGW9F0SQ.mjs} +7 -7
- package/dist/client/{DiscountCodeDisclosure-B9vriL5C.mjs → DiscountCodeDisclosure-BPZ-yfGI.mjs} +1 -1
- package/dist/client/{EventCombined.client-BgVnVTlz.mjs → EventCombined.client-Cjt3kKYR.mjs} +4 -4
- package/dist/client/{EventListing.client-CqdsO7jO.mjs → EventListing.client-DY9dn6Fh.mjs} +2 -2
- package/dist/client/{FeedbackMessage-ByMrs3cr.mjs → FeedbackMessage-CtLvvS_d.mjs} +15 -3
- package/dist/client/{LeafletStaticMap-CKPxot9M.mjs → LeafletStaticMap--2c61XYn.mjs} +1 -1
- package/dist/client/{StepIndicator-DGCYuBJ1.mjs → StepIndicator-CLjQhkDb.mjs} +3 -3
- package/dist/client/{accordion-BfN5Eqd-.mjs → accordion-_boYwHHi.mjs} +1 -1
- package/dist/client/{bookingForm-DOvCpBFP.mjs → bookingForm--AqEfyBX.mjs} +56 -39
- package/dist/client/bookings.mjs +1348 -1157
- package/dist/client/{carousel-DPNmiH0f.mjs → carousel-CVI2dqZr.mjs} +2 -2
- package/dist/client/{carousel.client-CpwTUhIo.mjs → carousel.client-59G_WMr4.mjs} +1 -1
- package/dist/client/{cart--egVXlrR.mjs → cart-DR6IiPz9.mjs} +3 -3
- package/dist/client/{checkout-DywWtMcq.mjs → checkout-CsrGAfQt.mjs} +3 -3
- package/dist/client/client.mjs +20935 -19889
- 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-Dk9qFVwt.mjs → courseRegistration-aNJVaLa3.mjs} +3 -3
- package/dist/client/{eventCalendar-Bkz2HjlS.mjs → eventCalendar-OZ7h59VN.mjs} +6 -6
- package/dist/client/{eventCombined-D4kipYWg.mjs → eventCombined-BbJ6bFKz.mjs} +3 -3
- package/dist/client/{eventDetails-Dz_5ix2Q.mjs → eventDetails-BLyUBiCT.mjs} +3 -3
- package/dist/client/{eventListing-D0vm-zST.mjs → eventListing-DuP1yhBS.mjs} +3 -3
- package/dist/client/{eventRegistration-Cw1E4Q4p.mjs → eventRegistration-BXyECPa-.mjs} +11 -12
- package/dist/client/{form-C2Zf1n3K.mjs → form-BA4t3kKU.mjs} +4 -4
- package/dist/client/{headerSection-CP05gzdc.mjs → headerSection-CpNaJxhW.mjs} +151 -104
- package/dist/client/hooks.mjs +6328 -6104
- package/dist/client/{locationMap-Cl3x9PYJ.mjs → locationMap-3HGMCL7_.mjs} +3 -3
- package/dist/client/{media-CNE1Z-wb.mjs → media-BOHuueS5.mjs} +16 -4
- package/dist/client/{newsletterForm-DyEJoClm.mjs → newsletterForm-C2s6Mw67.mjs} +4 -4
- package/dist/client/{pricing-DGuNR1W4.mjs → pricing-BiqIMgZk.mjs} +1 -1
- package/dist/client/{productDetail-Cq-HrGew.mjs → productDetail-C9joWhdE.mjs} +3 -3
- package/dist/client/{productList-DbB3jwqd.mjs → productList-CjzdU3pB.mjs} +3 -3
- package/dist/client/{propsDecoder-CiTuhUwY.mjs → propsDecoder-CBPGXEYX.mjs} +2480 -2478
- package/dist/client/rendering/client.mjs +5371 -6741
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +18616 -17447
- package/dist/client/{scrollToBlock-CShkRqab.mjs → scrollToBlock-DZ73aEX6.mjs} +1 -1
- package/dist/client/{shop-Cu4Ib-ZA.mjs → shop-CQRai7hj.mjs} +36 -25
- package/dist/client/{shop-commerce-BzpsOdh7.mjs → shop-commerce-hP9UboOx.mjs} +8 -8
- package/dist/client/{shop-commerce-store-DaE7Fhj8.mjs → shop-commerce-store-DiD5a32e.mjs} +1 -1
- package/dist/client/{shopShared-cF0c20vB.mjs → shopShared-DP8DXTkF.mjs} +12 -6
- package/dist/client/{useEventFilters-QZ3HMgaJ.mjs → useEventFilters-pF_OJNQP.mjs} +137 -81
- package/dist/client/{usePolling-BKf0GcE-.mjs → usePolling-Cls91SD2.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +202 -129
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +7406 -29
- package/dist/preview-next/middleware.mjs +196 -128
- package/dist/{previewAuthStore-BesgU5Xu.mjs → previewAuthStore-CX1C_KJ4.mjs} +195 -128
- package/dist/{sdk-runtime-C20CVWbb.mjs → sdk-runtime-5CcPAI14.mjs} +2 -2
- package/dist/{separator-BE3NCquy.mjs → separator-BXlYN_gr.mjs} +1 -1
- package/dist/server/components.mjs +22644 -21375
- package/dist/server/config-validation.mjs +6507 -6309
- package/dist/server/config.mjs +6511 -6313
- package/dist/server/data.mjs +6311 -6104
- package/dist/server/date-time.mjs +22 -13
- package/dist/server/index.mjs +196 -129
- package/dist/server/next.mjs +22782 -21578
- package/dist/server/page-converter.mjs +4769 -6213
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +20525 -20291
- package/dist/server/rendering.mjs +22677 -21389
- package/dist/server/routing.mjs +6651 -5398
- package/dist/server/server.mjs +6389 -6256
- package/dist/server/theme-bridge.mjs +2251 -2465
- package/dist/server/theme.mjs +974 -642
- package/dist/styles/index.css +317 -337
- package/package.json +3 -2
- 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/preview-next/src/client/preview/siteChromeLookRows.d.ts +0 -66
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyleCatalog.d.ts +0 -254
- package/dist/_dts/theme-core/src/site-styles/headerLegacyLooks.d.ts +0 -372
- package/dist/_dts/theme-core/src/site-styles/headerLookBranding.d.ts +0 -106
- package/dist/_dts/theme-core/src/site-styles/headerLookSelection.d.ts +0 -2
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +0 -7
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompilerPrimitives.d.ts +0 -23
- package/dist/client/clsx-DgIEfj3H.mjs +0 -16
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import type { Theme } from '../schema';
|
|
2
|
+
import { type HeaderBrandPresentationPlan, type HeaderBrandPresentationSelection, type LogoAccommodationOption } from './logoBranding';
|
|
3
|
+
import { type HeaderLayoutId, type HeaderLogoContext, type HeaderStyleId } from './headerLayoutTypes';
|
|
4
|
+
export declare function resolveHeaderBrandPresentation(input: Readonly<{
|
|
5
|
+
logo: HeaderLogoContext;
|
|
6
|
+
accommodations: readonly LogoAccommodationOption[];
|
|
7
|
+
allowDisplayFallback?: boolean;
|
|
8
|
+
}>): HeaderBrandPresentationPlan;
|
|
9
|
+
export declare function requireHeaderBrandPresentationSelection(plan: HeaderBrandPresentationPlan): HeaderBrandPresentationSelection;
|
|
10
|
+
/**
|
|
11
|
+
* Starts each compilation from the generated theme's header branch, then
|
|
12
|
+
* clears optional nested styling fields that would otherwise leak from a
|
|
13
|
+
* different header selection.
|
|
14
|
+
*/
|
|
15
|
+
export declare function baseHeader(theme: Theme): Theme['header'];
|
|
16
|
+
export declare const headerLayoutCatalog: readonly [{
|
|
17
|
+
readonly id: HeaderLayoutId;
|
|
18
|
+
readonly label: "Classic";
|
|
19
|
+
readonly description: "Logo and navigation in one practical horizontal row.";
|
|
20
|
+
readonly variant: "classic";
|
|
21
|
+
readonly defaultPositioning: "sticky";
|
|
22
|
+
readonly shrinkOnScroll: false;
|
|
23
|
+
readonly logoAccommodations: readonly [{
|
|
24
|
+
readonly pattern: "title-only";
|
|
25
|
+
readonly supportedShapes: readonly ["none", "horizontal", "square", "portrait", "tall"];
|
|
26
|
+
readonly supportedTextPresence: readonly ["contains-text", "no-text", "unknown"];
|
|
27
|
+
readonly supportedDisplayModes: readonly ["title-only"];
|
|
28
|
+
readonly size: "compact";
|
|
29
|
+
}, {
|
|
30
|
+
readonly pattern: "inline-wordmark";
|
|
31
|
+
readonly supportedShapes: readonly ["horizontal"];
|
|
32
|
+
readonly supportedTextPresence: readonly ["contains-text", "no-text", "unknown"];
|
|
33
|
+
readonly supportedDisplayModes: readonly ["logo-only"];
|
|
34
|
+
readonly size: "standard";
|
|
35
|
+
readonly maxDensity: "detailed";
|
|
36
|
+
}, {
|
|
37
|
+
readonly pattern: "inline-mark-with-title";
|
|
38
|
+
readonly supportedShapes: readonly ["horizontal", "square", "portrait", "tall"];
|
|
39
|
+
readonly supportedTextPresence: readonly ["no-text"];
|
|
40
|
+
readonly supportedDisplayModes: readonly ["logo-plus-title"];
|
|
41
|
+
readonly size: "compact";
|
|
42
|
+
readonly maxDensity: "simple";
|
|
43
|
+
}, {
|
|
44
|
+
readonly pattern: "popout-badge";
|
|
45
|
+
readonly supportedShapes: readonly ["square", "portrait", "tall"];
|
|
46
|
+
readonly supportedTextPresence: readonly ["contains-text", "unknown"];
|
|
47
|
+
readonly supportedDisplayModes: readonly ["logo-only"];
|
|
48
|
+
readonly size: "display";
|
|
49
|
+
readonly providesBacking: true;
|
|
50
|
+
}, {
|
|
51
|
+
readonly pattern: "logo-plate";
|
|
52
|
+
readonly supportedShapes: readonly ["square", "portrait", "tall"];
|
|
53
|
+
readonly supportedTextPresence: readonly ["contains-text", "unknown"];
|
|
54
|
+
readonly supportedDisplayModes: readonly ["logo-only"];
|
|
55
|
+
readonly size: "display";
|
|
56
|
+
readonly providesBacking: true;
|
|
57
|
+
}];
|
|
58
|
+
readonly openingRequirement: "none";
|
|
59
|
+
}, {
|
|
60
|
+
readonly id: HeaderLayoutId;
|
|
61
|
+
readonly label: "Centered";
|
|
62
|
+
readonly description: "Logo centered above a balanced navigation row.";
|
|
63
|
+
readonly variant: "centered";
|
|
64
|
+
readonly defaultPositioning: "static";
|
|
65
|
+
readonly shrinkOnScroll: false;
|
|
66
|
+
readonly logoAccommodations: readonly [{
|
|
67
|
+
readonly pattern: "title-only";
|
|
68
|
+
readonly supportedShapes: readonly ["none", "horizontal", "square", "portrait", "tall"];
|
|
69
|
+
readonly supportedTextPresence: readonly ["contains-text", "no-text", "unknown"];
|
|
70
|
+
readonly supportedDisplayModes: readonly ["title-only"];
|
|
71
|
+
readonly size: "compact";
|
|
72
|
+
}, {
|
|
73
|
+
readonly pattern: "inline-wordmark";
|
|
74
|
+
readonly supportedShapes: readonly ["horizontal"];
|
|
75
|
+
readonly supportedTextPresence: readonly ["contains-text", "no-text", "unknown"];
|
|
76
|
+
readonly supportedDisplayModes: readonly ["logo-only"];
|
|
77
|
+
readonly size: "standard";
|
|
78
|
+
readonly maxDensity: "detailed";
|
|
79
|
+
}, {
|
|
80
|
+
readonly pattern: "inline-mark-with-title";
|
|
81
|
+
readonly supportedShapes: readonly ["horizontal", "square", "portrait", "tall"];
|
|
82
|
+
readonly supportedTextPresence: readonly ["no-text"];
|
|
83
|
+
readonly supportedDisplayModes: readonly ["logo-plus-title"];
|
|
84
|
+
readonly size: "compact";
|
|
85
|
+
readonly maxDensity: "simple";
|
|
86
|
+
}, {
|
|
87
|
+
readonly pattern: "centered-masthead";
|
|
88
|
+
readonly supportedShapes: readonly ["square", "portrait", "tall"];
|
|
89
|
+
readonly supportedTextPresence: readonly ["contains-text", "unknown"];
|
|
90
|
+
readonly supportedDisplayModes: readonly ["logo-only"];
|
|
91
|
+
readonly size: "display";
|
|
92
|
+
readonly providesBacking: true;
|
|
93
|
+
}, {
|
|
94
|
+
readonly pattern: "centered-badge";
|
|
95
|
+
readonly supportedShapes: readonly ["square", "portrait", "tall"];
|
|
96
|
+
readonly supportedTextPresence: readonly ["contains-text", "unknown"];
|
|
97
|
+
readonly supportedDisplayModes: readonly ["logo-only"];
|
|
98
|
+
readonly size: "display";
|
|
99
|
+
readonly providesBacking: true;
|
|
100
|
+
}];
|
|
101
|
+
readonly openingRequirement: "none";
|
|
102
|
+
}, {
|
|
103
|
+
readonly id: HeaderLayoutId;
|
|
104
|
+
readonly label: "Floating";
|
|
105
|
+
readonly description: "Detached header chrome that sits over the opening section.";
|
|
106
|
+
readonly variant: "floating";
|
|
107
|
+
readonly defaultPositioning: "sticky";
|
|
108
|
+
readonly shrinkOnScroll: true;
|
|
109
|
+
readonly logoAccommodations: readonly [{
|
|
110
|
+
readonly pattern: "title-only";
|
|
111
|
+
readonly supportedShapes: readonly ["none", "horizontal", "square", "portrait", "tall"];
|
|
112
|
+
readonly supportedTextPresence: readonly ["contains-text", "no-text", "unknown"];
|
|
113
|
+
readonly supportedDisplayModes: readonly ["title-only"];
|
|
114
|
+
readonly size: "compact";
|
|
115
|
+
}, {
|
|
116
|
+
readonly pattern: "inline-wordmark";
|
|
117
|
+
readonly supportedShapes: readonly ["horizontal"];
|
|
118
|
+
readonly supportedTextPresence: readonly ["contains-text", "no-text", "unknown"];
|
|
119
|
+
readonly supportedDisplayModes: readonly ["logo-only"];
|
|
120
|
+
readonly size: "standard";
|
|
121
|
+
readonly maxDensity: "detailed";
|
|
122
|
+
}, {
|
|
123
|
+
readonly pattern: "inline-mark-with-title";
|
|
124
|
+
readonly supportedShapes: readonly ["horizontal", "square", "portrait", "tall"];
|
|
125
|
+
readonly supportedTextPresence: readonly ["no-text"];
|
|
126
|
+
readonly supportedDisplayModes: readonly ["logo-plus-title"];
|
|
127
|
+
readonly size: "compact";
|
|
128
|
+
readonly maxDensity: "simple";
|
|
129
|
+
}, {
|
|
130
|
+
readonly pattern: "inline-logo-only";
|
|
131
|
+
readonly supportedShapes: readonly ["square"];
|
|
132
|
+
readonly supportedTextPresence: readonly ["contains-text", "unknown"];
|
|
133
|
+
readonly supportedDisplayModes: readonly ["logo-only"];
|
|
134
|
+
readonly size: "compact";
|
|
135
|
+
readonly providesBacking: false;
|
|
136
|
+
}];
|
|
137
|
+
readonly openingRequirement: "requires-image-hero-with-contrast-overlay";
|
|
138
|
+
}];
|
|
139
|
+
export declare const headerStyleCatalog: readonly [{
|
|
140
|
+
readonly id: HeaderStyleId;
|
|
141
|
+
readonly label: "Minimal";
|
|
142
|
+
readonly description: "Quiet surface with simple color-change navigation.";
|
|
143
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
144
|
+
readonly navTypography: "plain";
|
|
145
|
+
}, {
|
|
146
|
+
readonly id: HeaderStyleId;
|
|
147
|
+
readonly label: "Seamless";
|
|
148
|
+
readonly description: "Borderless surface with underline hover for a quieter page transition.";
|
|
149
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
150
|
+
readonly navTypography: "plain";
|
|
151
|
+
}, {
|
|
152
|
+
readonly id: HeaderStyleId;
|
|
153
|
+
readonly label: "Soft Bar";
|
|
154
|
+
readonly description: "Soft tinted surface with gentle pill hover states.";
|
|
155
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
156
|
+
readonly navTypography: "plain";
|
|
157
|
+
}, {
|
|
158
|
+
readonly id: HeaderStyleId;
|
|
159
|
+
readonly label: "Pill Nav";
|
|
160
|
+
readonly description: "A calm pill navigation rail over a neutral header.";
|
|
161
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
162
|
+
readonly navTypography: "plain";
|
|
163
|
+
}, {
|
|
164
|
+
readonly id: HeaderStyleId;
|
|
165
|
+
readonly label: "Brand Bar";
|
|
166
|
+
readonly description: "Solid brand surface with high-contrast navigation.";
|
|
167
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
168
|
+
readonly navTypography: "brand-caps";
|
|
169
|
+
}, {
|
|
170
|
+
readonly id: HeaderStyleId;
|
|
171
|
+
readonly label: "Brand Underline";
|
|
172
|
+
readonly description: "Brand surface with underline-grow navigation.";
|
|
173
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
174
|
+
readonly navTypography: "brand-caps";
|
|
175
|
+
}, {
|
|
176
|
+
readonly id: HeaderStyleId;
|
|
177
|
+
readonly label: "Brand Pill";
|
|
178
|
+
readonly description: "Solid brand surface with rounded active and hover states.";
|
|
179
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
180
|
+
readonly navTypography: "brand-caps";
|
|
181
|
+
}, {
|
|
182
|
+
readonly id: HeaderStyleId;
|
|
183
|
+
readonly label: "Brand Capsule";
|
|
184
|
+
readonly description: "Solid brand chrome designed as a floating capsule, with quiet-caps nav, a soft pill active state, and an inverted CTA pill.";
|
|
185
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
186
|
+
readonly navTypography: "quiet-caps";
|
|
187
|
+
}, {
|
|
188
|
+
readonly id: HeaderStyleId;
|
|
189
|
+
readonly label: "Serif Line";
|
|
190
|
+
readonly description: "Typographic logo treatment with understated underline navigation.";
|
|
191
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
192
|
+
readonly navTypography: "heading";
|
|
193
|
+
}, {
|
|
194
|
+
readonly id: HeaderStyleId;
|
|
195
|
+
readonly label: "Flat Tabs";
|
|
196
|
+
readonly description: "Flat block hover and active states with a Swiss utility feel.";
|
|
197
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
198
|
+
readonly navTypography: "quiet-caps";
|
|
199
|
+
}, {
|
|
200
|
+
readonly id: HeaderStyleId;
|
|
201
|
+
readonly label: "Glass";
|
|
202
|
+
readonly description: "Translucent chrome with frosted navigation backing.";
|
|
203
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
204
|
+
readonly navTypography: "plain";
|
|
205
|
+
}, {
|
|
206
|
+
readonly id: HeaderStyleId;
|
|
207
|
+
readonly label: "Clear Split";
|
|
208
|
+
readonly description: "Floating logo with transparent navigation and no shared shell.";
|
|
209
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
210
|
+
readonly navTypography: "plain";
|
|
211
|
+
readonly openingForegroundTarget: "all";
|
|
212
|
+
readonly scrollTreatment: "contrast-glass";
|
|
213
|
+
readonly interactionPalette: Readonly<{
|
|
214
|
+
id: "interaction-palette";
|
|
215
|
+
label: string;
|
|
216
|
+
options: readonly [import("../../../blocks/src/index").HeaderInteractionPaletteOption, ...import("../../../blocks/src/index").HeaderInteractionPaletteOption[]];
|
|
217
|
+
defaultOptionId: "accent" | "primary" | "secondary";
|
|
218
|
+
}>;
|
|
219
|
+
}, {
|
|
220
|
+
readonly id: HeaderStyleId;
|
|
221
|
+
readonly label: "Soft Shell";
|
|
222
|
+
readonly description: "Floating rounded shell with soft pill navigation states.";
|
|
223
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
224
|
+
readonly navTypography: "plain";
|
|
225
|
+
}, {
|
|
226
|
+
readonly id: HeaderStyleId;
|
|
227
|
+
readonly label: "Split Glass";
|
|
228
|
+
readonly description: "Logo floats independently while the navigation sits in a glass rail.";
|
|
229
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
230
|
+
readonly navTypography: "quiet-caps";
|
|
231
|
+
readonly openingForegroundTarget: "brand-only";
|
|
232
|
+
}, {
|
|
233
|
+
readonly id: HeaderStyleId;
|
|
234
|
+
readonly label: "Split Pill";
|
|
235
|
+
readonly description: "Logo floats independently with a soft pill-backed navigation rail.";
|
|
236
|
+
readonly supportedLayoutIds: readonly HeaderLayoutId[];
|
|
237
|
+
readonly navTypography: "heading";
|
|
238
|
+
readonly openingForegroundTarget: "brand-only";
|
|
239
|
+
}];
|
|
240
|
+
export declare const headerLayoutsById: Map<HeaderLayoutId, Readonly<{
|
|
241
|
+
id: HeaderLayoutId;
|
|
242
|
+
label: string;
|
|
243
|
+
description: string;
|
|
244
|
+
variant: import("../../../blocks/src/index").ThemeHeader["variant"];
|
|
245
|
+
defaultPositioning: import("../../../blocks/src/index").ThemeHeader["positioning"];
|
|
246
|
+
shrinkOnScroll: boolean;
|
|
247
|
+
logoAccommodations: readonly LogoAccommodationOption[];
|
|
248
|
+
openingRequirement: import("../../../blocks/src/index").HeaderOpeningRequirement;
|
|
249
|
+
}>>;
|
|
250
|
+
export declare const headerStylesById: Map<HeaderStyleId, Readonly<{
|
|
251
|
+
id: HeaderStyleId;
|
|
252
|
+
label: string;
|
|
253
|
+
description: string;
|
|
254
|
+
supportedLayoutIds: readonly HeaderLayoutId[];
|
|
255
|
+
navTypography: import("../../../blocks/src/index").HeaderStyleNavTypography;
|
|
256
|
+
openingForegroundTarget?: "brand-only" | "all";
|
|
257
|
+
scrollTreatment?: "contrast-glass";
|
|
258
|
+
interactionPalette?: import("../../../blocks/src/index").HeaderInteractionPaletteOptionGroup;
|
|
259
|
+
}>>;
|
|
260
|
+
export declare const headerStyleCompatibilityOrder: {
|
|
261
|
+
readonly classic: readonly ["minimal", "fine-line", "soft-bar", "pill-nav", "brand-bar", "brand-underline", "brand-pill", "brand-capsule", "serif-line", "flat-tabs"];
|
|
262
|
+
readonly centered: readonly ["minimal", "fine-line", "soft-bar", "pill-nav", "brand-bar", "brand-pill", "serif-line", "flat-tabs"];
|
|
263
|
+
readonly floating: readonly ["glass", "minimal-surface", "split-glass", "split-pill", "soft-shell", "brand-pill"];
|
|
264
|
+
};
|
|
265
|
+
export declare const headerStyleRepairOrder: {
|
|
266
|
+
readonly 'brand-bar': readonly ["brand-bar", "brand-pill", "minimal"];
|
|
267
|
+
readonly 'brand-underline': readonly ["brand-underline", "serif-line", "fine-line", "minimal"];
|
|
268
|
+
readonly 'brand-pill': readonly ["brand-pill", "brand-bar", "minimal"];
|
|
269
|
+
readonly 'brand-capsule': readonly ["brand-capsule", "brand-pill", "brand-bar", "minimal"];
|
|
270
|
+
readonly 'pill-nav': readonly ["pill-nav", "soft-bar", "minimal"];
|
|
271
|
+
readonly 'flat-tabs': readonly ["flat-tabs", "pill-nav", "minimal"];
|
|
272
|
+
readonly 'serif-line': readonly ["serif-line", "fine-line", "minimal"];
|
|
273
|
+
readonly glass: readonly ["glass", "soft-shell", "fine-line", "minimal-surface", "minimal"];
|
|
274
|
+
readonly 'soft-shell': readonly ["soft-shell", "soft-bar", "minimal"];
|
|
275
|
+
readonly 'minimal-surface': readonly ["minimal-surface", "minimal"];
|
|
276
|
+
readonly 'split-glass': readonly ["split-glass", "glass", "minimal-surface"];
|
|
277
|
+
readonly 'split-pill': readonly ["split-pill", "soft-shell", "brand-pill"];
|
|
278
|
+
readonly 'fine-line': readonly ["fine-line", "minimal"];
|
|
279
|
+
readonly 'soft-bar': readonly ["soft-bar", "minimal"];
|
|
280
|
+
readonly minimal: readonly ["minimal"];
|
|
281
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HeaderBrandPresentationSelection } from './logoBranding';
|
|
2
|
+
import { type HeaderLayoutDefinition, type HeaderLayoutId, type HeaderLayoutStyleResolution, type HeaderLayoutStyleSelection, type HeaderLogoContext, type HeaderStyleDefinition, type HeaderStyleId } from './headerLayoutTypes';
|
|
3
|
+
export declare function getHeaderLayout(id: HeaderLayoutId): HeaderLayoutDefinition;
|
|
4
|
+
export declare function headerLayoutRequiresImageHeroOpening(layout: HeaderLayoutDefinition): boolean;
|
|
5
|
+
export declare function resolveHeaderBrandPresentationForLayout(input: Readonly<{
|
|
6
|
+
layout: HeaderLayoutDefinition;
|
|
7
|
+
logo: HeaderLogoContext;
|
|
8
|
+
}>): HeaderBrandPresentationSelection;
|
|
9
|
+
export declare function getHeaderStyle(id: HeaderStyleId): HeaderStyleDefinition;
|
|
10
|
+
export declare function isHeaderStyleCompatibleWithLayout(style: HeaderStyleDefinition, layoutId: HeaderLayoutId): boolean;
|
|
11
|
+
export declare function getCompatibleHeaderStyleIds(layoutId: HeaderLayoutId): readonly HeaderStyleId[];
|
|
12
|
+
export declare function deriveNearestCompatibleHeaderStyle(styleId: HeaderStyleId, layoutId: HeaderLayoutId, allowedStyleIds?: readonly HeaderStyleId[]): HeaderStyleId;
|
|
13
|
+
export declare function resolveHeaderLayoutStyleSelection(selection: HeaderLayoutStyleSelection): HeaderLayoutStyleResolution;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './headerLayoutTypes';
|
|
2
|
+
export * from './headerLayoutCatalog';
|
|
3
|
+
export * from './headerLayoutResolution';
|
|
4
|
+
export * from './headerStyleCompiler';
|
|
5
|
+
export declare const guaranteedFallbackHeaderLayoutId: import("../../../blocks/src/index").HeaderLayoutId;
|
|
6
|
+
export declare const guaranteedFallbackHeaderStyleId: import("../../../blocks/src/index").HeaderStyleId;
|
package/dist/_dts/theme-core/src/site-styles/{headerLookTypes.d.ts → headerLayoutTypes.d.ts}
RENAMED
|
@@ -1,25 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ThemeHeader } from '../schema';
|
|
2
2
|
import type { HeaderInteractionPaletteOptionGroup } from './headerInteractionPalette';
|
|
3
|
-
import type {
|
|
4
|
-
import type
|
|
5
|
-
import type
|
|
6
|
-
export declare const headerLookIdValues: readonly ["clean-base", "classic-centered-nav", "brand-solid", "serif-line", "centered-calm", "practical-utility", "minimal-transparent", "transparent-overlay", "floating-glass"];
|
|
7
|
-
export type HeaderLookIdValue = (typeof headerLookIdValues)[number];
|
|
8
|
-
export type HeaderLookId = Brand<HeaderLookIdValue, 'HeaderLookId'>;
|
|
9
|
-
export declare function asHeaderLookId(value: HeaderLookIdValue): HeaderLookId;
|
|
10
|
-
export type PersistedHeaderLookIdParseResult = Readonly<{
|
|
11
|
-
kind: 'known';
|
|
12
|
-
id: HeaderLookId;
|
|
13
|
-
}> | Readonly<{
|
|
14
|
-
kind: 'unknown';
|
|
15
|
-
raw: string;
|
|
16
|
-
}> | Readonly<{
|
|
17
|
-
kind: 'empty';
|
|
18
|
-
}>;
|
|
19
|
-
export declare function parsePersistedHeaderLookId(value: string): Exclude<PersistedHeaderLookIdParseResult, {
|
|
20
|
-
kind: 'empty';
|
|
21
|
-
}>;
|
|
22
|
-
export declare function parsePersistedHeaderLookId(value: string | null | undefined): PersistedHeaderLookIdParseResult;
|
|
3
|
+
import type { ResolvedSurfaceForeground } from '../surfaces';
|
|
4
|
+
import { type BrandDisplayMode, type LogoAccommodationOption, type LogoFacts, type LogoSizePolicy } from './logoBranding';
|
|
5
|
+
import { type Brand } from './types';
|
|
23
6
|
export declare const headerLayoutIdValues: readonly ["classic", "centered", "floating"];
|
|
24
7
|
export type HeaderLayoutIdValue = (typeof headerLayoutIdValues)[number];
|
|
25
8
|
export type HeaderLayoutId = Brand<HeaderLayoutIdValue, 'HeaderLayoutId'>;
|
|
@@ -61,23 +44,15 @@ export type HeaderLayoutDefinition = Readonly<{
|
|
|
61
44
|
variant: ThemeHeader['variant'];
|
|
62
45
|
defaultPositioning: ThemeHeader['positioning'];
|
|
63
46
|
shrinkOnScroll: boolean;
|
|
64
|
-
|
|
65
|
-
|
|
47
|
+
logoAccommodations: readonly LogoAccommodationOption[];
|
|
48
|
+
openingRequirement: HeaderOpeningRequirement;
|
|
66
49
|
}>;
|
|
67
|
-
export type HeaderStyleNavInteraction = 'color-change' | 'underline-grow' | 'pill-background' | 'flat-block' | 'glass-backed';
|
|
68
|
-
export type HeaderStyleSurface = 'neutral' | 'bordered' | 'soft' | 'brand-solid' | 'floating';
|
|
69
|
-
export type HeaderStyleDepth = 'none' | 'line' | 'shadow';
|
|
70
|
-
export type HeaderStyleMood = 'calm' | 'professional' | 'editorial' | 'expressive' | 'utility';
|
|
71
50
|
export type HeaderStyleDefinition = Readonly<{
|
|
72
51
|
id: HeaderStyleId;
|
|
73
52
|
label: string;
|
|
74
53
|
description: string;
|
|
75
54
|
supportedLayoutIds: readonly HeaderLayoutId[];
|
|
76
|
-
navInteraction: HeaderStyleNavInteraction;
|
|
77
|
-
surface: HeaderStyleSurface;
|
|
78
|
-
defaultDepth: HeaderStyleDepth;
|
|
79
55
|
navTypography: HeaderStyleNavTypography;
|
|
80
|
-
moods: readonly HeaderStyleMood[];
|
|
81
56
|
openingForegroundTarget?: 'brand-only' | 'all';
|
|
82
57
|
scrollTreatment?: 'contrast-glass';
|
|
83
58
|
interactionPalette?: HeaderInteractionPaletteOptionGroup;
|
|
@@ -86,21 +61,6 @@ export type HeaderLayoutStyleSelection = Readonly<{
|
|
|
86
61
|
layoutId: HeaderLayoutId;
|
|
87
62
|
styleId: HeaderStyleId;
|
|
88
63
|
}>;
|
|
89
|
-
export type HeaderStyleChoiceSource = Readonly<{
|
|
90
|
-
id: HeaderStyleId;
|
|
91
|
-
}>;
|
|
92
|
-
export type HeaderLayoutChoiceSource = Readonly<{
|
|
93
|
-
id: HeaderLayoutId;
|
|
94
|
-
}>;
|
|
95
|
-
export type HeaderStyleChoicesByLayout = Readonly<Partial<Record<HeaderLayoutIdValue, readonly HeaderStyleChoiceSource[]>>>;
|
|
96
|
-
export type HeaderLayoutStyleCuration = Readonly<{
|
|
97
|
-
recommendedHeaderLayoutChoices: readonly HeaderLayoutChoiceSource[];
|
|
98
|
-
recommendedHeaderStyleChoicesByLayout: HeaderStyleChoicesByLayout;
|
|
99
|
-
}>;
|
|
100
|
-
export type HeaderLegacyLookAlias = Readonly<{
|
|
101
|
-
lookId: HeaderLookId;
|
|
102
|
-
selection: HeaderLayoutStyleSelection;
|
|
103
|
-
}>;
|
|
104
64
|
export type HeaderLayoutStyleRepair = Readonly<{
|
|
105
65
|
requested: HeaderLayoutStyleSelection;
|
|
106
66
|
resolved: HeaderLayoutStyleSelection;
|
|
@@ -118,7 +78,7 @@ export type HeaderLayoutStyleResolution = Readonly<{
|
|
|
118
78
|
style: HeaderStyleDefinition;
|
|
119
79
|
repair: HeaderLayoutStyleRepair;
|
|
120
80
|
}>;
|
|
121
|
-
export type
|
|
81
|
+
export type HeaderOpeningRequirement = 'none' | 'reserved-space-ok' | 'requires-image-hero-with-contrast-overlay';
|
|
122
82
|
export type HeaderLogoShape = 'none' | 'text-only' | 'horizontal' | 'square' | 'tall';
|
|
123
83
|
export type HeaderLogoDimensions = Readonly<{
|
|
124
84
|
width: number | null;
|
|
@@ -126,15 +86,6 @@ export type HeaderLogoDimensions = Readonly<{
|
|
|
126
86
|
}>;
|
|
127
87
|
export declare function deriveHeaderLogoShapeFromDimensions({ width, height, }: HeaderLogoDimensions): HeaderLogoShape;
|
|
128
88
|
export type HeaderStyleNavTypography = 'plain' | 'heading' | 'quiet-caps' | 'brand-caps';
|
|
129
|
-
export type HeaderLookDefinition = Readonly<{
|
|
130
|
-
id: HeaderLookId;
|
|
131
|
-
label: string;
|
|
132
|
-
openingRequirement: HeaderLookOpeningRequirement;
|
|
133
|
-
maxRecommendedNavItems?: number;
|
|
134
|
-
logoAccommodations: readonly LogoAccommodationOption[];
|
|
135
|
-
requiresProminentCta?: boolean;
|
|
136
|
-
compile: (theme: Theme) => Theme['header'];
|
|
137
|
-
}>;
|
|
138
89
|
export type HeaderOpeningSectionContext = Readonly<{
|
|
139
90
|
kind: 'unknown';
|
|
140
91
|
canAdjust: false;
|
|
@@ -146,11 +97,9 @@ export type HeaderOpeningSectionContext = Readonly<{
|
|
|
146
97
|
canAdjust: true;
|
|
147
98
|
}> | Readonly<{
|
|
148
99
|
kind: 'color-section';
|
|
149
|
-
contrast: 'light' | 'dark' | 'unknown';
|
|
150
100
|
canAdjust: boolean;
|
|
151
101
|
}> | Readonly<{
|
|
152
102
|
kind: 'gradient-section';
|
|
153
|
-
contrast: 'light' | 'dark' | 'unknown';
|
|
154
103
|
canAdjust: boolean;
|
|
155
104
|
}> | Readonly<{
|
|
156
105
|
kind: 'dynamic-media';
|
|
@@ -174,39 +123,18 @@ export type HeaderLogoFactsContext = HeaderLogoPreferences & Readonly<{
|
|
|
174
123
|
facts: LogoFacts;
|
|
175
124
|
}>;
|
|
176
125
|
export type HeaderLogoContext = HeaderLogoShapeContext | HeaderLogoFactsContext;
|
|
177
|
-
export
|
|
178
|
-
itemCount: number;
|
|
179
|
-
}>;
|
|
180
|
-
export type HeaderCtaContext = Readonly<{
|
|
181
|
-
importance: 'low' | 'medium' | 'high';
|
|
182
|
-
}>;
|
|
183
|
-
export type HeaderBannerContext = Readonly<{
|
|
184
|
-
persistentVisibility: 'none' | 'possible' | 'visible';
|
|
185
|
-
}>;
|
|
126
|
+
export declare const defaultHeaderLogoContext: HeaderLogoContext;
|
|
186
127
|
export type HeaderSelectionContext = Readonly<{
|
|
187
128
|
openingSection: HeaderOpeningSectionContext;
|
|
188
|
-
openingForeground:
|
|
129
|
+
openingForeground: ResolvedSurfaceForeground;
|
|
189
130
|
logo: HeaderLogoContext;
|
|
190
|
-
navigation:
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}>;
|
|
199
|
-
export type HeaderSelectionResult = Readonly<{
|
|
200
|
-
selectedLookId: HeaderLookId;
|
|
201
|
-
selectedLook: HeaderLookDefinition;
|
|
202
|
-
header: Theme['header'];
|
|
203
|
-
brandPresentation: HeaderBrandPresentationSelection;
|
|
204
|
-
rejected: readonly RejectedHeaderLook[];
|
|
205
|
-
}>;
|
|
206
|
-
export type HeaderLookResolutionInput = Readonly<{
|
|
207
|
-
theme: Theme;
|
|
208
|
-
recommendedLookIds: readonly HeaderLookId[];
|
|
209
|
-
context?: Partial<HeaderSelectionContext>;
|
|
131
|
+
navigation: Readonly<{
|
|
132
|
+
itemCount: number;
|
|
133
|
+
}>;
|
|
134
|
+
cta: Readonly<{
|
|
135
|
+
importance: 'low' | 'medium' | 'high';
|
|
136
|
+
}>;
|
|
137
|
+
banner: Readonly<{
|
|
138
|
+
persistentVisibility: 'none' | 'possible' | 'visible';
|
|
139
|
+
}>;
|
|
210
140
|
}>;
|
|
211
|
-
export declare const defaultHeaderSelectionContext: HeaderSelectionContext;
|
|
212
|
-
export declare function completeHeaderSelectionContext(context: Partial<HeaderSelectionContext> | undefined): HeaderSelectionContext;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NavLinkStyle } from '../navigation/types';
|
|
2
|
+
import type { HeaderStyleNavTypography } from './headerLayoutTypes';
|
|
3
|
+
export declare function minimalNavLinkStyle(colorToken: string, hoverColorToken?: string, typography?: HeaderStyleNavTypography): NavLinkStyle;
|
|
4
|
+
export declare function underlineNavLinkStyle(colorToken: string, underlineColorToken?: string, typography?: HeaderStyleNavTypography): NavLinkStyle;
|
|
5
|
+
export declare function pillNavLinkStyle(colorToken: string, backgroundToken?: string, opacity?: number, typography?: HeaderStyleNavTypography): NavLinkStyle;
|
|
6
|
+
export declare function flatTabNavLinkStyle(colorToken: string, typography?: HeaderStyleNavTypography): NavLinkStyle;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import type { Theme } from '../schema';
|
|
2
|
-
import {
|
|
3
|
-
import type {
|
|
4
|
-
export type
|
|
5
|
-
|
|
6
|
-
token: ThemeColorToken;
|
|
7
|
-
evidence: 'declared-opening-surface' | 'theme-default';
|
|
8
|
-
}> | Readonly<{
|
|
9
|
-
kind: 'unknown';
|
|
2
|
+
import type { ResolvedSurfaceForeground } from '../surfaces';
|
|
3
|
+
import type { HeaderStyleDefinition } from './headerLayoutTypes';
|
|
4
|
+
export type HeaderOpeningForegroundContext = Readonly<{
|
|
5
|
+
openingForeground: ResolvedSurfaceForeground;
|
|
10
6
|
}>;
|
|
11
7
|
export type HeaderStyleAvailability = Readonly<{
|
|
12
8
|
kind: 'available';
|
|
@@ -14,9 +10,9 @@ export type HeaderStyleAvailability = Readonly<{
|
|
|
14
10
|
kind: 'unavailable';
|
|
15
11
|
reason: 'requires-known-opening-foreground';
|
|
16
12
|
}>;
|
|
17
|
-
export declare function headerStyleAvailability(style: HeaderStyleDefinition, context: Partial<
|
|
13
|
+
export declare function headerStyleAvailability(style: HeaderStyleDefinition, context: Partial<HeaderOpeningForegroundContext> | undefined): HeaderStyleAvailability;
|
|
18
14
|
export declare function headerStyleAvailabilityReasonLabel(reason: Extract<HeaderStyleAvailability, {
|
|
19
15
|
kind: 'unavailable';
|
|
20
16
|
}>['reason']): string;
|
|
21
|
-
export declare function applyOpeningForeground(theme: Theme, header: Theme['header'], style: HeaderStyleDefinition, context: Partial<
|
|
22
|
-
export declare function applyPageOpeningForegroundToTheme(theme: Theme, style: HeaderStyleDefinition | null | undefined, context: Partial<
|
|
17
|
+
export declare function applyOpeningForeground(theme: Theme, header: Theme['header'], style: HeaderStyleDefinition, context: Partial<HeaderOpeningForegroundContext> | undefined): Theme['header'];
|
|
18
|
+
export declare function applyPageOpeningForegroundToTheme(theme: Theme, style: HeaderStyleDefinition | null | undefined, context: Partial<HeaderOpeningForegroundContext> | undefined): Theme;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { BlockDesignPlan, DesignBlockId, ResolvedBlockDesignPlan } from './types';
|
|
2
|
-
import type {
|
|
3
|
-
import type { HeaderOpeningForeground } from './headerOpeningForeground';
|
|
2
|
+
import type { HeaderLayoutStyleSelection, HeaderOpeningSectionContext } from './headerLayoutStyles';
|
|
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>[];
|
|
@@ -13,10 +12,9 @@ export type HeaderOpeningContentSnapshot = Readonly<{
|
|
|
13
12
|
}>;
|
|
14
13
|
export declare function planGeneratedHeaderOpeningSection<TBlockId extends DesignBlockId>(input: Readonly<{
|
|
15
14
|
plan: readonly BlockDesignPlan<TBlockId>[];
|
|
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;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Theme } from '../schema';
|
|
2
|
-
import
|
|
3
|
-
export declare function compileHeaderLayoutStyleSelection(theme: Theme,
|
|
2
|
+
import { type HeaderLayoutStyleResolution } from './headerLayoutTypes';
|
|
3
|
+
export declare function compileHeaderLayoutStyleSelection(theme: Theme, resolution: HeaderLayoutStyleResolution): Theme['header'];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SectionStylesOverride } from '../schema';
|
|
2
|
+
import { type ImageSurfaceMotion, type ImageSurfaceTreatment } from './types';
|
|
3
|
+
type ImageBackground = Extract<NonNullable<SectionStylesOverride['background']>, {
|
|
4
|
+
type: 'image';
|
|
5
|
+
}>;
|
|
6
|
+
type Foreground = Readonly<{
|
|
7
|
+
textColor: NonNullable<ImageBackground['textColor']>;
|
|
8
|
+
headingColor: NonNullable<ImageBackground['headingColor']>;
|
|
9
|
+
linkColor: NonNullable<ImageBackground['linkColor']>;
|
|
10
|
+
supportingColor: NonNullable<ImageBackground['supportingColor']>;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function withImageSurfaceMotion(background: ImageBackground, motion: ImageSurfaceMotion): ImageBackground;
|
|
13
|
+
export declare function compileImageSurfaceTreatmentBackground(background: ImageBackground, treatment: ImageSurfaceTreatment, foreground: Partial<Foreground> | undefined): ImageBackground | null;
|
|
14
|
+
export {};
|
|
@@ -2,6 +2,7 @@ export * from './accessibleSurfaces';
|
|
|
2
2
|
export * from './appearancePresets';
|
|
3
3
|
export * from './blockFlow';
|
|
4
4
|
export * from './backgroundAppearance';
|
|
5
|
+
export * from './cardRoleVocabulary';
|
|
5
6
|
export * from './compositionBudget';
|
|
6
7
|
export * from './compilationPlan';
|
|
7
8
|
export * from './contentTemplateDesignIntent';
|
|
@@ -13,7 +14,7 @@ export * from './designState';
|
|
|
13
14
|
export * from './footerLooks';
|
|
14
15
|
export * from './generatedSchemas';
|
|
15
16
|
export * from './generatedDesignPipeline';
|
|
16
|
-
export * from './
|
|
17
|
+
export * from './headerLayoutStyles';
|
|
17
18
|
export * from './headerInteractionPalette';
|
|
18
19
|
export * from './headerOpeningForeground';
|
|
19
20
|
export * from './headerOpeningSection';
|
|
@@ -22,14 +23,18 @@ export * from './lookOptionGroups';
|
|
|
22
23
|
export * from './logoBranding';
|
|
23
24
|
export * from './pageDesignAuthority';
|
|
24
25
|
export * from './pageDesignEditorErrors';
|
|
26
|
+
export * from './pageDesignEditorCapabilities';
|
|
25
27
|
export * from './pageDesignEditorModel';
|
|
28
|
+
export * from './pageDesignAppearanceAvailability';
|
|
26
29
|
export * from './pageDesignIntent';
|
|
30
|
+
export * from './pageDesignIntentEquality';
|
|
27
31
|
export * from './previewCustomization';
|
|
28
32
|
export * from './persistedIdParseResult';
|
|
29
33
|
export * from './rawStyleFields';
|
|
30
34
|
export * from './records';
|
|
31
35
|
export * from './resolver';
|
|
32
36
|
export * from './runtimeCompiler';
|
|
37
|
+
export * from './runtimeBackgroundResolution';
|
|
33
38
|
export * from './sectionTransitions';
|
|
34
39
|
export * from './siteChromeBackgrounds';
|
|
35
40
|
export * from './siteChromeNavPreferences';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { PageDesignEditorBlock } from './pageDesignEditorModel';
|
|
2
|
+
import type { AppearancePresetId } from './types';
|
|
3
|
+
export declare function isPageDesignAppearancePresetAvailable(block: Pick<PageDesignEditorBlock, 'lookAvailability' | 'availableLooks'>, appearancePresetId: AppearancePresetId): boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type BlockDesignCapability, type CardRoleCapability, type UnsupportedBlockDesignCapabilityReason } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* How a block's declared design capability reads to the page-design editor and
|
|
4
|
+
* to everything compiled from its read model.
|
|
5
|
+
*/
|
|
6
|
+
export type PageDesignEditorBackgroundSupport = Readonly<{
|
|
7
|
+
kind: 'supported';
|
|
8
|
+
richBackgrounds: 'supported' | 'unsupported';
|
|
9
|
+
}> | Readonly<{
|
|
10
|
+
kind: 'unsupported';
|
|
11
|
+
reason: UnsupportedBlockDesignCapabilityReason | 'section-surfaces-unsupported' | 'missing-design-capability';
|
|
12
|
+
}>;
|
|
13
|
+
export declare function cardRoleCapabilityOf(capability: BlockDesignCapability | null): CardRoleCapability;
|
|
14
|
+
export declare function backgroundSupportForCapability(capability: BlockDesignCapability | null): PageDesignEditorBackgroundSupport;
|
|
15
|
+
/**
|
|
16
|
+
* The capability-derived half of a block's editor read model, in one call so
|
|
17
|
+
* the read-model builder does not grow a projection per axis.
|
|
18
|
+
*/
|
|
19
|
+
export declare function capabilitySupportFor(capability: BlockDesignCapability | null): Readonly<{
|
|
20
|
+
backgroundSupport: PageDesignEditorBackgroundSupport;
|
|
21
|
+
cardRoles: CardRoleCapability;
|
|
22
|
+
}>;
|