@riverbankcms/sdk 0.108.0 → 0.109.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 (189) hide show
  1. package/README.md +21 -1
  2. package/dist/{PreviewEditorSidebar-BBT-kZAM.mjs → PreviewEditorSidebar-DWqwfy3_.mjs} +7 -22
  3. package/dist/{PreviewEditorUI-D69xNKT2.mjs → PreviewEditorUI-B7OL4sfR.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-RRu7wyQ5.mjs → PreviewQueryProvider-D0y2l8JN.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-CuDjXH6o.mjs → SdkPreviewModeRuntime-D8Gt9Gbe.mjs} +212 -153
  6. package/dist/{SiteChromeCustomizeContext-BQUY2dEk.mjs → SiteChromeCustomizeContext-DUpalEdL.mjs} +1919 -1032
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +11244 -10741
  8. package/dist/_dts/api/src/bookingAdjustments.d.ts +5 -0
  9. package/dist/_dts/api/src/bookingOperations.d.ts +4 -0
  10. package/dist/_dts/api/src/bookingRecords.d.ts +2 -17
  11. package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +6 -6
  12. package/dist/_dts/api/src/common/envelope.d.ts +7 -0
  13. package/dist/_dts/api/src/courses.d.ts +1 -0
  14. package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +5 -5
  15. package/dist/_dts/api/src/endpoints.d.ts +35 -0
  16. package/dist/_dts/api/src/index.d.ts +2 -2
  17. package/dist/_dts/api/src/participantMessaging.d.ts +18 -12
  18. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +1 -0
  19. package/dist/_dts/api/src/sdkContracts.d.ts +247 -1
  20. package/dist/_dts/api/src/siteInfrastructure.d.ts +13 -0
  21. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +1 -5
  22. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +29 -1
  23. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +33 -27
  24. package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientField.d.ts +9 -0
  25. package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +3 -4
  26. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -4
  27. package/dist/_dts/blocks/src/index.d.ts +1 -1
  28. package/dist/_dts/blocks/src/system/blocks/audio-player.d.ts +3 -0
  29. package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +3 -0
  30. package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +3 -0
  31. package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +1 -22
  32. package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +3 -0
  33. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +1 -22
  34. package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +3 -0
  35. package/dist/_dts/blocks/src/system/blocks/form.d.ts +3 -0
  36. package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +3 -0
  37. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +3 -0
  38. package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +3 -0
  39. package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +3 -0
  40. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -0
  41. package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +3 -0
  42. package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +3 -0
  43. package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
  44. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +16 -6
  45. package/dist/_dts/blocks/src/system/defineBlock.d.ts +9 -1
  46. package/dist/_dts/blocks/src/system/fields/ctas.d.ts +8 -0
  47. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +31 -0
  48. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -6
  49. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -3
  50. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +1 -1
  51. package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +31 -0
  52. package/dist/_dts/content-model/src/content-types/scaffold.d.ts +58 -0
  53. package/dist/_dts/content-model/src/content-types/sentinels.d.ts +36 -0
  54. package/dist/_dts/content-model/src/index.d.ts +3 -0
  55. package/dist/_dts/core/src/booking-date-time.d.ts +8 -0
  56. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +3071 -3157
  57. package/dist/_dts/media-core/src/fileMimeDetection.d.ts +16 -0
  58. package/dist/_dts/media-core/src/fileStorage.d.ts +8 -0
  59. package/dist/_dts/media-core/src/storagePathDomain.d.ts +2 -0
  60. package/dist/_dts/media-core/src/uploadVerificationContract.d.ts +3 -0
  61. package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -0
  62. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +1 -0
  63. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -1
  64. package/dist/_dts/sdk/src/cli/commands/audit.d.ts +1 -1
  65. package/dist/_dts/sdk/src/cli/commands/compare.d.ts +1 -1
  66. package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +1 -1
  67. package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +18 -0
  68. package/dist/_dts/sdk/src/cli/commands/entry.d.ts +15 -0
  69. package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +2 -2
  70. package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +1 -1
  71. package/dist/_dts/sdk/src/cli/commands/pull.d.ts +1 -0
  72. package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +1 -1
  73. package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +3 -0
  74. package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +12 -1
  75. package/dist/_dts/sdk/src/cli/commands/setup.d.ts +1 -0
  76. package/dist/_dts/sdk/src/cli/commands/verify.d.ts +1 -0
  77. package/dist/_dts/sdk/src/cli/helpers.d.ts +22 -1
  78. package/dist/_dts/sdk/src/cli/index.d.ts +4 -0
  79. package/dist/_dts/sdk/src/cli/output.d.ts +88 -0
  80. package/dist/_dts/sdk/src/cli/program.d.ts +29 -0
  81. package/dist/_dts/sdk/src/cli/push-config.d.ts +1 -1
  82. package/dist/_dts/sdk/src/client/management/catalog.d.ts +10 -0
  83. package/dist/_dts/sdk/src/client/management/http.d.ts +7 -1
  84. package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
  85. package/dist/_dts/sdk/src/client/management/types.d.ts +43 -19
  86. package/dist/_dts/sdk/src/date-time/index.d.ts +68 -0
  87. package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -0
  88. package/dist/_dts/sdk/src/version.d.ts +1 -1
  89. package/dist/_dts/site-commands/src/commands.d.ts +893 -823
  90. package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
  91. package/dist/_dts/theme-core/src/buttons/core.d.ts +15 -46
  92. package/dist/_dts/theme-core/src/buttons/effectClassification.d.ts +147 -0
  93. package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +2 -3
  94. package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +1 -1
  95. package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
  96. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +44 -32
  97. package/dist/_dts/theme-core/src/buttons/presets.d.ts +4 -25
  98. package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +100 -0
  99. package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +16 -0
  100. package/dist/_dts/theme-core/src/buttons/types.d.ts +101 -83
  101. package/dist/_dts/theme-core/src/cards/types.d.ts +16 -16
  102. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  103. package/dist/_dts/theme-core/src/gradients/presets.d.ts +200 -8
  104. package/dist/_dts/theme-core/src/gradients/utils.d.ts +6 -2
  105. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +87 -126
  106. package/dist/_dts/theme-core/src/mock-themes/modern-minimal.d.ts +1 -1
  107. package/dist/_dts/theme-core/src/navigation/types.d.ts +2 -2
  108. package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -2
  109. package/dist/_dts/theme-core/src/palette/curated/types.d.ts +5 -8
  110. package/dist/_dts/theme-core/src/palette/index.d.ts +0 -1
  111. package/dist/_dts/theme-core/src/schema.d.ts +112 -138
  112. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  113. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +10 -10
  114. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +3 -2
  115. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +13 -6
  116. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +29 -8
  117. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +2 -2
  118. package/dist/cli/index.mjs +67956 -66745
  119. package/dist/cli/init-docs/content/cli-reference.md +50 -7
  120. package/dist/cli/init-docs/content/content-management.md +7 -4
  121. package/dist/cli/init-docs/content/workflow-publish.md +5 -1
  122. package/dist/client/{DiscountCodeDisclosure-D6TOf6Hi.mjs → DiscountCodeDisclosure-DU1ygxU2.mjs} +1 -1
  123. package/dist/client/{EventCombined.client-Dao3zxRk.mjs → EventCombined.client-DB5zagCo.mjs} +3 -3
  124. package/dist/client/{EventListing.client-B2NNt4y1.mjs → EventListing.client-CTX9JHBL.mjs} +2 -2
  125. package/dist/client/{LeafletStaticMap-BhwFo16w.mjs → LeafletStaticMap-BYImhgiB.mjs} +1 -1
  126. package/dist/client/{MagicLinkForm-BWnB7cMR.mjs → MagicLinkForm-CRkw_M3l.mjs} +2 -2
  127. package/dist/client/{StepIndicator-TzRiQ0BY.mjs → StepIndicator-BnmVBJJh.mjs} +2 -2
  128. package/dist/client/{accordion-BPy-AJ4_.mjs → accordion-CeGreumd.mjs} +1 -1
  129. package/dist/client/{bookingForm-BL4PGZds.mjs → bookingForm-CSzFNrpN.mjs} +6 -6
  130. package/dist/client/bookings.mjs +512 -252
  131. package/dist/client/{buttons-EBjyslaX.mjs → buttons-DoFV7KDL.mjs} +493 -230
  132. package/dist/client/{carousel-C2b7Cn9-.mjs → carousel-B2jDtogf.mjs} +1 -1
  133. package/dist/client/{cart-BQcbXIVD.mjs → cart-D-jZ-vaY.mjs} +3 -3
  134. package/dist/client/{checkout-DEmpGRJu.mjs → checkout-Dza-LA7N.mjs} +3 -3
  135. package/dist/client/client.mjs +1673 -785
  136. package/dist/client/{colorStyles-jZS6KfkP.mjs → colorStyles-CrgzoXsm.mjs} +1 -30
  137. package/dist/client/{courseRegistration-BqRZPmsq.mjs → courseRegistration-TYkNychb.mjs} +7 -7
  138. package/dist/client/{eventCalendar-B8N_tSl5.mjs → eventCalendar-BI_90SsT.mjs} +5 -5
  139. package/dist/client/{eventCombined-Gjn6gtq7.mjs → eventCombined-mNrpryE9.mjs} +2 -2
  140. package/dist/client/{eventDetails-M-VCxA-r.mjs → eventDetails-D4GVlCIY.mjs} +3 -3
  141. package/dist/client/{eventListing-DR19hqYi.mjs → eventListing-YhKN018y.mjs} +2 -2
  142. package/dist/client/{eventRegistration-BR02a0k3.mjs → eventRegistration-CdHGtilr.mjs} +7 -7
  143. package/dist/client/foregroundContract-xICPq59x.mjs +31 -0
  144. package/dist/client/{form-LY2xIbwg.mjs → form-AcAL45rA.mjs} +2 -2
  145. package/dist/client/{headerSection-CYwwXJfh.mjs → headerSection-uEC52ueD.mjs} +3 -3
  146. package/dist/client/hooks.mjs +890 -497
  147. package/dist/client/{locationMap-DWnBXrFq.mjs → locationMap-_wJDSUYe.mjs} +3 -3
  148. package/dist/client/{media-DHtSxS5V.mjs → media-BK0O3b-U.mjs} +3 -2
  149. package/dist/client/{newsletterForm-D9s-fQ2P.mjs → newsletterForm-DrArsb2B.mjs} +2 -2
  150. package/dist/client/{pricing-DDq80oYc.mjs → pricing-BSYVghwo.mjs} +1 -1
  151. package/dist/client/{productDetail-B0SbWd45.mjs → productDetail-Dyk90sMs.mjs} +3 -3
  152. package/dist/client/{productList-PwYlZn0y.mjs → productList-BCKThwAI.mjs} +3 -3
  153. package/dist/client/{propsDecoder-BRWBiH7i.mjs → propsDecoder-CkXxkdSR.mjs} +63 -24
  154. package/dist/client/rendering/client.mjs +1034 -486
  155. package/dist/client/rendering/islands.mjs +19 -19
  156. package/dist/client/rendering.mjs +1832 -760
  157. package/dist/client/{shop-CMwZPYME.mjs → shop-DeltVH10.mjs} +6 -6
  158. package/dist/client/{shop-commerce-BuxsFate.mjs → shop-commerce-BD9Jsm2Z.mjs} +6 -6
  159. package/dist/client/{shop-commerce-store-boYlEJ91.mjs → shop-commerce-store-CmXD6FDS.mjs} +1 -1
  160. package/dist/client/{shopShared-D2naaOes.mjs → shopShared-B8v-lH_F.mjs} +2 -2
  161. package/dist/client/{useDiscountCodeUi-D9RHpVoj.mjs → useDiscountCodeUi-DbWJN8ld.mjs} +1 -1
  162. package/dist/client/{useEventFilters-igGiK1re.mjs → useEventFilters-EJIMUnqT.mjs} +46 -69
  163. package/dist/client/{usePolling-CI7MbsFB.mjs → usePolling-Cmh14fc7.mjs} +2 -2
  164. package/dist/preview-next/before-render.mjs +35 -0
  165. package/dist/preview-next/client/runtime.mjs +4 -4
  166. package/dist/preview-next/middleware.mjs +35 -0
  167. package/dist/{previewAuthStore-a_cBD28m.mjs → previewAuthStore-CTO7CRPk.mjs} +35 -0
  168. package/dist/{sdk-runtime-MBzD-GmP.mjs → sdk-runtime-Dou0GAav.mjs} +2 -2
  169. package/dist/{separator-5ahRBC85.mjs → separator-CI5wZNXT.mjs} +1 -1
  170. package/dist/server/components.mjs +1832 -784
  171. package/dist/server/config-validation.mjs +890 -497
  172. package/dist/server/config.mjs +890 -497
  173. package/dist/server/data.mjs +890 -497
  174. package/dist/server/date-time.mjs +386 -0
  175. package/dist/server/index.mjs +36 -1
  176. package/dist/server/next.mjs +1868 -785
  177. package/dist/server/page-converter.mjs +849 -285
  178. package/dist/server/prebuild.mjs +1 -1
  179. package/dist/server/rendering/server.mjs +1553 -718
  180. package/dist/server/rendering.mjs +1832 -784
  181. package/dist/server/routing.mjs +933 -522
  182. package/dist/server/server.mjs +929 -501
  183. package/dist/server/theme-bridge.mjs +1408 -392
  184. package/dist/server/theme.mjs +471 -228
  185. package/dist/styles/index.css +5 -0
  186. package/package.json +7 -1
  187. package/dist/_dts/theme-core/src/buttons/presets/types.d.ts +0 -88
  188. package/dist/_dts/theme-core/src/buttons/utils/contrast.d.ts +0 -38
  189. package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +0 -57
