@riverbankcms/sdk 0.125.0 → 0.127.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 (177) hide show
  1. package/README.md +3 -1
  2. package/dist/{PreviewEditorSidebar-BezDOtQ7.mjs → PreviewEditorSidebar-BXtfF7tp.mjs} +122 -301
  3. package/dist/{PreviewEditorUI-CgSqmfo2.mjs → PreviewEditorUI-Dou73Q0K.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-BH-3-jSj.mjs → PreviewQueryProvider-DgFDIwvK.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-Co3AHfj0.mjs → SdkPreviewModeRuntime-B0HPXr-l.mjs} +141 -63
  6. package/dist/{SiteChromeCustomizeContext-BHF-KANn.mjs → SiteChromeCustomizeContext-DZiDBAYu.mjs} +5330 -5841
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +1552 -202
  8. package/dist/_dts/api/src/common/envelope.d.ts +1 -1
  9. package/dist/_dts/api/src/contentRuntime.d.ts +1 -7
  10. package/dist/_dts/api/src/endpoints.d.ts +0 -7
  11. package/dist/_dts/api/src/sdk-event-upsert.d.ts +42 -0
  12. package/dist/_dts/api/src/sdkContracts.d.ts +11 -9
  13. package/dist/_dts/api/src/siteOperations.d.ts +18 -1
  14. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -14
  15. package/dist/_dts/block-form/src/backend/store-backend.d.ts +2 -1
  16. package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +1 -0
  17. package/dist/_dts/blocks/src/index.d.ts +3 -2
  18. package/dist/_dts/blocks/src/lib/media.d.ts +267 -0
  19. package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +0 -13
  20. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +15 -2
  21. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +4 -4
  22. package/dist/_dts/blocks/src/system/runtime/nodes/mergeResolveImageUrlContexts.d.ts +7 -0
  23. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
  24. package/dist/_dts/content-editor/src/ui/blockValidationManifestRegistry.d.ts +17 -0
  25. package/dist/_dts/content-editor/src/ui/blockValidationView.d.ts +1 -1
  26. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +4 -0
  27. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +322 -171
  28. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +4 -0
  29. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +26 -0
  30. package/dist/_dts/editor-blocks/src/widgets/rich-text/imageInsert.d.ts +3 -3
  31. package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -2
  32. package/dist/_dts/media-editor/src/context.d.ts +1 -2
  33. package/dist/_dts/media-editor/src/index.d.ts +3 -1
  34. package/dist/_dts/media-editor/src/mediaSelection.d.ts +32 -0
  35. package/dist/_dts/media-editor/src/types.d.ts +3 -1
  36. package/dist/_dts/media-editor/src/useMediaSelection.d.ts +26 -0
  37. package/dist/_dts/preview-next/src/client/index.d.ts +2 -0
  38. package/dist/_dts/preview-next/src/client/preview/HeaderMenuControls.d.ts +12 -0
  39. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +1 -2
  40. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +13 -3
  41. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +7 -2
  42. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +6 -60
  43. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -13
  44. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +8 -100
  45. package/dist/_dts/preview-next/src/client/preview/headerInteractionPaletteSurfaceState.d.ts +8 -0
  46. package/dist/_dts/preview-next/src/client/preview/previewThemeRoles.d.ts +15 -0
  47. package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +54 -0
  48. package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +13 -3
  49. package/dist/_dts/preview-next/src/client/preview/siteChromeNavQuickControlHistory.d.ts +3 -0
  50. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +6 -3
  51. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +1 -4
  52. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -15
  53. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +11 -21
  54. package/dist/_dts/sdk/src/cli/commands/event.d.ts +2 -2
  55. package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +12 -0
  56. package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +6 -0
  57. package/dist/_dts/sdk/src/cli/commands/style.d.ts +1 -1
  58. package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +5 -0
  59. package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +17 -0
  60. package/dist/_dts/sdk/src/cli/content/reader.d.ts +5 -10
  61. package/dist/_dts/sdk/src/cli/migrations/events.d.ts +1 -1
  62. package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +24 -0
  63. package/dist/_dts/sdk/src/client/management/http.d.ts +1 -1
  64. package/dist/_dts/sdk/src/client/management/types.d.ts +3 -28
  65. package/dist/_dts/sdk/src/config/index.d.ts +1 -1
  66. package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -20
  67. package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
  68. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -2
  69. package/dist/_dts/sdk/src/version.d.ts +1 -1
  70. package/dist/_dts/site-commands/src/commandContract.d.ts +33 -5
  71. package/dist/_dts/site-commands/src/commandDomain.d.ts +2 -2
  72. package/dist/_dts/site-commands/src/commands.d.ts +38 -9
  73. package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +28 -1
  74. package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +4 -4
  75. package/dist/_dts/theme-core/src/buttons/effects/presets/background.d.ts +1 -1
  76. package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +0 -18
  77. package/dist/_dts/theme-core/src/buttons/types.d.ts +1 -3
  78. package/dist/_dts/theme-core/src/header/containerSchema.d.ts +20 -0
  79. package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +1 -1
  80. package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +14 -0
  81. package/dist/_dts/theme-core/src/header/legacyNavLinkStyle.d.ts +3 -0
  82. package/dist/_dts/theme-core/src/header/paintTargets.d.ts +25 -0
  83. package/dist/_dts/theme-core/src/header/scrollTreatment.d.ts +11 -0
  84. package/dist/_dts/theme-core/src/header/surfaceRules.d.ts +9 -0
  85. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +15 -0
  86. package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
  87. package/dist/_dts/theme-core/src/palette/concretePalette.d.ts +20 -0
  88. package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -17
  89. package/dist/_dts/theme-core/src/palette/index.d.ts +1 -6
  90. package/dist/_dts/theme-core/src/palette/schema.d.ts +39 -0
  91. package/dist/_dts/theme-core/src/schema.d.ts +105 -45
  92. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +3 -51
  93. package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +4 -11
  94. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +3 -51
  95. package/dist/_dts/theme-core/src/site-styles/headerInteractionPalette.d.ts +32 -0
  96. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +19 -106
  97. package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +22 -0
  98. package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -0
  99. package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +4 -0
  100. package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
  101. package/dist/_dts/theme-core/src/site-styles/lookOptionGroups.d.ts +24 -0
  102. package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +1 -2
  103. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +4 -22
  104. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorOptions.d.ts +21 -0
  105. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +5 -7
  106. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +5 -6
  107. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +4 -1
  108. package/dist/cli/index.mjs +1583 -1601
  109. package/dist/cli/init-docs/content/cli-reference.md +6 -3
  110. package/dist/cli/init-docs/content/content-management.md +24 -13
  111. package/dist/client/{DiscountCodeDisclosure-CyPpekBp.mjs → DiscountCodeDisclosure-BDFRp8Y7.mjs} +1 -1
  112. package/dist/client/{EventCombined.client-zywit-60.mjs → EventCombined.client-DJgF1_lf.mjs} +2 -2
  113. package/dist/client/{EventListing.client-J2nLhkKT.mjs → EventListing.client-CnWGNjOr.mjs} +2 -2
  114. package/dist/client/{LeafletStaticMap-CSubXWt6.mjs → LeafletStaticMap-BISs9Bl7.mjs} +1 -1
  115. package/dist/client/{MagicLinkForm-DDLIfiq9.mjs → MagicLinkForm-b5E_HoG9.mjs} +1 -1
  116. package/dist/client/{StepIndicator-DE8EvHIp.mjs → StepIndicator-D8gVYkK-.mjs} +2 -2
  117. package/dist/client/{accordion-Ct5T5NiA.mjs → accordion-DFDajgDz.mjs} +1 -1
  118. package/dist/client/{bookingForm-DMxtLPxw.mjs → bookingForm-Bdqj9-52.mjs} +5 -6
  119. package/dist/client/bookings.mjs +315 -46
  120. package/dist/client/{carousel--FMqgvob.mjs → carousel-Cvqf-kN8.mjs} +1 -1
  121. package/dist/client/{cart-BKX1bWiU.mjs → cart-CuH2TJXP.mjs} +3 -3
  122. package/dist/client/{checkout-B_jxi4WW.mjs → checkout-CMNPpejZ.mjs} +3 -3
  123. package/dist/client/client.mjs +1381 -1427
  124. package/dist/client/{courseRegistration-DH4MlkRD.mjs → courseRegistration-DTEYWL6Z.mjs} +6 -7
  125. package/dist/client/{eventCalendar-BQILwAcL.mjs → eventCalendar-BW-XoxZ0.mjs} +4 -4
  126. package/dist/client/{eventCombined-DFFW_Vmo.mjs → eventCombined-Bpn7s0y9.mjs} +2 -2
  127. package/dist/client/{eventDetails-B045CTSJ.mjs → eventDetails-D2uUSTMH.mjs} +3 -3
  128. package/dist/client/{eventListing-BDMYNVzS.mjs → eventListing-CVr1c094.mjs} +2 -2
  129. package/dist/client/{eventRegistration-CQ2-BSnB.mjs → eventRegistration-Dv4AvkMw.mjs} +30 -22
  130. package/dist/client/{form-DJKuyZgN.mjs → form-DxdKf9fs.mjs} +1 -1
  131. package/dist/client/{headerSection-DeTjfiDo.mjs → headerSection-BaXI5Sro.mjs} +2 -2
  132. package/dist/client/hooks.mjs +851 -976
  133. package/dist/client/{locationMap-i2wDA8gB.mjs → locationMap-BEtW2fKz.mjs} +2 -2
  134. package/dist/client/{newsletterForm-DKiueauk.mjs → newsletterForm-BKKs0S4R.mjs} +1 -1
  135. package/dist/client/{pricing-C01J3Epx.mjs → pricing-ClkqcElA.mjs} +1 -1
  136. package/dist/client/{productDetail-Dfc1sZaX.mjs → productDetail-H-ru8dyy.mjs} +3 -3
  137. package/dist/client/{productList-BXbvXWTF.mjs → productList-Buyi5c0C.mjs} +3 -3
  138. package/dist/client/{propsDecoder-CIR5DQ1l.mjs → propsDecoder-BF7i6Ijg.mjs} +293 -65
  139. package/dist/client/rendering/client.mjs +1145 -1190
  140. package/dist/client/rendering/islands.mjs +18 -18
  141. package/dist/client/rendering.mjs +1257 -1298
  142. package/dist/client/{useDiscountCodeUi-Bcyh4508.mjs → scrollToBlock-D_7t8yWb.mjs} +18 -2
  143. package/dist/client/{shop-BbNwPKM-.mjs → shop-CF7SZQNX.mjs} +5 -6
  144. package/dist/client/{shop-commerce-XO-XMFEt.mjs → shop-commerce-DA7_Rq5p.mjs} +4 -4
  145. package/dist/client/{shop-commerce-store-Byh6OUGK.mjs → shop-commerce-store-BmLqW7Gh.mjs} +1 -1
  146. package/dist/client/{shopShared-Bbq39mwr.mjs → shopShared-WL-E1znM.mjs} +2 -2
  147. package/dist/client/{useEventFilters-C8OOJ3el.mjs → useEventFilters-rc8VLeLV.mjs} +2 -2
  148. package/dist/client/{usePolling-CyJVo9kF.mjs → usePolling-1ncrfd4S.mjs} +2 -2
  149. package/dist/preview-next/before-render.mjs +0 -7
  150. package/dist/preview-next/client/runtime.mjs +4 -4
  151. package/dist/preview-next/middleware.mjs +0 -7
  152. package/dist/{previewAuthStore-CJX21dGi.mjs → previewAuthStore-Dev9CdG9.mjs} +0 -7
  153. package/dist/{sdk-runtime-BGhyuE-E.mjs → sdk-runtime-BnrCCFJq.mjs} +2 -2
  154. package/dist/{separator-BFs-Kmv5.mjs → separator-CFvBx2yl.mjs} +1 -1
  155. package/dist/server/components.mjs +1389 -1489
  156. package/dist/server/config-validation.mjs +851 -976
  157. package/dist/server/config.mjs +851 -976
  158. package/dist/server/data.mjs +851 -976
  159. package/dist/server/index.mjs +1 -8
  160. package/dist/server/next.mjs +1393 -1500
  161. package/dist/server/page-converter.mjs +851 -976
  162. package/dist/server/prebuild.mjs +1 -1
  163. package/dist/server/rendering/server.mjs +1346 -1446
  164. package/dist/server/rendering.mjs +1390 -1490
  165. package/dist/server/routing.mjs +939 -1041
  166. package/dist/server/server.mjs +852 -984
  167. package/dist/server/theme-bridge.mjs +322 -279
  168. package/dist/server/theme.mjs +277 -33
  169. package/package.json +1 -1
  170. package/dist/_dts/editor-blocks/src/widgets/rich-text/ensureRichTextImageAssetIdentifier.d.ts +0 -8
  171. package/dist/_dts/theme-core/src/palette/editorState.d.ts +0 -75
  172. package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +0 -64
  173. package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +0 -81
  174. package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +0 -75
  175. package/dist/_dts/theme-core/src/palette/selection.d.ts +0 -74
  176. package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +0 -34
  177. package/dist/client/scrollToBlock-C86BYkyV.mjs +0 -17
