@riverbankcms/sdk 0.130.0 → 0.130.2

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 (244) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/README.md +1 -1
  3. package/dist/{PreviewEditorSidebar-DiEpbOdw.mjs → PreviewEditorSidebar-BY-1QdE2.mjs} +18 -15
  4. package/dist/{PreviewEditorUI-C6MvxnIa.mjs → PreviewEditorUI-BS34jI9_.mjs} +3 -3
  5. package/dist/{PreviewQueryProvider-C2rnoPz6.mjs → PreviewQueryProvider-BD0kOjtI.mjs} +1 -1
  6. package/dist/{SdkPreviewModeRuntime-DRXA_m5L.mjs → SdkPreviewModeRuntime-B1pWnhu-.mjs} +48 -21
  7. package/dist/{SiteChromeCustomizeContext-BTHdv5_-.mjs → SiteChromeCustomizeContext-BhUG_72i.mjs} +6180 -5076
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +309 -32
  9. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +969 -112
  10. package/dist/_dts/api/src/accountApi.d.ts +213 -0
  11. package/dist/_dts/api/src/accountEndpointDefinitions.d.ts +30 -0
  12. package/dist/_dts/api/src/accountEndpoints.d.ts +254 -0
  13. package/dist/_dts/api/src/apiCallParams.d.ts +60 -0
  14. package/dist/_dts/api/src/bookingConfig.d.ts +10 -20
  15. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +4 -5
  16. package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +15 -0
  17. package/dist/_dts/api/src/bookingSettingsSections.d.ts +9 -0
  18. package/dist/_dts/api/src/bookingVerticals.d.ts +2 -2
  19. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +2 -0
  20. package/dist/_dts/api/src/endpoints.d.ts +1253 -1209
  21. package/dist/_dts/api/src/event-destination-policy.d.ts +1 -1
  22. package/dist/_dts/api/src/eventManagementContracts.d.ts +83 -7
  23. package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +26 -0
  24. package/dist/_dts/api/src/eventSeriesPresentationPreset.d.ts +12 -0
  25. package/dist/_dts/api/src/index.d.ts +11 -3
  26. package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
  27. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -0
  28. package/dist/_dts/api/src/oauth.d.ts +8 -0
  29. package/dist/_dts/api/src/preview-auth.d.ts +26 -0
  30. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +5 -5
  31. package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +0 -1
  32. package/dist/_dts/api/src/sdk-event-upsert.d.ts +2 -0
  33. package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +48 -0
  34. package/dist/_dts/api/src/sdkContracts.d.ts +5 -13
  35. package/dist/_dts/api/src/sdkEventCategoryContracts.d.ts +9 -0
  36. package/dist/_dts/api/src/sdkThemeWire.d.ts +40 -8
  37. package/dist/_dts/api/src/settings/permissions.d.ts +2 -2
  38. package/dist/_dts/api/src/siteApiKeyEndpointDefinitions.d.ts +66 -0
  39. package/dist/_dts/api/src/siteInfrastructure.d.ts +3 -3
  40. package/dist/_dts/api/src/siteOperations.d.ts +1 -1
  41. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +12 -4
  42. package/dist/_dts/api/src/types.d.ts +7 -59
  43. package/dist/_dts/block-form/src/client/index.d.ts +15 -23
  44. package/dist/_dts/block-form/src/index.d.ts +23 -22
  45. package/dist/_dts/blocks/src/primitives/layout/Grid.d.ts +18 -1
  46. package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1 -0
  47. package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -1
  48. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +61 -0
  49. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +24 -22
  50. package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +25 -1
  51. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +7 -30
  52. package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +0 -1
  53. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +4 -63
  54. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +1 -3
  55. package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +13 -1
  56. package/dist/_dts/blocks/src/system/fields/gridLayout.d.ts +20 -0
  57. package/dist/_dts/blocks/src/system/node/fragments/classNameBinding.d.ts +6 -1
  58. package/dist/_dts/blocks/src/system/node/fragments/styledCard.d.ts +31 -0
  59. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +4 -0
  60. package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -1
  61. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +0 -1
  62. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +4 -2
  63. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +24 -8
  64. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +8 -0
  65. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.validationErrors.d.ts +17 -0
  66. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +1 -1
  67. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +1 -1
  68. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
  69. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +42 -0
  70. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +4 -1
  71. package/dist/_dts/blocks/src/system/runtime/shared/components/FeedbackMessage.d.ts +17 -1
  72. package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -1
  73. package/dist/_dts/blocks/src/system/spacing.d.ts +1 -1
  74. package/dist/_dts/blocks/src/system/transforms/registry/_utils/boxStyleClassNames.d.ts +90 -0
  75. package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +4 -0
  76. package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +26 -0
  77. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +4 -37
  78. package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -2
  79. package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +6 -6
  80. package/dist/_dts/content-model/src/content-types/builtins.d.ts +6 -6
  81. package/dist/_dts/core/src/branded.d.ts +4 -0
  82. package/dist/_dts/core/src/event-page-surface-subject.d.ts +25 -4
  83. package/dist/_dts/core/src/index.d.ts +3 -0
  84. package/dist/_dts/core/src/public-event-booking-availability.d.ts +8 -0
  85. package/dist/_dts/core/src/secret.d.ts +44 -0
  86. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +341 -0
  87. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +2 -1
  88. package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -2
  89. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +2 -2
  90. package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +1 -1
  91. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +1 -1
  92. package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +1 -1
  93. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +1 -1
  94. package/dist/_dts/editor-blocks/src/block-editor/preparedManifest.d.ts +1 -1
  95. package/dist/_dts/editor-blocks/src/blockPayload.d.ts +1 -1
  96. package/dist/_dts/editor-blocks/src/index.d.ts +2 -2
  97. package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -2
  98. package/dist/_dts/editor-blocks/src/widgets/button/ButtonField.d.ts +1 -1
  99. package/dist/_dts/editor-blocks/src/widgets/button/ButtonVariantField.d.ts +1 -1
  100. package/dist/_dts/editor-blocks/src/widgets/button/index.d.ts +1 -1
  101. package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeSelectField.d.ts +1 -1
  102. package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerField.d.ts +1 -1
  103. package/dist/_dts/editor-blocks/src/widgets/entry-picker/index.d.ts +1 -1
  104. package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
  105. package/dist/_dts/editor-blocks/src/widgets/inline-text/InlineTextField.d.ts +1 -1
  106. package/dist/_dts/editor-blocks/src/widgets/link/LinkField.d.ts +2 -2
  107. package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewGroupOrderField.d.ts +1 -1
  108. package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +2 -2
  109. package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
  110. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.d.ts +1 -1
  111. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +1 -1
  112. package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +1 -1
  113. package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +1 -1
  114. package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +1 -1
  115. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -0
  116. package/dist/_dts/preview-next/src/client/preview/PreviewSiteFontStorageContext.d.ts +6 -0
  117. package/dist/_dts/preview-next/src/client/preview/siteFontPreview.d.ts +5 -0
  118. package/dist/_dts/preview-next/src/client/sdk/contentStorage.d.ts +10 -0
  119. package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -1
  120. package/dist/_dts/preview-next/src/index.d.ts +1 -0
  121. package/dist/_dts/preview-next/src/keepAlive.d.ts +3 -5
  122. package/dist/_dts/preview-next/src/refresh-contract.d.ts +1 -0
  123. package/dist/_dts/preview-next/src/route-contract.d.ts +7 -0
  124. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  125. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +61 -39
  126. package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
  127. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +1 -1
  128. package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
  129. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +9 -1
  130. package/dist/_dts/sdk/src/theme-bridge/types.d.ts +4 -2
  131. package/dist/_dts/sdk/src/version.d.ts +1 -1
  132. package/dist/_dts/theme-core/src/cards/core.d.ts +54 -10
  133. package/dist/_dts/theme-core/src/cards/decorations.d.ts +33 -0
  134. package/dist/_dts/theme-core/src/cards/generateDefaultCardSystem.d.ts +7 -2
  135. package/dist/_dts/theme-core/src/cards/index.d.ts +3 -0
  136. package/dist/_dts/theme-core/src/cards/openCardVariant.d.ts +24 -0
  137. package/dist/_dts/theme-core/src/cards/roles.d.ts +38 -0
  138. package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +53 -8
  139. package/dist/_dts/theme-core/src/cards/types.d.ts +489 -21
  140. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  141. package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +59 -0
  142. package/dist/_dts/theme-core/src/header/paintTargets.d.ts +2 -2
  143. package/dist/_dts/theme-core/src/header/scrollTreatment.d.ts +3 -2
  144. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +12 -135
  145. package/dist/_dts/theme-core/src/palette/utils/contrast.d.ts +1 -0
  146. package/dist/_dts/theme-core/src/palette/utils/opaqueSurfaceColor.d.ts +6 -0
  147. package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -1
  148. package/dist/_dts/theme-core/src/schema.d.ts +301 -94
  149. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +84 -102
  150. package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +12 -1
  151. package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +9 -4
  152. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +0 -20
  153. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +84 -102
  154. package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +48 -0
  155. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +21 -385
  156. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +10 -18
  157. package/dist/_dts/theme-core/src/site-styles/headerLayoutTypes.d.ts +2 -4
  158. package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +2 -9
  159. package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +0 -2
  160. package/dist/_dts/theme-core/src/site-styles/index.d.ts +5 -0
  161. package/dist/_dts/theme-core/src/site-styles/pageDesignAppearanceAvailability.d.ts +3 -0
  162. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +22 -0
  163. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +9 -8
  164. package/dist/_dts/theme-core/src/site-styles/pageDesignIntentEquality.d.ts +3 -0
  165. package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +19 -0
  166. package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +9 -0
  167. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +1 -62
  168. package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +13 -12
  169. package/dist/_dts/theme-core/src/site-styles/types.d.ts +50 -39
  170. package/dist/_dts/theme-core/src/siteChromePlanning.d.ts +9 -9
  171. package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +1 -0
  172. package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
  173. package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +39 -0
  174. package/dist/_dts/ui/src/navigation-tabs.d.ts +3 -2
  175. package/dist/client/{CourseRegistrationWizard-Bvtz9G9g.mjs → CourseRegistrationWizard-DGW9F0SQ.mjs} +7 -7
  176. package/dist/client/{DiscountCodeDisclosure-Ur-Xx1U_.mjs → DiscountCodeDisclosure-BPZ-yfGI.mjs} +1 -1
  177. package/dist/client/{EventCombined.client-EhscD4U6.mjs → EventCombined.client-Cjt3kKYR.mjs} +4 -4
  178. package/dist/client/{EventListing.client-Bn26cFTY.mjs → EventListing.client-DY9dn6Fh.mjs} +2 -2
  179. package/dist/client/{FeedbackMessage-ByMrs3cr.mjs → FeedbackMessage-CtLvvS_d.mjs} +15 -3
  180. package/dist/client/{LeafletStaticMap-BUw9Ntzr.mjs → LeafletStaticMap--2c61XYn.mjs} +1 -1
  181. package/dist/client/{StepIndicator-BfbdiVQI.mjs → StepIndicator-CLjQhkDb.mjs} +3 -3
  182. package/dist/client/{accordion-CjIeof73.mjs → accordion-_boYwHHi.mjs} +1 -1
  183. package/dist/client/{bookingForm-DwEeovf_.mjs → bookingForm--AqEfyBX.mjs} +56 -39
  184. package/dist/client/bookings.mjs +393 -192
  185. package/dist/client/{carousel-BMrfgOba.mjs → carousel-CVI2dqZr.mjs} +2 -2
  186. package/dist/client/{carousel.client-CpwTUhIo.mjs → carousel.client-59G_WMr4.mjs} +1 -1
  187. package/dist/client/{cart-rXEdxTdb.mjs → cart-DR6IiPz9.mjs} +3 -3
  188. package/dist/client/{checkout-D3JlSzh3.mjs → checkout-CsrGAfQt.mjs} +3 -3
  189. package/dist/client/client.mjs +4524 -3512
  190. package/dist/client/{colorStyles-BWpj_h4C.mjs → colorStyles-CrxJrPjJ.mjs} +277 -1
  191. package/dist/client/{context-CJz1Vlsz.mjs → context-B83PiNzm.mjs} +6 -21
  192. package/dist/client/{courseRegistration-DO5XvMAA.mjs → courseRegistration-aNJVaLa3.mjs} +3 -3
  193. package/dist/client/{eventCalendar-DO6rTqCn.mjs → eventCalendar-OZ7h59VN.mjs} +6 -6
  194. package/dist/client/{eventCombined-bJ3i_ovU.mjs → eventCombined-BbJ6bFKz.mjs} +3 -3
  195. package/dist/client/{eventDetails-CCbrXE7o.mjs → eventDetails-BLyUBiCT.mjs} +3 -3
  196. package/dist/client/{eventListing-Bdlt9YTm.mjs → eventListing-DuP1yhBS.mjs} +3 -3
  197. package/dist/client/{eventRegistration-B02lt6iY.mjs → eventRegistration-BXyECPa-.mjs} +11 -12
  198. package/dist/client/{form-DrUBAAox.mjs → form-BA4t3kKU.mjs} +4 -4
  199. package/dist/client/{headerSection-MzqvHL6T.mjs → headerSection-CpNaJxhW.mjs} +2 -2
  200. package/dist/client/hooks.mjs +1967 -2059
  201. package/dist/client/{locationMap-DG8BxTBm.mjs → locationMap-3HGMCL7_.mjs} +3 -3
  202. package/dist/client/{media-CNE1Z-wb.mjs → media-BOHuueS5.mjs} +16 -4
  203. package/dist/client/{newsletterForm-BzO-Td3p.mjs → newsletterForm-C2s6Mw67.mjs} +4 -4
  204. package/dist/client/{pricing-NgK7ozkg.mjs → pricing-BiqIMgZk.mjs} +1 -1
  205. package/dist/client/{productDetail-CfQ7rhVK.mjs → productDetail-C9joWhdE.mjs} +3 -3
  206. package/dist/client/{productList-C23rOLUi.mjs → productList-CjzdU3pB.mjs} +3 -3
  207. package/dist/client/{propsDecoder-CAZdhwjs.mjs → propsDecoder-CBPGXEYX.mjs} +395 -402
  208. package/dist/client/rendering/client.mjs +2004 -2856
  209. package/dist/client/rendering/islands.mjs +20 -20
  210. package/dist/client/rendering.mjs +4605 -3496
  211. package/dist/client/{scrollToBlock-DSSqVQr1.mjs → scrollToBlock-DZ73aEX6.mjs} +1 -1
  212. package/dist/client/{shop-BMToKLK7.mjs → shop-CQRai7hj.mjs} +7 -7
  213. package/dist/client/{shop-commerce-DB4JRKmp.mjs → shop-commerce-hP9UboOx.mjs} +8 -8
  214. package/dist/client/{shop-commerce-store-BOqSIOuc.mjs → shop-commerce-store-DiD5a32e.mjs} +1 -1
  215. package/dist/client/{shopShared-B6SK9DZv.mjs → shopShared-DP8DXTkF.mjs} +5 -5
  216. package/dist/client/{useEventFilters-CULOa4nB.mjs → useEventFilters-pF_OJNQP.mjs} +137 -81
  217. package/dist/client/{usePolling-BGG_8-jl.mjs → usePolling-Cls91SD2.mjs} +2 -2
  218. package/dist/preview-next/before-render.mjs +192 -108
  219. package/dist/preview-next/client/runtime.mjs +4 -4
  220. package/dist/preview-next/keepAlive.mjs +7406 -29
  221. package/dist/preview-next/middleware.mjs +186 -107
  222. package/dist/{previewAuthStore-_GXFRg2W.mjs → previewAuthStore-CX1C_KJ4.mjs} +185 -107
  223. package/dist/{sdk-runtime-hhSOMShR.mjs → sdk-runtime-5CcPAI14.mjs} +2 -2
  224. package/dist/{separator-flRaFc14.mjs → separator-BXlYN_gr.mjs} +1 -1
  225. package/dist/server/components.mjs +6363 -4998
  226. package/dist/server/config-validation.mjs +1967 -2059
  227. package/dist/server/config.mjs +1967 -2059
  228. package/dist/server/data.mjs +1967 -2059
  229. package/dist/server/index.mjs +186 -108
  230. package/dist/server/next.mjs +6553 -5285
  231. package/dist/server/page-converter.mjs +1031 -1844
  232. package/dist/server/prebuild.mjs +1 -1
  233. package/dist/server/rendering/server.mjs +3352 -3006
  234. package/dist/server/rendering.mjs +6289 -4924
  235. package/dist/server/routing.mjs +1906 -1036
  236. package/dist/server/server.mjs +1976 -2165
  237. package/dist/server/theme-bridge.mjs +949 -670
  238. package/dist/server/theme.mjs +252 -51
  239. package/dist/styles/index.css +295 -334
  240. package/package.json +3 -2
  241. package/dist/_dts/block-form/src/client/blockDraftSaveability.d.ts +0 -1
  242. package/dist/_dts/block-form/src/widgets/index.d.ts +0 -20
  243. package/dist/_dts/blocks/src/system/runtime/api/requestBody.d.ts +0 -7
  244. package/dist/client/clsx-DgIEfj3H.mjs +0 -16