@@ -19,8 +19,8 @@ export type ThemeChromeTextLegibilityPlan = Readonly<{
19
19
  export declare const backgroundAppearanceQuickColorTokenNames: readonly ["background", "surface", "muted", "primary", "secondary", "accent"];
20
20
  export declare const backgroundAppearanceBaseColorTokenNames: readonly ["background", "surface", "surfaceAlt", "muted", "primary", "secondary", "accent", "neutral"];
21
21
  export declare const backgroundAppearanceShadeableColorTokenNames: readonly ["primary", "secondary", "accent", "neutral"];
22
- export declare const backgroundAppearanceColorTokenNames: readonly ("surface" | "background" | "accent" | "muted" | "primary" | "secondary" | "surfaceAlt" | "neutral" | "neutral-600" | "neutral-500" | "neutral-800" | "neutral-700" | "neutral-900" | "primary-500" | "primary-400" | "neutral-950" | "primary-300" | "primary-600" | "secondary-600" | "accent-600" | "secondary-500" | "accent-400" | "neutral-400" | "neutral-50" | "neutral-100" | "neutral-200" | "neutral-300" | "secondary-400" | "accent-500" | "primary-100" | "primary-50" | "primary-900" | "secondary-50" | "secondary-900" | "accent-50" | "accent-900" | "primary-800" | "primary-700" | "accent-100" | "accent-200" | "accent-300" | "accent-700" | "accent-800" | "accent-950" | "primary-200" | "primary-950" | "secondary-100" | "secondary-200" | "secondary-300" | "secondary-700" | "secondary-800" | "secondary-950")[];
23
- export declare const backgroundAppearanceAdvancedColorTokenNames: ("surface" | "background" | "accent" | "muted" | "primary" | "secondary" | "surfaceAlt" | "neutral" | "neutral-600" | "neutral-500" | "neutral-800" | "neutral-700" | "neutral-900" | "primary-500" | "primary-400" | "neutral-950" | "primary-300" | "primary-600" | "secondary-600" | "accent-600" | "secondary-500" | "accent-400" | "neutral-400" | "neutral-50" | "neutral-100" | "neutral-200" | "neutral-300" | "secondary-400" | "accent-500" | "primary-100" | "primary-50" | "primary-900" | "secondary-50" | "secondary-900" | "accent-50" | "accent-900" | "primary-800" | "primary-700" | "accent-100" | "accent-200" | "accent-300" | "accent-700" | "accent-800" | "accent-950" | "primary-200" | "primary-950" | "secondary-100" | "secondary-200" | "secondary-300" | "secondary-700" | "secondary-800" | "secondary-950")[];
22
+ export declare const backgroundAppearanceColorTokenNames: readonly ("surface" | "background" | "accent" | "muted" | "primary" | "secondary" | "surfaceAlt" | "neutral" | "neutral-600" | "neutral-500" | "neutral-800" | "neutral-700" | "neutral-900" | "primary-500" | "primary-400" | "neutral-950" | "primary-300" | "primary-600" | "secondary-600" | "accent-600" | "secondary-500" | "accent-400" | "neutral-400" | "neutral-50" | "neutral-100" | "neutral-200" | "neutral-300" | "secondary-400" | "primary-100" | "primary-50" | "primary-900" | "secondary-50" | "secondary-900" | "accent-50" | "accent-500" | "accent-900" | "primary-800" | "primary-700" | "accent-100" | "accent-200" | "accent-300" | "accent-700" | "accent-800" | "accent-950" | "primary-200" | "primary-950" | "secondary-100" | "secondary-200" | "secondary-300" | "secondary-700" | "secondary-800" | "secondary-950")[];
23
+ export declare const backgroundAppearanceAdvancedColorTokenNames: ("surface" | "background" | "accent" | "muted" | "primary" | "secondary" | "surfaceAlt" | "neutral" | "neutral-600" | "neutral-500" | "neutral-800" | "neutral-700" | "neutral-900" | "primary-500" | "primary-400" | "neutral-950" | "primary-300" | "primary-600" | "secondary-600" | "accent-600" | "secondary-500" | "accent-400" | "neutral-400" | "neutral-50" | "neutral-100" | "neutral-200" | "neutral-300" | "secondary-400" | "primary-100" | "primary-50" | "primary-900" | "secondary-50" | "secondary-900" | "accent-50" | "accent-500" | "accent-900" | "primary-800" | "primary-700" | "accent-100" | "accent-200" | "accent-300" | "accent-700" | "accent-800" | "accent-950" | "primary-200" | "primary-950" | "secondary-100" | "secondary-200" | "secondary-300" | "secondary-700" | "secondary-800" | "secondary-950")[];
24
24
  export declare function parseBackgroundAppearanceColorToken(value: unknown): ThemeColorToken | null;
25
25
  export declare function foregroundTokenForBackgroundAppearanceColorToken(token: ThemeColorToken): string;
26
26
  export declare function planThemeBackgroundTextLegibility(backgroundToken: ThemeColorToken, role?: BackgroundTextLegibilityRole): ThemeBackgroundTextLegibilityPlan;
@@ -197,8 +197,8 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
197
197
  secondary: "secondary";
198
198
  }>;