@@ -2,8 +2,8 @@ export declare const navigationLocations: readonly ["main", "header", "footer"];
2
2
  export type NavigationLocation = (typeof navigationLocations)[number];
3
3
  export declare const navigationMenuRoles: readonly ["primary", "footer", "legal-policy"];
4
4
  export type NavigationMenuRole = (typeof navigationMenuRoles)[number];
5
- export declare const offeringArchetypes: readonly ["class", "workshop", "retreat", "performance", "custom"];
6
- export type OfferingArchetype = (typeof offeringArchetypes)[number];
5
+ export declare const eventPresets: readonly ["event", "class", "course", "workshop", "retreat", "performance"];
6
+ export type EventPreset = (typeof eventPresets)[number];
7
7
  export declare const offeringVisibilities: readonly ["draft", "unlisted", "listed", "published"];
8
8
  export type OfferingVisibility = (typeof offeringVisibilities)[number];
9
9
  export declare const bookingPassProductUseCases: readonly ["event_pass", "appointment_package"];
@@ -374,17 +374,18 @@ export declare const upsertEventSeriesCommandSchema: z.ZodObject<{
374
374
  slug: z.ZodString;
375
375
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
376
  title: z.ZodString;
377
- archetype: z.ZodEnum<{
378
- custom: "custom";
377
+ preset: z.ZodEnum<{
378
+ course: "course";
379
+ event: "event";
379
380
  performance: "performance";
380
381
  class: "class";
381
382
  workshop: "workshop";
382
383
  retreat: "retreat";
383
384
  }>;
384
- bookingScope: z.ZodOptional<z.ZodEnum<{
385
+ bookingScope: z.ZodEnum<{
385
386
  single_occurrence: "single_occurrence";
386
387
  whole_series: "whole_series";
387
- }>>;
388
+ }>;
388
389
  status: z.ZodOptional<z.ZodEnum<{
389
390
  active: "active";
390
391
  draft: "draft";
@@ -887,7 +888,34 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
887
888
  }, z.core.$strict>], "styleId">>;
888
889
  }, z.core.$strict>, z.ZodObject<{
889
890
  kind: z.ZodLiteral<"set-palette">;
890
- command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
891
+ palette: z.ZodPipe<z.ZodObject<{
892
+ colors: z.ZodArray<z.ZodObject<{
893
+ name: z.ZodString;
894
+ hex: z.ZodString;
895
+ }, z.core.$strip>>;
896
+ meta: z.ZodObject<{
897
+ mode: z.ZodEnum<{
898
+ light: "light";
899
+ dark: "dark";
900
+ }>;
901
+ }, z.core.$strip>;
902
+ }, z.core.$strip>, z.ZodTransform<{
903
+ colors: {
904
+ name: string;
905
+ hex: string;
906
+ }[];
907
+ meta: {
908
+ mode: "light" | "dark";
909
+ };
910
+ }, {
911
+ colors: {
912
+ name: string;
913
+ hex: string;
914
+ }[];
915
+ meta: {
916
+ mode: "light" | "dark";
917
+ };
918
+ }>>;
891
919
  }, z.core.$strict>, z.ZodObject<{
892
920
  kind: z.ZodLiteral<"set-typography">;
893
921
  typography: z.ZodNullable<z.ZodObject<{
@@ -1517,17 +1545,18 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1517
1545
  slug: z.ZodString;
1518
1546
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1519
1547
  title: z.ZodString;
1520
- archetype: z.ZodEnum<{
1521
- custom: "custom";
1548
+ preset: z.ZodEnum<{
1549
+ course: "course";
1550
+ event: "event";
1522
1551
  performance: "performance";
1523
1552
  class: "class";
1524
1553
  workshop: "workshop";
1525
1554
  retreat: "retreat";
1526
1555
  }>;
1527
- bookingScope: z.ZodOptional<z.ZodEnum<{
1556
+ bookingScope: z.ZodEnum<{
1528
1557
  single_occurrence: "single_occurrence";
1529
1558
  whole_series: "whole_series";
1530
- }>>;
1559
+ }>;
1531
1560
  status: z.ZodOptional<z.ZodEnum<{
1532
1561
  active: "active";
1533
1562
  draft: "draft";
@@ -53,7 +53,34 @@ export declare const applySiteStyleSelectionCommandSchema: z.ZodObject<{
53
53
  }, z.core.$strict>], "styleId">>;
54
54
  }, z.core.$strict>, z.ZodObject<{
55
55
  kind: z.ZodLiteral<"set-palette">;
56
- command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
56
+ palette: z.ZodPipe<z.ZodObject<{
57
+ colors: z.ZodArray<z.ZodObject<{
58
+ name: z.ZodString;
59
+ hex: z.ZodString;
60
+ }, z.core.$strip>>;
61
+ meta: z.ZodObject<{
62
+ mode: z.ZodEnum<{
63
+ light: "light";
64
+ dark: "dark";
65
+ }>;
66
+ }, z.core.$strip>;
67
+ }, z.core.$strip>, z.ZodTransform<{
68
+ colors: {
69
+ name: string;
70
+ hex: string;
71
+ }[];
72
+ meta: {
73
+ mode: "light" | "dark";
74
+ };
75
+ }, {
76
+ colors: {
77
+ name: string;
78
+ hex: string;
79
+ }[];
80
+ meta: {
81
+ mode: "light" | "dark";
82
+ };
83
+ }>>;
57
84
  }, z.core.$strict>, z.ZodObject<{
58
85
  kind: z.ZodLiteral<"set-typography">;
59
86
  typography: z.ZodNullable<z.ZodObject<{
@@ -1,15 +1,15 @@
1
1
  import { z } from 'zod';
2
- type SiteStyleSelectionSchemaParts<TSiteStyleId extends z.ZodType, TButtonStyleSelection extends z.ZodType, TPaletteCommand extends z.ZodType, TTypography extends z.ZodType, THeaderLookId extends z.ZodType, THeaderLayoutId extends z.ZodType, THeaderStyleId extends z.ZodType, TFooterLookId extends z.ZodType> = Readonly<{
2
+ type SiteStyleSelectionSchemaParts<TSiteStyleId extends z.ZodType, TButtonStyleSelection extends z.ZodType, TPalette extends z.ZodType, TTypography extends z.ZodType, THeaderLookId extends z.ZodType, THeaderLayoutId extends z.ZodType, THeaderStyleId extends z.ZodType, TFooterLookId extends z.ZodType> = Readonly<{
3
3
  siteStyleId: TSiteStyleId;
4
4
  buttonStyleSelection: TButtonStyleSelection;
5
- paletteCommand: TPaletteCommand;
5
+ palette: TPalette;
6
6
  typography: TTypography;
7
7
  headerLookId: THeaderLookId;
8
8
  headerLayoutId: THeaderLayoutId;
9
9
  headerStyleId: THeaderStyleId;
10
10
  footerLookId: TFooterLookId;
11
11
  }>;
12
- export declare function createSiteStyleSelectionChangeSchema<TSiteStyleId extends z.ZodType, TButtonStyleSelection extends z.ZodType, TPaletteCommand extends z.ZodType, TTypography extends z.ZodType, THeaderLookId extends z.ZodType, THeaderLayoutId extends z.ZodType, THeaderStyleId extends z.ZodType, TFooterLookId extends z.ZodType>(parts: SiteStyleSelectionSchemaParts<TSiteStyleId, TButtonStyleSelection, TPaletteCommand, TTypography, THeaderLookId, THeaderLayoutId, THeaderStyleId, TFooterLookId>): z.ZodDiscriminatedUnion<[z.ZodObject<{
12
+ export declare function createSiteStyleSelectionChangeSchema<TSiteStyleId extends z.ZodType, TButtonStyleSelection extends z.ZodType, TPalette extends z.ZodType, TTypography extends z.ZodType, THeaderLookId extends z.ZodType, THeaderLayoutId extends z.ZodType, THeaderStyleId extends z.ZodType, TFooterLookId extends z.ZodType>(parts: SiteStyleSelectionSchemaParts<TSiteStyleId, TButtonStyleSelection, TPalette, TTypography, THeaderLookId, THeaderLayoutId, THeaderStyleId, TFooterLookId>): z.ZodDiscriminatedUnion<[z.ZodObject<{
13
13
  kind: z.ZodLiteral<"set-site-style">;
14
14
  siteStyleId: TSiteStyleId;
15
15
  }, z.core.$strict>, z.ZodObject<{
@@ -17,7 +17,7 @@ export declare function createSiteStyleSelectionChangeSchema<TSiteStyleId extend
17
17
  buttonStyleSelection: z.ZodNullable<TButtonStyleSelection>;
18
18
  }, z.core.$strict>, z.ZodObject<{
19
19
  kind: z.ZodLiteral<"set-palette">;
20
- command: TPaletteCommand;
20
+ palette: TPalette;
21
21
  }, z.core.$strict>, z.ZodObject<{
22
22
  kind: z.ZodLiteral<"set-typography">;
23
23
  typography: z.ZodNullable<TTypography>;
@@ -1,4 +1,4 @@
1
- import type { EffectPreset } from "../types";
1
+ import type { EffectPreset } from '../types';
2
2
  /**
3
3
  * Darken background on hover
4
4
  *
@@ -720,24 +720,6 @@ export type ResolveButtonStyleSelectionResult = Readonly<{
720
720
  }>;
721
721
  export declare function resolveButtonStyleSelection(selection: ButtonStyleSelection): ResolveButtonStyleSelectionResult;
722
722
  export declare function defaultButtonStyleSelectionFor<TStyleId extends ButtonStyleId>(styleId: TStyleId): ButtonStyleSelectionFor<TStyleId>;
723
- export type PersistedButtonStyleWarning = Readonly<{
724
- kind: 'missing-style-id';
725
- }> | Readonly<{
726
- kind: 'unknown-style-id';
727
- raw: string;
728
- }> | Readonly<{
729
- kind: 'invalid-parameters';
730
- styleId: ButtonStyleId;
731
- issues: readonly string[];
732
- }>;
733
- export type PersistedButtonStyleSelectionResult = Readonly<{
734
- selection: ButtonStyleSelection;
735
- warning: PersistedButtonStyleWarning | null;
736
- }>;
737
- export declare function parsePersistedButtonStyleSelection(input: Readonly<{
738
- styleId: string | null | undefined;
739
- parameters: unknown;
740
- }>, fallback?: ButtonStyleSelection): PersistedButtonStyleSelectionResult;
741
723
  export declare function buttonStyleSelectionParameterValue(selection: ButtonStyleSelection, parameter: string): string | null;
742
724
  export type UpdateButtonStyleSelectionChoiceResult = Readonly<{
743
725
  kind: 'updated';
@@ -41,7 +41,7 @@ export type ButtonSizes = Record<ButtonSizeName, ButtonSizeConfig>;
41
41
  * Block content references variants by role; the active theme determines
42
42
  * what each role looks like.
43
43
  */
44
- export declare const VARIANT_ROLES: readonly ["primary", "secondary", "outline", "ghost", "link", "tertiary", "accent"];
44
+ export declare const VARIANT_ROLES: readonly ["primary", "secondary", "outline", "ghost", "accent"];
45
45
  export type VariantRole = (typeof VARIANT_ROLES)[number];
46
46
  export declare function isVariantRole(value: string): value is VariantRole;
47
47
  declare const SpecialVariantIdBrand: unique symbol;
@@ -307,13 +307,11 @@ export declare const gradientSharpnessSchema: z.ZodEnum<{
307
307
  }>;
308
308
  export declare const prioritySchema: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
309
309
  export declare const variantRoleSchema: z.ZodEnum<{
310
- link: "link";
311
310
  outline: "outline";
312
311
  accent: "accent";
313
312
  primary: "primary";
314
313
  secondary: "secondary";
315
314
  ghost: "ghost";
316
- tertiary: "tertiary";
317
315
  }>;
318
316
  export declare const buttonSizeNameSchema: z.ZodEnum<{
319
317
  sm: "sm";
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ export declare const headerContainerSchema: z.ZodOptional<z.ZodObject<{
3
+ rounded: z.ZodDefault<z.ZodEnum<{
4
+ none: "none";
5
+ sm: "sm";
6
+ md: "md";
7
+ lg: "lg";
8
+ xl: "xl";
9
+ "2xl": "2xl";
10
+ }>>;
11
+ border: z.ZodDefault<z.ZodBoolean>;
12
+ shadow: z.ZodDefault<z.ZodBoolean>;
13
+ padding: z.ZodDefault<z.ZodEnum<{
14
+ sm: "sm";
15
+ md: "md";
16
+ lg: "lg";
17
+ }>>;
18
+ tint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ opacity: z.ZodDefault<z.ZodNumber>;
20
+ }, z.core.$strip>>;
@@ -16,5 +16,5 @@ export declare const _testExports: {
16
16
  /**
17
17
  * Generate root header container styles
18
18
  */
19
- declare function generateHeaderRootStyles(header: ThemeHeader, themeId: string, tokens: TokenResolver, _theme: Theme): string;
19
+ declare function generateHeaderRootStyles(header: ThemeHeader, themeId: string, tokens: TokenResolver): string;
20
20
  export {};
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export declare const headerInteractionPaletteValues: readonly ["primary", "secondary", "accent"];
3
+ export declare const headerInteractionPaletteSchema: z.ZodEnum<{
4
+ accent: "accent";
5
+ primary: "primary";
6
+ secondary: "secondary";
7
+ }>;
8
+ export type HeaderInteractionPalette = z.infer<typeof headerInteractionPaletteSchema>;
9
+ export type HeaderInteractionPalettePreference = 'recommended' | HeaderInteractionPalette;
10
+ export type HeaderInteractionPalettePair = Readonly<{
11
+ backgroundToken: 'primary' | 'secondary' | 'accent';
12
+ foregroundToken: 'onPrimary' | 'onSecondary' | 'onAccent';
13
+ }>;
14
+ export declare function headerInteractionPalettePair(palette: HeaderInteractionPalette): HeaderInteractionPalettePair;
@@ -0,0 +1,3 @@
1
+ import type { NavLinkContrastTreatment, NavLinkStyle } from '../navigation/types';
2
+ import type { ThemeHeader } from '../schema';
3
+ export declare function buildLegacyHeaderNavLinkStyle(header: ThemeHeader, contrastTreatment: NavLinkContrastTreatment | null, navTextSize: NavLinkStyle['textSize'] | null): NavLinkStyle | null;
@@ -0,0 +1,25 @@
1
+ type HeaderLayoutVariant = 'classic' | 'centered' | 'transparent' | 'floating';
2
+ type ElementBoxPaintTarget = Readonly<{
3
+ kind: 'element-box';
4
+ selector: string;
5
+ mediaQuery?: string;
6
+ pseudoElement?: 'inset';
7
+ }>;
8
+ type ViewportBandPaintTarget = Readonly<{
9
+ kind: 'viewport-band';
10
+ clipSelector: string;
11
+ ownerSelector: string;
12
+ selector: string;
13
+ mediaQuery: string;
14
+ topExtension: Readonly<{
15
+ customProperty: '--rb-header-floating-top-gap';
16
+ value: '1rem' | '0.75rem';
17
+ ownerProperty: 'top' | 'margin-top';
18
+ }>;
19
+ ownerNeedsPositioning: boolean;
20
+ }>;
21
+ export type HeaderPaintTarget = ElementBoxPaintTarget | ViewportBandPaintTarget;
22
+ /** Resolve the element that owns the visible header surface for each layout. */
23
+ export declare function getHeaderPaintTargets(variant: HeaderLayoutVariant, themeId: string, state?: 'base' | 'scrolled'): readonly HeaderPaintTarget[];
24
+ export declare function renderHeaderPaintTargetRules(targets: readonly HeaderPaintTarget[], rules: readonly string[]): string;
25
+ export {};
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare const headerScrollTreatmentSchema: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3
+ kind: z.ZodLiteral<"contrast-glass">;
4
+ backgroundTone: z.ZodEnum<{
5
+ light: "light";
6
+ dark: "dark";
7
+ }>;
8
+ }, z.core.$strip>], "kind">>;
9
+ export type HeaderScrollTreatment = z.infer<typeof headerScrollTreatmentSchema>;
10
+ export declare function generateMobileOverlayBackdropFilterFix(themeId: string, variant: 'classic' | 'centered' | 'transparent' | 'floating'): string;
11
+ export declare function generateHeaderScrollTreatmentStyles(treatment: HeaderScrollTreatment, themeId: string, variant: 'classic' | 'centered' | 'transparent' | 'floating', surfaceRules?: readonly string[]): string;
@@ -0,0 +1,9 @@
1
+ import type { ThemeHeader } from '../schema';
2
+ import type { TokenResolver } from '../tokens/resolver';
3
+ export type HeaderSurfaceRules = Readonly<{
4
+ base: readonly string[];
5
+ scrolled: readonly string[];
6
+ border: readonly string[];
7
+ }>;
8
+ /** Compile the visual surface declarations independently of paint geometry. */
9
+ export declare function buildHeaderSurfaceRules(header: ThemeHeader, tokens: TokenResolver, blur: string): HeaderSurfaceRules;
@@ -187,6 +187,10 @@ export declare const mockThemes: {
187
187
  tint?: string | null | undefined;
188
188
  };
189
189
  barFrame?: "full-bleed" | "inset-shell" | undefined;
190
+ scrollTreatment?: {
191
+ kind: "contrast-glass";
192
+ backgroundTone: "light" | "dark";
193
+ } | undefined;
190
194
  logoOverride?: {
191
195
  type: "image" | "video" | "audio" | "document" | "spreadsheet" | "archive";
192
196
  purpose?: string | undefined;
@@ -226,6 +230,7 @@ export declare const mockThemes: {
226
230
  navFontRole?: "heading" | "body" | undefined;
227
231
  navTypography?: "heading" | "body" | undefined;
228
232
  navTextSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
233
+ interactionPalette?: "accent" | "primary" | "secondary" | undefined;
229
234
  navPlacement?: "center" | "end" | undefined;
230
235
  container?: {
231
236
  rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
@@ -1540,6 +1545,10 @@ export declare const mockThemes: {
1540
1545
  tint?: string | null | undefined;
1541
1546
  };
1542
1547
  barFrame?: "full-bleed" | "inset-shell" | undefined;
1548
+ scrollTreatment?: {
1549
+ kind: "contrast-glass";
1550
+ backgroundTone: "light" | "dark";
1551
+ } | undefined;
1543
1552
  logoOverride?: {
1544
1553
  type: "image" | "video" | "audio" | "document" | "spreadsheet" | "archive";
1545
1554
  purpose?: string | undefined;
@@ -1579,6 +1588,7 @@ export declare const mockThemes: {
1579
1588
  navFontRole?: "heading" | "body" | undefined;
1580
1589
  navTypography?: "heading" | "body" | undefined;
1581
1590
  navTextSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
1591
+ interactionPalette?: "accent" | "primary" | "secondary" | undefined;
1582
1592
  navPlacement?: "center" | "end" | undefined;
1583
1593
  container?: {
1584
1594
  rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
@@ -2893,6 +2903,10 @@ export declare const mockThemes: {
2893
2903
  tint?: string | null | undefined;
2894
2904
  };
2895
2905
  barFrame?: "full-bleed" | "inset-shell" | undefined;
2906
+ scrollTreatment?: {
2907
+ kind: "contrast-glass";
2908
+ backgroundTone: "light" | "dark";
2909
+ } | undefined;
2896
2910
  logoOverride?: {
2897
2911
  type: "image" | "video" | "audio" | "document" | "spreadsheet" | "archive";
2898
2912
  purpose?: string | undefined;
@@ -2932,6 +2946,7 @@ export declare const mockThemes: {
2932
2946
  navFontRole?: "heading" | "body" | undefined;
2933
2947
  navTypography?: "heading" | "body" | undefined;
2934
2948
  navTextSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
2949
+ interactionPalette?: "accent" | "primary" | "secondary" | undefined;
2935
2950
  navPlacement?: "center" | "end" | undefined;
2936
2951
  container?: {
2937
2952
  rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
@@ -87,7 +87,7 @@ export declare function paletteColorsEqual(left: PaletteColors, right: PaletteCo
87
87
  export declare function paletteColorFingerprint(colors: PaletteColors): string;
88
88
  export declare function canonicalPaletteHashInput(colors: PaletteColors, mode: PaletteMode): string;
89
89
  /**
90
- * The shared TypeScript/SQL protocol. Do not reorder roles: the order comes
90
+ * Stable curated-catalogue identity. Do not reorder roles: the order comes
91
91
  * from PALETTE_TOKEN_NAMES through canonicalPaletteHashInput.
92
92
  */
93
93
  export declare function paletteValueKey(colors: PaletteColors, mode: PaletteMode): PaletteValueKey;
@@ -0,0 +1,20 @@
1
+ import type { Theme } from '../schema';
2
+ import { type PaletteColors, type PaletteMode } from './colors';
3
+ /**
4
+ * The complete palette value shared by curated authoring templates and themes.
5
+ * It carries no catalogue identity, persistence origin, or independent version.
6
+ */
7
+ export type ConcretePalette = Readonly<{
8
+ colors: PaletteColors;
9
+ mode: PaletteMode;
10
+ }>;
11
+ /**
12
+ * Converts an already schema-validated theme palette into the canonical
13
+ * role-keyed representation. The theme boundary guarantees completeness and
14
+ * mode validity; colour notation is normalised by that boundary.
15
+ */
16
+ export declare function concretePaletteFromTheme(palette: Theme['palette']): ConcretePalette;
17
+ export declare function concretePaletteToTheme(palette: ConcretePalette): Theme['palette'];
18
+ export declare function concretePalettesEqual(left: ConcretePalette, right: ConcretePalette): boolean;
19
+ /** Exact semantic equality for two schema-validated theme palette values. */
20
+ export declare function themePalettesEqual(left: Theme['palette'], right: Theme['palette']): boolean;
@@ -2,11 +2,9 @@
2
2
  * Curated palette library.
3
3
  *
4
4
  * Authoring keys are readable source aliases. Value keys are derived from the
5
- * complete mode and semantic colours and are the only curated identity used at
6
- * persistence and runtime boundaries.
5
+ * complete mode and semantic colours for picker and catalogue identity.
7
6
  */
8
- import { z } from 'zod';
9
- import { type PaletteValueKey } from '../colors';
7
+ import type { PaletteValueKey } from '../colors';
10
8
  import type { CuratedPaletteAuthoringKey, CuratedPaletteDefinition } from './types';
11
9
  export type { CuratedPaletteAuthoringKey, CuratedPaletteDefinition, HexColor, PaletteColorEntry, PaletteColors, PaletteMode, PartialPaletteColors, PaletteTokenName, } from './types';
12
10
  export type { PaletteValueKey } from '../colors';
@@ -28,16 +26,3 @@ export type KnownCuratedPaletteAuthoringKeyValue = Unbrand<KnownCuratedPaletteAu
28
26
  export declare function findCuratedPalette(valueKey: PaletteValueKey): CuratedPalette | undefined;
29
27
  export declare function findCuratedPaletteByAuthoringKey(authoringKey: CuratedPaletteAuthoringKey): CuratedPalette | undefined;
30
28
  export declare function requireCuratedPaletteValueKey(authoringKey: CuratedPaletteAuthoringKey): KnownCuratedPaletteValueKey;
31
- export declare function isKnownCuratedPaletteValueKey(value: unknown): value is KnownCuratedPaletteValueKey;
32
- /** Parses a raw persisted key into catalogue-proven curated membership. */
33
- export declare const knownCuratedPaletteValueKeySchema: z.ZodPipe<z.ZodString, z.ZodTransform<KnownCuratedPaletteValueKey, string>>;
34
- export type PersistedCuratedPaletteValueKeyParseResult = Readonly<{
35
- kind: 'known';
36
- valueKey: KnownCuratedPaletteValueKey;
37
- }> | Readonly<{
38
- kind: 'unknown';
39
- raw: string;
40
- }> | Readonly<{
41
- kind: 'empty';
42
- }>;
43
- export declare function parsePersistedCuratedPaletteValueKey(value: string | null | undefined): PersistedCuratedPaletteValueKeyParseResult;
@@ -9,12 +9,7 @@ export * from './utils';
9
9
  export * from './utils/paletteAccess';
10
10
  export * from './extractPalette';
11
11
  export * from './colors';
12
- export * from './editorState';
13
- export * from './libraryModel';
14
- export * from './persistenceReadSource';
15
- export * from './resolveSelection';
16
- export * from './selection';
17
- export * from './sitePalettePersistence';
12
+ export * from './concretePalette';
18
13
  export * from './utils/fromVibrant';
19
14
  export * from './utils/suggestRecipes';
20
15
  export * from './recipes/allRecipes';
@@ -0,0 +1,39 @@
1
+ import { z } from 'zod';
2
+ export declare const paletteColorSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ hex: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export declare const paletteMetaSchema: z.ZodObject<{
7
+ mode: z.ZodEnum<{
8
+ light: "light";
9
+ dark: "dark";
10
+ }>;
11
+ }, z.core.$strip>;
12
+ export declare const paletteSchema: z.ZodPipe<z.ZodObject<{
13
+ colors: z.ZodArray<z.ZodObject<{
14
+ name: z.ZodString;
15
+ hex: z.ZodString;
16
+ }, z.core.$strip>>;
17
+ meta: z.ZodObject<{
18
+ mode: z.ZodEnum<{
19
+ light: "light";
20
+ dark: "dark";
21
+ }>;
22
+ }, z.core.$strip>;
23
+ }, z.core.$strip>, z.ZodTransform<{
24
+ colors: {
25
+ name: string;
26
+ hex: string;
27
+ }[];
28
+ meta: {
29
+ mode: "light" | "dark";
30
+ };
31
+ }, {
32
+ colors: {
33
+ name: string;
34
+ hex: string;
35
+ }[];
36
+ meta: {
37
+ mode: "light" | "dark";
38
+ };
39
+ }>>;