@@ -0,0 +1,59 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The header variants the system actually renders.
4
+ *
5
+ * Each one has a layout row in the site-header block and a paint target in
6
+ * `paintTargets.ts`. This is the canonical list: the block transform's variant
7
+ * class allowlist and the AI theme generator's enum both derive from it, so
8
+ * they cannot drift.
9
+ */
10
+ export declare const headerVariantValues: readonly ["classic", "centered", "floating"];
11
+ export declare const headerVariantSchema: z.ZodEnum<{
12
+ classic: "classic";
13
+ centered: "centered";
14
+ floating: "floating";
15
+ }>;
16
+ export type HeaderVariant = z.infer<typeof headerVariantSchema>;
17
+ /**
18
+ * Header variant spellings that were once authorable but no longer name a
19
+ * layout of their own, and the variant they read as now.
20
+ *
21
+ * `transparent` was an overlay header with no CSS of its own: everything it
22
+ * did (transparent root background, overlay content flow) is what `floating`
23
+ * already does, and it had zero persisted usage in production or locally when
24
+ * it was retired. It survives here as a one-boundary alias so a theme authored
25
+ * against the old vocabulary still parses.
26
+ *
27
+ * This matters because the theme schema is strict and has no per-field
28
+ * `.catch()`: an out-of-enum variant fails `themeSchema.safeParse` for the
29
+ * *whole* theme, which silently swaps the site's theme for
30
+ * `modernMinimalTheme`. Aliasing here keeps that from happening.
31
+ */
32
+ export declare const legacyHeaderVariants: {
33
+ readonly transparent: "floating";
34
+ };
35
+ export type LegacyHeaderVariantValue = keyof typeof legacyHeaderVariants;
36
+ /**
37
+ * The header variant boundary for themes that go through `themeSchema`:
38
+ * canonical variants pass through, legacy spellings normalize to the variant
39
+ * they meant, everything else fails the parse.
40
+ *
41
+ * Deliberately an enum plus a transform rather than a `z.preprocess`, so the
42
+ * schema's *input* type stays an accurate union (the legacy spelling is still
43
+ * accepted on the wire) instead of widening to `unknown`. `SdkThemeWire` in
44
+ * `@riverbankcms/api` is `z.input<typeof themeSchema>`, so a widened input here
45
+ * would leak straight into a public type.
46
+ *
47
+ * Not every read of a persisted theme goes through the schema:
48
+ * `resolveRuntimeTheme` in
49
+ * `apps/dashboard/src/server/services/sites/runtimeSiteResponse.ts` returns the
50
+ * raw database JSON asserted as `Theme` with no parse, so a theme still
51
+ * carrying a legacy spelling reaches the theme editor un-aliased. That gap
52
+ * predates this alias and is harmless while persisted usage is zero.
53
+ */
54
+ export declare const headerVariantWithLegacyAliasSchema: z.ZodPipe<z.ZodEnum<{
55
+ classic: "classic";
56
+ centered: "centered";
57
+ floating: "floating";
58
+ transparent: "transparent";
59
+ }>, z.ZodTransform<"classic" | "centered" | "floating", "classic" | "centered" | "floating" | "transparent">>;
@@ -1,4 +1,4 @@
1
- type HeaderLayoutVariant = 'classic' | 'centered' | 'transparent' | 'floating';
1
+ import type { HeaderVariant } from './legacyHeaderVariant';
2
2
  type ElementBoxPaintTarget = Readonly<{
3
3
  kind: 'element-box';
4
4
  selector: string;
@@ -26,6 +26,6 @@ type ViewportBandPaintTarget = Readonly<{
26
26
  }>;
27
27
  export type HeaderPaintTarget = ElementBoxPaintTarget | ViewportBandPaintTarget;
28
28
  /** Resolve the element that owns the visible header surface for each layout. */
29
- export declare function getHeaderPaintTargets(variant: HeaderLayoutVariant, themeId: string, state?: 'base' | 'scrolled'): readonly HeaderPaintTarget[];
29
+ export declare function getHeaderPaintTargets(variant: HeaderVariant, themeId: string, state?: 'base' | 'scrolled'): readonly HeaderPaintTarget[];
30
30
  export declare function renderHeaderPaintTargetRules(targets: readonly HeaderPaintTarget[], rules: readonly string[]): string;
31
31
  export {};
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import type { HeaderVariant } from './legacyHeaderVariant';
2
3
  export declare const headerScrollTreatmentSchema: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3
4
  kind: z.ZodLiteral<"contrast-glass">;
4
5
  backgroundTone: z.ZodEnum<{
@@ -7,5 +8,5 @@ export declare const headerScrollTreatmentSchema: z.ZodOptional<z.ZodDiscriminat
7
8
  }>;
8
9
  }, z.core.$strip>], "kind">>;