199
199
  intensity: z.ZodOptional<z.ZodEnum<{
200
- soft: "soft";
201
200
  balanced: "balanced";
201
+ soft: "soft";
202
202
  strong: "strong";
203
203
  }>>;
204
204
  }, z.core.$strict>, z.ZodObject<{
@@ -209,29 +209,29 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
209
209
  secondary: "secondary";
210
210
  }>;
211
211
  intensity: z.ZodOptional<z.ZodEnum<{
212
- soft: "soft";
213
212
  balanced: "balanced";
213
+ soft: "soft";
214
214
  strong: "strong";
215
215
  }>>;
216
216
  }, z.core.$strict>, z.ZodObject<{
217
217
  kind: z.ZodLiteral<"neutral-scrim">;
218
218
  intensity: z.ZodOptional<z.ZodEnum<{
219
- soft: "soft";
220
219
  balanced: "balanced";
220
+ soft: "soft";
221
221
  strong: "strong";
222
222
  }>>;
223
223
  }, z.core.$strict>, z.ZodObject<{
224
224
  kind: z.ZodLiteral<"neutral-wash">;
225
225
  intensity: z.ZodOptional<z.ZodEnum<{
226
- soft: "soft";
227
226
  balanced: "balanced";
227
+ soft: "soft";
228
228
  strong: "strong";
229
229
  }>>;
230
230
  }, z.core.$strict>, z.ZodObject<{
231
231
  kind: z.ZodLiteral<"solid-panel">;
232
232
  intensity: z.ZodOptional<z.ZodEnum<{
233
- soft: "soft";
234
233
  balanced: "balanced";
234
+ soft: "soft";
235
235
  strong: "strong";
236
236
  }>>;
237
237
  }, z.core.$strict>], "kind">>;
