@riverbankcms/sdk 0.109.0 → 0.118.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 (294) hide show
  1. package/dist/{PreviewEditorSidebar-DWqwfy3_.mjs → PreviewEditorSidebar-BBcK1DjD.mjs} +178 -117
  2. package/dist/{PreviewEditorUI-B7OL4sfR.mjs → PreviewEditorUI-CuBFoYes.mjs} +3 -4
  3. package/dist/{PreviewQueryProvider-D0y2l8JN.mjs → PreviewQueryProvider-nKUT4TL-.mjs} +1 -1
  4. package/dist/{SdkPreviewModeRuntime-D8Gt9Gbe.mjs → SdkPreviewModeRuntime-BWIO_Dsi.mjs} +2789 -34525
  5. package/dist/{SiteChromeCustomizeContext-DUpalEdL.mjs → SiteChromeCustomizeContext-CciG60M5.mjs} +88526 -57212
  6. package/dist/_dts/ai/src/contracts/proposals.d.ts +6939 -727
  7. package/dist/_dts/ai/src/designer/themePatch.d.ts +1 -1
  8. package/dist/_dts/api/src/bookingAdjustments.d.ts +30 -36
  9. package/dist/_dts/api/src/bookingRecords.d.ts +6 -74
  10. package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +3 -3
  11. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +5 -5
  12. package/dist/_dts/api/src/contentRuntime.d.ts +9 -2
  13. package/dist/_dts/api/src/courses.d.ts +30 -15
  14. package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +4 -4
  15. package/dist/_dts/api/src/endpoints.d.ts +49 -4
  16. package/dist/_dts/api/src/event-presentation.d.ts +4 -0
  17. package/dist/_dts/api/src/index.d.ts +3 -3
  18. package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +2 -2
  19. package/dist/_dts/api/src/sdk-event-upsert.d.ts +2 -2
  20. package/dist/_dts/api/src/sdkContracts.d.ts +108 -18
  21. package/dist/_dts/api/src/siteBanner.d.ts +8 -8
  22. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +5 -1
  23. package/dist/_dts/api/src/siteOperations.d.ts +12 -20
  24. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +32 -4
  25. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +6 -6
  26. package/dist/_dts/api/src/webhooks.d.ts +98 -1
  27. package/dist/_dts/billing/src/site-arrangements.d.ts +3 -0
  28. package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldDefaults.d.ts +3 -12
  29. package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldSchema.d.ts +1 -5
  30. package/dist/_dts/blocks/src/bindings/index.d.ts +1 -10
  31. package/dist/_dts/blocks/src/client/course-registration.d.ts +4 -1
  32. package/dist/_dts/blocks/src/client.d.ts +4 -1
  33. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -4
  34. package/dist/_dts/blocks/src/index.d.ts +6 -7
  35. package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +2 -2
  36. package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +2 -2
  37. package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +2 -1
  38. package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +2 -1
  39. package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +2 -4
  40. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +2 -1
  41. package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +2 -1
  42. package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -1
  43. package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule.d.ts +5 -4
  44. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +2 -8
  45. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +2 -1
  46. package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +2 -2
  47. package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +3 -3
  48. package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +2 -1
  49. package/dist/_dts/blocks/src/system/blocks/form.d.ts +2 -15
  50. package/dist/_dts/blocks/src/system/blocks/intro.d.ts +2 -2
  51. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +66 -66
  52. package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +4 -17
  53. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -1
  54. package/dist/_dts/blocks/src/system/blocks/single-button.d.ts +2 -1
  55. package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +0 -3
  56. package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +35 -0
  57. package/dist/_dts/blocks/src/system/fields/button.d.ts +10 -21
  58. package/dist/_dts/blocks/src/system/fields/ctas.d.ts +2 -1
  59. package/dist/_dts/blocks/src/system/fragments/index.d.ts +0 -1
  60. package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +9 -5
  61. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +19 -2
  62. package/dist/_dts/blocks/src/system/manifest/richTextSchema.d.ts +8 -70
  63. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +1 -0
  64. package/dist/_dts/blocks/src/system/manifest/validation.d.ts +6 -0
  65. package/dist/_dts/blocks/src/system/node/schema.d.ts +4 -4
  66. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +18 -18
  67. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +9 -9
  68. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +29 -0
  69. package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -10
  70. package/dist/_dts/blocks/src/system/runtime/nodes/buttonAffordance.d.ts +5 -21
  71. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/ErrorStep.d.ts +2 -1
  72. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/PaymentFailedStep.d.ts +2 -1
  73. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/VerifyingTimeoutStep.d.ts +2 -1
  74. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +21 -0
  75. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +4 -4
  76. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.contract.d.ts +326 -0
  77. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.planning.d.ts +27 -0
  78. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +5 -4
  79. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +3 -2
  80. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +2 -1
  81. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -4
  82. package/dist/_dts/blocks/src/system/runtime/nodes/file-download.d.ts +2 -3
  83. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +2 -1
  84. package/dist/_dts/blocks/src/system/runtime/nodes/richText-coerce.d.ts +14 -2
  85. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +6 -3
  86. package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +7 -6
  87. package/dist/_dts/blocks/src/system/runtime/nodes/shop.types.d.ts +2 -1
  88. package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +2 -1
  89. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
  90. package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +4 -2
  91. package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +1 -1
  92. package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +17 -1
  93. package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +1 -1
  94. package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +1 -1
  95. package/dist/_dts/content-editor/src/index.d.ts +12 -12
  96. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +3 -2
  97. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +19 -4
  98. package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +1 -1
  99. package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
  100. package/dist/_dts/content-model/src/content-types/builtins.d.ts +3 -15
  101. package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +2 -0
  102. package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
  103. package/dist/_dts/content-model/src/templates/defaults.d.ts +1 -21
  104. package/dist/_dts/core/src/editor-state.d.ts +14 -1
  105. package/dist/_dts/core/src/footer-composition.d.ts +2 -1
  106. package/dist/_dts/core/src/index.d.ts +1 -0
  107. package/dist/_dts/core/src/rich-text.d.ts +16 -0
  108. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +367 -69
  109. package/dist/_dts/editor/src/index.d.ts +1 -1
  110. package/dist/_dts/editor/src/primitives/rich-text/utils.d.ts +3 -5
  111. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +1 -1
  112. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +2 -1
  113. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -1
  114. package/dist/_dts/editor-blocks/src/block-editor/blockDraftBaselineSeed.d.ts +15 -0
  115. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +3 -7
  116. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +12 -0
  117. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
  118. package/dist/_dts/editor-blocks/src/block-editor/utils.d.ts +1 -1
  119. package/dist/_dts/editor-blocks/src/index.d.ts +6 -5
  120. package/dist/_dts/editor-blocks/src/widgets/button/context.d.ts +3 -2
  121. package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
  122. package/dist/_dts/media-core/src/contentMediaAudit.d.ts +104 -0
  123. package/dist/_dts/media-core/src/contentMediaAuditFieldAdapter.d.ts +8 -0
  124. package/dist/_dts/media-core/src/contentMediaSnapshotAudit.d.ts +22 -0
  125. package/dist/_dts/media-core/src/index.d.ts +3 -1
  126. package/dist/_dts/preview-next/src/client/index.d.ts +3 -2
  127. package/dist/_dts/preview-next/src/client/preview/ButtonStylePicker.d.ts +16 -0
  128. package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -3
  129. package/dist/_dts/preview-next/src/client/preview/PreviewDesignOpenRequestContext.d.ts +7 -0
  130. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +5 -11
  131. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +5 -6
  132. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +6 -7
  133. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +7 -9
  134. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +4 -11
  135. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +7 -7
  136. package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +0 -8
  137. package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +1 -11
  138. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +1 -5
  139. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +2 -3
  140. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +3 -4
  141. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +3 -5
  142. package/dist/_dts/sdk/src/bookings/index.d.ts +5 -4
  143. package/dist/_dts/sdk/src/bookings/types.d.ts +3 -3
  144. package/dist/_dts/sdk/src/cli/commands/event.d.ts +18 -1
  145. package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +2 -16
  146. package/dist/_dts/sdk/src/cli/commands/style.d.ts +3 -2
  147. package/dist/_dts/sdk/src/cli/content/reader.d.ts +8 -5
  148. package/dist/_dts/sdk/src/client/management/events.d.ts +2 -1
  149. package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
  150. package/dist/_dts/sdk/src/client/management/types.d.ts +38 -10
  151. package/dist/_dts/sdk/src/config/typed-entries.d.ts +7 -7
  152. package/dist/_dts/sdk/src/config/validation.d.ts +7 -7
  153. package/dist/_dts/sdk/src/contracts/content.d.ts +5 -15
  154. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  155. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +24 -40
  156. package/dist/_dts/sdk/src/contracts/theme.d.ts +2 -18
  157. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +1 -1
  158. package/dist/_dts/sdk/src/manifest/three-pass-converter.d.ts +4 -4
  159. package/dist/_dts/sdk/src/public-api/contracts.d.ts +1 -1
  160. package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +1 -2
  161. package/dist/_dts/sdk/src/rendering/helpers/index.d.ts +1 -1
  162. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -13
  163. package/dist/_dts/sdk/src/theme/index.d.ts +0 -29
  164. package/dist/_dts/sdk/src/version.d.ts +1 -1
  165. package/dist/_dts/sdk/src/webhooks/index.d.ts +1 -1
  166. package/dist/_dts/sdk/src/webhooks/verify.d.ts +3 -3
  167. package/dist/_dts/site-commands/src/commands.d.ts +160 -24
  168. package/dist/_dts/theme-core/src/buttons/affordanceIcons.d.ts +2 -2
  169. package/dist/_dts/theme-core/src/buttons/core.d.ts +0 -1
  170. package/dist/_dts/theme-core/src/buttons/effectClassification.d.ts +22 -9
  171. package/dist/_dts/theme-core/src/buttons/effects/presets/background.d.ts +1 -2
  172. package/dist/_dts/theme-core/src/buttons/effects/presets/border.d.ts +1 -2
  173. package/dist/_dts/theme-core/src/buttons/effects/presets/overlay.d.ts +3 -1
  174. package/dist/_dts/theme-core/src/buttons/effects/presets/shadow.d.ts +2 -2
  175. package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +8 -18
  176. package/dist/_dts/theme-core/src/buttons/generateButtonCss.d.ts +2 -2
  177. package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +5 -5
  178. package/dist/_dts/theme-core/src/buttons/index.d.ts +2 -5
  179. package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +36 -0
  180. package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +80 -0
  181. package/dist/_dts/theme-core/src/buttons/styles/index.d.ts +3 -0
  182. package/dist/_dts/theme-core/src/buttons/styles/recipes/defineStaticButtonStyleRecipe.d.ts +49 -0
  183. package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +67 -0
  184. package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +649 -0
  185. package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +753 -0
  186. package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +69 -0
  187. package/dist/_dts/theme-core/src/buttons/types.d.ts +1638 -93
  188. package/dist/_dts/theme-core/src/cards/types.d.ts +13 -13
  189. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +969 -69
  190. package/dist/_dts/theme-core/src/navigation/types.d.ts +2 -2
  191. package/dist/_dts/theme-core/src/recommend/generateThemes.d.ts +0 -1
  192. package/dist/_dts/theme-core/src/schema.d.ts +1100 -116
  193. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  194. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +26 -24
  195. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +14 -14
  196. package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +19 -153
  197. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
  198. package/dist/_dts/theme-core/src/site-styles/headerCtaVariants.d.ts +3 -1
  199. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
  200. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +8 -9
  201. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +4 -4
  202. package/dist/_dts/ui/src/palette/hex.d.ts +3 -3
  203. package/dist/cli/index.mjs +7368 -6668
  204. package/dist/cli/init-docs/content/cli-reference.md +40 -1
  205. package/dist/cli/init-docs/content/content-management.md +6 -0
  206. package/dist/cli/init-docs/content/workflow-isr-revalidation.md +1 -1
  207. package/dist/client/{DiscountCodeDisclosure-DU1ygxU2.mjs → DiscountCodeDisclosure-DIWj-P9v.mjs} +1 -1
  208. package/dist/client/{EventCombined.client-DB5zagCo.mjs → EventCombined.client-De8YWBSr.mjs} +2 -3
  209. package/dist/client/{EventListing.client-CTX9JHBL.mjs → EventListing.client-seHTjimY.mjs} +2 -2
  210. package/dist/client/{LeafletStaticMap-BYImhgiB.mjs → LeafletStaticMap-BmQxFcJW.mjs} +1 -1
  211. package/dist/client/{MagicLinkForm-CRkw_M3l.mjs → MagicLinkForm-OoJAIUIj.mjs} +1 -2
  212. package/dist/client/{StepIndicator-BnmVBJJh.mjs → StepIndicator-CiZ8kdPk.mjs} +2 -2
  213. package/dist/client/{accordion-CeGreumd.mjs → accordion-6lnN__XJ.mjs} +1 -1
  214. package/dist/client/{bookingForm-CSzFNrpN.mjs → bookingForm-5uyqhONU.mjs} +6 -7
  215. package/dist/client/bookings.mjs +9179 -5865
  216. package/dist/client/{carousel-B2jDtogf.mjs → carousel-Dtnifil_.mjs} +1 -1
  217. package/dist/client/{cart-D-jZ-vaY.mjs → cart-5Tc5S7NV.mjs} +3 -3
  218. package/dist/client/{checkout-Dza-LA7N.mjs → checkout-CYKKN5Hr.mjs} +3 -3
  219. package/dist/client/client.mjs +3252 -3361
  220. package/dist/client/{colorTokenParts-CMugwvX_.mjs → colorStyles-BWpj_h4C.mjs} +118 -1
  221. package/dist/client/{courseRegistration-TYkNychb.mjs → courseRegistration-CxCBybB4.mjs} +100 -37
  222. package/dist/client/{eventCalendar-BI_90SsT.mjs → eventCalendar-Xj2jZS9X.mjs} +4 -5
  223. package/dist/client/{eventCombined-mNrpryE9.mjs → eventCombined-CgcMoOgM.mjs} +2 -2
  224. package/dist/client/{eventDetails-D4GVlCIY.mjs → eventDetails-CEAH8Edc.mjs} +3 -3
  225. package/dist/client/{eventListing-YhKN018y.mjs → eventListing-qyPVQ0wP.mjs} +2 -2
  226. package/dist/client/{eventRegistration-CdHGtilr.mjs → eventRegistration-DDu79CtL.mjs} +6 -7
  227. package/dist/client/{form-AcAL45rA.mjs → form-Bc7JKI7I.mjs} +1 -2
  228. package/dist/client/{headerSection-uEC52ueD.mjs → headerSection-vTku_LEl.mjs} +2 -3
  229. package/dist/client/hooks.mjs +1774 -2273
  230. package/dist/client/{locationMap-_wJDSUYe.mjs → locationMap-Bg7X4Jna.mjs} +8 -5
  231. package/dist/client/{media-BK0O3b-U.mjs → media-CNE1Z-wb.mjs} +1 -2
  232. package/dist/client/{newsletterForm-DrArsb2B.mjs → newsletterForm-lpylVdp5.mjs} +1 -2
  233. package/dist/client/{pricing-BSYVghwo.mjs → pricing-DE8fjJiT.mjs} +1 -1
  234. package/dist/client/{productDetail-Dyk90sMs.mjs → productDetail-D7Bo2RMH.mjs} +3 -3
  235. package/dist/client/{productList-BCKThwAI.mjs → productList-VjnZqiqN.mjs} +3 -3
  236. package/dist/client/{propsDecoder-CkXxkdSR.mjs → propsDecoder-DreFXjNP.mjs} +4256 -443
  237. package/dist/client/rendering/client.mjs +21776 -21970
  238. package/dist/client/rendering/islands.mjs +20 -20
  239. package/dist/client/rendering.mjs +3092 -3322
  240. package/dist/client/{shop-DeltVH10.mjs → shop-IRsHHbf7.mjs} +5 -6
  241. package/dist/client/{shop-commerce-BD9Jsm2Z.mjs → shop-commerce-gnI8PieZ.mjs} +27 -11
  242. package/dist/client/{shop-commerce-store-CmXD6FDS.mjs → shop-commerce-store-BTbrhObn.mjs} +1 -1
  243. package/dist/client/{shopShared-B8v-lH_F.mjs → shopShared-D6KS2_qk.mjs} +3 -3
  244. package/dist/client/{useDiscountCodeUi-DbWJN8ld.mjs → useDiscountCodeUi-DCccGCxV.mjs} +1 -1
  245. package/dist/client/{useEventFilters-EJIMUnqT.mjs → useEventFilters-eGs3rPZQ.mjs} +24 -126
  246. package/dist/client/{usePolling-Cmh14fc7.mjs → usePolling-CvSU2sur.mjs} +2 -2
  247. package/dist/preview-next/before-render.mjs +94 -6
  248. package/dist/preview-next/client/runtime.mjs +4 -4
  249. package/dist/preview-next/middleware.mjs +94 -6
  250. package/dist/{previewAuthStore-CTO7CRPk.mjs → previewAuthStore-DN7vcRsv.mjs} +94 -6
  251. package/dist/{sdk-runtime-Dou0GAav.mjs → sdk-runtime-vW8QbyPN.mjs} +2 -2
  252. package/dist/{separator-CI5wZNXT.mjs → separator-DJ4bkeY3.mjs} +1 -1
  253. package/dist/server/components.mjs +5194 -5568
  254. package/dist/server/config-template-validation.mjs +4 -23
  255. package/dist/server/config-validation.mjs +1774 -2273
  256. package/dist/server/config.mjs +2043 -2508
  257. package/dist/server/data.mjs +1774 -2273
  258. package/dist/server/index.mjs +95 -7
  259. package/dist/server/next/revalidate.mjs +53 -1
  260. package/dist/server/next.mjs +5337 -5632
  261. package/dist/server/page-converter.mjs +1833 -2307
  262. package/dist/server/prebuild.mjs +1 -1
  263. package/dist/server/rendering/server.mjs +6713 -4874
  264. package/dist/server/rendering.mjs +5203 -5586
  265. package/dist/server/routing.mjs +2199 -2698
  266. package/dist/server/server.mjs +1885 -2355
  267. package/dist/server/theme-bridge.mjs +1986 -2222
  268. package/dist/server/theme.mjs +2367 -1581
  269. package/dist/server/webhooks.mjs +54 -2
  270. package/package.json +1 -1
  271. package/dist/_dts/blocks/src/primitives/content/components/Button.d.ts +0 -40
  272. package/dist/_dts/blocks/src/system/fragments/library/footerBottomText.d.ts +0 -19
  273. package/dist/_dts/media-core/src/legacyMediaValue.d.ts +0 -11
  274. package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +0 -16
  275. package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +0 -16
  276. package/dist/_dts/theme-core/src/buttons/personalities/earth-pill.d.ts +0 -16
  277. package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +0 -16
  278. package/dist/_dts/theme-core/src/buttons/personalities/flat-ink.d.ts +0 -20
  279. package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +0 -172
  280. package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +0 -16
  281. package/dist/_dts/theme-core/src/buttons/personalities/joy-stamp.d.ts +0 -22
  282. package/dist/_dts/theme-core/src/buttons/personalities/ornate-ritual.d.ts +0 -16
  283. package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +0 -16
  284. package/dist/_dts/theme-core/src/buttons/personalities/quiet-arrow.d.ts +0 -17
  285. package/dist/_dts/theme-core/src/buttons/personalities/showtime-pill.d.ts +0 -17
  286. package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +0 -16
  287. package/dist/_dts/theme-core/src/buttons/personalities/two-tone-pill.d.ts +0 -17
  288. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +0 -285
  289. package/dist/_dts/theme-core/src/styles/buttons.d.ts +0 -27
  290. package/dist/_dts/theme-core/src/styles/buttonsLibrary.d.ts +0 -2
  291. package/dist/_dts/theme-core/src/styles/glow.d.ts +0 -3
  292. package/dist/client/buttons-DoFV7KDL.mjs +0 -2115
  293. package/dist/client/colorStyles-CrgzoXsm.mjs +0 -99
  294. package/dist/client/foregroundContract-xICPq59x.mjs +0 -31
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { type RichTextDoc } from '../../core/src/index';
2
3
  import { type BlockRef, type BlocksRef, type CommandRef, type ContentEntryRef, type CourseRef, type PassProductRef, type MembershipProductRef, type BookingCustomerRef, type CustomerPassRef, type CustomerMembershipRef, type AppointmentBookingRef, type CourseEnrollmentRef, type EventRegistrationRef, type PassRedemptionRef, type OrderRef, type EventSeriesRef, type FormRef, type FooterRef, type MediaRef, type NavigationRef, type PageRef, type SiteStyleRef, type StaffRef, type TicketTypeRef, type VenueRef, type EventCategoryRef, type AppointmentServiceRef, type AppointmentResourceRef, type AppointmentAvailabilityRef, type SiteCommandSiteRef } from './refs';