9
10
  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;
11
+ export declare function generateMobileOverlayBackdropFilterFix(themeId: string, variant: HeaderVariant): string;
12
+ export declare function generateHeaderScrollTreatmentStyles(treatment: HeaderScrollTreatment, themeId: string, variant: HeaderVariant, surfaceRules?: readonly string[]): string;
@@ -125,7 +125,7 @@ export declare const mockThemes: {
125
125
  };
126
126
  corners: "soft" | "square" | "rounded" | "pill";
127
127
  header: {
128
- variant: "classic" | "centered" | "transparent" | "floating";
128
+ variant: "classic" | "centered" | "floating";
129
129
  positioning: "fixed" | "static" | "sticky";
130
130
  shrinkOnScroll: boolean;
131
131
  maxWidth: "full" | "container";
@@ -1864,48 +1864,7 @@ export declare const mockThemes: {
1864
1864
  })[];
1865
1865
  } | undefined;
1866
1866
  } | undefined;
1867
- cards?: {
1868
- variants: {
1869
- id: string;
1870
- name: string;
1871
- enabled: boolean;
1872
- priority: 1 | 3 | 2;
1873
- background: {
1874
- type: "solid";
1875
- colorToken: string;
1876
- } | {
1877
- type: "gradient";
1878
- fromToken: string;
1879
- toToken: string;
1880
- direction: "to-r" | "to-l" | "to-t" | "to-b" | "to-tr" | "to-tl" | "to-br" | "to-bl";
1881
- } | {
1882
- type: "transparent";
1883
- };
1884
- spacing: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy";
1885
- foregroundToken?: string | undefined;
1886
- shadow?: {
1887
- elevation: "medium" | "none" | "high" | "low";
1888
- softness: "crisp" | "soft" | "hard" | null;
1889
- position: "bottom" | "bottom-right";
1890
- } | undefined;
1891
- corners?: "soft" | "square" | "rounded" | "pill" | undefined;
1892
- cornerRadii?: {
1893
- topLeft?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
1894
- topRight?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
1895
- bottomLeft?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
1896
- bottomRight?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
1897
- } | undefined;
1898
- border?: {
1899
- widthClass: string;
1900
- colorToken: string;
1901
- } | undefined;
1902
- accentEdge?: {
1903
- edge: "left" | "right" | "bottom" | "top";
1904
- colorToken: string;
1905
- width: "medium" | "thin" | "thick" | "heavy";
1906
- } | undefined;
1907
- }[];
1908
- } | undefined;
1867
+ cards?: import("../../../blocks/src/index").CardSystem | undefined;
1909
1868
  accordions?: {
1910
1869
  background: {
1911
1870
  type: "solid";
@@ -2527,8 +2486,8 @@ export declare const mockThemes: {
2527
2486
  spacing?: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy" | null | undefined;
2528
2487
  raised?: boolean | null | undefined;
2529
2488
  rounded?: "full" | "none" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
2530
- treatment?: "accent-quote" | "editorial-rule" | "soft-panel" | "editorial-serif-quote" | "editorial-open" | "color-blocked" | null | undefined;
2531
- cardVariant?: "default" | "none" | "alternative" | null | undefined;
2489
+ role?: "open" | "default" | "none" | "alternative" | null | undefined;
2490
+ cardVariant?: "open" | "default" | "none" | "alternative" | null | undefined;
2532
2491
  } | null | undefined;
2533
2492
  } | undefined;
2534
2493
  }> | undefined;
