@riverbankcms/sdk 0.78.2 → 0.80.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 (230) hide show
  1. package/README.md +80 -0
  2. package/dist/PreviewEditorSidebar-QZG37QIF.mjs +2655 -0
  3. package/dist/{PreviewEditorUI-CS5P4N3P.mjs → PreviewEditorUI-AXIKSMZA.mjs} +27 -4
  4. package/dist/SdkPreviewModeRuntime-XE5M4UKM.mjs +8 -0
  5. package/dist/_dts/ai/src/contracts/proposals.d.ts +56 -0
  6. package/dist/_dts/api/src/endpoints.d.ts +79 -0
  7. package/dist/_dts/api/src/index.d.ts +6 -4
  8. package/dist/_dts/api/src/media.d.ts +8 -1
  9. package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
  10. package/dist/_dts/api/src/navigation/dashboardSiteNav.d.ts +8 -8
  11. package/dist/_dts/api/src/navigation/identity.d.ts +59 -0
  12. package/dist/_dts/api/src/navigation.d.ts +2 -0
  13. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +4 -0
  14. package/dist/_dts/api/src/sdkContracts.d.ts +1 -0
  15. package/dist/_dts/api/src/siteIcons.d.ts +128 -0
  16. package/dist/_dts/api/src/siteInfrastructure.d.ts +124 -0
  17. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +16 -0
  18. package/dist/_dts/api/src/siteOnboarding.d.ts +13 -0
  19. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +17 -1
  20. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +6 -1
  21. package/dist/_dts/api/src/types.d.ts +1 -1
  22. package/dist/_dts/api/src/webhooks.d.ts +239 -0
  23. package/dist/_dts/block-form/src/client/index.d.ts +2 -0
  24. package/dist/_dts/block-form/src/index.d.ts +2 -0
  25. package/dist/_dts/block-form/src/utils/evaluateVisibility.d.ts +2 -1
  26. package/dist/_dts/blocks/src/client/header.d.ts +1 -1
  27. package/dist/_dts/blocks/src/client.d.ts +12 -12
  28. package/dist/_dts/blocks/src/index.d.ts +5 -1
  29. package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +288 -288
  30. package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +288 -288
  31. package/dist/_dts/blocks/src/system/blocks/cart.d.ts +288 -288
  32. package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +288 -288
  33. package/dist/_dts/blocks/src/system/blocks/collection.d.ts +288 -288
  34. package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +2 -2
  35. package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -1
  36. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -1
  37. package/dist/_dts/blocks/src/system/blocks/faq.d.ts +294 -289
  38. package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +57 -0
  39. package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +4 -0
  40. package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +288 -288
  41. package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -0
  42. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
  43. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +22 -22
  44. package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +288 -288
  45. package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +288 -288
  46. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +288 -288
  47. package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +13 -1
  48. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +179 -0
  49. package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +4 -2
  50. package/dist/_dts/blocks/src/system/fragments/library/faqHeading.d.ts +1 -0
  51. package/dist/_dts/blocks/src/system/fragments/library/testimonialsCarousel.d.ts +10 -0
  52. package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +3 -1
  53. package/dist/_dts/blocks/src/system/icons/ids.d.ts +13 -0
  54. package/dist/_dts/blocks/src/system/icons/index.d.ts +6 -0
  55. package/dist/_dts/blocks/src/system/icons/presets.d.ts +4 -0
  56. package/dist/_dts/blocks/src/system/icons/registry.d.ts +18 -0
  57. package/dist/_dts/blocks/src/system/icons/semantic.d.ts +239 -0
  58. package/dist/_dts/blocks/src/system/icons/value.d.ts +94 -0
  59. package/dist/_dts/blocks/src/system/index.d.ts +1 -0
  60. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +4 -1
  61. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +23 -0
  62. package/dist/_dts/blocks/src/system/node/fragments/headingDecoration.d.ts +1 -4
  63. package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
  64. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -7
  65. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -3
  66. package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +10 -2
  67. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -5
  68. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.server.d.ts +2 -2
  69. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventSpotlight.d.ts +2 -2
  70. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +2 -2
  71. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventDetailModal.d.ts +2 -2
  72. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModals.d.ts +2 -2
  73. package/dist/_dts/blocks/src/system/runtime/nodes/feature-card-icon.d.ts +13 -0
  74. package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -2
  75. package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +3 -0
  76. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +9 -0
  77. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +14 -1
  78. package/dist/_dts/content-model/src/contentManifest.d.ts +3 -1
  79. package/dist/_dts/core/src/branded.d.ts +6 -0
  80. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +200 -3
  81. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +8 -1
  82. package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +8 -1
  83. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +8 -2
  84. package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +17 -0
  85. package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +42 -0
  86. package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +7 -1
  87. package/dist/_dts/editor-blocks/src/block-editor/featureCardIconActions.d.ts +82 -0
  88. package/dist/_dts/editor-blocks/src/index.d.ts +2 -0
  89. package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
  90. package/dist/_dts/media-core/src/fileDomain.d.ts +8 -1
  91. package/dist/_dts/media-editor/src/MediaEditor.d.ts +3 -2
  92. package/dist/_dts/media-react/src/components/MediaLibrary.d.ts +2 -1
  93. package/dist/_dts/media-react/src/components/MediaPickerMini.d.ts +2 -1
  94. package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +5 -1
  95. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +17 -0
  96. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +24 -0
  97. package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +34 -0
  98. package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -5
  99. package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +8 -1
  100. package/dist/_dts/preview-next/src/client/preview/PreviewBlockCustomizeSelectionContext.d.ts +20 -0
  101. package/dist/_dts/preview-next/src/client/preview/PreviewOpenEditorButton.d.ts +2 -0
  102. package/dist/_dts/preview-next/src/client/preview/SelectedBlockCustomizePanel.d.ts +13 -0
  103. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +3 -2
  104. package/dist/_dts/preview-next/src/client/preview/previewCustomizeEditorDraftPatch.d.ts +13 -0
  105. package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +6 -0
  106. package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +2 -0
  107. package/dist/_dts/preview-next/src/client/preview/storeTypes.d.ts +4 -0
  108. package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +3 -1
  109. package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +44 -0
  110. package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +11 -0
  111. package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +4 -0
  112. package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +1 -0
  113. package/dist/_dts/sdk/src/cli/sync/diff.d.ts +9 -0
  114. package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
  115. package/dist/_dts/sdk/src/client/management/types.d.ts +58 -0
  116. package/dist/_dts/sdk/src/client/management/webhooks.d.ts +3 -0
  117. package/dist/_dts/sdk/src/config/field-definitions.d.ts +3 -1
  118. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  119. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +24 -4
  120. package/dist/_dts/sdk/src/next/index.d.ts +1 -1
  121. package/dist/_dts/sdk/src/next/revalidate.d.ts +26 -5
  122. package/dist/_dts/sdk/src/next/static-params.d.ts +28 -3
  123. package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -1
  124. package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
  125. package/dist/_dts/sdk/src/version.d.ts +1 -1
  126. package/dist/_dts/sdk/src/webhooks/index.d.ts +1 -1
  127. package/dist/_dts/sdk/src/webhooks/verify.d.ts +6 -102
  128. package/dist/_dts/site-commands/src/commands.d.ts +3 -0
  129. package/dist/_dts/theme-core/src/accordions/siteStyleDefaults.d.ts +220 -0
  130. package/dist/_dts/theme-core/src/accordions/types.d.ts +45 -2
  131. package/dist/_dts/theme-core/src/blockOverrides.d.ts +8 -0
  132. package/dist/_dts/theme-core/src/blocks/types.d.ts +1 -1
  133. package/dist/_dts/theme-core/src/blocks/vars/testimonials.d.ts +4 -1
  134. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +1 -1
  135. package/dist/_dts/theme-core/src/cards/core.d.ts +20 -0
  136. package/dist/_dts/theme-core/src/cards/generateDefaultCardSystem.d.ts +6 -3
  137. package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +105 -0
  138. package/dist/_dts/theme-core/src/cards/types.d.ts +177 -0
  139. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  140. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +159 -21
  141. package/dist/_dts/theme-core/src/palette/variants/index.d.ts +15 -0
  142. package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +16 -0
  143. package/dist/_dts/theme-core/src/palette/variants/types.d.ts +1 -1
  144. package/dist/_dts/theme-core/src/schema.d.ts +451 -57
  145. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +86 -17
  146. package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +2 -3
  147. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +86 -17
  148. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +135 -3
  149. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +5 -5
  150. package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +20 -1
  151. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +8 -2
  152. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +286 -6
  153. package/dist/_dts/theme-core/src/site-styles/index.d.ts +2 -0
  154. package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +193 -0
  155. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +6 -12
  156. package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +2 -0
  157. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +10 -7
  158. package/dist/_dts/theme-core/src/site-styles/siteStyleThemeCompiler.d.ts +11 -0
  159. package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +2 -2
  160. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
  161. package/dist/_dts/theme-core/src/site-styles/testimonialQuotePresets.d.ts +15 -0
  162. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
  163. package/dist/_dts/theme-core/src/site-styles/types.d.ts +7 -29
  164. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +2 -0
  165. package/dist/_dts/ui/src/combobox.d.ts +1 -0
  166. package/dist/{PreviewEditorSidebar-4DXLYX2V.mjs → chunk-5NZGBSJF.mjs} +2215 -2566
  167. package/dist/{chunk-RGTOD4AJ.mjs → chunk-7PCYG6YV.mjs} +621 -108
  168. package/dist/{chunk-CR5HKAGU.mjs → chunk-BBLZSQEY.mjs} +79 -0
  169. package/dist/{chunk-MCRQMPET.mjs → chunk-GYXKAUFV.mjs} +4500 -912
  170. package/dist/{chunk-6HYXHRAI.mjs → chunk-HTB4BMKD.mjs} +267 -49
  171. package/dist/{chunk-OKMBEAXY.mjs → chunk-MPBNEVPB.mjs} +1 -1
  172. package/dist/cli/index.mjs +3255 -702
  173. package/dist/cli/init-docs/content/workflow-editor-workflows.md +2 -0
  174. package/dist/cli/init-docs/content/workflow-isr-revalidation.md +150 -0
  175. package/dist/client/{accordion-PLYNJIIM.mjs → accordion-QFZMNB7O.mjs} +1 -1
  176. package/dist/client/{bookingForm-BXAP6AO7.mjs → bookingForm-NCIXFWIG.mjs} +3 -3
  177. package/dist/client/bookings.mjs +1246 -323
  178. package/dist/client/{carousel-TRBXDHGF.mjs → carousel-EO4BJMWD.mjs} +2 -2
  179. package/dist/client/{cart-Z7H3HJRS.mjs → cart-FTYCLYUW.mjs} +5 -5
  180. package/dist/client/{checkout-WAFCUBIX.mjs → checkout-NFGLVCOX.mjs} +5 -5
  181. package/dist/client/{chunk-CWGTG37I.mjs → chunk-4W66ALYT.mjs} +1 -1
  182. package/dist/client/{chunk-JRDUHZCT.mjs → chunk-6GVVWSPU.mjs} +4 -4
  183. package/dist/client/{chunk-75OUS5MT.mjs → chunk-IWFZSQNZ.mjs} +1 -1
  184. package/dist/client/{chunk-JGXPTEI2.mjs → chunk-PUOELU4O.mjs} +95 -8
  185. package/dist/client/{chunk-FUXW6VW2.mjs → chunk-PYRBIURC.mjs} +4 -4
  186. package/dist/client/{chunk-ZI3LLBPZ.mjs → chunk-T6UIP6UZ.mjs} +1 -1
  187. package/dist/client/{chunk-DNRGY432.mjs → chunk-VDS5YFLX.mjs} +1 -1
  188. package/dist/client/{chunk-UVQEJJTN.mjs → chunk-Y37KDO7P.mjs} +1 -1
  189. package/dist/client/client.mjs +24277 -20796
  190. package/dist/client/{courseRegistration-AHFQHWIJ.mjs → courseRegistration-2EORROPS.mjs} +3 -3
  191. package/dist/client/{eventCalendar-LDXTV5R7.mjs → eventCalendar-WZI4VL6N.mjs} +5 -5
  192. package/dist/client/{eventCombined-A4JGTNJO.mjs → eventCombined-QCB2TCNL.mjs} +5 -5
  193. package/dist/client/{eventDetails-4YXTZ7EG.mjs → eventDetails-TFTATAPH.mjs} +5 -5
  194. package/dist/client/{eventListing-P72TPFFM.mjs → eventListing-A2CQEHEQ.mjs} +5 -5
  195. package/dist/client/{eventRegistration-LSYJHGMT.mjs → eventRegistration-OELPVLUY.mjs} +5 -5
  196. package/dist/client/{form-AOPYOKOW.mjs → form-NTIFD6WQ.mjs} +1 -1
  197. package/dist/client/{headerSection-5TFYDFVQ.mjs → headerSection-7TBNKCLA.mjs} +65 -24
  198. package/dist/client/hooks.mjs +3687 -2024
  199. package/dist/client/{locationMap-QSZ3ZVAZ.mjs → locationMap-LRLB5A3H.mjs} +1 -1
  200. package/dist/client/{newsletterForm-KTRHZY52.mjs → newsletterForm-XI52RZSN.mjs} +1 -1
  201. package/dist/client/{productDetail-N4E775RG.mjs → productDetail-GSNKBFLY.mjs} +5 -5
  202. package/dist/client/{productList-UGUQ2S45.mjs → productList-BGCGT4KZ.mjs} +5 -5
  203. package/dist/client/rendering/client.mjs +5274 -3030
  204. package/dist/client/rendering/islands.mjs +18 -18
  205. package/dist/client/rendering.mjs +6271 -2790
  206. package/dist/client/{shop-VHSZEEQ2.mjs → shop-RQHUCLNY.mjs} +5 -5
  207. package/dist/preview-next/before-render.mjs +79 -0
  208. package/dist/preview-next/client/runtime.mjs +5 -5
  209. package/dist/preview-next/middleware.mjs +79 -0
  210. package/dist/{sdk-runtime-WHPJEF5G.mjs → sdk-runtime-A4LHT2RS.mjs} +6 -6
  211. package/dist/server/components.mjs +6215 -3057
  212. package/dist/server/config-validation.mjs +3858 -2194
  213. package/dist/server/config.mjs +3858 -2194
  214. package/dist/server/data.mjs +3687 -2024
  215. package/dist/server/index.mjs +88 -1
  216. package/dist/server/next/revalidate.mjs +229 -34
  217. package/dist/server/next.mjs +6295 -3036
  218. package/dist/server/page-converter.mjs +3055 -1883
  219. package/dist/server/prebuild.mjs +1 -1
  220. package/dist/server/rendering/server.mjs +6220 -3062
  221. package/dist/server/rendering.mjs +6233 -3075
  222. package/dist/server/routing.mjs +4251 -2137
  223. package/dist/server/server.mjs +3705 -2042
  224. package/dist/server/theme-bridge.mjs +1617 -329
  225. package/dist/server/theme.mjs +411 -221
  226. package/dist/server/webhooks.mjs +129 -25
  227. package/dist/styles/index.css +355 -33
  228. package/package.json +2 -1
  229. package/dist/SdkPreviewModeRuntime-IJDHTW4W.mjs +0 -8
  230. package/dist/chunk-4QEGTLK6.mjs +0 -1175