3
4
  export declare const navigationLocations: readonly ["main", "header", "footer"];
4
5
  export type NavigationLocation = (typeof navigationLocations)[number];
@@ -43,8 +44,49 @@ export declare const applySiteStyleSelectionCommandSchema: z.ZodObject<{
43
44
  kind: z.ZodLiteral<"set-site-style">;
44
45
  siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleRef, string>>;
45
46
  }, z.core.$strict>, z.ZodObject<{
46
- kind: z.ZodLiteral<"set-button-personality">;
47
- buttonPersonalityId: z.ZodNullable<z.ZodString>;
47
+ kind: z.ZodLiteral<"set-button-style">;
48
+ buttonStyleSelection: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
49
+ styleId: z.ZodLiteral<"soft-pill">;
50
+ parameters: z.ZodObject<{}, z.core.$strict>;
51
+ }, z.core.$strict>, z.ZodObject<{
52
+ styleId: z.ZodLiteral<"earth-pill">;
53
+ parameters: z.ZodObject<{}, z.core.$strict>;
54
+ }, z.core.$strict>, z.ZodObject<{
55
+ styleId: z.ZodLiteral<"confident-chip">;
56
+ parameters: z.ZodObject<{}, z.core.$strict>;
57
+ }, z.core.$strict>, z.ZodObject<{
58
+ styleId: z.ZodLiteral<"editorial-link">;
59
+ parameters: z.ZodObject<{}, z.core.$strict>;
60
+ }, z.core.$strict>, z.ZodObject<{
61
+ styleId: z.ZodLiteral<"pebble">;
62
+ parameters: z.ZodObject<{}, z.core.$strict>;
63
+ }, z.core.$strict>, z.ZodObject<{
64
+ styleId: z.ZodLiteral<"ink-stamp">;
65
+ parameters: z.ZodObject<{}, z.core.$strict>;
66
+ }, z.core.$strict>, z.ZodObject<{
67
+ styleId: z.ZodLiteral<"flat-ink">;
68
+ parameters: z.ZodObject<{}, z.core.$strict>;
69
+ }, z.core.$strict>, z.ZodObject<{
70
+ styleId: z.ZodLiteral<"brushed-wash">;
71
+ parameters: z.ZodObject<{}, z.core.$strict>;
72
+ }, z.core.$strict>, z.ZodObject<{
73
+ styleId: z.ZodLiteral<"showtime-pill">;
74
+ parameters: z.ZodObject<{}, z.core.$strict>;
75
+ }, z.core.$strict>, z.ZodObject<{
76
+ styleId: z.ZodLiteral<"joy-stamp">;
77
+ parameters: z.ZodObject<{}, z.core.$strict>;
78
+ }, z.core.$strict>, z.ZodObject<{
79
+ styleId: z.ZodLiteral<"ornate-ritual">;
80
+ parameters: z.ZodObject<{}, z.core.$strict>;
81
+ }, z.core.$strict>, z.ZodObject<{
82
+ styleId: z.ZodLiteral<"quiet-arrow">;
83
+ parameters: z.ZodObject<{
84
+ secondaryTreatment: z.ZodEnum<{
85
+ outlined: "outlined";
86
+ "solid-accent": "solid-accent";
87
+ }>;
88
+ }, z.core.$strict>;
89
+ }, z.core.$strict>], "styleId">>;
48
90
  }, z.core.$strict>, z.ZodObject<{
49
91
  kind: z.ZodLiteral<"set-palette">;
50
92
  command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
@@ -293,8 +335,8 @@ export declare const applySiteStyleSelectionCommandSchema: z.ZodObject<{
293
335
  }, z.core.$strip>;
294
336
  scale: z.ZodEnum<{
295
337
  compact: "compact";
296
- balanced: "balanced";
297
338
  spacious: "spacious";
339
+ balanced: "balanced";
298
340
  minorThird: "minorThird";
299
341
  majorThird: "majorThird";
300
342
  perfectFourth: "perfectFourth";
@@ -577,7 +619,7 @@ export declare const upsertFooterContentCommandSchema: z.ZodObject<{
577
619
  type: z.ZodLiteral<"upsertFooterContent">;
578
620
  ref: z.ZodPipe<z.ZodString, z.ZodTransform<FooterRef, string>>;
579
621
  input: z.ZodObject<{
580
- bottomText: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
622
+ bottomText: z.ZodOptional<z.ZodNullable<z.ZodCustom<RichTextDoc, RichTextDoc>>>;
581
623
  }, z.core.$strict>;
582
624
  }, z.core.$strict>;
583
625
  export declare const upsertContentEntryCommandSchema: z.ZodObject<{
@@ -824,8 +866,10 @@ export declare const upsertEventSeriesCommandSchema: z.ZodObject<{
824
866
  }, z.core.$strict>>>;
825
867
  content: z.ZodOptional<z.ZodObject<{
826
868
  summary: z.ZodOptional<z.ZodString>;
827
- body: z.ZodOptional<z.ZodUnknown>;
828
- image: z.ZodOptional<z.ZodUnknown>;
869
+ body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
870
+ image: z.ZodOptional<z.ZodObject<{
871
+ identifier: z.ZodString;
872
+ }, z.core.$catchall<z.ZodUnknown>>>;
829
873
  imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
830
874
  mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
831
875
  contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
@@ -938,8 +982,10 @@ export declare const upsertCourseCommandSchema: z.ZodObject<{
938
982
  }, z.core.$strict>>>;
939
983
  content: z.ZodOptional<z.ZodObject<{
940
984
  summary: z.ZodOptional<z.ZodString>;
941
- body: z.ZodOptional<z.ZodUnknown>;
942
- image: z.ZodOptional<z.ZodUnknown>;
985
+ body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
986
+ image: z.ZodOptional<z.ZodObject<{
987
+ identifier: z.ZodString;
988
+ }, z.core.$catchall<z.ZodUnknown>>>;
943
989
  imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
944
990
  mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
945
991
  contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
@@ -1378,8 +1424,49 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1378
1424
  kind: z.ZodLiteral<"set-site-style">;
1379
1425
  siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleRef, string>>;
1380
1426
  }, z.core.$strict>, z.ZodObject<{
1381
- kind: z.ZodLiteral<"set-button-personality">;
1382
- buttonPersonalityId: z.ZodNullable<z.ZodString>;
1427
+ kind: z.ZodLiteral<"set-button-style">;
1428
+ buttonStyleSelection: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1429
+ styleId: z.ZodLiteral<"soft-pill">;
1430
+ parameters: z.ZodObject<{}, z.core.$strict>;
1431
+ }, z.core.$strict>, z.ZodObject<{
1432
+ styleId: z.ZodLiteral<"earth-pill">;
1433
+ parameters: z.ZodObject<{}, z.core.$strict>;
1434
+ }, z.core.$strict>, z.ZodObject<{
1435
+ styleId: z.ZodLiteral<"confident-chip">;
1436
+ parameters: z.ZodObject<{}, z.core.$strict>;
1437
+ }, z.core.$strict>, z.ZodObject<{
1438
+ styleId: z.ZodLiteral<"editorial-link">;
1439
+ parameters: z.ZodObject<{}, z.core.$strict>;
1440
+ }, z.core.$strict>, z.ZodObject<{
1441
+ styleId: z.ZodLiteral<"pebble">;
1442
+ parameters: z.ZodObject<{}, z.core.$strict>;
1443
+ }, z.core.$strict>, z.ZodObject<{
1444
+ styleId: z.ZodLiteral<"ink-stamp">;
1445
+ parameters: z.ZodObject<{}, z.core.$strict>;
1446
+ }, z.core.$strict>, z.ZodObject<{
1447
+ styleId: z.ZodLiteral<"flat-ink">;
1448
+ parameters: z.ZodObject<{}, z.core.$strict>;
1449
+ }, z.core.$strict>, z.ZodObject<{
1450
+ styleId: z.ZodLiteral<"brushed-wash">;
1451
+ parameters: z.ZodObject<{}, z.core.$strict>;
1452
+ }, z.core.$strict>, z.ZodObject<{
1453
+ styleId: z.ZodLiteral<"showtime-pill">;
1454
+ parameters: z.ZodObject<{}, z.core.$strict>;
1455
+ }, z.core.$strict>, z.ZodObject<{
1456
+ styleId: z.ZodLiteral<"joy-stamp">;
1457
+ parameters: z.ZodObject<{}, z.core.$strict>;
1458
+ }, z.core.$strict>, z.ZodObject<{
1459
+ styleId: z.ZodLiteral<"ornate-ritual">;
1460
+ parameters: z.ZodObject<{}, z.core.$strict>;
1461
+ }, z.core.$strict>, z.ZodObject<{
1462
+ styleId: z.ZodLiteral<"quiet-arrow">;
1463
+ parameters: z.ZodObject<{
1464
+ secondaryTreatment: z.ZodEnum<{
1465
+ outlined: "outlined";
1466
+ "solid-accent": "solid-accent";
1467
+ }>;
1468
+ }, z.core.$strict>;
1469
+ }, z.core.$strict>], "styleId">>;
1383
1470
  }, z.core.$strict>, z.ZodObject<{
1384
1471
  kind: z.ZodLiteral<"set-palette">;
1385
1472
  command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
@@ -1628,8 +1715,8 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1628
1715
  }, z.core.$strip>;
1629
1716
  scale: z.ZodEnum<{
1630
1717
  compact: "compact";
1631
- balanced: "balanced";
1632
1718
  spacious: "spacious";
1719
+ balanced: "balanced";
1633
1720
  minorThird: "minorThird";
1634
1721
  majorThird: "majorThird";
1635
1722
  perfectFourth: "perfectFourth";
@@ -1859,7 +1946,7 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1859
1946
  type: z.ZodLiteral<"upsertFooterContent">;
1860
1947
  ref: z.ZodPipe<z.ZodString, z.ZodTransform<FooterRef, string>>;
1861
1948
  input: z.ZodObject<{
1862
- bottomText: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1949
+ bottomText: z.ZodOptional<z.ZodNullable<z.ZodCustom<RichTextDoc, RichTextDoc>>>;
1863
1950
  }, z.core.$strict>;
1864
1951
  }, z.core.$strict>, z.ZodObject<{
1865
1952
  type: z.ZodLiteral<"upsertContentEntry">;
@@ -2109,8 +2196,10 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2109
2196
  }, z.core.$strict>>>;
2110
2197
  content: z.ZodOptional<z.ZodObject<{
2111
2198
  summary: z.ZodOptional<z.ZodString>;
2112
- body: z.ZodOptional<z.ZodUnknown>;
2113
- image: z.ZodOptional<z.ZodUnknown>;
2199
+ body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
2200
+ image: z.ZodOptional<z.ZodObject<{
2201
+ identifier: z.ZodString;
2202
+ }, z.core.$catchall<z.ZodUnknown>>>;
2114
2203
  imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
2115
2204
  mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
2116
2205
  contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
@@ -2220,8 +2309,10 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2220
2309
  }, z.core.$strict>>>;
2221
2310
  content: z.ZodOptional<z.ZodObject<{
2222
2311
  summary: z.ZodOptional<z.ZodString>;
2223
- body: z.ZodOptional<z.ZodUnknown>;
2224
- image: z.ZodOptional<z.ZodUnknown>;
2312
+ body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
2313
+ image: z.ZodOptional<z.ZodObject<{
2314
+ identifier: z.ZodString;
2315
+ }, z.core.$catchall<z.ZodUnknown>>>;
2225
2316
  imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
2226
2317
  mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
2227
2318
  contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
@@ -2578,8 +2669,49 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
2578
2669
  kind: z.ZodLiteral<"set-site-style">;
2579
2670
  siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleRef, string>>;
2580
2671
  }, z.core.$strict>, z.ZodObject<{
2581
- kind: z.ZodLiteral<"set-button-personality">;
2582
- buttonPersonalityId: z.ZodNullable<z.ZodString>;
2672
+ kind: z.ZodLiteral<"set-button-style">;
2673
+ buttonStyleSelection: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2674
+ styleId: z.ZodLiteral<"soft-pill">;
2675
+ parameters: z.ZodObject<{}, z.core.$strict>;
2676
+ }, z.core.$strict>, z.ZodObject<{
2677
+ styleId: z.ZodLiteral<"earth-pill">;
2678
+ parameters: z.ZodObject<{}, z.core.$strict>;
2679
+ }, z.core.$strict>, z.ZodObject<{
2680
+ styleId: z.ZodLiteral<"confident-chip">;
2681
+ parameters: z.ZodObject<{}, z.core.$strict>;
2682
+ }, z.core.$strict>, z.ZodObject<{
2683
+ styleId: z.ZodLiteral<"editorial-link">;
2684
+ parameters: z.ZodObject<{}, z.core.$strict>;
2685
+ }, z.core.$strict>, z.ZodObject<{
2686
+ styleId: z.ZodLiteral<"pebble">;
2687
+ parameters: z.ZodObject<{}, z.core.$strict>;
2688
+ }, z.core.$strict>, z.ZodObject<{
2689
+ styleId: z.ZodLiteral<"ink-stamp">;
2690
+ parameters: z.ZodObject<{}, z.core.$strict>;
2691
+ }, z.core.$strict>, z.ZodObject<{
2692
+ styleId: z.ZodLiteral<"flat-ink">;
2693
+ parameters: z.ZodObject<{}, z.core.$strict>;
2694
+ }, z.core.$strict>, z.ZodObject<{
2695
+ styleId: z.ZodLiteral<"brushed-wash">;
2696
+ parameters: z.ZodObject<{}, z.core.$strict>;
2697
+ }, z.core.$strict>, z.ZodObject<{
2698
+ styleId: z.ZodLiteral<"showtime-pill">;
2699
+ parameters: z.ZodObject<{}, z.core.$strict>;
2700
+ }, z.core.$strict>, z.ZodObject<{
2701
+ styleId: z.ZodLiteral<"joy-stamp">;
2702
+ parameters: z.ZodObject<{}, z.core.$strict>;
2703
+ }, z.core.$strict>, z.ZodObject<{
2704
+ styleId: z.ZodLiteral<"ornate-ritual">;
2705
+ parameters: z.ZodObject<{}, z.core.$strict>;
2706
+ }, z.core.$strict>, z.ZodObject<{
2707
+ styleId: z.ZodLiteral<"quiet-arrow">;
2708
+ parameters: z.ZodObject<{
2709
+ secondaryTreatment: z.ZodEnum<{
2710
+ outlined: "outlined";
2711
+ "solid-accent": "solid-accent";
2712
+ }>;
2713
+ }, z.core.$strict>;
2714
+ }, z.core.$strict>], "styleId">>;
2583
2715
  }, z.core.$strict>, z.ZodObject<{
2584
2716
  kind: z.ZodLiteral<"set-palette">;
2585
2717
  command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
@@ -2828,8 +2960,8 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
2828
2960
  }, z.core.$strip>;