@@ -2711,7 +2670,7 @@ export declare const mockThemes: {
2711
2670
  };
2712
2671
  corners: "soft" | "square" | "rounded" | "pill";
2713
2672
  header: {
2714
- variant: "classic" | "centered" | "transparent" | "floating";
2673
+ variant: "classic" | "centered" | "floating";
2715
2674
  positioning: "fixed" | "static" | "sticky";
2716
2675
  shrinkOnScroll: boolean;
2717
2676
  maxWidth: "full" | "container";
@@ -4450,48 +4409,7 @@ export declare const mockThemes: {
4450
4409
  })[];
4451
4410
  } | undefined;
4452
4411
  } | undefined;
4453
- cards?: {
4454
- variants: {
4455
- id: string;
4456
- name: string;
4457
- enabled: boolean;
4458
- priority: 1 | 3 | 2;
4459
- background: {
4460
- type: "solid";
4461
- colorToken: string;
4462
- } | {
4463
- type: "gradient";
4464
- fromToken: string;
4465
- toToken: string;
4466
- direction: "to-r" | "to-l" | "to-t" | "to-b" | "to-tr" | "to-tl" | "to-br" | "to-bl";
4467
- } | {
4468
- type: "transparent";
4469
- };
4470
- spacing: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy";
4471
- foregroundToken?: string | undefined;
4472
- shadow?: {
4473
- elevation: "medium" | "none" | "high" | "low";
4474
- softness: "crisp" | "soft" | "hard" | null;
4475
- position: "bottom" | "bottom-right";
4476
- } | undefined;
4477
- corners?: "soft" | "square" | "rounded" | "pill" | undefined;
4478
- cornerRadii?: {
4479
- topLeft?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
4480
- topRight?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
4481
- bottomLeft?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
4482
- bottomRight?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
4483
- } | undefined;
4484
- border?: {
4485
- widthClass: string;
4486
- colorToken: string;
4487
- } | undefined;
4488
- accentEdge?: {
4489
- edge: "left" | "right" | "bottom" | "top";
4490
- colorToken: string;
4491
- width: "medium" | "thin" | "thick" | "heavy";
4492
- } | undefined;
4493
- }[];
4494
- } | undefined;
4412
+ cards?: import("../../../blocks/src/index").CardSystem | undefined;
4495
4413
  accordions?: {
4496
4414
  background: {
4497
4415
  type: "solid";
@@ -5113,8 +5031,8 @@ export declare const mockThemes: {
5113
5031
  spacing?: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy" | null | undefined;
5114
5032
  raised?: boolean | null | undefined;
5115
5033
  rounded?: "full" | "none" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
5116
- treatment?: "accent-quote" | "editorial-rule" | "soft-panel" | "editorial-serif-quote" | "editorial-open" | "color-blocked" | null | undefined;
5117
- cardVariant?: "default" | "none" | "alternative" | null | undefined;
5034
+ role?: "open" | "default" | "none" | "alternative" | null | undefined;
5035
+ cardVariant?: "open" | "default" | "none" | "alternative" | null | undefined;
5118
5036
  } | null | undefined;
5119
5037
  } | undefined;
5120
5038
  }> | undefined;