@@ -418,8 +418,8 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
418
418
  secondary: "secondary";
419
419
  }>;
420
420
  intensity: z.ZodOptional<z.ZodEnum<{
421
- soft: "soft";
422
421
  balanced: "balanced";
422
+ soft: "soft";
423
423
  strong: "strong";
424
424
  }>>;
425
425
  }, z.core.$strict>, z.ZodObject<{
@@ -430,29 +430,29 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
430
430
  secondary: "secondary";
431
431
  }>;
432
432
  intensity: z.ZodOptional<z.ZodEnum<{
433
- soft: "soft";
434
433
  balanced: "balanced";
434
+ soft: "soft";
435
435
  strong: "strong";
436
436
  }>>;
437
437
  }, z.core.$strict>, z.ZodObject<{
438
438
  kind: z.ZodLiteral<"neutral-scrim">;
439
439
  intensity: z.ZodOptional<z.ZodEnum<{
440
- soft: "soft";
441
440
  balanced: "balanced";
441
+ soft: "soft";
442
442
  strong: "strong";
443
443
  }>>;
444
444
  }, z.core.$strict>, z.ZodObject<{
445
445
  kind: z.ZodLiteral<"neutral-wash">;
446
446
  intensity: z.ZodOptional<z.ZodEnum<{
447
- soft: "soft";
448
447
  balanced: "balanced";
448
+ soft: "soft";
449
449
  strong: "strong";
450
450
  }>>;
451
451
  }, z.core.$strict>, z.ZodObject<{
452
452
  kind: z.ZodLiteral<"solid-panel">;
453
453
  intensity: z.ZodOptional<z.ZodEnum<{
454
- soft: "soft";
455
454
  balanced: "balanced";
455
+ soft: "soft";
456
456
  strong: "strong";
457
457
  }>>;
458
458
  }, z.core.$strict>], "kind">>;
