@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
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type CardStylesOverride, type ContainerStylesOverride, type SectionStylesOverride, type Theme } from '../schema';
|
|
2
2
|
import { type ExpandedPalette } from '../palette/expandPalette';
|
|
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 { ResolvedPaletteSelection } from '../palette/resolveSelection';
|
|
5
6
|
import { type RuntimeStyleWriteResultForFields, type StyleAuthority } from './designState';
|
|
6
|
-
import { type ContentFrameIntent, type EyebrowTreatment, type FlushFrameTreatment, type PanelFrameTreatment, type ResolvedBlockDesignPlan, type ResolvedPageDesignPlan, type SiteStyleItemSurfaceIntent, type SiteStyleSectionTransitionIntent, type SiteStyleSurfaceIntent, type ThemeTokenRecipes } from './types';
|
|
7
|
+
import { type ContentFrameIntent, type EyebrowTreatment, type FlushFrameTreatment, type DesignBoundaryId, type PanelFrameTreatment, type ResolvedBlockDesignPlan, type ResolvedPageDesignPlan, type SiteStyleItemSurfaceIntent, type SiteStyleSectionTransitionIntent, type SiteStyleSurfaceIntent, type ThemeTokenRecipes } from './types';
|
|
8
|
+
import { type SectionBoundaryRuntimeMetrics } from './sectionTransitions';
|
|
7
9
|
import type { ThemeColorToken } from '../tokens';
|
|
8
10
|
export type SemanticSpacing = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable' | 'spacious';
|
|
9
11
|
export type SectionPaddingX = 'normal' | 'none';
|
|
@@ -50,6 +52,20 @@ export type CompiledTransitionRuntime = Readonly<{
|
|
|
50
52
|
to: string;
|
|
51
53
|
}>;
|
|
52
54
|
}>;
|
|
55
|
+
export type CompiledBoundaryRuntime<TBlockId extends string = string> = Readonly<{
|
|
56
|
+
boundaryId: DesignBoundaryId | string;
|
|
57
|
+
previousBlockId: TBlockId;
|
|
58
|
+
nextBlockId: TBlockId;
|
|
59
|
+
treatment: SiteStyleSectionTransitionIntent;
|
|
60
|
+
metrics: SectionBoundaryRuntimeMetrics;
|
|
61
|
+
from: CompiledTransitionEndpoint;
|
|
62
|
+
to: CompiledTransitionEndpoint;
|
|
63
|
+
cssVars: Readonly<{
|
|
64
|
+
from: string;
|
|
65
|
+
to: string;
|
|
66
|
+
}>;
|
|
67
|
+
styleGroup: string;
|
|
68
|
+
}>;
|
|
53
69
|
export type HeroLayoutStylesOverride = Readonly<{
|
|
54
70
|
contentAlignment?: 'left' | 'center' | 'right';
|
|
55
71
|
verticalAlignment?: 'top' | 'center' | 'bottom';
|
|
@@ -91,6 +107,7 @@ export type CompiledPageRuntime<TBlockId extends string = string> = Readonly<{
|
|
|
91
107
|
blocks: readonly (CompiledBlockRuntime & Readonly<{
|
|
92
108
|
blockId: TBlockId;
|
|
93
109
|
}>)[];
|
|
110
|
+
boundaries: readonly CompiledBoundaryRuntime<TBlockId>[];
|
|
94
111
|
}>;
|
|
95
112
|
export type SectionAdjacency = Readonly<{
|
|
96
113
|
kind: 'next-section';
|
|
@@ -272,6 +289,15 @@ export declare function compileTransitionRuntime(input: Readonly<{
|
|
|
272
289
|
from: CompiledTransitionEndpoint;
|
|
273
290
|
to: CompiledTransitionEndpoint;
|
|
274
291
|
}>): CompiledTransitionRuntime;
|
|
292
|
+
export declare function compileBoundaryRuntime<TBlockId extends string>(input: Readonly<{
|
|
293
|
+
boundaryId: DesignBoundaryId | string;
|
|
294
|
+
previousBlockId: TBlockId;
|
|
295
|
+
nextBlockId: TBlockId;
|
|
296
|
+
treatment: SiteStyleSectionTransitionIntent;
|
|
297
|
+
fromSurface: SiteStyleSurfaceIntent;
|
|
298
|
+
toSurface: SiteStyleSurfaceIntent;
|
|
299
|
+
rules?: DesignRuntimeRules;
|
|
300
|
+
}>): CompiledBoundaryRuntime<TBlockId> | null;
|
|
275
301
|
/**
|
|
276
302
|
* Compiles block runtime fields and writes them into content only when Theme V2
|
|
277
303
|
* owns that block's runtime-style fields.
|
|
@@ -286,30 +312,35 @@ export declare function compilePageRuntimeFields<TBlockId extends string, TPurpo
|
|
|
286
312
|
sectionSpacing?: SemanticSpacing;
|
|
287
313
|
terminalSectionAdjacency?: TerminalSectionAdjacency;
|
|
288
314
|
}>): CompiledPageRuntime<TBlockId>;
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
paletteVariantId?: PaletteVariantId;
|
|
315
|
+
type ResolvedPaletteCompileOptions = Readonly<{
|
|
316
|
+
/** A complete palette resolved from an explicit curated or site selection. */
|
|
317
|
+
resolvedPalette: ResolvedPaletteSelection;
|
|
318
|
+
paletteVariantId?: never;
|
|
319
|
+
paletteOverrides?: never;
|
|
320
|
+
}>;
|
|
321
|
+
type LegacyPaletteCompileOptions = Readonly<{
|
|
322
|
+
resolvedPalette?: undefined;
|
|
298
323
|
/**
|
|
299
|
-
*
|
|
300
|
-
*
|
|
324
|
+
* Legacy curated-palette selection retained while persisted Theme V2
|
|
325
|
+
* selections are migrated to the explicit palette-selection model.
|
|
301
326
|
*/
|
|
327
|
+
paletteVariantId?: CuratedPaletteId;
|
|
328
|
+
/** Legacy sparse overrides materialized into a site palette during migration. */
|
|
302
329
|
paletteOverrides?: PaletteOverrides;
|
|
303
330
|
}>;
|
|
331
|
+
export type CompileTokenRecipesOptions = Readonly<{
|
|
332
|
+
/** Resolved button personality ID. When provided, emits `theme.buttons`. */
|
|
333
|
+
buttonPersonalityId?: ButtonPersonalityId;
|
|
334
|
+
}> & (ResolvedPaletteCompileOptions | LegacyPaletteCompileOptions);
|
|
304
335
|
/**
|
|
305
336
|
* Compiles bounded token recipes to the current Theme schema. This is intentionally
|
|
306
337
|
* pure and schema-validated so generated Theme V2 choices have a concrete legacy
|
|
307
338
|
* Theme output before any persistence or Phase 5 integration consumes them.
|
|
308
339
|
*
|
|
309
|
-
* Optional `options` accept already-resolved
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
340
|
+
* Optional `options` accept an already-resolved palette selection and button
|
|
341
|
+
* personality. During migration they also accept the legacy curated ID plus
|
|
342
|
+
* sparse overrides. When neither palette input is supplied, the function falls
|
|
343
|
+
* through to the recipe-based palette lookup.
|
|
313
344
|
*/
|
|
314
345
|
export declare function compileTokenRecipes(recipes: ThemeTokenRecipes, options?: CompileTokenRecipesOptions): Theme;
|
|
315
346
|
export {};
|
|
@@ -49,6 +49,83 @@ export type SectionTransitionFamily = Readonly<{
|
|
|
49
49
|
label: string;
|
|
50
50
|
variants: NonEmptyReadonlyArray<SectionTransitionVariant>;
|
|
51
51
|
}>;
|
|
52
|
+
export type SectionBoundaryRuntimeSize = 'compact' | 'medium' | 'large' | 'spacious' | 'expansive';
|
|
53
|
+
export type SectionBoundaryRuntimeMetrics = Readonly<{
|
|
54
|
+
family: Exclude<SectionTransitionFamilyId, 'none'>;
|
|
55
|
+
size: SectionBoundaryRuntimeSize;
|
|
56
|
+
heightCss: string;
|
|
57
|
+
reserveCss: string;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const sectionBoundaryRuntimeMetricsByTransition: {
|
|
60
|
+
readonly none: null;
|
|
61
|
+
readonly 'soft-fade-short': Readonly<{
|
|
62
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
63
|
+
size: SectionBoundaryRuntimeSize;
|
|
64
|
+
heightCss: string;
|
|
65
|
+
reserveCss: string;
|
|
66
|
+
}>;
|
|
67
|
+
readonly 'soft-fade-long': Readonly<{
|
|
68
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
69
|
+
size: SectionBoundaryRuntimeSize;
|
|
70
|
+
heightCss: string;
|
|
71
|
+
reserveCss: string;
|
|
72
|
+
}>;
|
|
73
|
+
readonly 'soft-fade-expansive': Readonly<{
|
|
74
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
75
|
+
size: SectionBoundaryRuntimeSize;
|
|
76
|
+
heightCss: string;
|
|
77
|
+
reserveCss: string;
|
|
78
|
+
}>;
|
|
79
|
+
readonly 'wave-edge': Readonly<{
|
|
80
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
81
|
+
size: SectionBoundaryRuntimeSize;
|
|
82
|
+
heightCss: string;
|
|
83
|
+
reserveCss: string;
|
|
84
|
+
}>;
|
|
85
|
+
readonly 'wave-edge-balanced': Readonly<{
|
|
86
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
87
|
+
size: SectionBoundaryRuntimeSize;
|
|
88
|
+
heightCss: string;
|
|
89
|
+
reserveCss: string;
|
|
90
|
+
}>;
|
|
91
|
+
readonly 'wave-edge-gentle': Readonly<{
|
|
92
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
93
|
+
size: SectionBoundaryRuntimeSize;
|
|
94
|
+
heightCss: string;
|
|
95
|
+
reserveCss: string;
|
|
96
|
+
}>;
|
|
97
|
+
readonly 'wave-edge-bold': Readonly<{
|
|
98
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
99
|
+
size: SectionBoundaryRuntimeSize;
|
|
100
|
+
heightCss: string;
|
|
101
|
+
reserveCss: string;
|
|
102
|
+
}>;
|
|
103
|
+
readonly 'wave-edge-drift': Readonly<{
|
|
104
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
105
|
+
size: SectionBoundaryRuntimeSize;
|
|
106
|
+
heightCss: string;
|
|
107
|
+
reserveCss: string;
|
|
108
|
+
}>;
|
|
109
|
+
readonly 'angle-edge': Readonly<{
|
|
110
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
111
|
+
size: SectionBoundaryRuntimeSize;
|
|
112
|
+
heightCss: string;
|
|
113
|
+
reserveCss: string;
|
|
114
|
+
}>;
|
|
115
|
+
readonly 'angle-edge-subtle': Readonly<{
|
|
116
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
117
|
+
size: SectionBoundaryRuntimeSize;
|
|
118
|
+
heightCss: string;
|
|
119
|
+
reserveCss: string;
|
|
120
|
+
}>;
|
|
121
|
+
readonly 'angle-edge-steep': Readonly<{
|
|
122
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
123
|
+
size: SectionBoundaryRuntimeSize;
|
|
124
|
+
heightCss: string;
|
|
125
|
+
reserveCss: string;
|
|
126
|
+
}>;
|
|
127
|
+
};
|
|
128
|
+
export declare function boundaryRuntimeMetricsForTransition(transition: SiteStyleSectionTransitionIntent): SectionBoundaryRuntimeMetrics | null;
|
|
52
129
|
export declare const noneBoundaryOption: {
|
|
53
130
|
readonly id: BoundaryOptionId;
|
|
54
131
|
readonly label: "None";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { NavLinkStyle, NavLinkTextSize } from '../navigation/types';
|
|
2
|
+
import type { Theme } from '../schema';
|
|
3
|
+
export declare const headerNavTypographyPreferenceValues: readonly ["inherit", "body", "heading"];
|
|
4
|
+
export type HeaderNavTypographyPreference = (typeof headerNavTypographyPreferenceValues)[number];
|
|
5
|
+
export declare const headerNavFontSizePreferenceValues: readonly ["inherit", "sm", "base", "lg", "xl"];
|
|
6
|
+
export type HeaderNavFontSizePreference = (typeof headerNavFontSizePreferenceValues)[number];
|
|
7
|
+
export type HeaderNavPreferences = Readonly<{
|
|
8
|
+
typography: HeaderNavTypographyPreference;
|
|
9
|
+
fontSize: HeaderNavFontSizePreference;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const headerNavTypographyOptions: readonly [{
|
|
12
|
+
readonly value: "inherit";
|
|
13
|
+
readonly label: "Default";
|
|
14
|
+
}, {
|
|
15
|
+
readonly value: "body";
|
|
16
|
+
readonly label: "Body";
|
|
17
|
+
}, {
|
|
18
|
+
readonly value: "heading";
|
|
19
|
+
readonly label: "Heading";
|
|
20
|
+
}];
|
|
21
|
+
export declare const headerNavFontSizeOptions: readonly [{
|
|
22
|
+
readonly value: "inherit";
|
|
23
|
+
readonly label: "Default";
|
|
24
|
+
}, {
|
|
25
|
+
readonly value: "sm";
|
|
26
|
+
readonly label: "Small";
|
|
27
|
+
}, {
|
|
28
|
+
readonly value: "base";
|
|
29
|
+
readonly label: "Regular";
|
|
30
|
+
}, {
|
|
31
|
+
readonly value: "lg";
|
|
32
|
+
readonly label: "Large";
|
|
33
|
+
}, {
|
|
34
|
+
readonly value: "xl";
|
|
35
|
+
readonly label: "Huge";
|
|
36
|
+
}];
|
|
37
|
+
export declare const defaultHeaderNavPreferences: {
|
|
38
|
+
readonly typography: "inherit";
|
|
39
|
+
readonly fontSize: "inherit";
|
|
40
|
+
};
|
|
41
|
+
export declare function readHeaderNavPreferences(theme: Theme | null | undefined): HeaderNavPreferences;
|
|
42
|
+
export declare function headerNavPreferencesEqual(left: HeaderNavPreferences, right: HeaderNavPreferences): boolean;
|
|
43
|
+
export declare function withHeaderNavThemePreferences(theme: Theme, preferences: HeaderNavPreferences): Theme;
|
|
44
|
+
export declare function mergeHeaderNavTypographyPreference(style: NavLinkStyle, preferences: HeaderNavPreferences): NavLinkStyle;
|
|
45
|
+
export declare function readHeaderNavFontSizePreference(value: NavLinkTextSize | undefined): HeaderNavFontSizePreference;
|
|
@@ -12,9 +12,9 @@ export declare const STYLE_AXIS_VALUES: {
|
|
|
12
12
|
};
|
|
13
13
|
export declare const styleTagsSchema: z.ZodObject<{
|
|
14
14
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
15
|
-
classic: "classic";
|
|
16
15
|
bold: "bold";
|
|
17
16
|
minimal: "minimal";
|
|
17
|
+
classic: "classic";
|
|
18
18
|
}>>;
|
|
19
19
|
energy: z.ZodOptional<z.ZodEnum<{
|
|
20
20
|
calm: "calm";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Theme } from '../schema';
|
|
2
|
+
export type CanonicalThemeValue = null | boolean | number | string | readonly CanonicalThemeValue[] | Readonly<{
|
|
3
|
+
[key: string]: CanonicalThemeValue;
|
|
4
|
+
}>;
|
|
5
|
+
export type ThemeParityDifference = Readonly<{
|
|
6
|
+
kind: 'missing';
|
|
7
|
+
path: string;
|
|
8
|
+
before: CanonicalThemeValue;
|
|
9
|
+
}> | Readonly<{
|
|
10
|
+
kind: 'extra';
|
|
11
|
+
path: string;
|
|
12
|
+
after: CanonicalThemeValue;
|
|
13
|
+
}> | Readonly<{
|
|
14
|
+
kind: 'changed';
|
|
15
|
+
path: string;
|
|
16
|
+
before: CanonicalThemeValue;
|
|
17
|
+
after: CanonicalThemeValue;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function canonicalizeThemeForParity(theme: Theme): CanonicalThemeValue;
|
|
20
|
+
export declare function serializeThemeForParity(theme: Theme): string;
|
|
21
|
+
export declare function diffThemesForParity(before: Theme, after: Theme): readonly ThemeParityDifference[];
|
|
@@ -10,13 +10,13 @@ export declare const paletteTokenNameSchema: z.ZodEnum<{
|
|
|
10
10
|
surface: "surface";
|
|
11
11
|
success: "success";
|
|
12
12
|
text: "text";
|
|
13
|
-
accent: "accent";
|
|
14
|
-
primary: "primary";
|
|
15
|
-
secondary: "secondary";
|
|
16
13
|
warning: "warning";
|
|
17
14
|
background: "background";
|
|
15
|
+
accent: "accent";
|
|
18
16
|
muted: "muted";
|
|
19
17
|
border: "border";
|
|
18
|
+
primary: "primary";
|
|
19
|
+
secondary: "secondary";
|
|
20
20
|
destructive: "destructive";
|
|
21
21
|
surfaceAlt: "surfaceAlt";
|
|
22
22
|
primaryForeground: "primaryForeground";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "success" | "
|
|
4
|
+
variant?: "success" | "default" | "warning" | "outline" | "secondary" | "destructive" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "
|
|
4
|
+
variant?: "link" | "default" | "outline" | "secondary" | "destructive" | "ghost" | "onDark" | "onDarkOutline" | "heroGlass" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -4,7 +4,7 @@ import { surfaceVariants } from './surface';
|
|
|
4
4
|
export type CardVariant = VariantProps<typeof surfaceVariants>['variant'];
|
|
5
5
|
export type CardRadius = VariantProps<typeof surfaceVariants>['radius'];
|
|
6
6
|
declare const cardLayoutVariants: (props?: ({
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "default" | "none" | "compact" | "responsive" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export type CardSize = VariantProps<typeof cardLayoutVariants>['size'];
|
|
10
10
|
export type CardProps = React.ComponentProps<'div'> & {
|
|
@@ -38,6 +38,7 @@ export type PaletteTokenEditorProps = Readonly<{
|
|
|
38
38
|
feedbackRoles?: ReadonlyArray<PaletteRole>;
|
|
39
39
|
surfaceRoles?: ReadonlyArray<PaletteRole>;
|
|
40
40
|
showContrastChecks?: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
41
42
|
className?: string;
|
|
42
43
|
}>;
|
|
43
44
|
/**
|
|
@@ -47,4 +48,4 @@ export type PaletteTokenEditorProps = Readonly<{
|
|
|
47
48
|
* - LiveThemeEditor's palette tab (via a thin context wrapper)
|
|
48
49
|
* - Style configurator's brand-colours row
|
|
49
50
|
*/
|
|
50
|
-
export declare function PaletteTokenEditor({ palette, onChange, hasInvalidValues, brandRoles, feedbackRoles, surfaceRoles, showContrastChecks, className, }: PaletteTokenEditorProps): import("react").JSX.Element;
|
|
51
|
+
export declare function PaletteTokenEditor({ palette, onChange, hasInvalidValues, brandRoles, feedbackRoles, surfaceRoles, showContrastChecks, disabled, className, }: PaletteTokenEditorProps): import("react").JSX.Element;
|
|
@@ -2,11 +2,11 @@ import * as React from "react";
|
|
|
2
2
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
3
3
|
import { type VariantProps } from "class-variance-authority";
|
|
4
4
|
declare const toggleVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
6
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
9
|
-
variant?: "
|
|
9
|
+
variant?: "default" | "outline" | null | undefined;
|
|
10
10
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
11
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
export { Toggle, toggleVariants };
|