@@ -5297,7 +5215,7 @@ export declare const mockThemes: {
5297
5215
  };
5298
5216
  corners: "soft" | "square" | "rounded" | "pill";
5299
5217
  header: {
5300
- variant: "classic" | "centered" | "transparent" | "floating";
5218
+ variant: "classic" | "centered" | "floating";
5301
5219
  positioning: "fixed" | "static" | "sticky";
5302
5220
  shrinkOnScroll: boolean;
5303
5221
  maxWidth: "full" | "container";
@@ -7036,48 +6954,7 @@ export declare const mockThemes: {
7036
6954
  })[];
7037
6955
  } | undefined;
7038
6956
  } | undefined;
7039
- cards?: {
7040
- variants: {
7041
- id: string;
7042
- name: string;
7043
- enabled: boolean;
7044
- priority: 1 | 3 | 2;
7045
- background: {
7046
- type: "solid";
7047
- colorToken: string;
7048
- } | {
7049
- type: "gradient";
7050
- fromToken: string;
7051
- toToken: string;
7052
- direction: "to-r" | "to-l" | "to-t" | "to-b" | "to-tr" | "to-tl" | "to-br" | "to-bl";
7053
- } | {
7054
- type: "transparent";
7055
- };
7056
- spacing: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy";
7057
- foregroundToken?: string | undefined;
7058
- shadow?: {
7059
- elevation: "medium" | "none" | "high" | "low";
7060
- softness: "crisp" | "soft" | "hard" | null;
7061
- position: "bottom" | "bottom-right";
7062
- } | undefined;
7063
- corners?: "soft" | "square" | "rounded" | "pill" | undefined;
7064
- cornerRadii?: {
7065
- topLeft?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
7066
- topRight?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
7067
- bottomLeft?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
7068
- bottomRight?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
7069
- } | undefined;
7070
- border?: {
7071
- widthClass: string;
7072
- colorToken: string;
7073
- } | undefined;
7074
- accentEdge?: {
7075
- edge: "left" | "right" | "bottom" | "top";
7076
- colorToken: string;
7077
- width: "medium" | "thin" | "thick" | "heavy";
7078
- } | undefined;
7079
- }[];
7080
- } | undefined;
6957
+ cards?: import("../../../blocks/src/index").CardSystem | undefined;
7081
6958
  accordions?: {
7082
6959
  background: {
7083
6960
  type: "solid";
@@ -7699,8 +7576,8 @@ export declare const mockThemes: {
7699
7576
  spacing?: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy" | null | undefined;
7700
7577
  raised?: boolean | null | undefined;
7701
7578
  rounded?: "full" | "none" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
7702
- treatment?: "accent-quote" | "editorial-rule" | "soft-panel" | "editorial-serif-quote" | "editorial-open" | "color-blocked" | null | undefined;
7703
- cardVariant?: "default" | "none" | "alternative" | null | undefined;
7579
+ role?: "open" | "default" | "none" | "alternative" | null | undefined;
7580
+ cardVariant?: "open" | "default" | "none" | "alternative" | null | undefined;
7704
7581
  } | null | undefined;
7705
7582
  } | undefined;
7706
7583
  }> | undefined;