@@ -1,6 +1,6 @@
1
1
  import type { BlockAppearanceDesign, BlockAppearanceOptionGroup } from './appearancePresets';
2
2
  import type { BlockDesignMetadata, BlockLayoutDesignProfile } from './blockFlow';
3
- import { type PageDesignIntent } from './pageDesignIntent';
3
+ import { type PageDesignDecisions } from './pageDesignIntent';
4
4
  import { type AppearancePresetId, type BlockDesignCapability, type BoundaryOptionId, type DesignBlockId, type DesignBoundaryId, type LayoutVariantKey, type NonEmptyReadonlyArray, type PageFlowPresetId, type SiteStyleId, type UnsupportedBlockDesignCapabilityReason } from './types';
5
5
  import { type BoundaryOption } from './sectionTransitions';
6
6
  export { boundaryOptions, type BoundaryOption } from './sectionTransitions';
@@ -163,7 +163,8 @@ export declare const pageFlowPresets: readonly [{
163
163
  readonly defaultBoundaryOptionId: BoundaryOptionId;
164
164
  }];
165
165
  export declare function buildPageDesignEditorReadModel<TBlockId extends DesignBlockId>(input: Readonly<{
166
- intent: PageDesignIntent<TBlockId>;
166
+ siteStyleId: SiteStyleId;
167
+ intent: PageDesignDecisions<TBlockId>;
167
168
  blocks: readonly PageDesignEditorBlockInput<TBlockId>[];
168
169
  }>): PageDesignEditorReadModel<TBlockId>;
