@riverbankcms/sdk 0.103.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 (149) hide show
  1. package/dist/{PreviewEditorSidebar-DkNpCPja.mjs → PreviewEditorSidebar-ywqcYjTB.mjs} +148 -128
  2. package/dist/{PreviewEditorUI-DeNKtqk3.mjs → PreviewEditorUI-DApUNF6g.mjs} +3 -3
  3. package/dist/{PreviewQueryProvider-ZF6TXq5Q.mjs → PreviewQueryProvider-CStABBUh.mjs} +1 -1
  4. package/dist/{SdkPreviewModeRuntime-5bCsXK2y.mjs → SdkPreviewModeRuntime-DmHCcIMO.mjs} +1199 -563
  5. package/dist/{SiteChromeCustomizeContext-CO1sTK_W.mjs → SiteChromeCustomizeContext-BV9GU-3C.mjs} +3145 -2452
  6. package/dist/_dts/api/src/contentRuntime.d.ts +6 -3
  7. package/dist/_dts/api/src/endpoints.d.ts +10 -3
  8. package/dist/_dts/api/src/index.d.ts +1 -1
  9. package/dist/_dts/api/src/siteIcons.d.ts +39 -43
  10. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
  11. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +36 -7
  12. package/dist/_dts/block-form/src/widgets/SliderField/SliderField.d.ts +3 -3
  13. package/dist/_dts/block-form/src/widgets/SliderField/sliderValue.d.ts +36 -0
  14. package/dist/_dts/block-form/src/widgets/utils/readNumericUiConfig.d.ts +3 -0
  15. package/dist/_dts/blocks/src/index.d.ts +1 -1
  16. package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +29 -29
  17. package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +1 -0
  18. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -0
  19. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -0
  20. package/dist/_dts/blocks/src/system/icons/generatedAssets.d.ts +28 -0
  21. package/dist/_dts/blocks/src/system/icons/index.d.ts +1 -0
  22. package/dist/_dts/blocks/src/system/icons/value.d.ts +3 -6
  23. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +240 -0
  24. package/dist/_dts/blocks/src/system/runtime/nodes/feature-card-icon.d.ts +1 -0
  25. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -0
  26. package/dist/_dts/content-editor/src/ui/stores/generatedIconAssetsStore.d.ts +9 -0
  27. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +208 -0
  28. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +7 -0
  29. package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -1
  30. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +4 -4
  31. package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +2 -3
  32. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +4 -4
  33. package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +4 -4
  34. package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +3 -3
  35. package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +2 -3
  36. package/dist/_dts/editor-blocks/src/block-editor/blockHeaderActionPlan.d.ts +1 -5
  37. package/dist/_dts/editor-blocks/src/block-editor/featureCardIconActions.d.ts +25 -19
  38. package/dist/_dts/editor-blocks/src/block-editor/generatedIconApplyCoordination.d.ts +32 -0
  39. package/dist/_dts/editor-blocks/src/widgets/icon-picker/GeneratedIconLibraryContext.d.ts +28 -0
  40. package/dist/_dts/editor-blocks/src/widgets/icon-picker/index.d.ts +2 -0
  41. package/dist/_dts/editor-blocks/src/widgets/icon-picker/loaders.d.ts +7 -0
  42. package/dist/_dts/preview-next/src/client/preview/CustomizeBackgroundControlRows.d.ts +15 -0
  43. package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -1
  44. package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -1
  45. package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -1
  46. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +4 -3
  47. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +4 -3
  48. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +4 -3
  49. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -4
  50. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +5 -4
  51. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +44 -18
  52. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +4 -5
  53. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +22 -1
  54. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +12 -4
  55. package/dist/_dts/sdk/src/client/management/types.d.ts +3 -0
  56. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +0 -1
  57. package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -2
  58. package/dist/_dts/sdk/src/version.d.ts +1 -1
  59. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  60. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +9 -9
  61. package/dist/_dts/theme-core/src/navigation/types.d.ts +2 -0
  62. package/dist/_dts/theme-core/src/palette/colors.d.ts +84 -0
  63. package/dist/_dts/theme-core/src/palette/{variants → curated}/brand-led.d.ts +12 -24
  64. package/dist/_dts/theme-core/src/palette/{variants → curated}/high-contrast.d.ts +9 -18
  65. package/dist/_dts/theme-core/src/palette/{variants → curated}/index.d.ts +67 -119
  66. package/dist/_dts/theme-core/src/palette/{variants → curated}/soft-natural.d.ts +12 -24
  67. package/dist/_dts/theme-core/src/palette/{variants → curated}/types.d.ts +50 -60
  68. package/dist/_dts/theme-core/src/palette/{variants → curated}/warm-dark.d.ts +6 -12
  69. package/dist/_dts/theme-core/src/palette/{variants → curated}/warm-neutral.d.ts +12 -24
  70. package/dist/_dts/theme-core/src/palette/editorState.d.ts +45 -0
  71. package/dist/_dts/theme-core/src/palette/index.d.ts +25 -14
  72. package/dist/_dts/theme-core/src/palette/legacyRuntimeProjection.d.ts +38 -0
  73. package/dist/_dts/theme-core/src/palette/legacySelection.d.ts +34 -0
  74. package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +58 -0
  75. package/dist/_dts/theme-core/src/palette/paletteCompatibilityTransition.d.ts +241 -0
  76. package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +118 -0
  77. package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +50 -0
  78. package/dist/_dts/theme-core/src/palette/selection.d.ts +72 -0
  79. package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +34 -0
  80. package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +58 -0
  81. package/dist/_dts/theme-core/src/schema.d.ts +9 -0
  82. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +22 -22
  83. package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
  84. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +31 -9
  85. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +22 -16
  86. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +6 -5
  87. package/dist/_dts/theme-core/src/site-styles/themeParity.d.ts +21 -0
  88. package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +2 -1
  89. package/dist/cli/index.mjs +7798 -7449
  90. package/dist/client/{DiscountCodeDisclosure-ChVZwVtS.mjs → DiscountCodeDisclosure-Dit2aItR.mjs} +1 -1
  91. package/dist/client/{EventCombined.client-PZtXbH6R.mjs → EventCombined.client-BnREyCjf.mjs} +3 -3
  92. package/dist/client/{EventListing.client-C4AMTXec.mjs → EventListing.client-0uHld51x.mjs} +2 -2
  93. package/dist/client/{LeafletStaticMap-B0w8_i0u.mjs → LeafletStaticMap-DJcvSfmj.mjs} +1 -1
  94. package/dist/client/{MagicLinkForm-DF0ZGhIu.mjs → MagicLinkForm-EAsIktfw.mjs} +2 -2
  95. package/dist/client/{StepIndicator-PccQ89Ct.mjs → StepIndicator-CRR17tYI.mjs} +2 -2
  96. package/dist/client/{accordion-CTNWT1lk.mjs → accordion-B47HIuuH.mjs} +1 -1
  97. package/dist/client/{bookingForm-DYixwPqP.mjs → bookingForm-I1E-8F9P.mjs} +6 -6
  98. package/dist/client/{buttons-CySQwlFs.mjs → buttons-BbPn8OKA.mjs} +1 -1
  99. package/dist/client/{carousel-W75iYR0M.mjs → carousel-OlM7SyBs.mjs} +1 -1
  100. package/dist/client/{cart-Ca_DGWQq.mjs → cart-BKpG5jz6.mjs} +3 -3
  101. package/dist/client/{checkout-STgKTsNh.mjs → checkout-Dmmr6qoU.mjs} +3 -3
  102. package/dist/client/client.mjs +8699 -8320
  103. package/dist/client/{courseRegistration-DQI1cu1u.mjs → courseRegistration-CflZiqGk.mjs} +7 -7
  104. package/dist/client/{eventCalendar-BJrHpofg.mjs → eventCalendar-BvoLWcp-.mjs} +5 -5
  105. package/dist/client/{eventCombined-DPtqBHaH.mjs → eventCombined-DsrO8t_t.mjs} +2 -2
  106. package/dist/client/{eventDetails-Brt31CDo.mjs → eventDetails-C3hxgcJm.mjs} +3 -3
  107. package/dist/client/{eventListing-BrClHJOq.mjs → eventListing-C-hb237X.mjs} +2 -2
  108. package/dist/client/{eventRegistration-DxlNlVUC.mjs → eventRegistration-B0gyzDGi.mjs} +7 -7
  109. package/dist/client/{form-Vp5cGzDF.mjs → form-C_RUi6oJ.mjs} +2 -2
  110. package/dist/client/{headerSection-DL2xjRgW.mjs → headerSection-IKQiD2U0.mjs} +3 -3
  111. package/dist/client/hooks.mjs +4837 -4663
  112. package/dist/client/{locationMap-B0EjoXQS.mjs → locationMap-8ZBrMzRJ.mjs} +2 -2
  113. package/dist/client/{newsletterForm-BlV9VRlq.mjs → newsletterForm-CYk3ucwj.mjs} +2 -2
  114. package/dist/client/{pricing-DmRD7Tjx.mjs → pricing-B5GmvfIH.mjs} +1 -1
  115. package/dist/client/{productDetail-BLTQsY2f.mjs → productDetail-BjS2Dqzo.mjs} +3 -3
  116. package/dist/client/{productList-R8lsMpRs.mjs → productList-BOHvC8My.mjs} +3 -3
  117. package/dist/client/{propsDecoder-DgAshF92.mjs → propsDecoder-WS6UEJwZ.mjs} +7 -0
  118. package/dist/client/rendering/client.mjs +3607 -3281
  119. package/dist/client/rendering/islands.mjs +18 -18
  120. package/dist/client/rendering.mjs +8562 -8190
  121. package/dist/client/{shop-DWjyje1s.mjs → shop-CON03-wN.mjs} +6 -6
  122. package/dist/client/{shop-commerce-CSKCR87d.mjs → shop-commerce-DlqrFgH8.mjs} +5 -5
  123. package/dist/client/{shop-commerce-store-DxPnE-iN.mjs → shop-commerce-store-l74-Kne6.mjs} +1 -1
  124. package/dist/client/{shopShared-OOeAkFq7.mjs → shopShared-CQheEXSg.mjs} +2 -2
  125. package/dist/client/{useDiscountCodeUi-Bp6X7XgG.mjs → useDiscountCodeUi-v6OluyWl.mjs} +1 -1
  126. package/dist/client/{useEventFilters-B489x9TO.mjs → useEventFilters-BqSTcNOf.mjs} +3 -3
  127. package/dist/client/{usePolling-BKP66stL.mjs → usePolling-DMfADjIF.mjs} +2 -2
  128. package/dist/preview-next/before-render.mjs +10 -3
  129. package/dist/preview-next/client/runtime.mjs +4 -4
  130. package/dist/preview-next/middleware.mjs +10 -3
  131. package/dist/{previewAuthStore-ByPPZqmp.mjs → previewAuthStore-CfquDtTh.mjs} +10 -3
  132. package/dist/{sdk-runtime-C8whifOy.mjs → sdk-runtime-DWb08Xaz.mjs} +2 -2
  133. package/dist/{separator-CM2C5Axs.mjs → separator--6yjc914.mjs} +1 -1
  134. package/dist/server/components.mjs +9863 -9557
  135. package/dist/server/config-validation.mjs +4861 -4687
  136. package/dist/server/config.mjs +4861 -4687
  137. package/dist/server/data.mjs +4838 -4664
  138. package/dist/server/index.mjs +11 -4
  139. package/dist/server/next.mjs +8657 -8344
  140. package/dist/server/page-converter.mjs +4749 -4575
  141. package/dist/server/prebuild.mjs +1 -1
  142. package/dist/server/rendering/server.mjs +9808 -9586
  143. package/dist/server/rendering.mjs +9872 -9566
  144. package/dist/server/routing.mjs +4967 -4704
  145. package/dist/server/server.mjs +4845 -4664
  146. package/dist/server/theme-bridge.mjs +207 -114
  147. package/dist/server/theme.mjs +92 -91
  148. package/dist/styles/index.css +20 -0
  149. package/package.json +1 -1
