@riverbankcms/sdk 0.102.0 → 0.104.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 +10 -2
- package/dist/{PreviewEditorSidebar-BKkhhkJk.mjs → PreviewEditorSidebar-ywqcYjTB.mjs} +217 -131
- package/dist/{PreviewEditorUI-DIvTqcqI.mjs → PreviewEditorUI-DApUNF6g.mjs} +3 -3
- package/dist/{PreviewQueryProvider-ZF6TXq5Q.mjs → PreviewQueryProvider-CStABBUh.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CA2k7Z_T.mjs → SdkPreviewModeRuntime-DmHCcIMO.mjs} +1738 -815
- package/dist/{SiteChromeCustomizeContext-Bh9-DtMQ.mjs → SiteChromeCustomizeContext-BV9GU-3C.mjs} +3517 -2524
- package/dist/_dts/ai/src/contracts/proposals.d.ts +298 -298
- package/dist/_dts/api/src/contentRuntime.d.ts +6 -3
- package/dist/_dts/api/src/endpoints.d.ts +10 -3
- package/dist/_dts/api/src/index.d.ts +2 -2
- package/dist/_dts/api/src/navigation/contracts.d.ts +6 -6
- package/dist/_dts/api/src/siteBanner.d.ts +2 -2
- package/dist/_dts/api/src/siteIcons.d.ts +39 -43
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +36 -7
- package/dist/_dts/block-form/src/widgets/SliderField/SliderField.d.ts +3 -3
- package/dist/_dts/block-form/src/widgets/SliderField/sliderValue.d.ts +36 -0
- package/dist/_dts/block-form/src/widgets/utils/readNumericUiConfig.d.ts +3 -0
- package/dist/_dts/blocks/src/PageRenderer.d.ts +6 -1
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/index.d.ts +2 -2
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +7 -7
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +14 -14
- package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +29 -29
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +8 -5
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +362 -227
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
- package/dist/_dts/blocks/src/system/icons/generatedAssets.d.ts +28 -0
- package/dist/_dts/blocks/src/system/icons/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/icons/value.d.ts +3 -6
- package/dist/_dts/blocks/src/system/inlineText.d.ts +2 -2
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +417 -177
- package/dist/_dts/blocks/src/system/node/schema.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/feature-card-icon.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -7
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -0
- package/dist/_dts/content-editor/src/ui/stores/generatedIconAssetsStore.d.ts +9 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +344 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +15 -15
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +7 -0
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +2 -3
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +2 -3
- package/dist/_dts/editor-blocks/src/block-editor/blockHeaderActionPlan.d.ts +1 -5
- package/dist/_dts/editor-blocks/src/block-editor/featureCardIconActions.d.ts +25 -19
- package/dist/_dts/editor-blocks/src/block-editor/generatedIconApplyCoordination.d.ts +32 -0
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/GeneratedIconLibraryContext.d.ts +28 -0
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/index.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/loaders.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/CustomizeBackgroundControlRows.d.ts +15 -0
- package/dist/_dts/preview-next/src/client/preview/CustomizeColorTokenPicker.d.ts +27 -0
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +13 -6
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +5 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +44 -18
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +16 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +4 -5
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +22 -1
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +12 -4
- package/dist/_dts/sdk/src/client/management/types.d.ts +3 -0
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +2 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +0 -1
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +10 -10
- package/dist/_dts/sdk/src/next/revalidate.d.ts +14 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +9 -6
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +3 -4
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +19 -19
- package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/types.d.ts +7 -7
- package/dist/_dts/theme-core/src/cards/types.d.ts +6 -6
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +156 -150
- package/dist/_dts/theme-core/src/navigation/types.d.ts +8 -6
- package/dist/_dts/theme-core/src/palette/colors.d.ts +84 -0
- package/dist/_dts/theme-core/src/palette/{variants → curated}/brand-led.d.ts +12 -24
- package/dist/_dts/theme-core/src/palette/{variants → curated}/high-contrast.d.ts +9 -18
- package/dist/_dts/theme-core/src/palette/{variants → curated}/index.d.ts +67 -119
- package/dist/_dts/theme-core/src/palette/{variants → curated}/soft-natural.d.ts +12 -24
- package/dist/_dts/theme-core/src/palette/{variants → curated}/types.d.ts +52 -62
- package/dist/_dts/theme-core/src/palette/{variants → curated}/warm-dark.d.ts +6 -12
- package/dist/_dts/theme-core/src/palette/{variants → curated}/warm-neutral.d.ts +12 -24
- package/dist/_dts/theme-core/src/palette/editorState.d.ts +45 -0
- package/dist/_dts/theme-core/src/palette/index.d.ts +25 -14
- package/dist/_dts/theme-core/src/palette/legacyRuntimeProjection.d.ts +38 -0
- package/dist/_dts/theme-core/src/palette/legacySelection.d.ts +34 -0
- package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +58 -0
- package/dist/_dts/theme-core/src/palette/paletteCompatibilityTransition.d.ts +241 -0
- package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +118 -0
- package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +50 -0
- package/dist/_dts/theme-core/src/palette/selection.d.ts +72 -0
- package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +34 -0
- package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +58 -0
- package/dist/_dts/theme-core/src/schema.d.ts +208 -169
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +22 -22
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +24 -24
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +35 -11
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +48 -17
- package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +77 -0
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +45 -0
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/themeParity.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +2 -1
- package/dist/_dts/ui/src/toggle.d.ts +2 -2
- package/dist/cli/index.mjs +7815 -7445
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +9 -1
- package/dist/client/{DiscountCodeDisclosure-ChVZwVtS.mjs → DiscountCodeDisclosure-Dit2aItR.mjs} +1 -1
- package/dist/client/{EventCombined.client-PZtXbH6R.mjs → EventCombined.client-BnREyCjf.mjs} +3 -3
- package/dist/client/{EventListing.client-C4AMTXec.mjs → EventListing.client-0uHld51x.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-B0w8_i0u.mjs → LeafletStaticMap-DJcvSfmj.mjs} +1 -1
- package/dist/client/{MagicLinkForm-DF0ZGhIu.mjs → MagicLinkForm-EAsIktfw.mjs} +2 -2
- package/dist/client/{StepIndicator-PccQ89Ct.mjs → StepIndicator-CRR17tYI.mjs} +2 -2
- package/dist/client/{accordion-CTNWT1lk.mjs → accordion-B47HIuuH.mjs} +1 -1
- package/dist/client/{bookingForm-DYixwPqP.mjs → bookingForm-I1E-8F9P.mjs} +6 -6
- package/dist/client/{buttons-CySQwlFs.mjs → buttons-BbPn8OKA.mjs} +1 -1
- package/dist/client/{carousel-W75iYR0M.mjs → carousel-OlM7SyBs.mjs} +1 -1
- package/dist/client/{cart-Ca_DGWQq.mjs → cart-BKpG5jz6.mjs} +3 -3
- package/dist/client/{checkout-STgKTsNh.mjs → checkout-Dmmr6qoU.mjs} +3 -3
- package/dist/client/client.mjs +9000 -8353
- package/dist/client/{courseRegistration-DQI1cu1u.mjs → courseRegistration-CflZiqGk.mjs} +7 -7
- package/dist/client/{eventCalendar-BJrHpofg.mjs → eventCalendar-BvoLWcp-.mjs} +5 -5
- package/dist/client/{eventCombined-DPtqBHaH.mjs → eventCombined-DsrO8t_t.mjs} +2 -2
- package/dist/client/{eventDetails-Brt31CDo.mjs → eventDetails-C3hxgcJm.mjs} +3 -3
- package/dist/client/{eventListing-BrClHJOq.mjs → eventListing-C-hb237X.mjs} +2 -2
- package/dist/client/{eventRegistration-DxlNlVUC.mjs → eventRegistration-B0gyzDGi.mjs} +7 -7
- package/dist/client/{form-Vp5cGzDF.mjs → form-C_RUi6oJ.mjs} +2 -2
- package/dist/client/{headerSection-DL2xjRgW.mjs → headerSection-IKQiD2U0.mjs} +3 -3
- package/dist/client/hooks.mjs +4792 -4606
- package/dist/client/{locationMap-B0EjoXQS.mjs → locationMap-8ZBrMzRJ.mjs} +2 -2
- package/dist/client/{newsletterForm-BlV9VRlq.mjs → newsletterForm-CYk3ucwj.mjs} +2 -2
- package/dist/client/{pricing-DmRD7Tjx.mjs → pricing-B5GmvfIH.mjs} +1 -1
- package/dist/client/{productDetail-BLTQsY2f.mjs → productDetail-BjS2Dqzo.mjs} +3 -3
- package/dist/client/{productList-R8lsMpRs.mjs → productList-BOHvC8My.mjs} +3 -3
- package/dist/client/{propsDecoder-DgAshF92.mjs → propsDecoder-WS6UEJwZ.mjs} +7 -0
- package/dist/client/rendering/client.mjs +3565 -3218
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +8919 -8279
- package/dist/client/{shop-DWjyje1s.mjs → shop-CON03-wN.mjs} +6 -6
- package/dist/client/{shop-commerce-CSKCR87d.mjs → shop-commerce-DlqrFgH8.mjs} +5 -5
- package/dist/client/{shop-commerce-store-DxPnE-iN.mjs → shop-commerce-store-l74-Kne6.mjs} +1 -1
- package/dist/client/{shopShared-OOeAkFq7.mjs → shopShared-CQheEXSg.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-Bp6X7XgG.mjs → useDiscountCodeUi-v6OluyWl.mjs} +1 -1
- package/dist/client/{useEventFilters-B489x9TO.mjs → useEventFilters-BqSTcNOf.mjs} +3 -3
- package/dist/client/{usePolling-BKP66stL.mjs → usePolling-DMfADjIF.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +10 -3
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +10 -3
- package/dist/{previewAuthStore-ByPPZqmp.mjs → previewAuthStore-CfquDtTh.mjs} +10 -3
- package/dist/{sdk-runtime-K8Oqj97H.mjs → sdk-runtime-DWb08Xaz.mjs} +2 -2
- package/dist/{separator-CRoP34pT.mjs → separator--6yjc914.mjs} +1 -1
- package/dist/server/components.mjs +10183 -9621
- package/dist/server/config-validation.mjs +4871 -4686
- package/dist/server/config.mjs +4871 -4686
- package/dist/server/data.mjs +4848 -4663
- package/dist/server/index.mjs +11 -4
- package/dist/server/next/revalidate.mjs +31 -1
- package/dist/server/next.mjs +9894 -9322
- package/dist/server/page-converter.mjs +4758 -4573
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +10099 -9619
- package/dist/server/rendering.mjs +10195 -9631
- package/dist/server/routing.mjs +4985 -4701
- package/dist/server/server.mjs +4823 -4629
- package/dist/server/theme-bridge.mjs +360 -146
- package/dist/server/theme.mjs +94 -91
- package/dist/styles/index.css +143 -30
- package/package.json +1 -1
|
@@ -19,8 +19,8 @@ export type ThemeChromeTextLegibilityPlan = Readonly<{
|
|
|
19
19
|
export declare const backgroundAppearanceQuickColorTokenNames: readonly ["background", "surface", "muted", "primary", "secondary", "accent"];
|
|
20
20
|
export declare const backgroundAppearanceBaseColorTokenNames: readonly ["background", "surface", "surfaceAlt", "muted", "primary", "secondary", "accent", "neutral"];
|
|
21
21
|
export declare const backgroundAppearanceShadeableColorTokenNames: readonly ["primary", "secondary", "accent", "neutral"];
|
|
22
|
-
export declare const backgroundAppearanceColorTokenNames: readonly ("surface" | "
|
|
23
|
-
export declare const backgroundAppearanceAdvancedColorTokenNames: ("surface" | "
|
|
22
|
+
export declare const backgroundAppearanceColorTokenNames: readonly ("surface" | "background" | "accent" | "muted" | "primary" | "secondary" | "surfaceAlt" | "neutral" | "neutral-600" | "neutral-500" | "neutral-800" | "neutral-700" | "neutral-900" | "primary-500" | "primary-400" | "neutral-950" | "primary-300" | "primary-600" | "secondary-600" | "accent-600" | "secondary-500" | "accent-400" | "neutral-400" | "neutral-50" | "neutral-100" | "neutral-200" | "neutral-300" | "secondary-400" | "accent-500" | "primary-100" | "primary-50" | "primary-900" | "secondary-50" | "secondary-900" | "accent-50" | "accent-900" | "primary-800" | "primary-700" | "accent-100" | "accent-200" | "accent-300" | "accent-700" | "accent-800" | "accent-950" | "primary-200" | "primary-950" | "secondary-100" | "secondary-200" | "secondary-300" | "secondary-700" | "secondary-800" | "secondary-950")[];
|
|
23
|
+
export declare const backgroundAppearanceAdvancedColorTokenNames: ("surface" | "background" | "accent" | "muted" | "primary" | "secondary" | "surfaceAlt" | "neutral" | "neutral-600" | "neutral-500" | "neutral-800" | "neutral-700" | "neutral-900" | "primary-500" | "primary-400" | "neutral-950" | "primary-300" | "primary-600" | "secondary-600" | "accent-600" | "secondary-500" | "accent-400" | "neutral-400" | "neutral-50" | "neutral-100" | "neutral-200" | "neutral-300" | "secondary-400" | "accent-500" | "primary-100" | "primary-50" | "primary-900" | "secondary-50" | "secondary-900" | "accent-50" | "accent-900" | "primary-800" | "primary-700" | "accent-100" | "accent-200" | "accent-300" | "accent-700" | "accent-800" | "accent-950" | "primary-200" | "primary-950" | "secondary-100" | "secondary-200" | "secondary-300" | "secondary-700" | "secondary-800" | "secondary-950")[];
|
|
24
24
|
export declare function parseBackgroundAppearanceColorToken(value: unknown): ThemeColorToken | null;
|
|
25
25
|
export declare function foregroundTokenForBackgroundAppearanceColorToken(token: ThemeColorToken): string;
|
|
26
26
|
export declare function planThemeBackgroundTextLegibility(backgroundToken: ThemeColorToken, role?: BackgroundTextLegibilityRole): ThemeBackgroundTextLegibilityPlan;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockDesignMetadata } from './blockFlow';
|
|
2
2
|
import { type PageDesignEditorIssue } from './pageDesignEditorModel';
|
|
3
|
-
import type { CompiledBlockRuntimeFields, SurfaceResolutionContext } from './runtimeCompiler';
|
|
3
|
+
import type { CompiledBlockRuntimeFields, CompiledBoundaryRuntime, SurfaceResolutionContext } from './runtimeCompiler';
|
|
4
4
|
import { type ContentTemplateBlockScope, type ContentTemplateDesignBlockId, type ContentTemplateDesignIntent } from './contentTemplateDesignIntent';
|
|
5
5
|
import type { LayoutVariantKey } from './types';
|
|
6
6
|
export type ContentTemplateRuntimeBlockInput = Readonly<{
|
|
@@ -17,6 +17,7 @@ export type CompiledContentTemplateRuntimeBlock = Readonly<{
|
|
|
17
17
|
}>;
|
|
18
18
|
export type CompiledContentTemplateRuntime = Readonly<{
|
|
19
19
|
blocks: readonly CompiledContentTemplateRuntimeBlock[];
|
|
20
|
+
boundaries: readonly CompiledBoundaryRuntime<ContentTemplateDesignBlockId>[];
|
|
20
21
|
fieldsByBlockId: ReadonlyMap<ContentTemplateDesignBlockId, CompiledBlockRuntimeFields>;
|
|
21
22
|
issues: readonly PageDesignEditorIssue<ContentTemplateDesignBlockId>[];
|
|
22
23
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ButtonPersonalityId, type KnownButtonPersonalityId } from '../buttons/personalities';
|
|
2
|
-
import { type
|
|
2
|
+
import { type KnownCuratedPaletteId, type CuratedPaletteId } from '../palette/curated';
|
|
3
3
|
import type { Theme } from '../schema';
|
|
4
4
|
import { type HeaderLayoutId, type HeaderLayoutIdValue, type HeaderLookId, type HeaderStyleId } from './headerLooks';
|
|
5
5
|
import { type FooterLookId } from './footerLooks';
|
|
@@ -23,7 +23,7 @@ type CuratedSiteStyleCardOverrides = NonNullable<Theme['cards']>;
|
|
|
23
23
|
type CuratedSiteStyleTestimonialQuoteOverrides = NonNullable<Theme['testimonialQuote']>;
|
|
24
24
|
/**
|
|
25
25
|
* Site-style-specific Theme overrides are applied after token recipes,
|
|
26
|
-
* button personality, and palette
|
|
26
|
+
* button personality, and curated palette selection have compiled the base
|
|
27
27
|
* Theme. Values here intentionally win; palette and button selections remain
|
|
28
28
|
* independent Style configurator choices.
|
|
29
29
|
*/
|
|
@@ -50,7 +50,7 @@ export type CuratedSiteStyleThemeOverrides = Readonly<{
|
|
|
50
50
|
testimonialQuote?: CuratedSiteStyleTestimonialQuoteOverrides;
|
|
51
51
|
}>;
|
|
52
52
|
export type ButtonPersonalityChoice = CuratedChoice<KnownButtonPersonalityId>;
|
|
53
|
-
export type
|
|
53
|
+
export type CuratedPaletteRecommendation = CuratedChoice<KnownCuratedPaletteId>;
|
|
54
54
|
export type HeaderLayoutChoice = CuratedChoice<HeaderLayoutId>;
|
|
55
55
|
export type HeaderStyleChoice = CuratedChoice<HeaderStyleId>;
|
|
56
56
|
export type HeaderLayoutStyleChoice = Readonly<{
|
|
@@ -113,12 +113,12 @@ export type CuratedSiteStyle = Readonly<{
|
|
|
113
113
|
/** Authored picker choices. First item is the default/fallback. */
|
|
114
114
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
115
115
|
/** Authored picker choices. First item is the default/fallback. */
|
|
116
|
-
|
|
116
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
117
117
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
118
118
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
119
119
|
}>;
|
|
120
120
|
export declare function defaultButtonPersonalityForSiteStyle(siteStyle: CuratedSiteStyle): ButtonPersonalityId;
|
|
121
|
-
export declare function
|
|
121
|
+
export declare function defaultPaletteForSiteStyle(siteStyle: CuratedSiteStyle): CuratedPaletteId;
|
|
122
122
|
export declare function defaultTypographyPresetForSiteStyle(siteStyle: CuratedSiteStyle): TypographyPresetId;
|
|
123
123
|
/**
|
|
124
124
|
* V1 generated site styles are curated product presets, not AI-authored design
|
|
@@ -157,7 +157,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
157
157
|
/** Authored picker choices. First item is the default/fallback. */
|
|
158
158
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
159
159
|
/** Authored picker choices. First item is the default/fallback. */
|
|
160
|
-
|
|
160
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
161
161
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
162
162
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
163
163
|
}>, Readonly<{
|
|
@@ -192,7 +192,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
192
192
|
/** Authored picker choices. First item is the default/fallback. */
|
|
193
193
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
194
194
|
/** Authored picker choices. First item is the default/fallback. */
|
|
195
|
-
|
|
195
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
196
196
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
197
197
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
198
198
|
}>, Readonly<{
|
|
@@ -227,7 +227,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
227
227
|
/** Authored picker choices. First item is the default/fallback. */
|
|
228
228
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
229
229
|
/** Authored picker choices. First item is the default/fallback. */
|
|
230
|
-
|
|
230
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
231
231
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
232
232
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
233
233
|
}>, Readonly<{
|
|
@@ -262,7 +262,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
262
262
|
/** Authored picker choices. First item is the default/fallback. */
|
|
263
263
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
264
264
|
/** Authored picker choices. First item is the default/fallback. */
|
|
265
|
-
|
|
265
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
266
266
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
267
267
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
268
268
|
}>, Readonly<{
|
|
@@ -297,7 +297,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
297
297
|
/** Authored picker choices. First item is the default/fallback. */
|
|
298
298
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
299
299
|
/** Authored picker choices. First item is the default/fallback. */
|
|
300
|
-
|
|
300
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
301
301
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
302
302
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
303
303
|
}>, Readonly<{
|
|
@@ -332,7 +332,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
332
332
|
/** Authored picker choices. First item is the default/fallback. */
|
|
333
333
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
334
334
|
/** Authored picker choices. First item is the default/fallback. */
|
|
335
|
-
|
|
335
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
336
336
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
337
337
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
338
338
|
}>, Readonly<{
|
|
@@ -367,7 +367,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
367
367
|
/** Authored picker choices. First item is the default/fallback. */
|
|
368
368
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
369
369
|
/** Authored picker choices. First item is the default/fallback. */
|
|
370
|
-
|
|
370
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
371
371
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
372
372
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
373
373
|
}>, Readonly<{
|
|
@@ -402,7 +402,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
402
402
|
/** Authored picker choices. First item is the default/fallback. */
|
|
403
403
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
404
404
|
/** Authored picker choices. First item is the default/fallback. */
|
|
405
|
-
|
|
405
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
406
406
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
407
407
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
408
408
|
}>, Readonly<{
|
|
@@ -437,7 +437,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
437
437
|
/** Authored picker choices. First item is the default/fallback. */
|
|
438
438
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
439
439
|
/** Authored picker choices. First item is the default/fallback. */
|
|
440
|
-
|
|
440
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
441
441
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
442
442
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
443
443
|
}>, Readonly<{
|
|
@@ -472,7 +472,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
472
472
|
/** Authored picker choices. First item is the default/fallback. */
|
|
473
473
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
474
474
|
/** Authored picker choices. First item is the default/fallback. */
|
|
475
|
-
|
|
475
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
476
476
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
477
477
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
478
478
|
}>, Readonly<{
|
|
@@ -507,7 +507,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
507
507
|
/** Authored picker choices. First item is the default/fallback. */
|
|
508
508
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
509
509
|
/** Authored picker choices. First item is the default/fallback. */
|
|
510
|
-
|
|
510
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
511
511
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
512
512
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
513
513
|
}>, Readonly<{
|
|
@@ -542,7 +542,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
542
542
|
/** Authored picker choices. First item is the default/fallback. */
|
|
543
543
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
544
544
|
/** Authored picker choices. First item is the default/fallback. */
|
|
545
|
-
|
|
545
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
546
546
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
547
547
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
548
548
|
}>, Readonly<{
|
|
@@ -577,7 +577,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
577
577
|
/** Authored picker choices. First item is the default/fallback. */
|
|
578
578
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
579
579
|
/** Authored picker choices. First item is the default/fallback. */
|
|
580
|
-
|
|
580
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
581
581
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
582
582
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
583
583
|
}>, Readonly<{
|
|
@@ -612,7 +612,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
612
612
|
/** Authored picker choices. First item is the default/fallback. */
|
|
613
613
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
614
614
|
/** Authored picker choices. First item is the default/fallback. */
|
|
615
|
-
|
|
615
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
616
616
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
617
617
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
618
618
|
}>, Readonly<{
|
|
@@ -647,7 +647,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
647
647
|
/** Authored picker choices. First item is the default/fallback. */
|
|
648
648
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
649
649
|
/** Authored picker choices. First item is the default/fallback. */
|
|
650
|
-
|
|
650
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
651
651
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
652
652
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
653
653
|
}>, Readonly<{
|
|
@@ -682,7 +682,7 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
682
682
|
/** Authored picker choices. First item is the default/fallback. */
|
|
683
683
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
684
684
|
/** Authored picker choices. First item is the default/fallback. */
|
|
685
|
-
|
|
685
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
686
686
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
687
687
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
688
688
|
}>];
|
|
@@ -718,7 +718,7 @@ export declare const curatedSiteStylesById: Map<SiteStyleId, Readonly<{
|
|
|
718
718
|
/** Authored picker choices. First item is the default/fallback. */
|
|
719
719
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
720
720
|
/** Authored picker choices. First item is the default/fallback. */
|
|
721
|
-
|
|
721
|
+
paletteRecommendations: NonEmptyReadonlyArray<CuratedPaletteRecommendation>;
|
|
722
722
|
typographyPresetChoices: NonEmptyReadonlyArray<TypographyPresetChoice>;
|
|
723
723
|
defaultTypographyPresetId: KnownTypographyPresetId;
|
|
724
724
|
}>>;
|
|
@@ -139,8 +139,8 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
139
139
|
}, z.core.$strict>], "kind">;
|
|
140
140
|
itemSurface: z.ZodEnum<{
|
|
141
141
|
flat: "flat";
|
|
142
|
-
none: "none";
|
|
143
142
|
default: "default";
|
|
143
|
+
none: "none";
|
|
144
144
|
editorial: "editorial";
|
|
145
145
|
raised: "raised";
|
|
146
146
|
"color-blocked": "color-blocked";
|
|
@@ -183,9 +183,9 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
183
183
|
}>>;
|
|
184
184
|
heroTypographyScale: z.ZodOptional<z.ZodEnum<{
|
|
185
185
|
display: "display";
|
|
186
|
-
poster: "poster";
|
|
187
186
|
editorial: "editorial";
|
|
188
187
|
quiet: "quiet";
|
|
188
|
+
poster: "poster";
|
|
189
189
|
}>>;
|
|
190
190
|
imageSurfaceTreatment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
191
191
|
kind: z.ZodLiteral<"none">;
|
|
@@ -198,8 +198,8 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
198
198
|
}>;
|
|
199
199
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
200
200
|
soft: "soft";
|
|
201
|
-
strong: "strong";
|
|
202
201
|
balanced: "balanced";
|
|
202
|
+
strong: "strong";
|
|
203
203
|
}>>;
|
|
204
204
|
}, z.core.$strict>, z.ZodObject<{
|
|
205
205
|
kind: z.ZodLiteral<"brand-wash">;
|
|
@@ -210,29 +210,29 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
210
210
|
}>;
|
|
211
211
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
212
212
|
soft: "soft";
|
|
213
|
-
strong: "strong";
|
|
214
213
|
balanced: "balanced";
|
|
214
|
+
strong: "strong";
|
|
215
215
|
}>>;
|
|
216
216
|
}, z.core.$strict>, z.ZodObject<{
|
|
217
217
|
kind: z.ZodLiteral<"neutral-scrim">;
|
|
218
218
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
219
219
|
soft: "soft";
|
|
220
|
-
strong: "strong";
|
|
221
220
|
balanced: "balanced";
|
|
221
|
+
strong: "strong";
|
|
222
222
|
}>>;
|
|
223
223
|
}, z.core.$strict>, z.ZodObject<{
|
|
224
224
|
kind: z.ZodLiteral<"neutral-wash">;
|
|
225
225
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
226
226
|
soft: "soft";
|
|
227
|
-
strong: "strong";
|
|
228
227
|
balanced: "balanced";
|
|
228
|
+
strong: "strong";
|
|
229
229
|
}>>;
|
|
230
230
|
}, z.core.$strict>, z.ZodObject<{
|
|
231
231
|
kind: z.ZodLiteral<"solid-panel">;
|
|
232
232
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
233
233
|
soft: "soft";
|
|
234
|
-
strong: "strong";
|
|
235
234
|
balanced: "balanced";
|
|
235
|
+
strong: "strong";
|
|
236
236
|
}>>;
|
|
237
237
|
}, z.core.$strict>], "kind">>;
|
|
238
238
|
imageSurfaceMotion: z.ZodOptional<z.ZodEnum<{
|
|
@@ -240,8 +240,8 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
240
240
|
"fixed-frame": "fixed-frame";
|
|
241
241
|
}>>;
|
|
242
242
|
testimonialCardTreatment: z.ZodOptional<z.ZodEnum<{
|
|
243
|
-
"accent-quote": "accent-quote";
|
|
244
243
|
default: "default";
|
|
244
|
+
"accent-quote": "accent-quote";
|
|
245
245
|
}>>;
|
|
246
246
|
tileTreatment: z.ZodOptional<z.ZodEnum<{
|
|
247
247
|
default: "default";
|
|
@@ -254,8 +254,8 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
254
254
|
}>>;
|
|
255
255
|
eyebrowTreatment: z.ZodOptional<z.ZodEnum<{
|
|
256
256
|
accent: "accent";
|
|
257
|
-
plain: "plain";
|
|
258
257
|
pill: "pill";
|
|
258
|
+
plain: "plain";
|
|
259
259
|
"accent-pill": "accent-pill";
|
|
260
260
|
"pill-bounce": "pill-bounce";
|
|
261
261
|
"accent-pill-bounce": "accent-pill-bounce";
|
|
@@ -264,10 +264,10 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
264
264
|
export declare const styleAuthoritySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
265
265
|
kind: z.ZodLiteral<"theme-v2">;
|
|
266
266
|
source: z.ZodEnum<{
|
|
267
|
-
generated: "generated";
|
|
268
|
-
admin: "admin";
|
|
269
267
|
user: "user";
|
|
268
|
+
admin: "admin";
|
|
270
269
|
sdk: "sdk";
|
|
270
|
+
generated: "generated";
|
|
271
271
|
}>;
|
|
272
272
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
|
|
273
273
|
templateId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignSystemTemplateId, string>>;
|
|
@@ -297,10 +297,10 @@ export declare const blockRuntimeStyleAuthoritySchema: z.ZodObject<{
|
|
|
297
297
|
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
298
298
|
kind: z.ZodLiteral<"theme-v2">;
|
|
299
299
|
source: z.ZodEnum<{
|
|
300
|
-
generated: "generated";
|
|
301
|
-
admin: "admin";
|
|
302
300
|
user: "user";
|
|
301
|
+
admin: "admin";
|
|
303
302
|
sdk: "sdk";
|
|
303
|
+
generated: "generated";
|
|
304
304
|
}>;
|
|
305
305
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
|
|
306
306
|
templateId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignSystemTemplateId, string>>;
|
|
@@ -357,8 +357,8 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
357
357
|
}, z.core.$strict>], "kind">;
|
|
358
358
|
itemSurface: z.ZodEnum<{
|
|
359
359
|
flat: "flat";
|
|
360
|
-
none: "none";
|
|
361
360
|
default: "default";
|
|
361
|
+
none: "none";
|
|
362
362
|
editorial: "editorial";
|
|
363
363
|
raised: "raised";
|
|
364
364
|
"color-blocked": "color-blocked";
|
|
@@ -401,9 +401,9 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
401
401
|
}>>;
|
|
402
402
|
heroTypographyScale: z.ZodOptional<z.ZodEnum<{
|
|
403
403
|
display: "display";
|
|
404
|
-
poster: "poster";
|
|
405
404
|
editorial: "editorial";
|
|
406
405
|
quiet: "quiet";
|
|
406
|
+
poster: "poster";
|
|
407
407
|
}>>;
|
|
408
408
|
imageSurfaceTreatment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
409
409
|
kind: z.ZodLiteral<"none">;
|
|
@@ -416,8 +416,8 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
416
416
|
}>;
|
|
417
417
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
418
418
|
soft: "soft";
|
|
419
|
-
strong: "strong";
|
|
420
419
|
balanced: "balanced";
|
|
420
|
+
strong: "strong";
|
|
421
421
|
}>>;
|
|
422
422
|
}, z.core.$strict>, z.ZodObject<{
|
|
423
423
|
kind: z.ZodLiteral<"brand-wash">;
|
|
@@ -428,29 +428,29 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
428
428
|
}>;
|
|
429
429
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
430
430
|
soft: "soft";
|
|
431
|
-
strong: "strong";
|
|
432
431
|
balanced: "balanced";
|
|
432
|
+
strong: "strong";
|
|
433
433
|
}>>;
|
|
434
434
|
}, z.core.$strict>, z.ZodObject<{
|
|
435
435
|
kind: z.ZodLiteral<"neutral-scrim">;
|
|
436
436
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
437
437
|
soft: "soft";
|
|
438
|
-
strong: "strong";
|
|
439
438
|
balanced: "balanced";
|
|
439
|
+
strong: "strong";
|
|
440
440
|
}>>;
|
|
441
441
|
}, z.core.$strict>, z.ZodObject<{
|
|
442
442
|
kind: z.ZodLiteral<"neutral-wash">;
|
|
443
443
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
444
444
|
soft: "soft";
|
|
445
|
-
strong: "strong";
|
|
446
445
|
balanced: "balanced";
|
|
446
|
+
strong: "strong";
|
|
447
447
|
}>>;
|
|
448
448
|
}, z.core.$strict>, z.ZodObject<{
|
|
449
449
|
kind: z.ZodLiteral<"solid-panel">;
|
|
450
450
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
451
451
|
soft: "soft";
|
|
452
|
-
strong: "strong";
|
|
453
452
|
balanced: "balanced";
|
|
453
|
+
strong: "strong";
|
|
454
454
|
}>>;
|
|
455
455
|
}, z.core.$strict>], "kind">>;
|
|
456
456
|
imageSurfaceMotion: z.ZodOptional<z.ZodEnum<{
|
|
@@ -458,8 +458,8 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
458
458
|
"fixed-frame": "fixed-frame";
|
|
459
459
|
}>>;
|
|
460
460
|
testimonialCardTreatment: z.ZodOptional<z.ZodEnum<{
|
|
461
|
-
"accent-quote": "accent-quote";
|
|
462
461
|
default: "default";
|
|
462
|
+
"accent-quote": "accent-quote";
|
|
463
463
|
}>>;
|
|
464
464
|
tileTreatment: z.ZodOptional<z.ZodEnum<{
|
|
465
465
|
default: "default";
|
|
@@ -472,8 +472,8 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
472
472
|
}>>;
|
|
473
473
|
eyebrowTreatment: z.ZodOptional<z.ZodEnum<{
|
|
474
474
|
accent: "accent";
|
|
475
|
-
plain: "plain";
|
|
476
475
|
pill: "pill";
|
|
476
|
+
plain: "plain";
|
|
477
477
|
"accent-pill": "accent-pill";
|
|
478
478
|
"pill-bounce": "pill-bounce";
|
|
479
479
|
"accent-pill-bounce": "accent-pill-bounce";
|
|
@@ -493,10 +493,10 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
493
493
|
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
494
494
|
kind: z.ZodLiteral<"theme-v2">;
|
|
495
495
|
source: z.ZodEnum<{
|
|
496
|
-
generated: "generated";
|
|
497
|
-
admin: "admin";
|
|
498
496
|
user: "user";
|
|
497
|
+
admin: "admin";
|
|
499
498
|
sdk: "sdk";
|
|
499
|
+
generated: "generated";
|
|
500
500
|
}>;
|
|
501
501
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
|
|
502
502
|
templateId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignSystemTemplateId, string>>;
|
|
@@ -82,8 +82,8 @@ export declare const generatedBlockDesignIntentSchema: z.ZodObject<{
|
|
|
82
82
|
kind: z.ZodLiteral<"explicit">;
|
|
83
83
|
value: z.ZodEnum<{
|
|
84
84
|
flat: "flat";
|
|
85
|
-
none: "none";
|
|
86
85
|
default: "default";
|
|
86
|
+
none: "none";
|
|
87
87
|
editorial: "editorial";
|
|
88
88
|
raised: "raised";
|
|
89
89
|
"color-blocked": "color-blocked";
|
|
@@ -235,8 +235,8 @@ export declare const generatedPageDesignIntentSchema: z.ZodObject<{
|
|
|
235
235
|
kind: z.ZodLiteral<"explicit">;
|
|
236
236
|
value: z.ZodEnum<{
|
|
237
237
|
flat: "flat";
|
|
238
|
-
none: "none";
|
|
239
238
|
default: "default";
|
|
239
|
+
none: "none";
|
|
240
240
|
editorial: "editorial";
|
|
241
241
|
raised: "raised";
|
|
242
242
|
"color-blocked": "color-blocked";
|
|
@@ -28,10 +28,12 @@ export * from './resolver';
|
|
|
28
28
|
export * from './runtimeCompiler';
|
|
29
29
|
export * from './sectionTransitions';
|
|
30
30
|
export * from './siteChromeBackgrounds';
|
|
31
|
+
export * from './siteChromeNavPreferences';
|
|
31
32
|
export * from './siteStyleThemeCompiler';
|
|
32
33
|
export * from './siteStyleBlockPolicies';
|
|
33
34
|
export * from './sourceCatalogs';
|
|
34
35
|
export * from './styleTags';
|
|
35
36
|
export * from './tokenRecipes';
|
|
36
37
|
export * from './typographyPresets';
|
|
38
|
+
export * from './themeParity';
|
|
37
39
|
export * from './types';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { PageDesignEditorReadModel } from './pageDesignEditorModel';
|
|
2
2
|
import { type Theme } from '../schema';
|
|
3
3
|
import { type ButtonPersonalityId } from '../buttons/personalities';
|
|
4
|
-
import { type PaletteOverrides, type
|
|
4
|
+
import { type PaletteOverrides, type CuratedPaletteId } from '../palette/curated';
|
|
5
|
+
import type { PaletteSelection, ResolvedPaletteSelection } from '../palette';
|
|
5
6
|
import { type CuratedSiteStyle } from './curatedSiteStyles';
|
|
6
7
|
import { type CompiledTypographySelection, type KnownTypographyPresetId, type TypographyPresetId, type TypographyPresetResolutionWarning, type TypographySelection } from './typographyPresets';
|
|
7
8
|
import { type FooterLookId, type FooterSelectionContext, type FooterSelectionResult } from './footerLooks';
|
|
8
9
|
import { type HeaderLayoutId, type HeaderSelectionContext, type HeaderLookId, type HeaderSelectionResult, type HeaderStyleId } from './headerLooks';
|
|
9
|
-
import { type CompiledBlockRuntimeFields, type CompiledPageRuntime, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext } from './runtimeCompiler';
|
|
10
|
+
import { type CompiledBlockRuntimeFields, type CompiledBoundaryRuntime, type CompiledPageRuntime, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext } from './runtimeCompiler';
|
|
10
11
|
import { type AppearancePresetId, type DesignBlockId, type SiteStyleId } from './types';
|
|
11
12
|
import { type CuratedSiteStyleTheme } from './siteStyleThemeCompiler';
|
|
12
13
|
export type { CuratedSiteStyleTheme } from './siteStyleThemeCompiler';
|
|
@@ -23,9 +24,9 @@ export { buildPageDesignEditorReadModel, boundaryOptions, pageFlowPresets, type
|
|
|
23
24
|
export { autoDesignChoice, reducePageDesignIntentForUserAction, resolvePageDesignBlockLookChoice, resolvePageDesignBoundaryChoice, userPinnedDesignChoice, type PageDesignChoice, type PageDesignIntent, type PageDesignUserAction, } from './pageDesignIntent';
|
|
24
25
|
export { repairDesignIssue, resolveBlockDesignPlan } from './resolver';
|
|
25
26
|
export { cycleableOptionsFromResolved, deriveDesignCustomizationScope, recommendedDesignOption, type CycleableDesignOption, type CycleableOptions, type DesignCustomizationAuthority, type DesignCustomizationScope, type DesignCustomizationSurface, type DesignCustomizationUnsupportedReason, type DesignOptionIssue, type ResolvedDesignOption, } from './previewCustomization';
|
|
26
|
-
export { compileBlockRuntimeFields, compilePageRuntimeFields, compileTokenRecipes, compileTransitionRuntime, compiledRuntimeStyleFieldNames, defaultComponentRuntimeRules, defaultDesignRuntimeRules, surfaceResolutionContextFromPalette, surfaceResolutionContextFromTheme, stripCompiledRuntimeStyleFields, type CompiledBlockRuntime, type CompiledBlockRuntimeFields, type CompiledPageRuntime, type CompileBlockRuntimeInput, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext, } from './runtimeCompiler';
|
|
27
|
+
export { compileBlockRuntimeFields, compileBoundaryRuntime, compilePageRuntimeFields, compileTokenRecipes, compileTransitionRuntime, compiledRuntimeStyleFieldNames, defaultComponentRuntimeRules, defaultDesignRuntimeRules, surfaceResolutionContextFromPalette, surfaceResolutionContextFromTheme, stripCompiledRuntimeStyleFields, type CompiledBlockRuntime, type CompiledBlockRuntimeFields, type CompiledBoundaryRuntime, type CompiledPageRuntime, type CompileBlockRuntimeInput, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext, } from './runtimeCompiler';
|
|
27
28
|
export { defaultCuratedChoice, requireEntriesForCuratedChoices, resolveCuratedChoice, type CuratedChoice, type CuratedChoiceResolution, } from './curatedChoices';
|
|
28
|
-
export { curatedSiteStyles, defaultButtonPersonalityForSiteStyle,
|
|
29
|
+
export { curatedSiteStyles, defaultButtonPersonalityForSiteStyle, defaultPaletteForSiteStyle, defaultTypographyPresetForSiteStyle, getCuratedSiteStyle, type CuratedSiteStyle, } from './curatedSiteStyles';
|
|
29
30
|
export { asTypographyPresetId, compileTypographySelection, evaluateTypographyFontSlot, findTypographyPreset, parsePersistedTypographyPresetId, typographyPresetIdValues, typographyPresets, type CompiledTypographySelection, type GoogleFontCategory, type KnownTypographyPresetId, type KnownTypographyPresetIdValue, type TypographyFontCapability, type TypographyFontSlot, type TypographyFontSlotFit, type TypographyFontSlotPolicy, type TypographyPreset, type TypographyPresetId, type TypographyPresetResolutionWarning, type TypographySelection, } from './typographyPresets';
|
|
30
31
|
export { asDesignBlockId, asSiteStyleId, makeBoundaryId, type AppearancePresetId, type BoundaryOptionId, type DesignBlockId, type DesignBoundaryId, type LayoutVariantKey, type NonEmptyReadonlyArray, type PageFlowPresetId, type ResolvedPageDesignPlan, type SiteStyleId, } from './types';
|
|
31
32
|
export declare const previewCustomizePurpose: "preview-customize";
|
|
@@ -43,13 +44,11 @@ export type SelectionFallbackWarning = Readonly<{
|
|
|
43
44
|
}> | Readonly<{
|
|
44
45
|
kind: 'rejected-palette';
|
|
45
46
|
requested: string;
|
|
46
|
-
fellBackTo:
|
|
47
|
+
fellBackTo: CuratedPaletteId;
|
|
47
48
|
}> | TypographyPresetResolutionWarning;
|
|
48
|
-
|
|
49
|
+
type SiteThemeSelectionsCommonInput = Readonly<{
|
|
49
50
|
siteStyle: CuratedSiteStyle;
|
|
50
51
|
buttonPersonalityId: ButtonPersonalityId | null;
|
|
51
|
-
paletteVariantId: PaletteVariantId | null;
|
|
52
|
-
paletteOverrides: PaletteOverrides | null;
|
|
53
52
|
typographyPresetId?: TypographyPresetId | null;
|
|
54
53
|
typographyBodyFontOverride?: string | null;
|
|
55
54
|
typographyHeadingFontOverride?: string | null;
|
|
@@ -61,6 +60,17 @@ export type SiteThemeSelectionsInput = Readonly<{
|
|
|
61
60
|
headerSelectionContext?: Partial<HeaderSelectionContext>;
|
|
62
61
|
footerSelectionContext?: Partial<FooterSelectionContext>;
|
|
63
62
|
}>;
|
|
63
|
+
export type LegacySiteThemeSelectionsInput = SiteThemeSelectionsCommonInput & Readonly<{
|
|
64
|
+
resolvedPalette?: undefined;
|
|
65
|
+
paletteVariantId: CuratedPaletteId | null;
|
|
66
|
+
paletteOverrides: PaletteOverrides | null;
|
|
67
|
+
}>;
|
|
68
|
+
export type ExplicitPaletteSiteThemeSelectionsInput = SiteThemeSelectionsCommonInput & Readonly<{
|
|
69
|
+
resolvedPalette: ResolvedPaletteSelection;
|
|
70
|
+
paletteVariantId?: never;
|
|
71
|
+
paletteOverrides?: never;
|
|
72
|
+
}>;
|
|
73
|
+
export type SiteThemeSelectionsInput = LegacySiteThemeSelectionsInput | ExplicitPaletteSiteThemeSelectionsInput;
|
|
64
74
|
export type SiteThemeSelectionsResult = Readonly<{
|
|
65
75
|
theme: CuratedSiteStyleTheme;
|
|
66
76
|
requestedSelections: Readonly<{
|
|
@@ -71,7 +81,11 @@ export type SiteThemeSelectionsResult = Readonly<{
|
|
|
71
81
|
}>;
|
|
72
82
|
resolvedSelections: Readonly<{
|
|
73
83
|
buttonPersonalityId: ButtonPersonalityId;
|
|
74
|
-
paletteVariantId:
|
|
84
|
+
paletteVariantId: CuratedPaletteId;
|
|
85
|
+
paletteSelection: Readonly<{
|
|
86
|
+
kind: 'curated';
|
|
87
|
+
paletteId: CuratedPaletteId;
|
|
88
|
+
}>;
|
|
75
89
|
typographySelection: CompiledTypographySelection['resolvedSelection'];
|
|
76
90
|
typographyPresetId: KnownTypographyPresetId | null;
|
|
77
91
|
typographyBodyFontOverride: string | null;
|
|
@@ -85,10 +99,16 @@ export type SiteThemeSelectionsResult = Readonly<{
|
|
|
85
99
|
footerSelection: FooterSelectionResult;
|
|
86
100
|
warnings: ReadonlyArray<SelectionFallbackWarning>;
|
|
87
101
|
}>;
|
|
102
|
+
export type ExplicitPaletteSiteThemeSelectionsResult = Omit<SiteThemeSelectionsResult, 'resolvedSelections'> & Readonly<{
|
|
103
|
+
resolvedSelections: Omit<SiteThemeSelectionsResult['resolvedSelections'], 'paletteVariantId' | 'paletteSelection'> & Readonly<{
|
|
104
|
+
paletteVariantId: CuratedPaletteId | null;
|
|
105
|
+
paletteSelection: PaletteSelection;
|
|
106
|
+
}>;
|
|
107
|
+
}>;
|
|
88
108
|
/**
|
|
89
109
|
* High-level, site-style-aware compiler. Resolves the user's personality and
|
|
90
110
|
* palette selections into theme tokens. Button personality still resolves
|
|
91
|
-
* against the site style's authored choice list;
|
|
111
|
+
* against the site style's authored choice list; curated palettes are brand
|
|
92
112
|
* choices, so any known palette is preserved across site styles and the style's
|
|
93
113
|
* first palette choice is only used when the request is absent or unknown.
|
|
94
114
|
*
|
|
@@ -96,7 +116,9 @@ export type SiteThemeSelectionsResult = Readonly<{
|
|
|
96
116
|
* any fallback warnings the UI can surface as "we changed your selection"
|
|
97
117
|
* notices.
|
|
98
118
|
*/
|
|
99
|
-
export declare function compileSiteThemeFromSelections(input:
|
|
119
|
+
export declare function compileSiteThemeFromSelections(input: LegacySiteThemeSelectionsInput): SiteThemeSelectionsResult;
|
|
120
|
+
export declare function compileSiteThemeFromSelections(input: ExplicitPaletteSiteThemeSelectionsInput): ExplicitPaletteSiteThemeSelectionsResult;
|
|
121
|
+
export declare function compileSiteThemeFromSelections(input: SiteThemeSelectionsInput): SiteThemeSelectionsResult | ExplicitPaletteSiteThemeSelectionsResult;
|
|
100
122
|
export declare function siteStyleIdFromTheme(theme: Pick<Theme, 'siteStyleId'> | null | undefined): SiteStyleId | null;
|
|
101
123
|
export type EditorModelRuntimeLookOverride<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
102
124
|
kind: 'pinned';
|
|
@@ -121,6 +143,7 @@ export type CompileEditorModelRuntimeInput<TBlockId extends DesignBlockId = Desi
|
|
|
121
143
|
*/
|
|
122
144
|
export declare function compileEditorModelRuntime<TBlockId extends DesignBlockId>(input: CompileEditorModelRuntimeInput<TBlockId>): CompiledPageRuntime<TBlockId>;
|
|
123
145
|
export declare function buildEditorModelRuntimeFieldsByBlockId<TBlockId extends DesignBlockId>(input: CompileEditorModelRuntimeInput<TBlockId>): ReadonlyMap<TBlockId, CompiledBlockRuntimeFields>;
|
|
146
|
+
export declare function buildEditorModelRuntimeBoundaries<TBlockId extends DesignBlockId>(input: CompileEditorModelRuntimeInput<TBlockId>): readonly CompiledBoundaryRuntime<TBlockId>[];
|
|
124
147
|
export declare function compileEditorModelRuntimeFieldsForBlock<TBlockId extends DesignBlockId>(input: CompileEditorModelRuntimeInput<TBlockId> & Readonly<{
|
|
125
148
|
blockId: TBlockId;
|
|
126
149
|
}>): CompiledBlockRuntimeFields | null;
|
|
@@ -130,4 +153,5 @@ export type RuntimeContentAdjacency = Readonly<{
|
|
|
130
153
|
nextContent: Record<string, unknown> | null | undefined;
|
|
131
154
|
}>;
|
|
132
155
|
export declare function retargetCompiledRuntimeFieldsForContentAdjacency(fields: CompiledBlockRuntimeFields | null | undefined, adjacency: RuntimeContentAdjacency): CompiledBlockRuntimeFields | null | undefined;
|
|
156
|
+
export declare function retargetCompiledBoundaryRuntimeForContentAdjacency<TBlockId extends string>(boundary: CompiledBoundaryRuntime<TBlockId>, adjacency: RuntimeContentAdjacency): CompiledBoundaryRuntime<TBlockId>;
|
|
133
157
|
export declare function restoreCompiledRuntimeFieldsFromContent<TCurrentContent extends Record<string, unknown>, TPreviousContent extends Record<string, unknown>>(currentContent: TCurrentContent, previousContent: TPreviousContent): Record<string, unknown>;
|