2829
2961
  scale: z.ZodEnum<{
2830
2962
  compact: "compact";
2831
- balanced: "balanced";
2832
2963
  spacious: "spacious";
2964
+ balanced: "balanced";
2833
2965
  minorThird: "minorThird";
2834
2966
  majorThird: "majorThird";
2835
2967
  perfectFourth: "perfectFourth";
@@ -3059,7 +3191,7 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
3059
3191
  type: z.ZodLiteral<"upsertFooterContent">;
3060
3192
  ref: z.ZodPipe<z.ZodString, z.ZodTransform<FooterRef, string>>;
3061
3193
  input: z.ZodObject<{
3062
- bottomText: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3194
+ bottomText: z.ZodOptional<z.ZodNullable<z.ZodCustom<RichTextDoc, RichTextDoc>>>;
3063
3195
  }, z.core.$strict>;
3064
3196
  }, z.core.$strict>, z.ZodObject<{
3065
3197
  type: z.ZodLiteral<"upsertContentEntry">;
@@ -3309,8 +3441,10 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
3309
3441
  }, z.core.$strict>>>;
3310
3442
  content: z.ZodOptional<z.ZodObject<{
3311
3443
  summary: z.ZodOptional<z.ZodString>;
3312
- body: z.ZodOptional<z.ZodUnknown>;
3313
- image: z.ZodOptional<z.ZodUnknown>;
3444
+ body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
3445
+ image: z.ZodOptional<z.ZodObject<{
3446
+ identifier: z.ZodString;
3447
+ }, z.core.$catchall<z.ZodUnknown>>>;
3314
3448
  imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
3315
3449
  mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
3316
3450
  contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
@@ -3420,8 +3554,10 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
3420
3554
  }, z.core.$strict>>>;
