@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.
Files changed (203) hide show
  1. package/README.md +10 -2
  2. package/dist/{PreviewEditorSidebar-BKkhhkJk.mjs → PreviewEditorSidebar-ywqcYjTB.mjs} +217 -131
  3. package/dist/{PreviewEditorUI-DIvTqcqI.mjs → PreviewEditorUI-DApUNF6g.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-ZF6TXq5Q.mjs → PreviewQueryProvider-CStABBUh.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-CA2k7Z_T.mjs → SdkPreviewModeRuntime-DmHCcIMO.mjs} +1738 -815
  6. package/dist/{SiteChromeCustomizeContext-Bh9-DtMQ.mjs → SiteChromeCustomizeContext-BV9GU-3C.mjs} +3517 -2524
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +298 -298
  8. package/dist/_dts/api/src/contentRuntime.d.ts +6 -3
  9. package/dist/_dts/api/src/endpoints.d.ts +10 -3
  10. package/dist/_dts/api/src/index.d.ts +2 -2
  11. package/dist/_dts/api/src/navigation/contracts.d.ts +6 -6
  12. package/dist/_dts/api/src/siteBanner.d.ts +2 -2
  13. package/dist/_dts/api/src/siteIcons.d.ts +39 -43
  14. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
  15. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +36 -7
  16. package/dist/_dts/block-form/src/widgets/SliderField/SliderField.d.ts +3 -3
  17. package/dist/_dts/block-form/src/widgets/SliderField/sliderValue.d.ts +36 -0
  18. package/dist/_dts/block-form/src/widgets/utils/readNumericUiConfig.d.ts +3 -0
  19. package/dist/_dts/blocks/src/PageRenderer.d.ts +6 -1
  20. package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
  21. package/dist/_dts/blocks/src/index.d.ts +2 -2
  22. package/dist/_dts/blocks/src/server.d.ts +1 -1
  23. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +7 -7
  24. package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
  25. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +14 -14
  26. package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +29 -29
  27. package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +1 -0
  28. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +8 -5
  29. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +362 -227
  30. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +1 -1
  31. package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
  32. package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
  33. package/dist/_dts/blocks/src/system/icons/generatedAssets.d.ts +28 -0
  34. package/dist/_dts/blocks/src/system/icons/index.d.ts +1 -0
  35. package/dist/_dts/blocks/src/system/icons/value.d.ts +3 -6
  36. package/dist/_dts/blocks/src/system/inlineText.d.ts +2 -2
  37. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +417 -177
  38. package/dist/_dts/blocks/src/system/node/schema.d.ts +1 -1
  39. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
  40. package/dist/_dts/blocks/src/system/runtime/nodes/feature-card-icon.d.ts +1 -0
  41. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -7
  42. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
  43. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -0
  44. package/dist/_dts/content-editor/src/ui/stores/generatedIconAssetsStore.d.ts +9 -0
  45. package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
  46. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +344 -0
  47. package/dist/_dts/db/src/schemas/forms.d.ts +15 -15
  48. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +7 -0
  49. package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -1
  50. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +4 -4
  51. package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +2 -3
  52. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +4 -4
  53. package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +4 -4
  54. package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +3 -3
  55. package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +2 -3
  56. package/dist/_dts/editor-blocks/src/block-editor/blockHeaderActionPlan.d.ts +1 -5
  57. package/dist/_dts/editor-blocks/src/block-editor/featureCardIconActions.d.ts +25 -19
  58. package/dist/_dts/editor-blocks/src/block-editor/generatedIconApplyCoordination.d.ts +32 -0
  59. package/dist/_dts/editor-blocks/src/widgets/icon-picker/GeneratedIconLibraryContext.d.ts +28 -0
  60. package/dist/_dts/editor-blocks/src/widgets/icon-picker/index.d.ts +2 -0
  61. package/dist/_dts/editor-blocks/src/widgets/icon-picker/loaders.d.ts +7 -0
  62. package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -1
  63. package/dist/_dts/preview-next/src/client/preview/CustomizeBackgroundControlRows.d.ts +15 -0
  64. package/dist/_dts/preview-next/src/client/preview/CustomizeColorTokenPicker.d.ts +27 -0
  65. package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -1
  66. package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -1
  67. package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +3 -1
  68. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +4 -3
  69. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +4 -3
  70. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +4 -3
  71. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +13 -6
  72. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +5 -4
  73. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +44 -18
  74. package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +1 -1
  75. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +16 -1
  76. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +3 -2
  77. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +4 -5
  78. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +22 -1
  79. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +12 -4
  80. package/dist/_dts/sdk/src/client/management/types.d.ts +3 -0
  81. package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
  82. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  83. package/dist/_dts/sdk/src/contracts/page.d.ts +2 -0
  84. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +0 -1
  85. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +10 -10
  86. package/dist/_dts/sdk/src/next/revalidate.d.ts +14 -1
  87. package/dist/_dts/sdk/src/public-api/contracts.d.ts +9 -6
  88. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -1
  89. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -2
  90. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +3 -4
  91. package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -0
  92. package/dist/_dts/sdk/src/version.d.ts +1 -1
  93. package/dist/_dts/site-commands/src/commands.d.ts +19 -19
  94. package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
  95. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +3 -3
  96. package/dist/_dts/theme-core/src/buttons/types.d.ts +7 -7
  97. package/dist/_dts/theme-core/src/cards/types.d.ts +6 -6
  98. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  99. package/dist/_dts/theme-core/src/inputs/types.d.ts +4 -4
  100. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +156 -150
  101. package/dist/_dts/theme-core/src/navigation/types.d.ts +8 -6
  102. package/dist/_dts/theme-core/src/palette/colors.d.ts +84 -0
  103. package/dist/_dts/theme-core/src/palette/{variants → curated}/brand-led.d.ts +12 -24
  104. package/dist/_dts/theme-core/src/palette/{variants → curated}/high-contrast.d.ts +9 -18
  105. package/dist/_dts/theme-core/src/palette/{variants → curated}/index.d.ts +67 -119
  106. package/dist/_dts/theme-core/src/palette/{variants → curated}/soft-natural.d.ts +12 -24
  107. package/dist/_dts/theme-core/src/palette/{variants → curated}/types.d.ts +52 -62
  108. package/dist/_dts/theme-core/src/palette/{variants → curated}/warm-dark.d.ts +6 -12
  109. package/dist/_dts/theme-core/src/palette/{variants → curated}/warm-neutral.d.ts +12 -24
  110. package/dist/_dts/theme-core/src/palette/editorState.d.ts +45 -0
  111. package/dist/_dts/theme-core/src/palette/index.d.ts +25 -14
  112. package/dist/_dts/theme-core/src/palette/legacyRuntimeProjection.d.ts +38 -0
  113. package/dist/_dts/theme-core/src/palette/legacySelection.d.ts +34 -0
  114. package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +58 -0
  115. package/dist/_dts/theme-core/src/palette/paletteCompatibilityTransition.d.ts +241 -0
  116. package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +118 -0
  117. package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +50 -0
  118. package/dist/_dts/theme-core/src/palette/selection.d.ts +72 -0
  119. package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +34 -0
  120. package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +58 -0
  121. package/dist/_dts/theme-core/src/schema.d.ts +208 -169
  122. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  123. package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +2 -1
  124. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +22 -22
  125. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +24 -24
  126. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
  127. package/dist/_dts/theme-core/src/site-styles/index.d.ts +2 -0
  128. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +35 -11
  129. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +48 -17
  130. package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +77 -0
  131. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +45 -0
  132. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
  133. package/dist/_dts/theme-core/src/site-styles/themeParity.d.ts +21 -0
  134. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
  135. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
  136. package/dist/_dts/ui/src/badge.d.ts +1 -1
  137. package/dist/_dts/ui/src/button.d.ts +1 -1
  138. package/dist/_dts/ui/src/card.d.ts +1 -1
  139. package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +2 -1
  140. package/dist/_dts/ui/src/toggle.d.ts +2 -2
  141. package/dist/cli/index.mjs +7815 -7445
  142. package/dist/cli/init-docs/content/workflow-isr-revalidation.md +9 -1
  143. package/dist/client/{DiscountCodeDisclosure-ChVZwVtS.mjs → DiscountCodeDisclosure-Dit2aItR.mjs} +1 -1
  144. package/dist/client/{EventCombined.client-PZtXbH6R.mjs → EventCombined.client-BnREyCjf.mjs} +3 -3
  145. package/dist/client/{EventListing.client-C4AMTXec.mjs → EventListing.client-0uHld51x.mjs} +2 -2
  146. package/dist/client/{LeafletStaticMap-B0w8_i0u.mjs → LeafletStaticMap-DJcvSfmj.mjs} +1 -1
  147. package/dist/client/{MagicLinkForm-DF0ZGhIu.mjs → MagicLinkForm-EAsIktfw.mjs} +2 -2
  148. package/dist/client/{StepIndicator-PccQ89Ct.mjs → StepIndicator-CRR17tYI.mjs} +2 -2
  149. package/dist/client/{accordion-CTNWT1lk.mjs → accordion-B47HIuuH.mjs} +1 -1
  150. package/dist/client/{bookingForm-DYixwPqP.mjs → bookingForm-I1E-8F9P.mjs} +6 -6
  151. package/dist/client/{buttons-CySQwlFs.mjs → buttons-BbPn8OKA.mjs} +1 -1
  152. package/dist/client/{carousel-W75iYR0M.mjs → carousel-OlM7SyBs.mjs} +1 -1
  153. package/dist/client/{cart-Ca_DGWQq.mjs → cart-BKpG5jz6.mjs} +3 -3
  154. package/dist/client/{checkout-STgKTsNh.mjs → checkout-Dmmr6qoU.mjs} +3 -3
  155. package/dist/client/client.mjs +9000 -8353
  156. package/dist/client/{courseRegistration-DQI1cu1u.mjs → courseRegistration-CflZiqGk.mjs} +7 -7
  157. package/dist/client/{eventCalendar-BJrHpofg.mjs → eventCalendar-BvoLWcp-.mjs} +5 -5
  158. package/dist/client/{eventCombined-DPtqBHaH.mjs → eventCombined-DsrO8t_t.mjs} +2 -2
  159. package/dist/client/{eventDetails-Brt31CDo.mjs → eventDetails-C3hxgcJm.mjs} +3 -3
  160. package/dist/client/{eventListing-BrClHJOq.mjs → eventListing-C-hb237X.mjs} +2 -2
  161. package/dist/client/{eventRegistration-DxlNlVUC.mjs → eventRegistration-B0gyzDGi.mjs} +7 -7
  162. package/dist/client/{form-Vp5cGzDF.mjs → form-C_RUi6oJ.mjs} +2 -2
  163. package/dist/client/{headerSection-DL2xjRgW.mjs → headerSection-IKQiD2U0.mjs} +3 -3
  164. package/dist/client/hooks.mjs +4792 -4606
  165. package/dist/client/{locationMap-B0EjoXQS.mjs → locationMap-8ZBrMzRJ.mjs} +2 -2
  166. package/dist/client/{newsletterForm-BlV9VRlq.mjs → newsletterForm-CYk3ucwj.mjs} +2 -2
  167. package/dist/client/{pricing-DmRD7Tjx.mjs → pricing-B5GmvfIH.mjs} +1 -1
  168. package/dist/client/{productDetail-BLTQsY2f.mjs → productDetail-BjS2Dqzo.mjs} +3 -3
  169. package/dist/client/{productList-R8lsMpRs.mjs → productList-BOHvC8My.mjs} +3 -3
  170. package/dist/client/{propsDecoder-DgAshF92.mjs → propsDecoder-WS6UEJwZ.mjs} +7 -0
  171. package/dist/client/rendering/client.mjs +3565 -3218
  172. package/dist/client/rendering/islands.mjs +18 -18
  173. package/dist/client/rendering.mjs +8919 -8279
  174. package/dist/client/{shop-DWjyje1s.mjs → shop-CON03-wN.mjs} +6 -6
  175. package/dist/client/{shop-commerce-CSKCR87d.mjs → shop-commerce-DlqrFgH8.mjs} +5 -5
  176. package/dist/client/{shop-commerce-store-DxPnE-iN.mjs → shop-commerce-store-l74-Kne6.mjs} +1 -1
  177. package/dist/client/{shopShared-OOeAkFq7.mjs → shopShared-CQheEXSg.mjs} +2 -2
  178. package/dist/client/{useDiscountCodeUi-Bp6X7XgG.mjs → useDiscountCodeUi-v6OluyWl.mjs} +1 -1
  179. package/dist/client/{useEventFilters-B489x9TO.mjs → useEventFilters-BqSTcNOf.mjs} +3 -3
  180. package/dist/client/{usePolling-BKP66stL.mjs → usePolling-DMfADjIF.mjs} +2 -2
  181. package/dist/preview-next/before-render.mjs +10 -3
  182. package/dist/preview-next/client/runtime.mjs +4 -4
  183. package/dist/preview-next/middleware.mjs +10 -3
  184. package/dist/{previewAuthStore-ByPPZqmp.mjs → previewAuthStore-CfquDtTh.mjs} +10 -3
  185. package/dist/{sdk-runtime-K8Oqj97H.mjs → sdk-runtime-DWb08Xaz.mjs} +2 -2
  186. package/dist/{separator-CRoP34pT.mjs → separator--6yjc914.mjs} +1 -1
  187. package/dist/server/components.mjs +10183 -9621
  188. package/dist/server/config-validation.mjs +4871 -4686
  189. package/dist/server/config.mjs +4871 -4686
  190. package/dist/server/data.mjs +4848 -4663
  191. package/dist/server/index.mjs +11 -4
  192. package/dist/server/next/revalidate.mjs +31 -1
  193. package/dist/server/next.mjs +9894 -9322
  194. package/dist/server/page-converter.mjs +4758 -4573
  195. package/dist/server/prebuild.mjs +1 -1
  196. package/dist/server/rendering/server.mjs +10099 -9619
  197. package/dist/server/rendering.mjs +10195 -9631
  198. package/dist/server/routing.mjs +4985 -4701
  199. package/dist/server/server.mjs +4823 -4629
  200. package/dist/server/theme-bridge.mjs +360 -146
  201. package/dist/server/theme.mjs +94 -91
  202. package/dist/styles/index.css +143 -30
  203. 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 PaletteVariantId } from '../palette/variants';
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
- export type CompileTokenRecipesOptions = Readonly<{
290
- /** Resolved button personality ID. When provided, emits `theme.buttons`. */
291
- buttonPersonalityId?: ButtonPersonalityId;
292
- /**
293
- * Resolved palette variant ID. When provided, replaces the recipe-based
294
- * palette lookup; the recipe family is still consulted for the rest of the
295
- * theme (typography, spacing, etc.).
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
- * Sparse per-token hex overrides applied on top of the palette variant.
300
- * Tokens not in this map keep the variant's value.
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 button personality and palette
310
- * variant IDs (typically supplied by `compileSiteThemeFromSelections`). When
311
- * IDs are omitted, the function falls through to the legacy recipe-based
312
- * palette lookup and leaves `theme.buttons` as the mock-theme default.
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[];
@@ -18,8 +18,8 @@ export declare const themeTokenRecipesSchema: z.ZodObject<{
18
18
  }>;
19
19
  contrast: z.ZodEnum<{
20
20
  standard: "standard";
21
- strong: "strong";
22
21
  maximum: "maximum";
22
+ strong: "strong";
23
23
  }>;
24
24
  radius: z.ZodEnum<{
25
25
  soft: "soft";
@@ -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" | "secondary" | "outline" | "default" | "warning" | "destructive" | null | undefined;
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" | "secondary" | "outline" | "default" | "destructive" | "ghost" | "onDark" | "onDarkOutline" | "heroGlass" | null | undefined;
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?: "none" | "compact" | "default" | "responsive" | null | undefined;
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?: "outline" | "default" | null | undefined;
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?: "outline" | "default" | null | undefined;
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 };