169
170
  export declare function resolveVisiblePromotedFieldPathsForEditorBlock(input: Readonly<{
@@ -43,6 +43,8 @@ export type PageDesignIntent<TBlockId extends DesignBlockId = DesignBlockId> = R
43
43
  blockLookPins: readonly PageDesignBlockLookPin<TBlockId>[];
44
44
  boundaryPins: readonly PageDesignBoundaryPin<TBlockId>[];
45
45
  }>;
46
+ /** Page-owned decisions consumed by compilers; site style is supplied separately. */
47
+ export type PageDesignDecisions<TBlockId extends DesignBlockId = DesignBlockId> = Omit<PageDesignIntent<TBlockId>, 'siteStyleId'>;
46
48
  export type PageDesignBlockDescriptor<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
47
49
  blockId: TBlockId;
48
50
  blockKind: string;
@@ -110,6 +112,11 @@ export type PageDesignIntentUpdate<TBlockId extends DesignBlockId = DesignBlockI
110
112
  intent: PageDesignIntent<TBlockId>;
111
113
  issues: readonly PageDesignIntentIssue<TBlockId>[];
112
114
  }>;
115
+ /**
116
+ * Site style is site-owned authority. Page design snapshots retain pins and
117
+ * flow choices, but must not keep resolving against a superseded site style.
118
+ */
119
+ export declare function rebasePageDesignIntentToSiteStyle<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, siteStyleId: SiteStyleId): PageDesignIntent<TBlockId>;
113
120
  export type PageDesignDuplicateBlockMapping<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