@@ -1,20 +1,19 @@
1
1
  /**
2
- * Palette variant library.
2
+ * Curated palette library.
3
3
  *
4
- * Each variant is a complete colour palette tagged on the four style axes
4
+ * Each palette is a complete colour palette tagged on the four style axes
5
5
  * (tone / energy / motion / era — motion is rarely used for palettes).
6
6
  * Curated site styles declare ordered palette choices for the picker. Tags
7
7
  * stay available as authoring/audit metadata; they no longer drive the Style
8
8
  * configurator's option shape.
9
9
  *
10
- * `paletteOverrides` carries per-token hex edits applied on top of the
11
- * chosen variant; see the merge semantics in `compileSiteThemeFromSelections`.
10
+ * Legacy `paletteOverrides` remain exported only as migration input.
12
11
  */
13
- import type { PaletteVariant, PaletteVariantId } from './types';
14
- export type { HexColor, PaletteColor, PaletteOverrides, PaletteTokenName, PaletteVariant, PaletteVariantId } from './types';
15
- export { PALETTE_TOKEN_NAMES, asPaletteVariantId, definePaletteVariant, hexColorSchema, paletteOverridesSchema, paletteTokenNameSchema, paletteVariantIdSchema, paletteVariantSchema, } from './types';
16
- export declare const paletteVariants: readonly [Readonly<{
17
- id: PaletteVariantId<"brand-led-cool">;
12
+ import type { CuratedPalette, CuratedPaletteId } from './types';
13
+ export type { CuratedPalette, CuratedPaletteId, HexColor, PaletteColorEntry, PaletteColors, PaletteMode, PaletteOverrides, PaletteTokenName, } from './types';
14
+ export { PALETTE_TOKEN_NAMES, asCuratedPaletteId, defineCuratedPalette, hexColorSchema, paletteColorsSchema, paletteModeSchema, paletteOverridesSchema, paletteTokenNameSchema, curatedPaletteIdSchema, curatedPaletteSchema, } from './types';
15
+ export declare const curatedPalettes: readonly [Readonly<{
16
+ id: CuratedPaletteId<"brand-led-cool">;
18
17
  name: string;
19
18
  description: string;
20
19
  tags: Readonly<Partial<Readonly<{
@@ -23,13 +22,10 @@ export declare const paletteVariants: readonly [Readonly<{
23
22
  motion: import("../../../../blocks/src/index").StyleMotion;
24
23
  era: import("../../../../blocks/src/index").StyleEra;
25
24
  }>>>;
26
- mode: "light" | "dark";
27
- colors: readonly Readonly<{
28
- name: import("../../../../blocks/src/index").PaletteTokenName;
29
- hex: string;
30
- }>[];
25
+ mode: import("../../../../blocks/src/index").PaletteMode;
26
+ colors: import("../../../../blocks/src/index").PaletteColors;
31
27
  }>, Readonly<{
32
- id: PaletteVariantId<"brand-led-warm">;
28
+ id: CuratedPaletteId<"brand-led-warm">;
33
29
  name: string;
34
30
  description: string;
35
31
  tags: Readonly<Partial<Readonly<{
@@ -38,13 +34,10 @@ export declare const paletteVariants: readonly [Readonly<{
38
34
  motion: import("../../../../blocks/src/index").StyleMotion;
39
35
  era: import("../../../../blocks/src/index").StyleEra;
40
36
  }>>>;
41
- mode: "light" | "dark";
42
- colors: readonly Readonly<{
43
- name: import("../../../../blocks/src/index").PaletteTokenName;
44
- hex: string;
45
- }>[];
37
+ mode: import("../../../../blocks/src/index").PaletteMode;
38
+ colors: import("../../../../blocks/src/index").PaletteColors;
46
39
  }>, Readonly<{
47
- id: PaletteVariantId<"brand-led-jewel">;
40
+ id: CuratedPaletteId<"brand-led-jewel">;
48
41
  name: string;
49
42
  description: string;
50
43
  tags: Readonly<Partial<Readonly<{
@@ -53,13 +46,10 @@ export declare const paletteVariants: readonly [Readonly<{
53
46
  motion: import("../../../../blocks/src/index").StyleMotion;
54
47
  era: import("../../../../blocks/src/index").StyleEra;
55
48
  }>>>;
56
- mode: "light" | "dark";
57
- colors: readonly Readonly<{
58
- name: import("../../../../blocks/src/index").PaletteTokenName;
59
- hex: string;
60
- }>[];
49
+ mode: import("../../../../blocks/src/index").PaletteMode;
50
+ colors: import("../../../../blocks/src/index").PaletteColors;
61
51
  }>, Readonly<{
62
- id: PaletteVariantId<"brand-led-burgundy-gold">;
52
+ id: CuratedPaletteId<"brand-led-burgundy-gold">;
63
53
  name: string;
64
54
  description: string;
65
55
  tags: Readonly<Partial<Readonly<{
@@ -68,13 +58,10 @@ export declare const paletteVariants: readonly [Readonly<{
68
58
  motion: import("../../../../blocks/src/index").StyleMotion;
69
59
  era: import("../../../../blocks/src/index").StyleEra;
70
60
  }>>>;
71
- mode: "light" | "dark";
72
- colors: readonly Readonly<{
73
- name: import("../../../../blocks/src/index").PaletteTokenName;
74
- hex: string;
75
- }>[];
61
+ mode: import("../../../../blocks/src/index").PaletteMode;
62
+ colors: import("../../../../blocks/src/index").PaletteColors;
76
63
  }>, Readonly<{
77
- id: PaletteVariantId<"warm-neutral-clay">;
64
+ id: CuratedPaletteId<"warm-neutral-clay">;
78
65
  name: string;
79
66
  description: string;
80
67
  tags: Readonly<Partial<Readonly<{
@@ -83,13 +70,10 @@ export declare const paletteVariants: readonly [Readonly<{
83
70
  motion: import("../../../../blocks/src/index").StyleMotion;
84
71
  era: import("../../../../blocks/src/index").StyleEra;
85
72
  }>>>;
86
- mode: "light" | "dark";
87
- colors: readonly Readonly<{
88
- name: import("../../../../blocks/src/index").PaletteTokenName;
89
- hex: string;
90
- }>[];
73
+ mode: import("../../../../blocks/src/index").PaletteMode;
74
+ colors: import("../../../../blocks/src/index").PaletteColors;
91
75
  }>, Readonly<{
92
- id: PaletteVariantId<"warm-neutral-cream">;
76
+ id: CuratedPaletteId<"warm-neutral-cream">;
93
77
  name: string;
94
78
  description: string;
95
79
  tags: Readonly<Partial<Readonly<{
@@ -98,13 +82,10 @@ export declare const paletteVariants: readonly [Readonly<{
98
82
  motion: import("../../../../blocks/src/index").StyleMotion;
99
83
  era: import("../../../../blocks/src/index").StyleEra;
100
84
  }>>>;
101
- mode: "light" | "dark";
102
- colors: readonly Readonly<{
103
- name: import("../../../../blocks/src/index").PaletteTokenName;
104
- hex: string;
105
- }>[];
85
+ mode: import("../../../../blocks/src/index").PaletteMode;
86
+ colors: import("../../../../blocks/src/index").PaletteColors;
106
87
  }>, Readonly<{
107
- id: PaletteVariantId<"warm-neutral-soft-earth">;
88
+ id: CuratedPaletteId<"warm-neutral-soft-earth">;
108
89
  name: string;
109
90
  description: string;
110
91
  tags: Readonly<Partial<Readonly<{
@@ -113,13 +94,10 @@ export declare const paletteVariants: readonly [Readonly<{
113
94
  motion: import("../../../../blocks/src/index").StyleMotion;
114
95
  era: import("../../../../blocks/src/index").StyleEra;
115
96
  }>>>;
116
- mode: "light" | "dark";
117
- colors: readonly Readonly<{
118
- name: import("../../../../blocks/src/index").PaletteTokenName;
119
- hex: string;
120
- }>[];
97
+ mode: import("../../../../blocks/src/index").PaletteMode;
98
+ colors: import("../../../../blocks/src/index").PaletteColors;
121
99
  }>, Readonly<{
122
- id: PaletteVariantId<"warm-neutral-forest">;
100
+ id: CuratedPaletteId<"warm-neutral-forest">;
123
101
  name: string;
124
102
  description: string;
125
103
  tags: Readonly<Partial<Readonly<{
@@ -128,13 +106,10 @@ export declare const paletteVariants: readonly [Readonly<{
128
106
  motion: import("../../../../blocks/src/index").StyleMotion;
129
107
  era: import("../../../../blocks/src/index").StyleEra;
130
108
  }>>>;
131
- mode: "light" | "dark";
132
- colors: readonly Readonly<{
133
- name: import("../../../../blocks/src/index").PaletteTokenName;
134
- hex: string;
135
- }>[];
109
+ mode: import("../../../../blocks/src/index").PaletteMode;
110
+ colors: import("../../../../blocks/src/index").PaletteColors;
136
111
  }>, Readonly<{
137
- id: PaletteVariantId<"high-contrast-ink">;
112
+ id: CuratedPaletteId<"high-contrast-ink">;
138
113
  name: string;
139
114
  description: string;
140
115
  tags: Readonly<Partial<Readonly<{
@@ -143,13 +118,10 @@ export declare const paletteVariants: readonly [Readonly<{
143
118
  motion: import("../../../../blocks/src/index").StyleMotion;
144
119
  era: import("../../../../blocks/src/index").StyleEra;
145
120
  }>>>;
146
- mode: "light" | "dark";
147
- colors: readonly Readonly<{
148
- name: import("../../../../blocks/src/index").PaletteTokenName;
149
- hex: string;
150
- }>[];
121
+ mode: import("../../../../blocks/src/index").PaletteMode;
122
+ colors: import("../../../../blocks/src/index").PaletteColors;
151
123
  }>, Readonly<{
152
- id: PaletteVariantId<"high-contrast-charcoal">;
124
+ id: CuratedPaletteId<"high-contrast-charcoal">;
153
125
  name: string;
154
126
  description: string;
155
127
  tags: Readonly<Partial<Readonly<{
@@ -158,13 +130,10 @@ export declare const paletteVariants: readonly [Readonly<{
158
130
  motion: import("../../../../blocks/src/index").StyleMotion;
159
131
  era: import("../../../../blocks/src/index").StyleEra;
160
132
  }>>>;
161
- mode: "light" | "dark";
162
- colors: readonly Readonly<{
163
- name: import("../../../../blocks/src/index").PaletteTokenName;
164
- hex: string;
165
- }>[];
133
+ mode: import("../../../../blocks/src/index").PaletteMode;
134
+ colors: import("../../../../blocks/src/index").PaletteColors;
166
135
  }>, Readonly<{
167
- id: PaletteVariantId<"high-contrast-monochrome">;
136
+ id: CuratedPaletteId<"high-contrast-monochrome">;
168
137
  name: string;
169
138
  description: string;
170
139
  tags: Readonly<Partial<Readonly<{
@@ -173,13 +142,10 @@ export declare const paletteVariants: readonly [Readonly<{
173
142
  motion: import("../../../../blocks/src/index").StyleMotion;
174
143
  era: import("../../../../blocks/src/index").StyleEra;
175
144
  }>>>;
176
- mode: "light" | "dark";
177
- colors: readonly Readonly<{
178
- name: import("../../../../blocks/src/index").PaletteTokenName;
179
- hex: string;
180
- }>[];
145
+ mode: import("../../../../blocks/src/index").PaletteMode;
146
+ colors: import("../../../../blocks/src/index").PaletteColors;
181
147
  }>, Readonly<{
182
- id: PaletteVariantId<"soft-natural-sage">;
148
+ id: CuratedPaletteId<"soft-natural-sage">;
183
149
  name: string;
184
150
  description: string;
185
151
  tags: Readonly<Partial<Readonly<{
@@ -188,13 +154,10 @@ export declare const paletteVariants: readonly [Readonly<{
188
154
  motion: import("../../../../blocks/src/index").StyleMotion;
189
155
  era: import("../../../../blocks/src/index").StyleEra;
190
156
  }>>>;
191
- mode: "light" | "dark";
192
- colors: readonly Readonly<{
193
- name: import("../../../../blocks/src/index").PaletteTokenName;
194
- hex: string;
195
- }>[];
157
+ mode: import("../../../../blocks/src/index").PaletteMode;
158
+ colors: import("../../../../blocks/src/index").PaletteColors;
196
159
  }>, Readonly<{
197
- id: PaletteVariantId<"soft-natural-stone">;
160
+ id: CuratedPaletteId<"soft-natural-stone">;
198
161
  name: string;
199
162
  description: string;
200
163
  tags: Readonly<Partial<Readonly<{
@@ -203,13 +166,10 @@ export declare const paletteVariants: readonly [Readonly<{
203
166
  motion: import("../../../../blocks/src/index").StyleMotion;
204
167
  era: import("../../../../blocks/src/index").StyleEra;
205
168
  }>>>;
206
- mode: "light" | "dark";
207
- colors: readonly Readonly<{
208
- name: import("../../../../blocks/src/index").PaletteTokenName;
209
- hex: string;
210
- }>[];
169
+ mode: import("../../../../blocks/src/index").PaletteMode;
170
+ colors: import("../../../../blocks/src/index").PaletteColors;
211
171
  }>, Readonly<{
212
- id: PaletteVariantId<"soft-natural-watercolor">;
172
+ id: CuratedPaletteId<"soft-natural-watercolor">;
213
173
  name: string;
214
174
  description: string;
215
175
  tags: Readonly<Partial<Readonly<{
@@ -218,13 +178,10 @@ export declare const paletteVariants: readonly [Readonly<{
218
178
  motion: import("../../../../blocks/src/index").StyleMotion;
219
179
  era: import("../../../../blocks/src/index").StyleEra;
220
180
  }>>>;
221
- mode: "light" | "dark";
222
- colors: readonly Readonly<{
223
- name: import("../../../../blocks/src/index").PaletteTokenName;
224
- hex: string;
225
- }>[];
181
+ mode: import("../../../../blocks/src/index").PaletteMode;
182
+ colors: import("../../../../blocks/src/index").PaletteColors;
226
183
  }>, Readonly<{
227
- id: PaletteVariantId<"soft-natural-lilac">;
184
+ id: CuratedPaletteId<"soft-natural-lilac">;
228
185
  name: string;
229
186
  description: string;
230
187
  tags: Readonly<Partial<Readonly<{
@@ -233,13 +190,10 @@ export declare const paletteVariants: readonly [Readonly<{
233
190
  motion: import("../../../../blocks/src/index").StyleMotion;
234
191
  era: import("../../../../blocks/src/index").StyleEra;
235
192
  }>>>;
236
- mode: "light" | "dark";
237
- colors: readonly Readonly<{
238
- name: import("../../../../blocks/src/index").PaletteTokenName;
239
- hex: string;
240
- }>[];
193
+ mode: import("../../../../blocks/src/index").PaletteMode;
194
+ colors: import("../../../../blocks/src/index").PaletteColors;
241
195
  }>, Readonly<{
242
- id: PaletteVariantId<"warm-dark-ember">;
196
+ id: CuratedPaletteId<"warm-dark-ember">;
243
197
  name: string;
244
198
  description: string;
245
199
  tags: Readonly<Partial<Readonly<{
@@ -248,13 +202,10 @@ export declare const paletteVariants: readonly [Readonly<{
248
202
  motion: import("../../../../blocks/src/index").StyleMotion;
249
203
  era: import("../../../../blocks/src/index").StyleEra;
250
204
  }>>>;
251
- mode: "light" | "dark";
252
- colors: readonly Readonly<{
253
- name: import("../../../../blocks/src/index").PaletteTokenName;
254
- hex: string;
255
- }>[];
205
+ mode: import("../../../../blocks/src/index").PaletteMode;
206
+ colors: import("../../../../blocks/src/index").PaletteColors;
256
207
  }>, Readonly<{
257
- id: PaletteVariantId<"warm-dark-kirtan-gold">;
208
+ id: CuratedPaletteId<"warm-dark-kirtan-gold">;
258
209
  name: string;
259
210
  description: string;
260
211
  tags: Readonly<Partial<Readonly<{
@@ -263,26 +214,23 @@ export declare const paletteVariants: readonly [Readonly<{
263
214
  motion: import("../../../../blocks/src/index").StyleMotion;
264
215
  era: import("../../../../blocks/src/index").StyleEra;
265
216
  }>>>;
266
- mode: "light" | "dark";
267
- colors: readonly Readonly<{
268
- name: import("../../../../blocks/src/index").PaletteTokenName;
269
- hex: string;
270
- }>[];
217
+ mode: import("../../../../blocks/src/index").PaletteMode;
218
+ colors: import("../../../../blocks/src/index").PaletteColors;
271
219
  }>];
272
- type UnbrandedPaletteVariantId<TValue> = TValue extends infer TRaw & {
273
- readonly __brand: 'PaletteVariantId';
220
+ type UnbrandedCuratedPaletteId<TValue> = TValue extends infer TRaw & {
221
+ readonly __brand: 'CuratedPaletteId';
274
222
  } ? TRaw extends string ? TRaw : never : never;
275
- export type KnownPaletteVariantId = (typeof paletteVariants)[number]['id'];
276
- export type KnownPaletteVariantIdValue = UnbrandedPaletteVariantId<KnownPaletteVariantId>;
277
- export declare function findPaletteVariant(id: PaletteVariantId): PaletteVariant | undefined;
278
- export declare function isKnownPaletteVariantId(value: string): value is KnownPaletteVariantId;
279
- export type PersistedPaletteVariantIdParseResult = Readonly<{
223
+ export type KnownCuratedPaletteId = (typeof curatedPalettes)[number]['id'];
224
+ export type KnownCuratedPaletteIdValue = UnbrandedCuratedPaletteId<KnownCuratedPaletteId>;
225
+ export declare function findCuratedPalette(id: CuratedPaletteId): CuratedPalette | undefined;
226
+ export declare function isKnownCuratedPaletteId(value: string): value is KnownCuratedPaletteId;
227
+ export type PersistedCuratedPaletteIdParseResult = Readonly<{
280
228
  kind: 'known';
281
- id: KnownPaletteVariantId;
229
+ id: KnownCuratedPaletteId;
282
230
  }> | Readonly<{
283
231
  kind: 'unknown';
284
232
  raw: string;
285
233
  }> | Readonly<{
286
234
  kind: 'empty';
287
235
  }>;
288
- export declare function parsePersistedPaletteVariantId(value: string | null | undefined): PersistedPaletteVariantIdParseResult;
236
+ export declare function parsePersistedCuratedPaletteId(value: string | null | undefined): PersistedCuratedPaletteIdParseResult;
@@ -3,7 +3,7 @@
3
3
  * Studio, Modern Wellness, Warm Editorial site styles.
4
4
  */
5
5
  export declare const softNaturalSage: Readonly<{
6
- id: import("../../../../blocks/src/index").PaletteVariantId<"soft-natural-sage">;
6
+ id: import("../../../../blocks/src/index").CuratedPaletteId<"soft-natural-sage">;
7
7
  name: string;
8
8
  description: string;
9
9
  tags: Readonly<Partial<Readonly<{
@@ -12,14 +12,11 @@ export declare const softNaturalSage: Readonly<{
12
12
  motion: import("../../../../blocks/src/index").StyleMotion;
13
13
  era: import("../../../../blocks/src/index").StyleEra;
14
14
  }>>>;
15
- mode: "light" | "dark";
16
- colors: readonly Readonly<{
17
- name: import("../../../../blocks/src/index").PaletteTokenName;
18
- hex: string;
19
- }>[];
15
+ mode: import("../../../../blocks/src/index").PaletteMode;
16
+ colors: import("../../../../blocks/src/index").PaletteColors;
20
17
  }>;
21
18
  export declare const softNaturalStone: Readonly<{
22
- id: import("../../../../blocks/src/index").PaletteVariantId<"soft-natural-stone">;
19
+ id: import("../../../../blocks/src/index").CuratedPaletteId<"soft-natural-stone">;
23
20
  name: string;
24
21
  description: string;
25
22
  tags: Readonly<Partial<Readonly<{
@@ -28,14 +25,11 @@ export declare const softNaturalStone: Readonly<{
28
25
  motion: import("../../../../blocks/src/index").StyleMotion;
29
26
  era: import("../../../../blocks/src/index").StyleEra;
30
27
  }>>>;
31
- mode: "light" | "dark";
32
- colors: readonly Readonly<{
33
- name: import("../../../../blocks/src/index").PaletteTokenName;
34
- hex: string;
35
- }>[];
28
+ mode: import("../../../../blocks/src/index").PaletteMode;
29
+ colors: import("../../../../blocks/src/index").PaletteColors;
36
30
  }>;
37
31
  export declare const softNaturalWatercolor: Readonly<{
38
- id: import("../../../../blocks/src/index").PaletteVariantId<"soft-natural-watercolor">;
32
+ id: import("../../../../blocks/src/index").CuratedPaletteId<"soft-natural-watercolor">;
39
33
  name: string;
40
34
  description: string;
41
35
  tags: Readonly<Partial<Readonly<{
@@ -44,14 +38,11 @@ export declare const softNaturalWatercolor: Readonly<{
44
38
  motion: import("../../../../blocks/src/index").StyleMotion;
45
39
  era: import("../../../../blocks/src/index").StyleEra;
46
40
  }>>>;
47
- mode: "light" | "dark";
48
- colors: readonly Readonly<{
49
- name: import("../../../../blocks/src/index").PaletteTokenName;
50
- hex: string;
51
- }>[];
41
+ mode: import("../../../../blocks/src/index").PaletteMode;
42
+ colors: import("../../../../blocks/src/index").PaletteColors;
52
43
  }>;
53
44
  export declare const softNaturalLilac: Readonly<{
54
- id: import("../../../../blocks/src/index").PaletteVariantId<"soft-natural-lilac">;
45
+ id: import("../../../../blocks/src/index").CuratedPaletteId<"soft-natural-lilac">;
55
46
  name: string;
56
47
  description: string;
57
48
  tags: Readonly<Partial<Readonly<{
@@ -60,9 +51,6 @@ export declare const softNaturalLilac: Readonly<{
60
51
  motion: import("../../../../blocks/src/index").StyleMotion;
61
52
  era: import("../../../../blocks/src/index").StyleEra;
62
53
  }>>>;
63
- mode: "light" | "dark";
64
- colors: readonly Readonly<{
65
- name: import("../../../../blocks/src/index").PaletteTokenName;
66
- hex: string;
67
- }>[];
54
+ mode: import("../../../../blocks/src/index").PaletteMode;
55
+ colors: import("../../../../blocks/src/index").PaletteColors;
68
56
  }>;
@@ -1,41 +1,24 @@
1
1
  import { z } from 'zod';
2
2
  import { type StyleTags } from '../../site-styles/styleTags';
3
3
  import { PALETTE_TOKEN_NAMES, paletteTokenNameSchema, type PaletteTokenName } from '../../tokens/themeColorTokens';
4
- export { PALETTE_TOKEN_NAMES, paletteTokenNameSchema, type PaletteTokenName, };
5
- /**
6
- * Branded ID for a palette variant in the curated library. Shape matches the
7
- * `Brand<T, TBrand>` convention in `site-styles/types.ts`. Use the helper at
8
- * the parse/construction boundary.
9
- */
10
- export type PaletteVariantId<T extends string = string> = T & {
11
- readonly __brand: 'PaletteVariantId';
4
+ import { hexColorSchema, paletteColorsSchema, paletteModeSchema, type HexColor, type PaletteColorEntry, type PaletteColors, type PaletteMode } from '../colors';
5
+ export { PALETTE_TOKEN_NAMES, hexColorSchema, paletteColorsSchema, paletteModeSchema, paletteTokenNameSchema, type PaletteTokenName, };
6
+ export type { HexColor, PaletteColorEntry, PaletteColors, PaletteMode };
7
+ export type CuratedPaletteId<T extends string = string> = T & {
8
+ readonly __brand: 'CuratedPaletteId';
12
9
  };
13
- export declare function asPaletteVariantId<const T extends string>(value: T): PaletteVariantId<T>;
14
- export declare const paletteVariantIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PaletteVariantId<string>, string>>;
15
- export type HexColor = string & {
16
- readonly __brand: 'HexColor';
17
- };
18
- export declare const hexColorSchema: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
19
- /**
20
- * One slot in a palette variant. `name` is restricted to the closed
21
- * `PaletteTokenName` union so authoring typos (`'priamry'`) are caught at
22
- * compile time; the value side stays as raw `string` (validated by
23
- * `paletteColorSchema`'s less-strict regex for back-compat with existing data).
24
- */
25
- export type PaletteColor = Readonly<{
26
- name: PaletteTokenName;
27
- hex: string;
28
- }>;
29
- export type PaletteVariant<TId extends PaletteVariantId = PaletteVariantId> = Readonly<{
10
+ export declare function asCuratedPaletteId<const T extends string>(value: T): CuratedPaletteId<T>;
11
+ export declare const curatedPaletteIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CuratedPaletteId<string>, string>>;
12
+ export type CuratedPalette<TId extends CuratedPaletteId = CuratedPaletteId> = Readonly<{
30
13
  id: TId;
31
14
  name: string;
32
15
  description: string;
33
16
  tags: StyleTags;
34
- mode: 'light' | 'dark';
35
- colors: ReadonlyArray<PaletteColor>;
17
+ mode: PaletteMode;
18
+ colors: PaletteColors;
36
19
  }>;
37
- export declare const paletteVariantSchema: z.ZodObject<{
38
- id: z.ZodPipe<z.ZodString, z.ZodTransform<PaletteVariantId<string>, string>>;
20
+ export declare const curatedPaletteSchema: z.ZodObject<{
21
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<CuratedPaletteId<string>, string>>;
39
22
  name: z.ZodString;
40
23
  description: z.ZodString;
41
24
  tags: z.ZodObject<{
@@ -65,45 +48,52 @@ export declare const paletteVariantSchema: z.ZodObject<{
65
48
  light: "light";
66
49
  dark: "dark";
67
50
  }>;
68
- colors: z.ZodArray<z.ZodObject<{
69
- hex: z.ZodString;
70
- name: z.ZodEnum<{
71
- surface: "surface";
72
- success: "success";
73
- text: "text";
74
- warning: "warning";
75
- background: "background";
76
- accent: "accent";
77
- muted: "muted";
78
- border: "border";
79
- primary: "primary";
80
- secondary: "secondary";
81
- destructive: "destructive";
82
- surfaceAlt: "surfaceAlt";
83
- primaryForeground: "primaryForeground";
84
- }>;
85
- }, z.core.$strip>>;
51
+ colors: z.ZodPipe<z.ZodObject<{
52
+ primary: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
53
+ primaryForeground: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
54
+ secondary: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
55
+ accent: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
56
+ success: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
57
+ warning: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
58
+ destructive: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
59
+ background: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
60
+ surface: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
61
+ surfaceAlt: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
62
+ muted: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
63
+ text: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
64
+ border: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
65
+ }, z.core.$strict>, z.ZodTransform<Readonly<Record<"surface" | "success" | "text" | "warning" | "background" | "accent" | "muted" | "border" | "primary" | "secondary" | "destructive" | "surfaceAlt" | "primaryForeground", HexColor>>, {
66
+ primary: HexColor;
67
+ primaryForeground: HexColor;
68
+ secondary: HexColor;
69
+ accent: HexColor;
70
+ success: HexColor;
71
+ warning: HexColor;
72
+ destructive: HexColor;
73
+ background: HexColor;
74
+ surface: HexColor;
75
+ surfaceAlt: HexColor;
76
+ muted: HexColor;
77
+ text: HexColor;
78
+ border: HexColor;
79
+ }>>;
86
80
  }, z.core.$strip>;
87
- export declare function definePaletteVariant<const TId extends string>(input: {
81
+ export declare function defineCuratedPalette<const TId extends string>(input: {
88
82
  id: TId;
89
83
  name: string;
90
84
  description: string;
91
85
  tags: StyleTags;
92
- mode: 'light' | 'dark';
93
- colors: ReadonlyArray<PaletteColor>;
94
- }): PaletteVariant<PaletteVariantId<TId>>;
86
+ mode: PaletteMode;
87
+ colors: ReadonlyArray<Readonly<{
88
+ name: PaletteTokenName;
89
+ hex: string;
90
+ }>>;
91
+ }): CuratedPalette<CuratedPaletteId<TId>>;
95
92
  /**
96
- * Sparse per-token override map. Loaded from / persisted to
97
- * `site_theme_selections.palette_overrides`. Empty / null means "no overrides
98
- * applied; the palette variant's own colours render unchanged."
93
+ * Migration-only sparse colours from the legacy
94
+ * `site_theme_selections.palette_overrides` contract.
99
95
  */
100
96
  export type PaletteOverrides = Readonly<Partial<Record<PaletteTokenName, HexColor>>>;
101
- /**
102
- * Sparse object of known token names → hex colours. Unknown keys are
103
- * rejected at parse time; missing keys mean "no override for that token".
104
- * Built as an explicit partial-object schema (rather than `z.record(enum, …)`)
105
- * for unambiguous closure under Zod 4.
106
- */
107
97
  export declare const paletteOverridesSchema: z.ZodPipe<z.ZodObject<{
108
98
  primary: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>>;
109
99
  primaryForeground: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>>;
@@ -10,7 +10,7 @@
10
10
  * scale, `mutedText`, and derived on-colors invert correctly.
11
11
  */
12
12
  export declare const warmDarkEmber: Readonly<{
13
- id: import("../../../../blocks/src/index").PaletteVariantId<"warm-dark-ember">;
13
+ id: import("../../../../blocks/src/index").CuratedPaletteId<"warm-dark-ember">;
14
14
  name: string;
15
15
  description: string;
16
16
  tags: Readonly<Partial<Readonly<{
@@ -19,14 +19,11 @@ export declare const warmDarkEmber: Readonly<{
19
19
  motion: import("../../../../blocks/src/index").StyleMotion;
20
20
  era: import("../../../../blocks/src/index").StyleEra;
21
21
  }>>>;
22
- mode: "light" | "dark";
23
- colors: readonly Readonly<{
24
- name: import("../../../../blocks/src/index").PaletteTokenName;
25
- hex: string;
26
- }>[];
22
+ mode: import("../../../../blocks/src/index").PaletteMode;
23
+ colors: import("../../../../blocks/src/index").PaletteColors;
27
24
  }>;
28
25
  export declare const warmDarkKirtanGold: Readonly<{
29
- id: import("../../../../blocks/src/index").PaletteVariantId<"warm-dark-kirtan-gold">;
26
+ id: import("../../../../blocks/src/index").CuratedPaletteId<"warm-dark-kirtan-gold">;
30
27
  name: string;
31
28
  description: string;
32
29
  tags: Readonly<Partial<Readonly<{
@@ -35,9 +32,6 @@ export declare const warmDarkKirtanGold: Readonly<{
35
32
  motion: import("../../../../blocks/src/index").StyleMotion;
36
33
  era: import("../../../../blocks/src/index").StyleEra;
37
34
  }>>>;
38
- mode: "light" | "dark";
39
- colors: readonly Readonly<{
40
- name: import("../../../../blocks/src/index").PaletteTokenName;
41
- hex: string;
42
- }>[];
35
+ mode: import("../../../../blocks/src/index").PaletteMode;
36
+ colors: import("../../../../blocks/src/index").PaletteColors;
43
37
  }>;