3421
3555
  content: z.ZodOptional<z.ZodObject<{
3422
3556
  summary: z.ZodOptional<z.ZodString>;
3423
- body: z.ZodOptional<z.ZodUnknown>;
3424
- image: z.ZodOptional<z.ZodUnknown>;
3557
+ body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
3558
+ image: z.ZodOptional<z.ZodObject<{
3559
+ identifier: z.ZodString;
3560
+ }, z.core.$catchall<z.ZodUnknown>>>;
3425
3561
  imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
3426
3562
  mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
3427
3563
  contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * A button variant may declare a trailing `affordance` icon (see
5
5
  * `ButtonVariantAffordance`). The generated button CSS renders that icon as a
6
- * masked `::after` pseudo-element, so the personality supplies it to every
6
+ * masked `::after` pseudo-element, so the theme supplies it to every
7
7
  * button of the variant without per-node authoring.
8
8
  *
9
9
  * Icons live in the `@riverbankcms/blocks` registry, but the button CSS is
@@ -11,7 +11,7 @@
11
11
  * the *affordance-eligible* icon path data (arrows/chevrons — the action-oriented
12
12
  * subset). The `d` values below are duplicated verbatim from the matching entries
13
13
  * in `blocks/src/system/icons/svg.tsx`; ids match the registry ids exactly so a
14
- * node-level `trailingIcon` and a personality `affordance` share one id space.
14
+ * node-level `trailingIcon` and a theme-owned `affordance` share one id space.
15
15
  *
16
16
  * Keep this set intentionally tiny. It is not the full CTA icon set — only the
17
17
  * shapes that read as a trailing affordance.
@@ -15,7 +15,6 @@ export interface ButtonVariantCore {
15
15
  export interface ButtonCoreSettings {
16
16
  readonly corners: 'square' | 'soft' | 'rounded' | 'pill';
17
17
  readonly shadow: 'none' | 'low' | 'medium' | 'high';
18
- readonly borderWidth: 'none' | 'thin' | 'medium' | 'thick';
19
18
  readonly fontWeight?: number;
20
19
  readonly textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize';
21
20
  }
@@ -1,4 +1,5 @@
1
- export type ButtonUnsupportedEffectReason = 'alpha_requires_surface' | 'changes_foreground' | 'changes_border' | 'changes_element_opacity' | 'unresolved_background_overlay' | 'not_button_effect';
1
+ import { type ButtonEffectApplication } from './types';
2
+ export type ButtonUnsupportedEffectReason = 'alpha_requires_surface' | 'changes_foreground' | 'changes_border' | 'changes_shadow_colour' | 'changes_element_opacity' | 'unresolved_background_overlay' | 'not_button_effect';
2
3
  export type ButtonEffectPolicy = Readonly<{
3
4
  classification: 'colour-transition';
4
5
  transition: Readonly<{
@@ -9,6 +10,8 @@ export type ButtonEffectPolicy = Readonly<{
9
10
  }>;
10
11
  }> | Readonly<{
11
12
  classification: 'non-colour';
13
+ }> | Readonly<{
14
+ classification: 'decorative-colour';
12
15
  }> | Readonly<{
13
16
  classification: 'unsupported-colour' | 'unsupported-background-overlay' | 'not-button';
14
17
  reason: ButtonUnsupportedEffectReason;
@@ -101,22 +104,24 @@ export declare const BUTTON_EFFECT_POLICIES: {
101
104
  readonly classification: "non-colour";
102
105
  };
103
106
  readonly 'border-glow': {
104
- readonly classification: "non-colour";
107
+ readonly classification: "unsupported-colour";
108
+ readonly reason: "changes_shadow_colour";
105
109
  };
106
110
  readonly 'drop-shadow': {
107
- readonly classification: "non-colour";
111
+ readonly classification: "decorative-colour";
108
112
  };
109
113
  readonly 'inner-shadow': {
110
- readonly classification: "non-colour";
114
+ readonly classification: "decorative-colour";
111
115
  };
112
116
  readonly 'neumorphic-shadow': {
113
- readonly classification: "non-colour";
117
+ readonly classification: "decorative-colour";
114
118
  };
115
119
  readonly 'outer-glow': {
116
- readonly classification: "non-colour";
120
+ readonly classification: "unsupported-colour";
121
+ readonly reason: "changes_shadow_colour";
117
122
  };
118
123
  readonly 'retro-3d-shadow': {
119
- readonly classification: "non-colour";
124
+ readonly classification: "decorative-colour";
120
125
  };
121
126
  readonly 'scale-up': {
122
127
  readonly classification: "non-colour";
@@ -137,11 +142,19 @@ export declare const BUTTON_EFFECT_POLICIES: {
137
142
  readonly classification: "non-colour";
138
143
  };
139
144
  readonly 'sketchy-border': {
140
- readonly classification: "non-colour";
145
+ readonly classification: "decorative-colour";
141
146
  };
142
147
  readonly 'pulse-animation': {
143
- readonly classification: "non-colour";
148
+ readonly classification: "unsupported-colour";
149
+ readonly reason: "changes_element_opacity";
144
150
  };
145
151
  };
152
+ export type ButtonEffectOptionsValidation = Readonly<{
153
+ ok: true;
154
+ }> | Readonly<{
155
+ ok: false;
156
+ option: string;
157
+ }>;
158
+ export declare function validateButtonEffectOptions(effect: ButtonEffectApplication): ButtonEffectOptionsValidation;
146
159
  export declare function getButtonEffectPolicy(effectId: string): ButtonEffectPolicy | null;
147
160
  export declare function classifyButtonEffectId(effectId: string): ButtonEffectClassification;
@@ -20,8 +20,7 @@ export declare const fadeBackgroundEffect: EffectPreset;
20
20
  /**
21
21
  * Reduce opacity on hover (simple opacity reduction)
22
22
  *
23
- * Works with all background types. Reduces opacity by a percentage (default 15%).
24
- * This is useful for default button styles that need simple hover feedback.
23
+ * Navigation-link effect that reduces opacity by a percentage (default 15%).
25
24
  */
26
25
  export declare const opacityReduceEffect: EffectPreset;
27
26
  /**
@@ -8,7 +8,6 @@ export declare const borderColorChangeEffect: EffectPreset;
8
8
  /**
9
9
  * Sketchy/hand-drawn border effect
10
10
  *
11
- * Creates an imperfect, hand-drawn appearance using multiple shadows,
12
- * filters, and slight rotation to simulate hand-drawn lines.
11
+ * Creates an imperfect, hand-drawn appearance using slight rotations.
13
12
  */
14
13
  export declare const sketchyBorderEffect: EffectPreset;
@@ -57,8 +57,10 @@ export declare const animatedGradientBorderFillEffect: EffectPreset;
57
57
  * Creates an animated underline that grows from one side on hover.
58
58
  * Uses ::after pseudo-element positioned at the bottom of the button.
59
59
  *
60
+ * The underline inherits `currentColor`, so it cannot create a second button
61
+ * colour authority or drift from the canonical foreground.
62
+ *
60
63
  * Options:
61
- * - colorToken: Color token for the border (default: neutral-400)
62
64
  * - height: Height of the border in pixels (default: 1)
63
65
  * - origin: Transform origin - 'left', 'center', or 'right' (default: left)
64
66
  */
@@ -31,8 +31,8 @@ export declare const neumorphicShadowEffect: EffectPreset;
31
31
  /**
32
32
  * Outer glow effect
33
33
  *
34
- * Creates an outer glow using box-shadow with no offset.
35
- * Can be used in base, hover, or active states for retro/neon aesthetics.
34
+ * Creates an outer glow around a navigation link using box-shadow with no
35
+ * offset.
36
36
  */
37
37
  export declare const outerGlowEffect: EffectPreset;
38
38
  /**
@@ -4,10 +4,10 @@ import type { Theme } from '../../schema';
4
4
  import type { InteractiveElementConfig } from '../../interactive/types';
5
5
  import type { InteractiveElementType } from '../../interactive/types';
6
6
  /**
7
- * Valid effect preset IDs
7
+ * Valid generic interactive-effect preset IDs.
8
8
  *
9
- * This union type ensures type safety when referencing effects in button variants.
10
- * If you add a new effect to the registry, add its ID here.
9
+ * Button variants deliberately use the narrower `ButtonEffectApplication`
10
+ * contract from `buttons/types.ts`; this registry also serves navigation.
11
11
  */
12
12
  export type EffectId = 'darken-background' | 'lighten-background' | 'fade-background' | 'opacity-reduce' | 'animated-gradient' | 'background-on-hover' | 'background-on-hover-alpha' | 'border-glow' | 'drop-shadow' | 'inner-shadow' | 'neumorphic-shadow' | 'outer-glow' | 'retro-3d-shadow' | 'scale-up' | 'scale-down' | 'lift' | 'press-down' | 'pop' | 'aurora-glow' | 'cosmic-stardust' | 'gradient-border-fill' | 'animated-gradient-border-fill' | 'border-bottom-grow' | 'gradient-text' | 'text-color-change' | 'border-color-change' | 'sketchy-border' | 'pulse-animation' | 'nav-underline' | 'nav-frosted-base' | 'nav-frosted-hover' | 'nav-frosted-active';
13
13
  /**
@@ -66,9 +66,10 @@ export interface CustomizableOption {
66
66
  options?: unknown[];
67
67
  }
68
68
  /**
69
- * Effect preset - a reusable CSS generator for button effects
69
+ * Effect preset - a reusable CSS generator for interactive-element effects.
70
70
  *
71
- * Effect presets are composable building blocks that can be combined to create complex button styles.
71
+ * The generic registry serves navigation and button emitters. Button persistence
72
+ * is governed by the closed `ButtonEffectApplication` schema, not this catalog.
72
73
  * They must use theme tokens (not hardcoded colors) and declare which category they belong to.
73
74
  */
74
75
  export interface EffectPreset {
@@ -89,13 +90,13 @@ export interface EffectPreset {
89
90
  /**
90
91
  * Which interactive element types can use this effect
91
92
  *
92
- * If undefined, the effect is assumed to work with all element types (backward compatible).
93
+ * If undefined, the generic emitter supports all interactive element types.
93
94
  * Use this to restrict effects that only make sense for certain elements.
94
95
  *
95
96
  * Examples:
96
97
  * - 'button' only: darken-background, lighten-background (require solid background)
97
98
  * - 'nav-link' only: nav-underline, nav-frosted
98
- * - both: scale-up, border-glow, text-color-change
99
+ * - both: scale-up
99
100
  */
100
101
  applicableTo?: InteractiveElementType[];
101
102
  /**
@@ -128,14 +129,3 @@ export interface EffectPreset {
128
129
  */
129
130
  isApplicable?: (buttonConfig: ButtonVariant | InteractiveElementConfig) => boolean;
130
131
  }
131
- /**
132
- * Reference to an effect preset with customization options
133
- *
134
- * This is what's stored in ButtonPreset.effects and ButtonVariant.effects
135
- */
136
- export interface EffectReference {
137
- /** Effect preset ID (type-safe) */
138
- effectId: EffectId;
139
- /** User-provided customization options */
140
- options?: Record<string, unknown>;
141
- }
@@ -2,8 +2,8 @@ import type { Theme } from '../schema';
2
2
  import type { ButtonSystem } from './types';
3
3
  /**
4
4
  * Class the `button` runtime node adds when it renders its own trailing icon,
5
- * so a node-level icon suppresses the personality's CSS `::after` affordance
6
- * (node overrides personality). Shared so generator and renderer can't drift.
5
+ * so a node-level icon suppresses the theme's CSS `::after` affordance.
6
+ * Shared so generator and renderer can't drift.
7
7
  */
8
8
  export declare const AFFORDANCE_SUPPRESS_CLASS = "rb-affordance-off";
9
9
  export interface GenerateButtonCssOptions {
@@ -3,11 +3,11 @@ import { type ButtonSystem } from './types';
3
3
  /**
4
4
  * Generate default button system from theme settings.
5
5
  *
6
- * Creates 4 sized variants when theme.buttons is not defined:
7
- * 1. Primary - primary color background with opacity-reduce hover effect
8
- * 2. Secondary - neutral-700 background with opacity-reduce hover effect
9
- * 3. Outline - transparent background with primary border and opacity-reduce hover effect
10
- * 4. Ghost - transparent background, no border, with opacity-reduce hover effect
6
+ * Creates 4 sized canonical variants when theme.buttons is not defined:
7
+ * 1. Primary - solid primary treatment
8
+ * 2. Secondary - solid neutral treatment
9
+ * 3. Outline - surface treatment with a border
10
+ * 4. Ghost - surface treatment without a border
11
11
  *
12
12
  * All four are sized variants — they inherit padding/fontSize from the theme's
13
13
  * `sizes` config (or the system defaults) so they're consistent at any size.
@@ -4,6 +4,7 @@
4
4
  * Complete button system including types, schemas, presets, and CSS variable generation.
5
5
  */
6
6
  export * from './types';
7
+ export * from './parseThemeForPersistence';
7
8
  export * from './classNames';
8
9
  export * from './generateButtonCss';
9
10
  export * from './resolveButtonColourStates';
@@ -11,8 +12,4 @@ export * from './affordanceIcons';
11
12
  export * from './generateDefaultButtonSystem';
12
13
  export * from './constants';
13
14
  export * from './presets';
14
- export * from './personalities';
15
- export * from './effects/types';
16
- export * from './effects/registry';
17
- export * from './effects/presets/transform';
18
- export * from './core';
15
+ export * from './styles';
@@ -0,0 +1,36 @@
1
+ import { type Theme } from '../schema';
2
+ import type { ZodIssue } from 'zod';
3
+ import { type ButtonColourContractError } from './resolveButtonColourStates';
4
+ export type ThemeButtonColourContractError = Readonly<{
5
+ kind: 'invalid-button-colour-contract';
6
+ variantId: string;
7
+ cause: ButtonColourContractError;
8
+ }>;
9
+ export type ThemePersistenceValidationError = Readonly<{
10
+ kind: 'invalid-theme-schema';
11
+ issues: readonly ZodIssue[];
12
+ }> | ThemeButtonColourContractError;
13
+ declare const validatedThemeForPersistenceBrand: unique symbol;
14
+ /**
15
+ * A schema-parsed Theme whose button variants all compile against its palette.
16
+ *
17
+ * The brand is intentionally phantom: validation does not mutate themes or add
18
+ * persistence-only data to the JSON document.
19
+ */
20
+ export type ValidatedThemeForPersistence = Theme & {
21
+ readonly [validatedThemeForPersistenceBrand]: true;
22
+ };
23
+ export type ThemeButtonColourContractResult = Readonly<{
24
+ ok: true;
25
+ value: ValidatedThemeForPersistence;
26
+ }> | Readonly<{
27
+ ok: false;
28
+ error: ThemePersistenceValidationError;
29
+ }>;
30
+ /**
31
+ * Proves that every persisted button variant compiles against the theme's
32
+ * concrete palette. Public rendering may still recover from malformed
33
+ * external/runtime input, but persistence boundaries must reject it.
34
+ */
35
+ export declare function parseThemeForPersistence(value: unknown): ThemeButtonColourContractResult;
36
+ export {};