114
121
  sourceBlockId: TBlockId;
115
122
  targetBlockId: TBlockId;
@@ -148,8 +155,8 @@ export declare const pageDesignBoundaryTreatmentSchema: z.ZodDiscriminatedUnion<
148
155
  expansive: "expansive";
149
156
  }>;
150
157
  curve: z.ZodEnum<{
151
- soft: "soft";
152
158
  spacious: "spacious";
159
+ soft: "soft";
153
160
  expansive: "expansive";
154
161
  }>;
155
162
  }, z.core.$strict>, z.ZodObject<{
@@ -206,8 +213,8 @@ export declare const pageDesignUserPinnedBoundaryTreatmentChoiceSchema: z.ZodObj
206
213
  expansive: "expansive";
207
214
  }>;
208
215
  curve: z.ZodEnum<{
209
- soft: "soft";
210
216
  spacious: "spacious";
217
+ soft: "soft";
211
218
  expansive: "expansive";
212
219
  }>;
213
220
  }, z.core.$strict>, z.ZodObject<{
@@ -277,8 +284,8 @@ export declare const pageDesignBoundaryPinSchema: z.ZodObject<{
277
284
  expansive: "expansive";
278
285
  }>;
279
286
  curve: z.ZodEnum<{
280
- soft: "soft";
281
287
  spacious: "spacious";
288
+ soft: "soft";
282
289
  expansive: "expansive";
283
290
  }>;
284
291
  }, z.core.$strict>, z.ZodObject<{
@@ -389,8 +396,8 @@ export declare const pageDesignIntentV2Schema: z.ZodObject<{
389
396
  expansive: "expansive";
390
397
  }>;
391
398
  curve: z.ZodEnum<{
392
- soft: "soft";
393
399
  spacious: "spacious";
400
+ soft: "soft";
394
401
  expansive: "expansive";
395
402
  }>;
396
403
  }, z.core.$strict>, z.ZodObject<{
@@ -441,8 +448,8 @@ export declare function parsePageDesignIntent(value: unknown, options?: ParsePag
441
448
  export declare function normalizeLegacyPageDesignIntent<TBlockId extends DesignBlockId>(intent: LegacyPageDesignIntent<TBlockId>): PageDesignIntent<TBlockId>;
442
449
  export declare function autoDesignChoice(): PageDesignAutoChoice;
443
450
  export declare function userPinnedDesignChoice<TValue>(value: TValue): PageDesignUserPinnedChoice<TValue>;
444
- export declare function resolvePageDesignBlockLookChoice<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, blockId: TBlockId): PageDesignChoice<AppearancePresetId>;
445
- export declare function resolvePageDesignBoundaryChoice<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, previousBlockId: TBlockId, nextBlockId: TBlockId): PageDesignChoice<SectionBoundaryTreatment>;
451
+ export declare function resolvePageDesignBlockLookChoice<TBlockId extends DesignBlockId>(intent: PageDesignDecisions<TBlockId>, blockId: TBlockId): PageDesignChoice<AppearancePresetId>;
452
+ export declare function resolvePageDesignBoundaryChoice<TBlockId extends DesignBlockId>(intent: PageDesignDecisions<TBlockId>, previousBlockId: TBlockId, nextBlockId: TBlockId): PageDesignChoice<SectionBoundaryTreatment>;
446
453
  export declare function buildBoundaryPin<TBlockId extends DesignBlockId>(previousBlockId: TBlockId, nextBlockId: TBlockId, choice: PageDesignUserPinnedChoice<SectionBoundaryTreatment>): PageDesignBoundaryPin<TBlockId>;
447
454
  export declare function reducePageDesignIntentForStructureEvent<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, event: PageDesignStructureEvent<TBlockId>): PageDesignIntentUpdate<TBlockId>;
448
455
  export declare function reducePageDesignIntentForUserAction<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, action: PageDesignUserAction<TBlockId>): PageDesignIntent<TBlockId>;
@@ -5,14 +5,35 @@ import type { CompleteResolvedPaletteSelection } from '../palette/resolveSelecti
5
5
  import { type RuntimeStyleWriteResultForFields, type StyleAuthority } from './designState';