@@ -20,10 +20,10 @@ export type AccordionLucideIcon = 'Plus' | 'Minus' | 'ChevronDown' | 'ArrowDown'
20
20
  * Single style per theme (no variants needed)
21
21
  */
22
22
  export declare const accordionSystemSchema: z.ZodObject<{
23
- background: z.ZodObject<{
23
+ background: z.ZodNullable<z.ZodObject<{
24
24
  type: z.ZodLiteral<"solid">;
25
25
  colorToken: z.ZodString;
26
- }, z.core.$strip>;
26
+ }, z.core.$strip>>;
27
27
  spacing: z.ZodEnum<{
28
28
  medium: "medium";
29
29
  none: "none";
@@ -86,12 +86,47 @@ export declare const accordionSystemSchema: z.ZodObject<{
86
86
  regular: "regular";
87
87
  semibold: "semibold";
88
88
  }>>;
89
+ fontFamily: z.ZodOptional<z.ZodEnum<{
90
+ body: "body";
91
+ heading: "heading";
92
+ }>>;
93
+ fontScale: z.ZodOptional<z.ZodEnum<{
94
+ body: "body";
95
+ md: "md";
96
+ lg: "lg";
97
+ }>>;
98
+ letterSpacing: z.ZodOptional<z.ZodEnum<{
99
+ wide: "wide";
100
+ normal: "normal";
101
+ tight: "tight";
102
+ }>>;
103
+ textTransform: z.ZodOptional<z.ZodEnum<{
104
+ none: "none";
105
+ uppercase: "uppercase";
106
+ }>>;
89
107
  }, z.core.$strip>;
90
108
  hover: z.ZodObject<{
91
109
  backgroundColorToken: z.ZodOptional<z.ZodString>;
92
110
  textColorToken: z.ZodOptional<z.ZodString>;
93
111
  borderColorToken: z.ZodOptional<z.ZodString>;
94
112
  }, z.core.$strip>;
113
+ openState: z.ZodOptional<z.ZodObject<{
114
+ backgroundColorToken: z.ZodOptional<z.ZodString>;
115
+ triggerColorToken: z.ZodOptional<z.ZodString>;
116
+ accent: z.ZodOptional<z.ZodObject<{
117
+ edge: z.ZodEnum<{
118
+ left: "left";
119
+ top: "top";
120
+ bottom: "bottom";
121
+ }>;
122
+ colorToken: z.ZodString;
123
+ thickness: z.ZodEnum<{
124
+ medium: "medium";
125
+ thick: "thick";
126
+ thin: "thin";
127
+ }>;
128
+ }, z.core.$strip>>;
129
+ }, z.core.$strip>>;
95
130
  content: z.ZodObject<{
96
131
  textColorToken: z.ZodString;
97
132
  }, z.core.$strip>;
@@ -114,3 +149,11 @@ export declare const ICON_SIZE_PX: Record<AccordionSystem['icon']['size'], strin
114
149
  * Spacing map for accordion content padding
115
150
  */
116
151
  export declare const ACCORDION_SPACING_MAP: Record<AccordionSystem['spacing'], string>;
152
+ /**
153
+ * Question (trigger) font-size by scale step. Kept as self-contained clamps
154
+ * rather than the heading-scale CSS vars so question size stays predictable
155
+ * even when a theme configures very large headings.
156
+ */
157
+ export declare const ACCORDION_TRIGGER_FONT_SCALE: Record<NonNullable<AccordionSystem['trigger']['fontScale']>, string>;
158
+ export declare const ACCORDION_TRIGGER_LETTER_SPACING: Record<NonNullable<AccordionSystem['trigger']['letterSpacing']>, string>;
159
+ export declare const ACCORDION_OPEN_ACCENT_THICKNESS: Record<NonNullable<NonNullable<AccordionSystem['openState']>['accent']>['thickness'], string>;
@@ -1,4 +1,12 @@
1
1
  import type { BlockThemeOverride, Theme } from "./schema";
2
+ import type { HeadingDecorationOverride, VisibleHeadingDecoration } from "./site-styles/types";
2
3
  export declare function normalizeBlockKind(blockKind: string): string;
4
+ export type EffectiveHeadingDecoration = Readonly<{
5
+ kind: "none";
6
+ }> | Readonly<{
7
+ kind: "visible";
8
+ decoration: VisibleHeadingDecoration;
9
+ }>;
10
+ export declare function resolveEffectiveHeadingDecoration(themeDecoration: Theme["headingDecoration"], override: HeadingDecorationOverride | null | undefined): EffectiveHeadingDecoration;
3
11
  export declare function resolveBlockThemeOverride(theme: Theme | undefined, blockKind: string | undefined): BlockThemeOverride | undefined;
4
12
  export declare function mergeContentWithBlockStyleOverrides<TContent extends Record<string, unknown>>(content: TContent, theme: Theme | undefined, blockKind: string | undefined): TContent;
@@ -4,7 +4,7 @@
4
4
  * Type definitions for Tier 3 (block-specific) CSS variable generation.
5
5
  */
6
6
  import type { Theme } from '../schema';
7
- export type BlockVarGeneratorTheme = Pick<Theme, 'corners' | 'motion'>;
7
+ export type BlockVarGeneratorTheme = Pick<Theme, 'corners' | 'motion' | 'testimonialQuote'>;
8
8
  /**
9
9
  * Context passed to block var generators.
10
10
  * Contains the theme read surface and themeId for scoped CSS generation.
@@ -4,6 +4,9 @@
4
4
  * Tier 3 variables for the testimonials block:
5
5
  * - Applies to [data-block="testimonials"]
6
6
  * - Intended for theme overrides via blockCustomVars/blockCustomCss
7
+ *
8
+ * The quote-mark vars are driven by the site-style-owned quote treatment
9
+ * (theme.testimonialQuote); see resolveTestimonialQuoteVars.
7
10
  */
8
11
  import type { BlockVarGeneratorContext } from '../types';
9
- export declare function generateTestimonialsVars({ themeId }: BlockVarGeneratorContext): string;
12
+ export declare function generateTestimonialsVars({ themeId, theme, }: BlockVarGeneratorContext): string;
@@ -40,8 +40,8 @@ export declare const buttonPersonalitySchema: z.ZodObject<{
40
40
  }>>;
41
41
  motion: z.ZodOptional<z.ZodEnum<{
42
42
  standard: "standard";
43
- subtle: "subtle";
44
43
  expressive: "expressive";
44
+ subtle: "subtle";
45
45
  }>>;
46
46
  era: z.ZodOptional<z.ZodEnum<{
47
47
  editorial: "editorial";
@@ -6,6 +6,20 @@
6
6
  */
7
7
  export type CardBackgroundType = 'solid' | 'transparent' | 'gradient';
8
8
  export type CardSpacingCore = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable' | 'spacious';
9
+ export type CardCornerValueCore = 'square' | 'soft' | 'rounded' | 'pill' | 'expressive';
10
+ export type CardEdgeCore = 'left' | 'top' | 'right' | 'bottom';
11
+ export type CardEdgeWidthCore = 'thin' | 'medium' | 'thick' | 'heavy';
12
+ export interface CardCornerRadiiCore {
13
+ topLeft?: CardCornerValueCore;
14
+ topRight?: CardCornerValueCore;
15
+ bottomLeft?: CardCornerValueCore;
16
+ bottomRight?: CardCornerValueCore;
17
+ }
18
+ export interface CardAccentEdgeCore {
19
+ edge: CardEdgeCore;
20
+ colorToken: string;
21
+ width: CardEdgeWidthCore;
22
+ }
9
23
  export interface CardVariantCore {
10
24
  /** Unique variant identifier (e.g., 'default', 'elevated') */
11
25
  id: string;
@@ -21,10 +35,16 @@ export interface CardVariantCore {
21
35
  gradientDirection?: 'to-r' | 'to-l' | 'to-t' | 'to-b' | 'to-tr' | 'to-tl' | 'to-br' | 'to-bl';
22
36
  /** Content padding */
23
37
  spacing: CardSpacingCore;
38
+ /** Card text (foreground) color token, for cards on a strong fill */
39
+ foregroundToken?: string;
24
40
  /** Border color token */
25
41
  borderToken?: string;
26
42
  /** Border width */
27
43
  borderWidth?: 'none' | 'thin' | 'medium' | 'thick';
44
+ /** Single accent edge; replaces the full border when set */
45
+ accentEdge?: CardAccentEdgeCore;
46
+ /** Per-corner radius override; wins over the global corners setting */
47
+ cornerRadii?: CardCornerRadiiCore;
28
48
  }
29
49
  export interface CardCoreSettings {
30
50
  /** Corner radius style */
@@ -3,9 +3,12 @@ import type { CardSystem } from './types';
3
3
  /**
4
4
  * Generate a default card system from theme settings
5
5
  *
6
- * Creates a single "default" variant that intelligently uses theme settings:
7
- * - Explicitly sets theme.shadow and theme.corners (for runtime transform access)
8
- * - Uses theme.border if defined and has meaningful width
6
+ * Creates the baseline card roles that blocks can request:
7
+ * - `default` for everyday surfaced cards
8
+ * - `alternative` for emphasised cards
9
+ *
10
+ * Both variants explicitly set theme.shadow and theme.corners for runtime
11
+ * transform access, and both use theme.border when it has meaningful width.
9
12
  *
10
13
  * This ensures cards have sensible defaults even when theme.cards is undefined.
11
14
  *
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Reusable card systems for curated site styles.
3
+ *
4
+ * generateCardCss emits a `.card-{id}` class per enabled variant. The
5
+ * intended convention (block-level role selection is wired in a follow-up) is
6
+ * a role pair:
7
+ * - `default` — the quiet, everyday card (most blocks, most of the time)
8
+ * - `alternative` — the prominent "statement" card for sections that pop
9
+ * A card-heavy site style may add a third; the schema allows up to three
10
+ * variants. The planned fallback when a block references a missing variant is
11
+ * `alternative`, then `default`.
12
+ *
13
+ * Keep `default` close to the generated baseline so shared consumers (event
14
+ * cards, testimonials) stay stable; put the personality in `alternative`.
15
+ */
16
+ /**
17
+ * South West Twerk School: a quiet default surface card plus a high-impact
18
+ * "statement" card that reproduces the legacy accent-quote testimonial surface
19
+ * — burgundy fill, light text, a heavy gold left accent bar, and an expressive
20
+ * asymmetric top-right corner.
21
+ */
22
+ export declare const southWestCardSystem: {
23
+ readonly variants: [{
24
+ readonly id: "default";
25
+ readonly name: "Default";
26
+ readonly enabled: true;
27
+ readonly priority: 1;
28
+ readonly background: {
29
+ readonly type: "solid";
30
+ readonly colorToken: "surface";
31
+ };
32
+ readonly foregroundToken: "text";
33
+ readonly spacing: "comfortable";
34
+ readonly corners: "soft";
35
+ readonly shadow: {
36
+ readonly elevation: "low";
37
+ readonly softness: "soft";
38
+ readonly position: "bottom";
39
+ };
40
+ }, {
41
+ readonly id: "alternative";
42
+ readonly name: "Statement";
43
+ readonly enabled: true;
44
+ readonly priority: 2;
45
+ readonly background: {
46
+ readonly type: "solid";
47
+ readonly colorToken: "primary-700";
48
+ };
49
+ readonly foregroundToken: "primaryForeground";
50
+ readonly spacing: "comfortable";
51
+ readonly shadow: {
52
+ readonly elevation: "none";
53
+ readonly softness: null;
54
+ readonly position: "bottom";
55
+ };
56
+ readonly accentEdge: {
57
+ readonly edge: "left";
58
+ readonly colorToken: "secondary";
59
+ readonly width: "heavy";
60
+ };
61
+ readonly cornerRadii: {
62
+ readonly topLeft: "square";
63
+ readonly topRight: "expressive";
64
+ readonly bottomLeft: "square";
65
+ readonly bottomRight: "square";
66
+ };
67
+ }];
68
+ };
69
+ export declare const clarityZenCardSystem: {
70
+ readonly variants: [{
71
+ readonly id: "default";
72
+ readonly name: "Default";
73
+ readonly enabled: true;
74
+ readonly priority: 1;
75
+ readonly background: {
76
+ readonly type: "solid";
77
+ readonly colorToken: "surface";
78
+ };
79
+ readonly foregroundToken: "text";
80
+ readonly spacing: "comfortable";
81
+ readonly corners: "rounded";
82
+ readonly shadow: {
83
+ readonly elevation: "low";
84
+ readonly softness: "soft";
85
+ readonly position: "bottom";
86
+ };
87
+ }, {
88
+ readonly id: "alternative";
89
+ readonly name: "Statement";
90
+ readonly enabled: true;
91
+ readonly priority: 2;
92
+ readonly background: {
93
+ readonly type: "solid";
94
+ readonly colorToken: "surfaceAlt";
95
+ };
96
+ readonly foregroundToken: "text";
97
+ readonly spacing: "comfortable";
98
+ readonly corners: "rounded";
99
+ readonly shadow: {
100
+ readonly elevation: "medium";
101
+ readonly softness: "soft";
102
+ readonly position: "bottom";
103
+ };
104
+ }];
105
+ };
@@ -12,6 +12,16 @@ export type Shadow = {
12
12
  };
13
13
  export type CardSpacing = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable' | 'spacious';
14
14
  export type GradientDirection = 'to-r' | 'to-l' | 'to-t' | 'to-b' | 'to-tr' | 'to-tl' | 'to-br' | 'to-bl';
15
+ export declare const cardVariantRoleValues: readonly ["default", "alternative"];
16
+ export declare const boxlessCardVariantValue: "none";
17
+ export type CardVariantRole = (typeof cardVariantRoleValues)[number];
18
+ export type BoxlessCardVariant = typeof boxlessCardVariantValue;
19
+ export type BoxStylesCardVariant = CardVariantRole | BoxlessCardVariant;
20
+ export declare const legacyCardVariantRoleAliases: {
21
+ readonly variant1: "alternative";
22
+ readonly variant2: "alternative";
23
+ };
24
+ export type LegacyCardVariantRoleAlias = keyof typeof legacyCardVariantRoleAliases;
15
25
  export type CardBackground = {
16
26
  type: 'solid';
17
27
  colorToken: string;
@@ -45,6 +55,18 @@ export declare const gradientDirectionSchema: z.ZodEnum<{
45
55
  "to-br": "to-br";
46
56
  "to-bl": "to-bl";
47
57
  }>;
58
+ export declare const cardVariantRoleSchema: z.ZodEnum<{
59
+ default: "default";
60
+ alternative: "alternative";
61
+ }>;
62
+ export declare const boxStylesCardVariantSchema: z.ZodEnum<{
63
+ none: "none";
64
+ default: "default";
65
+ alternative: "alternative";
66
+ }>;
67
+ export declare function isCardVariantRole(value: unknown): value is CardVariantRole;
68
+ export declare function normalizeCardVariantRole(value: unknown): CardVariantRole | null;
69
+ export declare function normalizeBoxStylesCardVariant(value: unknown): BoxStylesCardVariant | null;
48
70
  export declare const cardBackgroundSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
49
71
  type: z.ZodLiteral<"solid">;
50
72
  colorToken: z.ZodString;
@@ -69,6 +91,66 @@ export declare const cardBorderSchema: z.ZodObject<{
69
91
  widthClass: z.ZodString;
70
92
  colorToken: z.ZodString;
71
93
  }, z.core.$strip>;
94
+ /** Per-corner radius value. `expressive` is a large block-radius multiple. */
95
+ export declare const cardCornerValueSchema: z.ZodEnum<{
96
+ rounded: "rounded";
97
+ square: "square";
98
+ pill: "pill";
99
+ soft: "soft";
100
+ expressive: "expressive";
101
+ }>;
102
+ export type CardCornerValue = z.infer<typeof cardCornerValueSchema>;
103
+ /**
104
+ * A single accented card edge (e.g. a left accent bar). When set, it replaces
105
+ * the full `border` so the card reads as edge-accented rather than outlined.
106
+ */
107
+ export declare const cardAccentEdgeSchema: z.ZodObject<{
108
+ edge: z.ZodEnum<{
109
+ left: "left";
110
+ right: "right";
111
+ top: "top";
112
+ bottom: "bottom";
113
+ }>;
114
+ colorToken: z.ZodString;
115
+ width: z.ZodEnum<{
116
+ medium: "medium";
117
+ thick: "thick";
118
+ thin: "thin";
119
+ heavy: "heavy";
120
+ }>;
121
+ }, z.core.$strip>;
122
+ export type CardAccentEdge = z.infer<typeof cardAccentEdgeSchema>;
123
+ export declare const cardCornerRadiiSchema: z.ZodObject<{
124
+ topLeft: z.ZodOptional<z.ZodEnum<{
125
+ rounded: "rounded";
126
+ square: "square";
127
+ pill: "pill";
128
+ soft: "soft";
129
+ expressive: "expressive";
130
+ }>>;
131
+ topRight: z.ZodOptional<z.ZodEnum<{
132
+ rounded: "rounded";
133
+ square: "square";
134
+ pill: "pill";
135
+ soft: "soft";
136
+ expressive: "expressive";
137
+ }>>;
138
+ bottomLeft: z.ZodOptional<z.ZodEnum<{
139
+ rounded: "rounded";
140
+ square: "square";
141
+ pill: "pill";
142
+ soft: "soft";
143
+ expressive: "expressive";
144
+ }>>;
145
+ bottomRight: z.ZodOptional<z.ZodEnum<{
146
+ rounded: "rounded";
147
+ square: "square";
148
+ pill: "pill";
149
+ soft: "soft";
150
+ expressive: "expressive";
151
+ }>>;
152
+ }, z.core.$strip>;
153
+ export type CardCornerRadii = z.infer<typeof cardCornerRadiiSchema>;
72
154
  export declare const cardVariantSchema: z.ZodObject<{
73
155
  id: z.ZodString;
74
156
  name: z.ZodString;
@@ -102,6 +184,7 @@ export declare const cardVariantSchema: z.ZodObject<{
102
184
  comfortable: "comfortable";
103
185
  spacious: "spacious";
104
186
  }>;
187
+ foregroundToken: z.ZodOptional<z.ZodString>;
105
188
  shadow: z.ZodOptional<z.ZodObject<{
106
189
  elevation: z.ZodEnum<{
107
190
  medium: "medium";
@@ -125,10 +208,55 @@ export declare const cardVariantSchema: z.ZodObject<{
125
208
  pill: "pill";
126
209
  soft: "soft";
127
210
  }>>;
211
+ cornerRadii: z.ZodOptional<z.ZodObject<{
212
+ topLeft: z.ZodOptional<z.ZodEnum<{
213
+ rounded: "rounded";
214
+ square: "square";
215
+ pill: "pill";
216
+ soft: "soft";
217
+ expressive: "expressive";
218
+ }>>;
219
+ topRight: z.ZodOptional<z.ZodEnum<{
220
+ rounded: "rounded";
221
+ square: "square";
222
+ pill: "pill";
223
+ soft: "soft";
224
+ expressive: "expressive";
225
+ }>>;
226
+ bottomLeft: z.ZodOptional<z.ZodEnum<{
227
+ rounded: "rounded";
228
+ square: "square";
229
+ pill: "pill";
230
+ soft: "soft";
231
+ expressive: "expressive";
232
+ }>>;
233
+ bottomRight: z.ZodOptional<z.ZodEnum<{
234
+ rounded: "rounded";
235
+ square: "square";
236
+ pill: "pill";
237
+ soft: "soft";
238
+ expressive: "expressive";
239
+ }>>;
240
+ }, z.core.$strip>>;
128
241
  border: z.ZodOptional<z.ZodObject<{
129
242
  widthClass: z.ZodString;
130
243
  colorToken: z.ZodString;
131
244
  }, z.core.$strip>>;
245
+ accentEdge: z.ZodOptional<z.ZodObject<{
246
+ edge: z.ZodEnum<{
247
+ left: "left";
248
+ right: "right";
249
+ top: "top";
250
+ bottom: "bottom";
251
+ }>;
252
+ colorToken: z.ZodString;
253
+ width: z.ZodEnum<{
254
+ medium: "medium";
255
+ thick: "thick";
256
+ thin: "thin";
257
+ heavy: "heavy";
258
+ }>;
259
+ }, z.core.$strip>>;
132
260
  }, z.core.$strip>;
133
261
  export declare const cardSystemSchema: z.ZodObject<{
134
262
  variants: z.ZodArray<z.ZodObject<{
@@ -164,6 +292,7 @@ export declare const cardSystemSchema: z.ZodObject<{
164
292
  comfortable: "comfortable";
165
293
  spacious: "spacious";
166
294
  }>;
295
+ foregroundToken: z.ZodOptional<z.ZodString>;
167
296
  shadow: z.ZodOptional<z.ZodObject<{
168
297
  elevation: z.ZodEnum<{
169
298
  medium: "medium";
@@ -187,10 +316,55 @@ export declare const cardSystemSchema: z.ZodObject<{
187
316
  pill: "pill";
188
317
  soft: "soft";
189
318
  }>>;
319
+ cornerRadii: z.ZodOptional<z.ZodObject<{
320
+ topLeft: z.ZodOptional<z.ZodEnum<{
321
+ rounded: "rounded";
322
+ square: "square";
323
+ pill: "pill";
324
+ soft: "soft";
325
+ expressive: "expressive";
326
+ }>>;
327
+ topRight: z.ZodOptional<z.ZodEnum<{
328
+ rounded: "rounded";
329
+ square: "square";
330
+ pill: "pill";
331
+ soft: "soft";
332
+ expressive: "expressive";
333
+ }>>;
334
+ bottomLeft: z.ZodOptional<z.ZodEnum<{
335
+ rounded: "rounded";
336
+ square: "square";
337
+ pill: "pill";
338
+ soft: "soft";
339
+ expressive: "expressive";
340
+ }>>;
341
+ bottomRight: z.ZodOptional<z.ZodEnum<{
342
+ rounded: "rounded";
343
+ square: "square";
344
+ pill: "pill";
345
+ soft: "soft";
346
+ expressive: "expressive";
347
+ }>>;
348
+ }, z.core.$strip>>;
190
349
  border: z.ZodOptional<z.ZodObject<{
191
350
  widthClass: z.ZodString;
192
351
  colorToken: z.ZodString;
193
352
  }, z.core.$strip>>;
353
+ accentEdge: z.ZodOptional<z.ZodObject<{
354
+ edge: z.ZodEnum<{
355
+ left: "left";
356
+ right: "right";
357
+ top: "top";
358
+ bottom: "bottom";
359
+ }>;
360
+ colorToken: z.ZodString;
361
+ width: z.ZodEnum<{
362
+ medium: "medium";
363
+ thick: "thick";
364
+ thin: "thin";
365
+ heavy: "heavy";
366
+ }>;
367
+ }, z.core.$strip>>;
194
368
  }, z.core.$strip>>;
195
369
  }, z.core.$strip>;
196
370
  export interface CardVariant {
@@ -200,9 +374,12 @@ export interface CardVariant {
200
374
  priority: 1 | 2 | 3;
201
375
  background: CardBackground;
202
376
  spacing: CardSpacing;
377
+ foregroundToken?: string;
203
378
  shadow?: Shadow;
204
379
  corners?: 'square' | 'soft' | 'rounded' | 'pill';
380
+ cornerRadii?: CardCornerRadii;
205
381
  border?: CardBorder;
382
+ accentEdge?: CardAccentEdge;
206
383
  }
207
384
  export interface CardSystem {
208
385
  variants: CardVariant[];