@@ -1,3 +1,4 @@
1
+ export declare const ORDINARY_TEXT_MIN_CONTRAST_RATIO = 4.5;
1
2
  export declare function relativeLuminance(r: number, g: number, b: number): number;
2
3
  export declare function contrastRatio(hex1: string, hex2: string): number;
3
4
  export declare function raiseContrastText(bgHex: string, preferred: "light" | "dark"): string;
@@ -0,0 +1,6 @@
1
+ type Palette = Readonly<Record<string, string>>;
2
+ /** Resolve an opaque colour, compositing alpha against an explicit underlay. */
3
+ export declare function resolveOpaqueSurfaceHex(reference: string, palette: Palette, underlayReference?: string | null): string | null;
4
+ /** Resolve a colour reference only when it is already fully opaque. */
5
+ export declare function resolveConcreteColorHex(reference: string, palette: Palette): string | null;
6
+ export {};
@@ -28,7 +28,7 @@ export interface ThemeBridgeConfigMinimal {
28
28
  variants?: Array<'primary' | 'secondary' | 'outline' | 'ghost'>;
29
29
  };
30
30
  cards?: boolean | {
31
- variants?: Array<'default' | 'elevated' | 'outlined'>;
31
+ variants?: Array<'default' | 'alternative' | 'open' | 'elevated' | 'outlined'>;
32
32
  };
33
33
  inputs?: boolean;
34
34
  };