@riverbankcms/sdk 0.129.0 → 0.130.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/README.md +51 -266
- package/dist/{PreviewEditorSidebar-B43CJ0g_.mjs → PreviewEditorSidebar-DiEpbOdw.mjs} +313 -239
- package/dist/{PreviewEditorUI-DHirVkeM.mjs → PreviewEditorUI-C6MvxnIa.mjs} +3 -3
- package/dist/{PreviewQueryProvider-B1kbhaJD.mjs → PreviewQueryProvider-C2rnoPz6.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-BJumZy1B.mjs → SdkPreviewModeRuntime-DRXA_m5L.mjs} +208 -211
- package/dist/{SiteChromeCustomizeContext-D9SlpwEj.mjs → SiteChromeCustomizeContext-BTHdv5_-.mjs} +6222 -6190
- package/dist/_dts/ai/src/contracts/commandExposure.d.ts +1 -1
- package/dist/_dts/ai/src/contracts/proposalPrimitives.d.ts +52 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +9438 -33588
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +32572 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +21 -9
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -46
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +13 -11
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -5
- package/dist/_dts/api/src/endpoints.d.ts +14 -21
- package/dist/_dts/api/src/eventManagementContracts.d.ts +76 -0
- package/dist/_dts/api/src/index.d.ts +5 -3
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +22 -47
- package/dist/_dts/api/src/sdk-event-management.d.ts +53 -0
- package/dist/_dts/api/src/sdk-event-schedule.d.ts +8 -6
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +112 -20
- package/dist/_dts/api/src/sdkContracts.d.ts +74 -115
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +35 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +4517 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +18 -29
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +23 -37
- 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/system/blocks/location-map.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -90
- 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/componentFactory.d.ts +5 -5
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +8 -6
- 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 +5 -33
- 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/registry.d.ts +2 -0
- 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/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/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/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -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 +3 -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 +0 -3
- 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/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/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/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 +1 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +38 -18
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- 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 +3 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -5
- 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/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/sdk/src/config/types.d.ts +5 -4
- package/dist/_dts/sdk/src/config/validation.d.ts +2 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -41
- 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/public-api/contracts.d.ts +2 -16
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +3 -2
- 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 +2 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -1
- 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/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 +2 -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/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/lib/media.d.ts +583 -10
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +5117 -1433
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/schema.d.ts +5079 -2005
- 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 +4 -4
- 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 +2 -2
- 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/headerLayoutTypes.d.ts +142 -0
- 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 -4
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/imageSurfaceBackground.d.ts +14 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -41
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +23 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -6
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +1 -1
- package/dist/client/{CourseRegistrationWizard-xRmA7REV.mjs → CourseRegistrationWizard-Bvtz9G9g.mjs} +5 -5
- package/dist/client/{DiscountCodeDisclosure-B9vriL5C.mjs → DiscountCodeDisclosure-Ur-Xx1U_.mjs} +1 -1
- package/dist/client/{EventCombined.client-BgVnVTlz.mjs → EventCombined.client-EhscD4U6.mjs} +2 -2
- package/dist/client/{EventListing.client-CqdsO7jO.mjs → EventListing.client-Bn26cFTY.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CKPxot9M.mjs → LeafletStaticMap-BUw9Ntzr.mjs} +1 -1
- package/dist/client/{StepIndicator-DGCYuBJ1.mjs → StepIndicator-BfbdiVQI.mjs} +2 -2
- package/dist/client/{accordion-BfN5Eqd-.mjs → accordion-CjIeof73.mjs} +1 -1
- package/dist/client/{bookingForm-DOvCpBFP.mjs → bookingForm-DwEeovf_.mjs} +5 -5
- package/dist/client/bookings.mjs +1028 -1038
- package/dist/client/{carousel-DPNmiH0f.mjs → carousel-BMrfgOba.mjs} +1 -1
- package/dist/client/{cart--egVXlrR.mjs → cart-rXEdxTdb.mjs} +3 -3
- package/dist/client/{checkout-DywWtMcq.mjs → checkout-D3JlSzh3.mjs} +3 -3
- package/dist/client/client.mjs +18324 -18224
- package/dist/client/{courseRegistration-Dk9qFVwt.mjs → courseRegistration-DO5XvMAA.mjs} +2 -2
- package/dist/client/{eventCalendar-Bkz2HjlS.mjs → eventCalendar-DO6rTqCn.mjs} +4 -4
- package/dist/client/{eventCombined-D4kipYWg.mjs → eventCombined-bJ3i_ovU.mjs} +2 -2
- package/dist/client/{eventDetails-Dz_5ix2Q.mjs → eventDetails-CCbrXE7o.mjs} +3 -3
- package/dist/client/{eventListing-D0vm-zST.mjs → eventListing-Bdlt9YTm.mjs} +2 -2
- package/dist/client/{eventRegistration-Cw1E4Q4p.mjs → eventRegistration-B02lt6iY.mjs} +6 -6
- package/dist/client/{form-C2Zf1n3K.mjs → form-DrUBAAox.mjs} +1 -1
- package/dist/client/{headerSection-CP05gzdc.mjs → headerSection-MzqvHL6T.mjs} +151 -104
- package/dist/client/hooks.mjs +4550 -4211
- package/dist/client/{locationMap-Cl3x9PYJ.mjs → locationMap-DG8BxTBm.mjs} +2 -2
- package/dist/client/{newsletterForm-DyEJoClm.mjs → newsletterForm-BzO-Td3p.mjs} +1 -1
- package/dist/client/{pricing-DGuNR1W4.mjs → pricing-NgK7ozkg.mjs} +1 -1
- package/dist/client/{productDetail-Cq-HrGew.mjs → productDetail-CfQ7rhVK.mjs} +3 -3
- package/dist/client/{productList-DbB3jwqd.mjs → productList-C23rOLUi.mjs} +3 -3
- package/dist/client/{propsDecoder-CiTuhUwY.mjs → propsDecoder-CAZdhwjs.mjs} +2166 -2157
- package/dist/client/rendering/client.mjs +3606 -4078
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +15969 -15843
- package/dist/client/{scrollToBlock-CShkRqab.mjs → scrollToBlock-DSSqVQr1.mjs} +1 -1
- package/dist/client/{shop-Cu4Ib-ZA.mjs → shop-BMToKLK7.mjs} +34 -23
- package/dist/client/{shop-commerce-BzpsOdh7.mjs → shop-commerce-DB4JRKmp.mjs} +4 -4
- package/dist/client/{shop-commerce-store-DaE7Fhj8.mjs → shop-commerce-store-BOqSIOuc.mjs} +1 -1
- package/dist/client/{shopShared-cF0c20vB.mjs → shopShared-B6SK9DZv.mjs} +9 -3
- package/dist/client/{useEventFilters-QZ3HMgaJ.mjs → useEventFilters-CULOa4nB.mjs} +2 -2
- package/dist/client/{usePolling-BKf0GcE-.mjs → usePolling-BGG_8-jl.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +16 -27
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +16 -27
- package/dist/{previewAuthStore-BesgU5Xu.mjs → previewAuthStore-_GXFRg2W.mjs} +16 -27
- package/dist/{sdk-runtime-CfZd5pAm.mjs → sdk-runtime-hhSOMShR.mjs} +2 -2
- package/dist/{separator-DkTe68HE.mjs → separator-flRaFc14.mjs} +1 -1
- package/dist/server/components.mjs +17802 -17875
- package/dist/server/config-validation.mjs +4729 -4416
- package/dist/server/config.mjs +4733 -4420
- package/dist/server/data.mjs +4533 -4211
- package/dist/server/date-time.mjs +22 -13
- package/dist/server/index.mjs +17 -28
- package/dist/server/manifest.mjs +4966 -0
- package/dist/server/next.mjs +17635 -17676
- package/dist/server/page-converter.mjs +3759 -4386
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +18960 -19049
- package/dist/server/rendering.mjs +17848 -17902
- package/dist/server/routing.mjs +4776 -4323
- package/dist/server/server.mjs +4609 -4264
- package/dist/server/theme-bridge.mjs +1361 -1850
- package/dist/server/theme.mjs +736 -605
- package/dist/styles/index.css +22 -3
- package/package.json +9 -12
- package/dist/_dts/api/src/event-presentation.d.ts +0 -14
- package/dist/_dts/blocks/src/definitions.d.ts +0 -14
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +0 -66
- package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +0 -101
- package/dist/_dts/sdk/src/cli/commands/block.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/commands/compare.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/commands/content-type.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/content.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/delete.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/commands/entry.d.ts +0 -55
- package/dist/_dts/sdk/src/cli/commands/env.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/identifiers.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/commands/manifest.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/media-validation.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/navigation.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/page.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +0 -50
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +0 -70
- package/dist/_dts/sdk/src/cli/commands/pull-scope-diff.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +0 -19
- package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +0 -42
- package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/push/execute/media.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/commands/push/execute/metadata.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/reporting.d.ts +0 -7
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/commands/push/filter.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/commands/push/normalizeLocalContent.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +0 -83
- package/dist/_dts/sdk/src/cli/commands/push/scopes/eventCategories.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/events.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/push/scopes/pushScopeGeneric.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +0 -87
- package/dist/_dts/sdk/src/cli/commands/push/scopes/venues.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +0 -34
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +0 -54
- package/dist/_dts/sdk/src/cli/commands/push.d.ts +0 -40
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +0 -60
- package/dist/_dts/sdk/src/cli/commands/verify.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +0 -44
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +0 -47
- package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +0 -5
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/content/media-manifest.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -488
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +0 -142
- package/dist/_dts/sdk/src/cli/env-scope.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/env.d.ts +0 -71
- package/dist/_dts/sdk/src/cli/errors.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/helpers/ai-runtime.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/helpers.d.ts +0 -399
- package/dist/_dts/sdk/src/cli/index.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/init-docs/constants.d.ts +0 -16
- package/dist/_dts/sdk/src/cli/init-docs/index.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/init-docs/templates.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/init-docs/zod-to-markdown.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/load-config.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/identifiers.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/media/local-media.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +0 -91
- package/dist/_dts/sdk/src/cli/media/portable.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/media/rich-text.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/media/value-utils.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/media/write-guard.d.ts +0 -52
- package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +0 -45
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +0 -9
- package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +0 -36
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +0 -27
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/migrations/entries.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +0 -73
- package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/output.d.ts +0 -133
- package/dist/_dts/sdk/src/cli/program.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/push-config.d.ts +0 -49
- package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +0 -51
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +0 -170
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +0 -21
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +0 -65
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +0 -57
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +0 -82
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +0 -97
- package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/diff.d.ts +0 -222
- package/dist/_dts/sdk/src/cli/sync/executor.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/sync/mapper.d.ts +0 -41
- package/dist/_dts/sdk/src/cli/sync/media-sync.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/media.d.ts +0 -158
- package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/sync/validation.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/utils/checksum.d.ts +0 -1
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +0 -19
- package/dist/_dts/sdk/src/client/management/catalog.d.ts +0 -10
- package/dist/_dts/sdk/src/client/management/entries.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/eventCategories.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/events.d.ts +0 -7
- package/dist/_dts/sdk/src/client/management/footer.d.ts +0 -9
- package/dist/_dts/sdk/src/client/management/forms.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/http.d.ts +0 -79
- package/dist/_dts/sdk/src/client/management/identifiers.d.ts +0 -11
- package/dist/_dts/sdk/src/client/management/index.d.ts +0 -41
- package/dist/_dts/sdk/src/client/management/media.d.ts +0 -72
- package/dist/_dts/sdk/src/client/management/navigation.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pages.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pull.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/settings-branding.d.ts +0 -32
- package/dist/_dts/sdk/src/client/management/settings.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/theme.d.ts +0 -8
- package/dist/_dts/sdk/src/client/management/types.d.ts +0 -1069
- package/dist/_dts/sdk/src/client/management/venues.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/webhooks.d.ts +0 -3
- package/dist/_dts/sdk/src/test/env.d.ts +0 -4
- package/dist/_dts/site-commands/src/adapter.d.ts +0 -23
- package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +0 -100
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +0 -8
- package/dist/_dts/site-commands/src/commandContract.d.ts +0 -1277
- package/dist/_dts/site-commands/src/commandDomain.d.ts +0 -20
- package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +0 -7
- package/dist/_dts/site-commands/src/commandValidation.d.ts +0 -10
- package/dist/_dts/site-commands/src/commands.d.ts +0 -1983
- package/dist/_dts/site-commands/src/domain.d.ts +0 -104
- package/dist/_dts/site-commands/src/eventCommandContent.d.ts +0 -11
- package/dist/_dts/site-commands/src/exposure.d.ts +0 -41
- package/dist/_dts/site-commands/src/guards.d.ts +0 -1
- package/dist/_dts/site-commands/src/index.d.ts +0 -18
- package/dist/_dts/site-commands/src/metadata.d.ts +0 -555
- package/dist/_dts/site-commands/src/pagePaths.d.ts +0 -6
- package/dist/_dts/site-commands/src/planner.d.ts +0 -58
- package/dist/_dts/site-commands/src/refContributions.d.ts +0 -11
- package/dist/_dts/site-commands/src/refs.d.ts +0 -90
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +0 -405
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +0 -46
- package/dist/_dts/site-commands/src/stableJson.d.ts +0 -5
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +0 -10
- package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +0 -21
- package/dist/_dts/theme-core/src/data.d.ts +0 -12
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +0 -841
- package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +0 -4
- package/dist/cli/index.mjs +0 -162988
- package/dist/cli/init-docs/content/agents-section.md +0 -67
- package/dist/cli/init-docs/content/cli-reference.md +0 -1238
- package/dist/cli/init-docs/content/content-management.md +0 -792
- package/dist/cli/init-docs/content/context-brand.md +0 -125
- package/dist/cli/init-docs/content/context-brief.md +0 -77
- package/dist/cli/init-docs/content/context-knowledge.md +0 -111
- package/dist/cli/init-docs/content/getting-started.md +0 -171
- package/dist/cli/init-docs/content/site-workflows-readme.md +0 -96
- package/dist/cli/init-docs/content/workflow-add-block.md +0 -299
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +0 -83
- package/dist/cli/init-docs/content/workflow-block-extensions.md +0 -370
- package/dist/cli/init-docs/content/workflow-cmsify-page.md +0 -357
- package/dist/cli/init-docs/content/workflow-content-types.md +0 -330
- package/dist/cli/init-docs/content/workflow-create-page.md +0 -212
- package/dist/cli/init-docs/content/workflow-custom-block.md +0 -470
- package/dist/cli/init-docs/content/workflow-editor-workflows.md +0 -130
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +0 -158
- package/dist/cli/init-docs/content/workflow-preview-mode.md +0 -252
- package/dist/cli/init-docs/content/workflow-publish.md +0 -285
- package/dist/cli/init-docs/content/workflow-remote-setup.md +0 -51
- package/dist/cli/init-docs/content/workflow-templates.md +0 -381
- /package/dist/_dts/{sdk/src/cli/utils/mime.d.ts → media-core/src/mimeType.d.ts} +0 -0
|
@@ -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;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { ThemeHeader } from '../schema';
|
|
2
|
+
import type { HeaderInteractionPaletteOptionGroup } from './headerInteractionPalette';
|
|
3
|
+
import type { HeaderOpeningForeground } from './headerOpeningForeground';
|
|
4
|
+
import { type BrandDisplayMode, type LogoAccommodationOption, type LogoFacts, type LogoSizePolicy } from './logoBranding';
|
|
5
|
+
import { type Brand } from './types';
|
|
6
|
+
export declare const headerLayoutIdValues: readonly ["classic", "centered", "floating"];
|
|
7
|
+
export type HeaderLayoutIdValue = (typeof headerLayoutIdValues)[number];
|
|
8
|
+
export type HeaderLayoutId = Brand<HeaderLayoutIdValue, 'HeaderLayoutId'>;
|
|
9
|
+
export declare function asHeaderLayoutId(value: HeaderLayoutIdValue): HeaderLayoutId;
|
|
10
|
+
export type PersistedHeaderLayoutIdParseResult = Readonly<{
|
|
11
|
+
kind: 'known';
|
|
12
|
+
id: HeaderLayoutId;
|
|
13
|
+
}> | Readonly<{
|
|
14
|
+
kind: 'unknown';
|
|
15
|
+
raw: string;
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
kind: 'empty';
|
|
18
|
+
}>;
|
|
19
|
+
export declare function parsePersistedHeaderLayoutId(value: string): Exclude<PersistedHeaderLayoutIdParseResult, {
|
|
20
|
+
kind: 'empty';
|
|
21
|
+
}>;
|
|
22
|
+
export declare function parsePersistedHeaderLayoutId(value: string | null | undefined): PersistedHeaderLayoutIdParseResult;
|
|
23
|
+
export declare const headerStyleIdValues: readonly ["minimal", "fine-line", "soft-bar", "pill-nav", "brand-bar", "brand-underline", "brand-pill", "brand-capsule", "serif-line", "flat-tabs", "glass", "minimal-surface", "soft-shell", "split-glass", "split-pill"];
|
|
24
|
+
export type HeaderStyleIdValue = (typeof headerStyleIdValues)[number];
|
|
25
|
+
export type HeaderStyleId = Brand<HeaderStyleIdValue, 'HeaderStyleId'>;
|
|
26
|
+
export declare function asHeaderStyleId(value: HeaderStyleIdValue): HeaderStyleId;
|
|
27
|
+
export type PersistedHeaderStyleIdParseResult = Readonly<{
|
|
28
|
+
kind: 'known';
|
|
29
|
+
id: HeaderStyleId;
|
|
30
|
+
}> | Readonly<{
|
|
31
|
+
kind: 'unknown';
|
|
32
|
+
raw: string;
|
|
33
|
+
}> | Readonly<{
|
|
34
|
+
kind: 'empty';
|
|
35
|
+
}>;
|
|
36
|
+
export declare function parsePersistedHeaderStyleId(value: string): Exclude<PersistedHeaderStyleIdParseResult, {
|
|
37
|
+
kind: 'empty';
|
|
38
|
+
}>;
|
|
39
|
+
export declare function parsePersistedHeaderStyleId(value: string | null | undefined): PersistedHeaderStyleIdParseResult;
|
|
40
|
+
export type HeaderLayoutDefinition = Readonly<{
|
|
41
|
+
id: HeaderLayoutId;
|
|
42
|
+
label: string;
|
|
43
|
+
description: string;
|
|
44
|
+
variant: ThemeHeader['variant'];
|
|
45
|
+
defaultPositioning: ThemeHeader['positioning'];
|
|
46
|
+
shrinkOnScroll: boolean;
|
|
47
|
+
logoAccommodations: readonly LogoAccommodationOption[];
|
|
48
|
+
openingRequirement: HeaderOpeningRequirement;
|
|
49
|
+
}>;
|
|
50
|
+
export type HeaderStyleDefinition = Readonly<{
|
|
51
|
+
id: HeaderStyleId;
|
|
52
|
+
label: string;
|
|
53
|
+
description: string;
|
|
54
|
+
supportedLayoutIds: readonly HeaderLayoutId[];
|
|
55
|
+
navTypography: HeaderStyleNavTypography;
|
|
56
|
+
openingForegroundTarget?: 'brand-only' | 'all';
|
|
57
|
+
scrollTreatment?: 'contrast-glass';
|
|
58
|
+
interactionPalette?: HeaderInteractionPaletteOptionGroup;
|
|
59
|
+
}>;
|
|
60
|
+
export type HeaderLayoutStyleSelection = Readonly<{
|
|
61
|
+
layoutId: HeaderLayoutId;
|
|
62
|
+
styleId: HeaderStyleId;
|
|
63
|
+
}>;
|
|
64
|
+
export type HeaderLayoutStyleRepair = Readonly<{
|
|
65
|
+
requested: HeaderLayoutStyleSelection;
|
|
66
|
+
resolved: HeaderLayoutStyleSelection;
|
|
67
|
+
reason: 'style-incompatible-with-layout';
|
|
68
|
+
}>;
|
|
69
|
+
export type HeaderLayoutStyleResolution = Readonly<{
|
|
70
|
+
kind: 'valid';
|
|
71
|
+
selection: HeaderLayoutStyleSelection;
|
|
72
|
+
layout: HeaderLayoutDefinition;
|
|
73
|
+
style: HeaderStyleDefinition;
|
|
74
|
+
}> | Readonly<{
|
|
75
|
+
kind: 'repaired';
|
|
76
|
+
selection: HeaderLayoutStyleSelection;
|
|
77
|
+
layout: HeaderLayoutDefinition;
|
|
78
|
+
style: HeaderStyleDefinition;
|
|
79
|
+
repair: HeaderLayoutStyleRepair;
|
|
80
|
+
}>;
|
|
81
|
+
export type HeaderOpeningRequirement = 'none' | 'reserved-space-ok' | 'requires-image-hero-with-contrast-overlay';
|
|
82
|
+
export type HeaderLogoShape = 'none' | 'text-only' | 'horizontal' | 'square' | 'tall';
|
|
83
|
+
export type HeaderLogoDimensions = Readonly<{
|
|
84
|
+
width: number | null;
|
|
85
|
+
height: number | null;
|
|
86
|
+
}>;
|
|
87
|
+
export declare function deriveHeaderLogoShapeFromDimensions({ width, height, }: HeaderLogoDimensions): HeaderLogoShape;
|
|
88
|
+
export type HeaderStyleNavTypography = 'plain' | 'heading' | 'quiet-caps' | 'brand-caps';
|
|
89
|
+
export type HeaderOpeningSectionContext = Readonly<{
|
|
90
|
+
kind: 'unknown';
|
|
91
|
+
canAdjust: false;
|
|
92
|
+
}> | Readonly<{
|
|
93
|
+
kind: 'plain';
|
|
94
|
+
canAdjust: boolean;
|
|
95
|
+
}> | Readonly<{
|
|
96
|
+
kind: 'page-background';
|
|
97
|
+
canAdjust: true;
|
|
98
|
+
}> | Readonly<{
|
|
99
|
+
kind: 'color-section';
|
|
100
|
+
contrast: 'light' | 'dark' | 'unknown';
|
|
101
|
+
canAdjust: boolean;
|
|
102
|
+
}> | Readonly<{
|
|
103
|
+
kind: 'gradient-section';
|
|
104
|
+
contrast: 'light' | 'dark' | 'unknown';
|
|
105
|
+
canAdjust: boolean;
|
|
106
|
+
}> | Readonly<{
|
|
107
|
+
kind: 'dynamic-media';
|
|
108
|
+
canAdjust: boolean;
|
|
109
|
+
}> | Readonly<{
|
|
110
|
+
kind: 'image-hero';
|
|
111
|
+
hasContrastOverlay: boolean;
|
|
112
|
+
hasTopSpacing: boolean;
|
|
113
|
+
canAdjust: boolean;
|
|
114
|
+
}>;
|
|
115
|
+
export type HeaderLogoPreferences = Readonly<{
|
|
116
|
+
brandDisplayMode?: BrandDisplayMode;
|
|
117
|
+
sizePolicy?: LogoSizePolicy;
|
|
118
|
+
}>;
|
|
119
|
+
export type HeaderLogoShapeContext = HeaderLogoPreferences & Readonly<{
|
|
120
|
+
kind?: 'shape';
|
|
121
|
+
shape: HeaderLogoShape;
|
|
122
|
+
}>;
|
|
123
|
+
export type HeaderLogoFactsContext = HeaderLogoPreferences & Readonly<{
|
|
124
|
+
kind: 'facts';
|
|
125
|
+
facts: LogoFacts;
|
|
126
|
+
}>;
|
|
127
|
+
export type HeaderLogoContext = HeaderLogoShapeContext | HeaderLogoFactsContext;
|
|
128
|
+
export declare const defaultHeaderLogoContext: HeaderLogoContext;
|
|
129
|
+
export type HeaderSelectionContext = Readonly<{
|
|
130
|
+
openingSection: HeaderOpeningSectionContext;
|
|
131
|
+
openingForeground: HeaderOpeningForeground;
|
|
132
|
+
logo: HeaderLogoContext;
|
|
133
|
+
navigation: Readonly<{
|
|
134
|
+
itemCount: number;
|
|
135
|
+
}>;
|
|
136
|
+
cta: Readonly<{
|
|
137
|
+
importance: 'low' | 'medium' | 'high';
|
|
138
|
+
}>;
|
|
139
|
+
banner: Readonly<{
|
|
140
|
+
persistentVisibility: 'none' | 'possible' | 'visible';
|
|
141
|
+
}>;
|
|
142
|
+
}>;
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import type { Theme } from '../schema';
|
|
2
2
|
import { type ThemeColorToken } from '../tokens';
|
|
3
|
-
import type {
|
|
3
|
+
import type { HeaderStyleDefinition } from './headerLayoutTypes';
|
|
4
4
|
export type HeaderOpeningForeground = Readonly<{
|
|
5
5
|
kind: 'known';
|
|
6
6
|
token: ThemeColorToken;
|
|
@@ -8,15 +8,18 @@ export type HeaderOpeningForeground = Readonly<{
|
|
|
8
8
|
}> | Readonly<{
|
|
9
9
|
kind: 'unknown';
|
|
10
10
|
}>;
|
|
11
|
+
export type HeaderOpeningForegroundContext = Readonly<{
|
|
12
|
+
openingForeground: HeaderOpeningForeground;
|
|
13
|
+
}>;
|
|
11
14
|
export type HeaderStyleAvailability = Readonly<{
|
|
12
15
|
kind: 'available';
|
|
13
16
|
}> | Readonly<{
|
|
14
17
|
kind: 'unavailable';
|
|
15
18
|
reason: 'requires-known-opening-foreground';
|
|
16
19
|
}>;
|
|
17
|
-
export declare function headerStyleAvailability(style: HeaderStyleDefinition, context: Partial<
|
|
20
|
+
export declare function headerStyleAvailability(style: HeaderStyleDefinition, context: Partial<HeaderOpeningForegroundContext> | undefined): HeaderStyleAvailability;
|
|
18
21
|
export declare function headerStyleAvailabilityReasonLabel(reason: Extract<HeaderStyleAvailability, {
|
|
19
22
|
kind: 'unavailable';
|
|
20
23
|
}>['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<
|
|
24
|
+
export declare function applyOpeningForeground(theme: Theme, header: Theme['header'], style: HeaderStyleDefinition, context: Partial<HeaderOpeningForegroundContext> | undefined): Theme['header'];
|
|
25
|
+
export declare function applyPageOpeningForegroundToTheme(theme: Theme, style: HeaderStyleDefinition | null | undefined, context: Partial<HeaderOpeningForegroundContext> | undefined): Theme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BlockDesignPlan, DesignBlockId, ResolvedBlockDesignPlan } from './types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { HeaderLayoutStyleSelection, HeaderOpeningSectionContext } from './headerLayoutStyles';
|
|
3
3
|
import type { HeaderOpeningForeground } from './headerOpeningForeground';
|
|
4
4
|
export type HeaderOpeningSectionRepair = 'promote-opening-hero-surface' | 'add-opening-contrast-overlay' | 'add-opening-top-spacing';
|
|
5
5
|
export type HeaderOpeningSectionPlan<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
@@ -13,7 +13,7 @@ export type HeaderOpeningContentSnapshot = Readonly<{
|
|
|
13
13
|
}>;
|
|
14
14
|
export declare function planGeneratedHeaderOpeningSection<TBlockId extends DesignBlockId>(input: Readonly<{
|
|
15
15
|
plan: readonly BlockDesignPlan<TBlockId>[];
|
|
16
|
-
|
|
16
|
+
recommendedHeaderSelections: readonly HeaderLayoutStyleSelection[];
|
|
17
17
|
}>): HeaderOpeningSectionPlan<TBlockId>;
|
|
18
18
|
export declare function deriveHeaderOpeningSectionContextFromContent(input: HeaderOpeningContentSnapshot): HeaderOpeningSectionContext;
|
|
19
19
|
export declare function deriveHeaderOpeningForegroundFromContent(input: HeaderOpeningContentSnapshot): HeaderOpeningForeground;
|
|
@@ -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 {};
|
|
@@ -13,7 +13,7 @@ export * from './designState';
|
|
|
13
13
|
export * from './footerLooks';
|
|
14
14
|
export * from './generatedSchemas';
|
|
15
15
|
export * from './generatedDesignPipeline';
|
|
16
|
-
export * from './
|
|
16
|
+
export * from './headerLayoutStyles';
|
|
17
17
|
export * from './headerInteractionPalette';
|
|
18
18
|
export * from './headerOpeningForeground';
|
|
19
19
|
export * from './headerOpeningSection';
|
|
@@ -2,9 +2,9 @@ import type { PageDesignEditorReadModel } from './pageDesignEditorModel';
|
|
|
2
2
|
import { type Theme } from '../schema';
|
|
3
3
|
import { type ButtonStyleSelection } from '../buttons/styles';
|
|
4
4
|
import { type CuratedSiteStyle } from './curatedSiteStyles';
|
|
5
|
-
import { type FooterLookId
|
|
6
|
-
import
|
|
7
|
-
import { type
|
|
5
|
+
import { type FooterLookId } from './footerLooks';
|
|
6
|
+
import type { SiteThemeCompilationPlan } from './compilationPlan';
|
|
7
|
+
import { type HeaderLayoutStyleSelection } from './headerLayoutStyles';
|
|
8
8
|
import { type CompiledBlockRuntimeFields, type CompiledBoundaryRuntime, type CompiledPageRuntime, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext } from './runtimeCompiler';
|
|
9
9
|
import { type AppearancePresetId, type DesignBlockId, type SiteStyleId } from './types';
|
|
10
10
|
import { type CuratedSiteStyleTheme } from './siteStyleThemeCompiler';
|
|
@@ -30,7 +30,7 @@ export declare const previewCustomizePurpose: "preview-customize";
|
|
|
30
30
|
/**
|
|
31
31
|
* Compiles a curated Site Style into a persisted Theme payload using the site
|
|
32
32
|
* style's defaults for the Style configurator selections. Thin wrapper around
|
|
33
|
-
* `
|
|
33
|
+
* `compileReplacementSiteThemeFromSelections` with the style's default curated palette.
|
|
34
34
|
*/
|
|
35
35
|
export declare function compileCuratedSiteStyleTheme(siteStyle: CuratedSiteStyle): CuratedSiteStyleTheme;
|
|
36
36
|
export declare function defaultConcretePaletteForSiteStyle(siteStyle: CuratedSiteStyle): Theme['palette'];
|
|
@@ -39,6 +39,11 @@ export type SelectionFallbackWarning = Readonly<{
|
|
|
39
39
|
kind: 'rejected-button-style';
|
|
40
40
|
requested: string;
|
|
41
41
|
fellBackTo: ButtonStyleSelection;
|
|
42
|
+
}> | Readonly<{
|
|
43
|
+
kind: 'repaired-header-selection';
|
|
44
|
+
requested: HeaderLayoutStyleSelection;
|
|
45
|
+
resolved: HeaderLayoutStyleSelection;
|
|
46
|
+
reason: 'style-not-curated-for-layout' | 'layout-not-curated-for-site-style';
|
|
42
47
|
}>;
|
|
43
48
|
type SiteThemeSelectionsCommonInput = Readonly<{
|
|
44
49
|
siteStyle: CuratedSiteStyle;
|
|
@@ -55,62 +60,30 @@ export type UpdateSiteThemeSelectionsInput = SiteThemeSelectionsCommonInput & Re
|
|
|
55
60
|
compilationPlan: Extract<SiteThemeCompilationPlan, {
|
|
56
61
|
kind: 'update-selection';
|
|
57
62
|
}>;
|
|
58
|
-
|
|
59
|
-
export type SiteThemeSelectionsInput = SiteThemeSelectionsCommonInput & Readonly<{
|
|
60
|
-
compilationPlan: SiteThemeCompilationPlan;
|
|
63
|
+
currentHeaderSelection: HeaderLayoutStyleSelection;
|
|
61
64
|
}>;
|
|
62
65
|
type ResolvedSiteThemeSelections = Readonly<{
|
|
63
66
|
buttonStyleSelection: ButtonStyleSelection;
|
|
64
|
-
|
|
65
|
-
headerLayoutId: HeaderLayoutId | null;
|
|
66
|
-
headerStyleId: HeaderStyleId | null;
|
|
67
|
+
headerSelection: HeaderLayoutStyleSelection;
|
|
67
68
|
footerLookId: FooterLookId | null;
|
|
68
69
|
}>;
|
|
69
70
|
type ReplacementResolvedSiteThemeSelections = ResolvedSiteThemeSelections & Readonly<{
|
|
70
|
-
headerLayoutId: HeaderLayoutId;
|
|
71
|
-
headerStyleId: HeaderStyleId;
|
|
72
71
|
footerLookId: FooterLookId;
|
|
73
72
|
}>;
|
|
74
73
|
type SiteThemeSelectionsBaseResult<TResolvedSelections extends ResolvedSiteThemeSelections> = Readonly<{
|
|
75
74
|
theme: CuratedSiteStyleTheme;
|
|
76
75
|
requestedSelections: Readonly<{
|
|
77
|
-
|
|
78
|
-
headerLayoutId: HeaderLayoutId | null;
|
|
79
|
-
headerStyleId: HeaderStyleId | null;
|
|
76
|
+
headerSelection: HeaderLayoutStyleSelection | null;
|
|
80
77
|
footerLookId: FooterLookId | null;
|
|
81
78
|
}>;
|
|
82
79
|
resolvedSelections: TResolvedSelections;
|
|
83
|
-
headerCompilation: Readonly<{
|
|
84
|
-
kind: 'preserved';
|
|
85
|
-
selection: HeaderSelectionIdentity;
|
|
86
|
-
}> | Readonly<{
|
|
87
|
-
kind: 'recompiled';
|
|
88
|
-
result: HeaderSelectionResult;
|
|
89
|
-
}>;
|
|
90
|
-
footerCompilation: Readonly<{
|
|
91
|
-
kind: 'preserved';
|
|
92
|
-
footerLookId: FooterLookId | null;
|
|
93
|
-
}> | Readonly<{
|
|
94
|
-
kind: 'applied-look';
|
|
95
|
-
result: FooterSelectionResult;
|
|
96
|
-
}>;
|
|
97
80
|
warnings: ReadonlyArray<SelectionFallbackWarning>;
|
|
98
81
|
}>;
|
|
99
82
|
export type ReplacementSiteThemeSelectionsResult = SiteThemeSelectionsBaseResult<ReplacementResolvedSiteThemeSelections>;
|
|
100
83
|
export type UpdateSiteThemeSelectionsResult = SiteThemeSelectionsBaseResult<ResolvedSiteThemeSelections>;
|
|
101
84
|
export type SiteThemeSelectionsResult = ReplacementSiteThemeSelectionsResult | UpdateSiteThemeSelectionsResult;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
* palette values into theme tokens. Palette authority is always supplied as a
|
|
105
|
-
* complete concrete value.
|
|
106
|
-
*
|
|
107
|
-
* Returns the resolved IDs so the caller can persist auto-pick decisions, plus
|
|
108
|
-
* any fallback warnings the UI can surface as "we changed your selection"
|
|
109
|
-
* notices.
|
|
110
|
-
*/
|
|
111
|
-
export declare function compileSiteThemeFromSelections(input: ReplacementSiteThemeSelectionsInput): ReplacementSiteThemeSelectionsResult;
|
|
112
|
-
export declare function compileSiteThemeFromSelections(input: UpdateSiteThemeSelectionsInput): UpdateSiteThemeSelectionsResult;
|
|
113
|
-
export declare function compileSiteThemeFromSelections(input: SiteThemeSelectionsInput): SiteThemeSelectionsResult;
|
|
85
|
+
export declare function compileReplacementSiteThemeFromSelections(input: ReplacementSiteThemeSelectionsInput): ReplacementSiteThemeSelectionsResult;
|
|
86
|
+
export declare function compileUpdatedSiteThemeFromSelections(input: UpdateSiteThemeSelectionsInput): UpdateSiteThemeSelectionsResult;
|
|
114
87
|
export declare function siteStyleIdFromTheme(theme: Pick<Theme, 'siteStyleId'> | null | undefined): SiteStyleId | null;
|
|
115
88
|
export type EditorModelRuntimeLookOverride<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
116
89
|
kind: 'pinned';
|