6
6
  import { type ContentFrameIntent, type BlockCompositionIntent, type EyebrowTreatment, type FlushFrameTreatment, type DesignBoundaryId, type PanelFrameTreatment, type ResolvedBlockDesignPlan, type ResolvedPageDesignPlan, type SiteStyleItemSurfaceIntent, type SiteStyleSectionTransitionIntent, type SiteStyleSurfaceIntent, type ThemeTokenRecipes } from './types';
7
7
  import { type SectionBoundaryRuntimeMetrics } from './sectionTransitions';
8
- import type { ThemeColorToken } from '../tokens';
8
+ import { type ThemeColorToken } from '../tokens';
9
+ import { type GradientPresetId } from '../gradients';
9
10
  export type SemanticSpacing = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable' | 'spacious';
10
11
  export type SectionPaddingX = 'normal' | 'none';
11
- type SectionForegroundRuntimeTokens = Pick<NonNullable<SectionSurfaceRuntimeRule['background']>, 'textColor' | 'headingColor' | 'linkColor' | 'supportingColor'>;
12
- export type SectionSurfaceRuntimeRule = Readonly<{
13
- background?: NonNullable<SectionStylesOverride['background']>;
12
+ type SectionBackgroundOverride = NonNullable<SectionStylesOverride['background']>;
13
+ type SectionForegroundRuntimeTokenKey = 'textColor' | 'headingColor' | 'linkColor' | 'supportingColor';
14
+ export type SectionForegroundRuntimeTokens = {
15
+ readonly [TKey in SectionForegroundRuntimeTokenKey]: ThemeColorToken;
16
+ };
17
+ export declare function defineSectionForegroundRuntimeTokens(input: Readonly<Record<SectionForegroundRuntimeTokenKey, unknown>>): SectionForegroundRuntimeTokens;
18
+ type NonGradientSectionRuntimeBackground = Omit<SectionBackgroundOverride, 'type' | 'gradient' | 'gradientPresetId'> & Readonly<{
19
+ type?: 'color' | 'image';
20
+ gradient?: never;
21
+ gradientPresetId?: never;
22
+ }>;
23
+ type GradientSectionRuntimeBackground = Readonly<{
24
+ type: 'gradient';
25
+ gradientPresetId: GradientPresetId;
26
+ opacity?: number;
27
+ }>;
28
+ type NonGradientSectionSurfaceRuntimeRule = Readonly<{
29
+ background?: NonGradientSectionRuntimeBackground;
14
30
  foreground?: Partial<SectionForegroundRuntimeTokens>;
15
31
  }>;
32
+ type GradientSectionSurfaceRuntimeRule = Readonly<{
33
+ background: GradientSectionRuntimeBackground;
34
+ foreground: SectionForegroundRuntimeTokens;
35
+ }>;
36
+ export type SectionSurfaceRuntimeRule = NonGradientSectionSurfaceRuntimeRule | GradientSectionSurfaceRuntimeRule;
16
37
  export type DesignRuntimeRules = Readonly<{
17
38
  sectionSurfaces: Readonly<Record<SiteStyleSurfaceIntent, SectionSurfaceRuntimeRule>>;
18
39
  defaultEyebrowTreatment?: EyebrowTreatment;
@@ -150,10 +171,10 @@ export declare const defaultDesignRuntimeRules: {
150
171
  };
151
172
  readonly 'hero-image': {
152
173
  readonly background: {
153
- readonly textColor?: string | null | undefined;
154
- readonly headingColor?: string | null | undefined;
155
- readonly linkColor?: string | null | undefined;
156
- readonly supportingColor?: string | null | undefined;
174
+ readonly textColor: string;
175
+ readonly headingColor: string;
176
+ readonly linkColor: string;
177
+ readonly supportingColor: string;
157
178
  readonly type: "image";
158
179
  readonly opacity: 1;
159
180
  readonly position: "center center";
@@ -28,9 +28,9 @@ export declare const styleTagsSchema: z.ZodObject<{
28
28
  era: z.ZodOptional<z.ZodEnum<{
29
29
  editorial: "editorial";
30
30
  modern: "modern";
31
- retro: "retro";
32
- technical: "technical";
33
31
  organic: "organic";
32
+ technical: "technical";
33
+ retro: "retro";
34
34
  }>>;
35
35
  }, z.core.$strip>;
36
36
  export type StyleTone = (typeof STYLE_AXIS_VALUES.tone)[number];