@riverbankcms/sdk 0.153.0 → 0.155.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 (357) hide show
  1. package/README.md +2 -0
  2. package/dist/{EventEmbeddedCheckoutStep-veN-QiAE.mjs → EventEmbeddedCheckoutStep-DALtAjqG.mjs} +1 -1
  3. package/dist/{PreviewEditorSidebar-jI_4DTZY.mjs → PreviewEditorSidebar-CbSbqmz3.mjs} +219 -38
  4. package/dist/{PreviewEditorUI-ORkVZhfu.mjs → PreviewEditorUI-CKKnAw11.mjs} +26 -58
  5. package/dist/{SdkPreviewModeRuntime-DaNqevI1.mjs → SdkPreviewModeRuntime-wLkXrWy9.mjs} +177 -84
  6. package/dist/{SiteChromeCustomizeContext-CgNuBHC0.mjs → SiteChromeCustomizeContext-BQ8vvKb-.mjs} +9824 -5829
  7. package/dist/{ThemedButton-X2UxhW6F.mjs → ThemedButton-Bi0rgijy.mjs} +482 -85
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +42873 -16847
  9. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +5432 -1810
  10. package/dist/_dts/api/src/billing.d.ts +2 -0
  11. package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +78 -0
  12. package/dist/_dts/api/src/bookingAdjustments.d.ts +3 -2
  13. package/dist/_dts/api/src/bookingConfig.d.ts +4 -12
  14. package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +2 -2
  15. package/dist/_dts/api/src/bookingOperations.d.ts +11 -2
  16. package/dist/_dts/api/src/bookingPeople.d.ts +20 -1
  17. package/dist/_dts/api/src/bookingPeopleEndpointDefinitions.d.ts +8 -0
  18. package/dist/_dts/api/src/bookingRecords.d.ts +5 -106
  19. package/dist/_dts/api/src/bookings.d.ts +10 -4
  20. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
  21. package/dist/_dts/api/src/common/envelope.d.ts +2 -2
  22. package/dist/_dts/api/src/contentRuntime.d.ts +5 -3
  23. package/dist/_dts/api/src/endpoints.d.ts +89 -44
  24. package/dist/_dts/api/src/eventManagementContracts.d.ts +20 -11
  25. package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +1 -1
  26. package/dist/_dts/api/src/index.d.ts +9 -4
  27. package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
  28. package/dist/_dts/api/src/moneyPayments.d.ts +116 -0
  29. package/dist/_dts/api/src/onboarding/surfaceData.d.ts +2 -0
  30. package/dist/_dts/api/src/privacyPolicy.d.ts +20 -2
  31. package/dist/_dts/api/src/public/types.d.ts +1 -0
  32. package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +1 -0
  33. package/dist/_dts/api/src/publicBookingService.d.ts +1 -0
  34. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
  35. package/dist/_dts/api/src/sdk-event-management.d.ts +1 -0
  36. package/dist/_dts/api/src/sdk-event-upsert.d.ts +24 -9
  37. package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
  38. package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +5 -3
  39. package/dist/_dts/api/src/sdkPullEventContracts.d.ts +15 -4
  40. package/dist/_dts/api/src/sdkThemeWire.d.ts +172 -103
  41. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
  42. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +18 -0
  43. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +17 -16
  44. package/dist/_dts/api/src/siteSettings.d.ts +1 -0
  45. package/dist/_dts/api/src/siteTerms.d.ts +100 -0
  46. package/dist/_dts/api/src/stripeConnectSetup.d.ts +90 -0
  47. package/dist/_dts/api/src/types.d.ts +13 -32
  48. package/dist/_dts/api/src/webhooks.d.ts +9 -9
  49. package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -4
  50. package/dist/_dts/block-form/src/client/index.d.ts +2 -1
  51. package/dist/_dts/block-form/src/widgets/DateField/DateField.d.ts +3 -1
  52. package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +3 -1
  53. package/dist/_dts/block-form/src/widgets/DateTimeField/DateTimeField.d.ts +3 -1
  54. package/dist/_dts/blocks/src/client/carousel.d.ts +1 -0
  55. package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -1
  56. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +12 -33
  57. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +30 -118
  58. package/dist/_dts/blocks/src/index.d.ts +2 -2
  59. package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +1 -0
  60. package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -1
  61. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +1 -0
  62. package/dist/_dts/blocks/src/primitives/content/components/RichText.d.ts +1 -1
  63. package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +4 -1
  64. package/dist/_dts/blocks/src/primitives/layout/Section.d.ts +1 -0
  65. package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
  66. package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
  67. package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +1 -1
  68. package/dist/_dts/blocks/src/system/blocks/events/shared/fields.d.ts +0 -4
  69. package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +0 -1
  70. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +13 -9
  71. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -0
  72. package/dist/_dts/blocks/src/system/blocks/form.d.ts +10 -0
  73. package/dist/_dts/blocks/src/system/blocks/image-gallery/fields.d.ts +1 -0
  74. package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +6 -1
  75. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
  76. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -45
  77. package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +12 -0
  78. package/dist/_dts/blocks/src/system/blocks/offerings-preview/catalogue.d.ts +7 -1
  79. package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +14 -0
  80. package/dist/_dts/blocks/src/system/blocks/offerings-preview/itemData.d.ts +12 -0
  81. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +56 -6
  82. package/dist/_dts/blocks/src/system/blocks/offerings-preview/photoCount.d.ts +3 -12
  83. package/dist/_dts/blocks/src/system/blocks/shared/siteTerms.d.ts +17 -0
  84. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime-layout.d.ts +23 -0
  85. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime-profile.d.ts +20 -0
  86. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +17 -16
  87. package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +1 -1
  88. package/dist/_dts/blocks/src/system/customize/facets.d.ts +119 -9
  89. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +2 -1
  90. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +24 -24
  91. package/dist/_dts/blocks/src/system/manifest/validation.d.ts +3 -1
  92. package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +6 -0
  93. package/dist/_dts/blocks/src/system/node/fragments/index.d.ts +1 -0
  94. package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +22 -3
  95. package/dist/_dts/blocks/src/system/node/fragments/responsiveTwoColumn.d.ts +3 -1
  96. package/dist/_dts/blocks/src/system/node/fragments/sectionHead.d.ts +15 -0
  97. package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +4 -0
  98. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -0
  99. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +7 -0
  100. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +2 -0
  101. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -0
  102. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +3 -0
  103. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +51 -198
  104. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -99
  105. package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFlowController.d.ts +2 -0
  106. package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSubmission.d.ts +3 -2
  107. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +4 -0
  108. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -0
  109. package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.d.ts +17 -0
  110. package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.state.d.ts +42 -0
  111. package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +22 -4
  112. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +6 -2
  113. package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +2 -1
  114. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
  115. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +15 -0
  116. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +1 -0
  117. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -0
  118. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.d.ts +5 -30
  119. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.server.d.ts +3 -12
  120. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.shared.d.ts +71 -1
  121. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +16 -4
  122. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +1 -1
  123. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +3 -0
  124. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/CalendarAction.d.ts +5 -0
  125. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +2 -0
  126. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingCalendar.d.ts +16 -0
  127. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
  128. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/finishedBooking.d.ts +8 -0
  129. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +2 -0
  130. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +3 -1
  131. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +42 -0
  132. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -0
  133. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +1 -1
  134. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CardListItem.d.ts +26 -1
  135. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventItem.d.ts +17 -3
  136. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardListContent.d.ts +9 -1
  137. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +49 -21
  138. package/dist/_dts/blocks/src/system/runtime/nodes/form.fields.d.ts +5 -2
  139. package/dist/_dts/blocks/src/system/runtime/nodes/form.interactive.d.ts +11 -79
  140. package/dist/_dts/blocks/src/system/runtime/nodes/form.parts.d.ts +7 -0
  141. package/dist/_dts/blocks/src/system/runtime/nodes/form.server.d.ts +2 -13
  142. package/dist/_dts/blocks/src/system/runtime/nodes/gifting.interactive.d.ts +8 -0
  143. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +8 -72
  144. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.parts.d.ts +6 -6
  145. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +3 -2
  146. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-catalogue.d.ts +5 -3
  147. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-content.d.ts +4 -2
  148. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
  149. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
  150. package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +14 -0
  151. package/dist/_dts/blocks/src/system/runtime/shared/components/CheckboxChoice.d.ts +3 -1
  152. package/dist/_dts/blocks/src/system/runtime/shared/components/SiteTermsAgreementField.d.ts +13 -0
  153. package/dist/_dts/blocks/src/system/runtime/shared/siteTermsAgreement.d.ts +81 -0
  154. package/dist/_dts/blocks/src/system/runtime/shared/siteTermsCheckoutApi.d.ts +14 -0
  155. package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -0
  156. package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +2 -0
  157. package/dist/_dts/blocks/src/system/transforms/registry/footerArrangement.d.ts +6 -0
  158. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -11
  159. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -10
  160. package/dist/_dts/blocks/src/system/types/link.d.ts +2 -0
  161. package/dist/_dts/calendar/src/icsRenderer.d.ts +23 -0
  162. package/dist/_dts/calendar/src/index.d.ts +2 -0
  163. package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
  164. package/dist/_dts/commerce/src/purchase/orderConfirmationPlanning.d.ts +1 -0
  165. package/dist/_dts/commerce/src/purchase/types.d.ts +5 -0
  166. package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +5 -2
  167. package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +1 -1
  168. package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +6 -3
  169. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -1
  170. package/dist/_dts/content-editor/src/controller/editorLeaseParticipation.d.ts +1 -1
  171. package/dist/_dts/content-editor/src/controller/publicationDate.d.ts +5 -0
  172. package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
  173. package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +3 -1
  174. package/dist/_dts/content-editor/src/footerNavigationLayoutState.d.ts +56 -0
  175. package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
  176. package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +3 -4
  177. package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +11 -8
  178. package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +6 -5
  179. package/dist/_dts/content-model/src/content-types/schema.d.ts +4 -0
  180. package/dist/_dts/content-model/src/contentManifest.d.ts +10 -2
  181. package/dist/_dts/content-model/src/definitions/shared.d.ts +2 -0
  182. package/dist/_dts/core/src/booking-date-time.d.ts +5 -0
  183. package/dist/_dts/core/src/booking-refunds.d.ts +43 -0
  184. package/dist/_dts/core/src/branded.d.ts +6 -0
  185. package/dist/_dts/core/src/date-display.d.ts +90 -0
  186. package/dist/_dts/core/src/date-time-formatter.d.ts +2 -0
  187. package/dist/_dts/core/src/footer-arrangement.d.ts +8 -1
  188. package/dist/_dts/core/src/footer-composition-types.d.ts +6 -1
  189. package/dist/_dts/core/src/footer-composition.d.ts +1 -1
  190. package/dist/_dts/core/src/footer-navigation-layout.d.ts +3 -0
  191. package/dist/_dts/core/src/index.d.ts +4 -1
  192. package/dist/_dts/core/src/mailing-list-setup.d.ts +3 -0
  193. package/dist/_dts/core/src/mailing-list-submission.d.ts +6 -1
  194. package/dist/_dts/core/src/public-profile.d.ts +3 -1
  195. package/dist/_dts/core/src/scheduled-date-time.d.ts +69 -0
  196. package/dist/_dts/core/src/site-terms.d.ts +94 -0
  197. package/dist/_dts/core/src/whole-series-run-schedule.d.ts +2 -0
  198. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +356 -9
  199. package/dist/_dts/db/src/schemas/forms.d.ts +32 -32
  200. package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +2 -2
  201. package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +3 -2
  202. package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +2 -2
  203. package/dist/_dts/editor-blocks/src/widgets/link/LinkContentList.d.ts +2 -1
  204. package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -0
  205. package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
  206. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +3 -0
  207. package/dist/_dts/editor-blocks/src/widgets/link/draft.d.ts +6 -1
  208. package/dist/_dts/editor-blocks/src/widgets/link/index.d.ts +1 -0
  209. package/dist/_dts/preview-next/src/client/blocks/ArrangementBlockToolbar.d.ts +2 -1
  210. package/dist/_dts/preview-next/src/client/blocks/arrangementControlsModel.d.ts +8 -1
  211. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +4 -1
  212. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +3 -1
  213. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -0
  214. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
  215. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -1
  216. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +27 -5
  217. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +2 -0
  218. package/dist/_dts/preview-next/src/client/preview/useConfirmedPreferenceRecord.d.ts +12 -0
  219. package/dist/_dts/preview-next/src/client/preview/usePersistedFooterPreferences.d.ts +26 -0
  220. package/dist/_dts/preview-next/src/client/preview/usePersistedHeaderPreferences.d.ts +40 -2
  221. package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -0
  222. package/dist/_dts/sdk/src/config/typed-entry-links.test-d.d.ts +1 -0
  223. package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
  224. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -46
  225. package/dist/_dts/sdk/src/date-time/index.d.ts +2 -68
  226. package/dist/_dts/sdk/src/public-api/contracts.d.ts +4 -2
  227. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
  228. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -1
  229. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +7 -4
  230. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +3 -1
  231. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -1
  232. package/dist/_dts/sdk/src/version.d.ts +1 -1
  233. package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +1 -0
  234. package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +2 -0
  235. package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +2 -0
  236. package/dist/_dts/theme-core/src/buttons/styles/recipes/lanternRecipes.d.ts +60 -0
  237. package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +12 -8
  238. package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +69 -8
  239. package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +22 -1
  240. package/dist/_dts/theme-core/src/buttons/types.d.ts +358 -46
  241. package/dist/_dts/theme-core/src/buttons/typography.d.ts +24 -0
  242. package/dist/_dts/theme-core/src/cards/types.d.ts +8 -8
  243. package/dist/_dts/theme-core/src/footer/effectiveNavLinkStyle.d.ts +1 -1
  244. package/dist/_dts/theme-core/src/footer/generateFooterCss.d.ts +4 -1
  245. package/dist/_dts/theme-core/src/footer/mode.d.ts +2 -11
  246. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  247. package/dist/_dts/theme-core/src/header/containerSchema.d.ts +1 -0
  248. package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +3 -0
  249. package/dist/_dts/theme-core/src/inputs/checkable.d.ts +6 -0
  250. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +249 -147
  251. package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -4
  252. package/dist/_dts/theme-core/src/schema.d.ts +321 -192
  253. package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +2 -0
  254. package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +24 -7
  255. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  256. package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +4 -6
  257. package/dist/_dts/theme-core/src/site-styles/compileFooterAgainstRow.d.ts +121 -0
  258. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +81 -1
  259. package/dist/_dts/theme-core/src/site-styles/footerLookDefaults.d.ts +45 -0
  260. package/dist/_dts/theme-core/src/site-styles/footerLookRecipe.d.ts +50 -0
  261. package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +9 -35
  262. package/dist/_dts/theme-core/src/site-styles/footerPreferences.d.ts +29 -0
  263. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
  264. package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +4 -0
  265. package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +2 -3
  266. package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +13 -1
  267. package/dist/_dts/theme-core/src/site-styles/index.d.ts +4 -0
  268. package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +2 -2
  269. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
  270. package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +5 -0
  271. package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +8 -0
  272. package/dist/_dts/theme-core/src/site-styles/siteStyleTypography.d.ts +46 -0
  273. package/dist/_dts/theme-core/src/site-styles/themeParity.d.ts +1 -1
  274. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
  275. package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +4 -1
  276. package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +2 -0
  277. package/dist/_dts/theme-core/src/typography/schema.d.ts +9 -0
  278. package/dist/_dts/ui/src/calendar.d.ts +6 -1
  279. package/dist/_dts/ui/src/card.d.ts +1 -1
  280. package/dist/_dts/ui/src/index.d.ts +1 -1
  281. package/dist/client/{BookingMailingListNote-DrchYW1m.mjs → BookingMailingListNote-CiW1dsz7.mjs} +3 -3
  282. package/dist/client/{CardListItem-CC_GVmF6.mjs → CardListItem-DVYTlYpS.mjs} +70 -13
  283. package/dist/client/CheckboxChoice-CUnPrBlC.mjs +44 -0
  284. package/dist/client/DemoBookingPortalAccess-DEsn5F2C.mjs +770 -0
  285. package/dist/client/{EventCombined.client-DyN0v0Xk.mjs → EventCombined.client-BdctbwnV.mjs} +5 -5
  286. package/dist/client/{EventEmbeddedCheckoutStep-CgfpKc3n.mjs → EventEmbeddedCheckoutStep-DAhQs6Jb.mjs} +2 -5
  287. package/dist/client/{EventListing.client-CuOuvYMz.mjs → EventListing.client-BviZXfAE.mjs} +2 -2
  288. package/dist/client/{mailingListSignupCopy-DZSHZrm6.mjs → FieldValidationMessage-AYanWFb-.mjs} +1 -14
  289. package/dist/client/{LeafletStaticMap-B0WhRr3j.mjs → LeafletStaticMap-BLTECfjU.mjs} +1 -1
  290. package/dist/client/{RichText-C1fIXBzA.mjs → RichText-D3oE1_pw.mjs} +77 -44
  291. package/dist/client/ThemedButton-Ckj0Rfr_.mjs +1256 -0
  292. package/dist/client/{accordion-DCDVWSye.mjs → accordion-yBx6d4O2.mjs} +1 -1
  293. package/dist/client/{bookingForm-BJ3C4GlM.mjs → bookingForm-CPDEsQci.mjs} +64 -35
  294. package/dist/client/bookings.mjs +19252 -15228
  295. package/dist/client/carousel-DCqjwd2s.mjs +71 -0
  296. package/dist/client/{carousel.client-GEtOGsxo.mjs → carousel.client-Bx7XMF8-.mjs} +114 -39
  297. package/dist/client/{cart-Yv-aAtck.mjs → cart-DWJXrQxs.mjs} +3 -3
  298. package/dist/client/{checkout-B9xDkl30.mjs → checkout-CH4ypSLS.mjs} +3 -3
  299. package/dist/client/client.mjs +13559 -7353
  300. package/dist/client/{context-BOGe3rIA.mjs → context-BOs0m_iw.mjs} +16 -12
  301. package/dist/client/{eventCalendar-D6M0T9hs.mjs → eventCalendar-CRylMllc.mjs} +8 -319
  302. package/dist/client/{eventCombined-NM4UFBq8.mjs → eventCombined-DohTS3kp.mjs} +4 -4
  303. package/dist/client/{eventDetails-f_FhV4O8.mjs → eventDetails-qf-u9zcF.mjs} +108 -36
  304. package/dist/client/{eventListing-WLkfAROh.mjs → eventListing-Cg__X2vy.mjs} +4 -4
  305. package/dist/client/{eventRegistration-D3ejfLvW.mjs → eventRegistration-CybWxswy.mjs} +215 -237
  306. package/dist/client/{form-D5Or2Jyu.mjs → form-C-SGk6nq.mjs} +115 -51
  307. package/dist/client/{headerSection-hWgnv27V.mjs → headerSection-BdzPaHqo.mjs} +3 -3
  308. package/dist/client/hooks.mjs +3280 -1362
  309. package/dist/client/{locationMap-Di1K0O2S.mjs → locationMap-CEwIKmMb.mjs} +3 -3
  310. package/dist/client/mailingListSignupCopy-DS-_ePzG.mjs +14 -0
  311. package/dist/client/{media-D29-F1u_.mjs → media-V_ShXXru.mjs} +3 -3
  312. package/dist/client/{mediaContext-CwbbimYB.mjs → mediaContext-D-0tNVxE.mjs} +1 -1
  313. package/dist/client/{newsletterForm-CwxcwTNO.mjs → newsletterForm-CmwTltoS.mjs} +52 -15
  314. package/dist/client/{productDetail-BLSnhPdA.mjs → productDetail-DjIzUwg3.mjs} +3 -3
  315. package/dist/client/{productList-oGytONOX.mjs → productList-D6JGFnMF.mjs} +3 -3
  316. package/dist/client/{propsDecoder-lf_dTeZS.mjs → propsDecoder-BRKz13eg.mjs} +17944 -14861
  317. package/dist/client/{renderableMediaAssetAdmission-CHkXYDC_.mjs → renderableMediaAssetAdmission-Cd3JSw2H.mjs} +3 -1
  318. package/dist/client/rendering/client.mjs +15893 -11685
  319. package/dist/client/rendering/islands.mjs +19 -19
  320. package/dist/client/rendering.mjs +14451 -8139
  321. package/dist/client/{routeIslandApiConfig-Bc_WVPS8.mjs → routeIslandApiConfig-slAAILQ5.mjs} +1 -1
  322. package/dist/client/{shop-BQ3bR7fA.mjs → shop-C45K96_0.mjs} +178 -157
  323. package/dist/client/{shop-commerce-DDPll6ZC.mjs → shop-commerce-oGBiKT5d.mjs} +23 -10
  324. package/dist/client/{shop-commerce-store-DO-e1pTe.mjs → shop-commerce-store-H_HFPFZ8.mjs} +1 -1
  325. package/dist/client/{shopShared-BylM9jh1.mjs → shopShared-D54T_LAV.mjs} +5 -5
  326. package/dist/client/{useDiscountCodeUi-B1Puub2v.mjs → useDiscountCodeUi-Dm2EUa03.mjs} +1 -1
  327. package/dist/client/{useEventPagination-BBhkmQaT.mjs → useEventPagination-0l_A8CxG.mjs} +62 -24
  328. package/dist/preview-next/before-render.mjs +134 -51
  329. package/dist/preview-next/client/runtime.mjs +3 -3
  330. package/dist/preview-next/editor-chrome.css +5 -2
  331. package/dist/preview-next/keepAlive.mjs +134 -51
  332. package/dist/preview-next/middleware.mjs +134 -51
  333. package/dist/{sdk-runtime-DWCvhJGu.mjs → sdk-runtime-CjTM32Ah.mjs} +1 -1
  334. package/dist/server/components.mjs +15231 -10855
  335. package/dist/server/config-validation.mjs +3153 -1323
  336. package/dist/server/config.mjs +3119 -1321
  337. package/dist/server/data.mjs +3201 -1329
  338. package/dist/server/date-time.mjs +270 -117
  339. package/dist/server/index.mjs +137 -52
  340. package/dist/server/next.mjs +14713 -10388
  341. package/dist/server/page-converter.mjs +2642 -1073
  342. package/dist/server/prebuild.mjs +1 -1
  343. package/dist/server/rendering/server.mjs +14674 -10630
  344. package/dist/server/rendering.mjs +15055 -10670
  345. package/dist/server/routing.mjs +3483 -1488
  346. package/dist/server/server.mjs +3620 -1740
  347. package/dist/server/theme-bridge.mjs +2694 -189
  348. package/dist/server/theme.mjs +422 -67
  349. package/dist/{spinner-BYM-Y81w.mjs → spinner-KVVZh8jd.mjs} +1 -1
  350. package/dist/src-BgmWy3P1.mjs +1667 -0
  351. package/dist/styles/index.css +1196 -2
  352. package/package.json +1 -1
  353. package/dist/_dts/blocks/src/system/blocks/events/shared/layout.d.ts +0 -12
  354. package/dist/client/CheckboxChoice-Dq30m3DO.mjs +0 -24
  355. package/dist/client/DemoBookingPortalAccess-ojwbVUmx.mjs +0 -344
  356. package/dist/client/ThemedButton-B7HFqFBg.mjs +0 -411
  357. package/dist/client/carousel-BSCBhfHY.mjs +0 -38
@@ -24,77 +24,26 @@ export declare const runtimeBackedBlockServerEntries: {
24
24
  readonly form: Readonly<{
25
25
  definition: RuntimeBackedBlockDefinition<Readonly<{
26
26
  kind: "progressive";
27
- buildRender: (source: Readonly<{
28
- value?: import("../nodes/form.types").FormRecord;
29
- siteId?: string;
30
- apiBaseUrl?: string;
31
- submitLabel?: string;
32
- successMessage?: string | null;
33
- className?: string;
34
- spamProtectionEnabled?: boolean;
35
- }>) => Readonly<{
36
- display: Readonly<{
37
- kind: "form";
38
- state: "missing" | "ready";
39
- className: string | null;
40
- formId: string | null;
41
- submitLabel: string;
42
- successMessage: string | null;
43
- form: import("../nodes/form.types").FormRecord | null;
44
- groups: readonly import("../nodes/form-layout").FormFieldGroup[];
45
- }>;
27
+ buildRender: (source: import("../nodes/form.interactive").FormSourceProps) => Readonly<{
28
+ display: import("../nodes/form.interactive").FormDisplay;
46
29
  hydration: Readonly<{
47
30
  spamProtectionEnabled?: boolean;
48
31
  }>;
49
32
  }>;
50
33
  contracts: Readonly<{
51
34
  source: Readonly<{
52
- encode: (value: Readonly<{
53
- value?: import("../nodes/form.types").FormRecord;
54
- siteId?: string;
55
- apiBaseUrl?: string;
56
- submitLabel?: string;
57
- successMessage?: string | null;
58
- className?: string;
59
- spamProtectionEnabled?: boolean;
60
- }>) => unknown;
61
- decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
62
- value?: import("../nodes/form.types").FormRecord;
63
- siteId?: string;
64
- apiBaseUrl?: string;
65
- submitLabel?: string;
66
- successMessage?: string | null;
67
- className?: string;
68
- spamProtectionEnabled?: boolean;
69
- }>>;
35
+ encode: (value: import("../nodes/form.interactive").FormSourceProps) => unknown;
36
+ decode: (input: unknown) => import("../../../contracts").DecodeResult<import("../nodes/form.interactive").FormSourceProps>;
70
37
  }>;
71
38
  render: Readonly<{
72
39
  encode: (value: Readonly<{
73
- display: Readonly<{
74
- kind: "form";
75
- state: "missing" | "ready";
76
- className: string | null;
77
- formId: string | null;
78
- submitLabel: string;
79
- successMessage: string | null;
80
- form: import("../nodes/form.types").FormRecord | null;
81
- groups: readonly import("../nodes/form-layout").FormFieldGroup[];
82
- }>;
40
+ display: import("../nodes/form.interactive").FormDisplay;
83
41
  hydration: Readonly<{
84
42
  spamProtectionEnabled?: boolean;
85
43
  }>;
86
44
  }>) => unknown;
87
45
  decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
88
- display: Readonly<{
89
- kind: "form";
90
- state: "missing" | "ready";
91
- className: string | null;
92
- formId: string | null;
93
- submitLabel: string;
94
- successMessage: string | null;
95
- form: import("../nodes/form.types").FormRecord | null;
96
- groups: readonly import("../nodes/form-layout").FormFieldGroup[];
97
- }>;
46
+ display: import("../nodes/form.interactive").FormDisplay;
98
47
  hydration: Readonly<{
99
48
  spamProtectionEnabled?: boolean;
100
49
  }>;
@@ -256,20 +205,7 @@ export declare const runtimeBackedBlockServerEntries: {
256
205
  definition: RuntimeBackedBlockDefinition<Readonly<{
257
206
  kind: "progressive";
258
207
  buildRender: (source: import("../nodes/newsletter-form.types").NewsletterFormProps) => Readonly<{
259
- display: Readonly<{
260
- kind: "newsletter-form";
261
- availability: "ready" | "unavailable";
262
- className: string | null;
263
- buttonLabel: string;
264
- successMessage: string;
265
- buttonVariant: import("../nodes/newsletter-form.types").NewsletterButtonVariant;
266
- privacyNote: string | null;
267
- fields: readonly import("../nodes/newsletter-form.types").NewsletterFieldDef[];
268
- choices: readonly Readonly<{
269
- id: string;
270
- label: string;
271
- }>[];
272
- }>;
208
+ display: import("../nodes/newsletter-form.interactive").NewsletterFormDisplay;
273
209
  hydration: Readonly<{
274
210
  target: import("../nodes/newsletter-form.interactive").NewsletterFormHydrationTarget;
275
211
  setupRevision: number | null;
@@ -285,20 +221,7 @@ export declare const runtimeBackedBlockServerEntries: {
285
221
  }>;
286
222
  render: Readonly<{
287
223
  encode: (value: Readonly<{
288
- display: Readonly<{
289
- kind: "newsletter-form";
290
- availability: "ready" | "unavailable";
291
- className: string | null;
292
- buttonLabel: string;
293
- successMessage: string;
294
- buttonVariant: import("../nodes/newsletter-form.types").NewsletterButtonVariant;
295
- privacyNote: string | null;
296
- fields: readonly import("../nodes/newsletter-form.types").NewsletterFieldDef[];
297
- choices: readonly Readonly<{
298
- id: string;
299
- label: string;
300
- }>[];
301
- }>;
224
+ display: import("../nodes/newsletter-form.interactive").NewsletterFormDisplay;
302
225
  hydration: Readonly<{
303
226
  target: import("../nodes/newsletter-form.interactive").NewsletterFormHydrationTarget;
304
227
  setupRevision: number | null;
@@ -308,20 +231,7 @@ export declare const runtimeBackedBlockServerEntries: {
308
231
  }>;
309
232
  }>) => unknown;
310
233
  decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
311
- display: Readonly<{
312
- kind: "newsletter-form";
313
- availability: "ready" | "unavailable";
314
- className: string | null;
315
- buttonLabel: string;
316
- successMessage: string;
317
- buttonVariant: import("../nodes/newsletter-form.types").NewsletterButtonVariant;
318
- privacyNote: string | null;
319
- fields: readonly import("../nodes/newsletter-form.types").NewsletterFieldDef[];
320
- choices: readonly Readonly<{
321
- id: string;
322
- label: string;
323
- }>[];
324
- }>;
234
+ display: import("../nodes/newsletter-form.interactive").NewsletterFormDisplay;
325
235
  hydration: Readonly<{
326
236
  target: import("../nodes/newsletter-form.interactive").NewsletterFormHydrationTarget;
327
237
  setupRevision: number | null;
@@ -612,6 +522,7 @@ export declare const runtimeBackedBlockServerEntries: {
612
522
  hydration: Readonly<{
613
523
  emptyStateText: string;
614
524
  submitButtonText: string;
525
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
615
526
  demoEmailSuppressed?: boolean;
616
527
  }>;
617
528
  }>;
@@ -633,6 +544,7 @@ export declare const runtimeBackedBlockServerEntries: {
633
544
  hydration: Readonly<{
634
545
  emptyStateText: string;
635
546
  submitButtonText: string;
547
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
636
548
  demoEmailSuppressed?: boolean;
637
549
  }>;
638
550
  }>) => unknown;
@@ -648,6 +560,7 @@ export declare const runtimeBackedBlockServerEntries: {
648
560
  hydration: Readonly<{
649
561
  emptyStateText: string;
650
562
  submitButtonText: string;
563
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
651
564
  demoEmailSuppressed?: boolean;
652
565
  }>;
653
566
  }>>;
@@ -672,6 +585,7 @@ export declare const runtimeBackedBlockServerEntries: {
672
585
  emptyStateText: string;
673
586
  }>;
674
587
  hydration: Readonly<{
588
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
675
589
  offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
676
590
  checkoutButtonText: string;
677
591
  successMessage: string;
@@ -695,6 +609,7 @@ export declare const runtimeBackedBlockServerEntries: {
695
609
  emptyStateText: string;
696
610
  }>;
697
611
  hydration: Readonly<{
612
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
698
613
  offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
699
614
  checkoutButtonText: string;
700
615
  successMessage: string;
@@ -712,6 +627,7 @@ export declare const runtimeBackedBlockServerEntries: {
712
627
  emptyStateText: string;
713
628
  }>;
714
629
  hydration: Readonly<{
630
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
715
631
  offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
716
632
  checkoutButtonText: string;
717
633
  successMessage: string;
@@ -756,6 +672,7 @@ export declare const runtimeBackedBlockServerEntries: {
756
672
  memberships: readonly import("../..").PublicMembershipProduct[];
757
673
  }> | null;
758
674
  mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
675
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
759
676
  siteName?: string;
760
677
  bookingOfferingPresets?: readonly Readonly<{
761
678
  id: string;
@@ -802,6 +719,7 @@ export declare const runtimeBackedBlockServerEntries: {
802
719
  memberships: readonly import("../..").PublicMembershipProduct[];
803
720
  }> | null;
804
721
  mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
722
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
805
723
  siteName?: string;
806
724
  bookingOfferingPresets?: readonly Readonly<{
807
725
  id: string;
@@ -841,6 +759,7 @@ export declare const runtimeBackedBlockServerEntries: {
841
759
  memberships: readonly import("../..").PublicMembershipProduct[];
842
760
  }> | null;
843
761
  mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
762
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
844
763
  siteName?: string;
845
764
  bookingOfferingPresets?: readonly Readonly<{
846
765
  id: string;
@@ -920,6 +839,7 @@ export declare const runtimeBackedBlockServerEntries: {
920
839
  memberships: readonly import("../..").PublicMembershipProduct[];
921
840
  passPurchaseMode: "add_to_cart" | "buy_now";
922
841
  buttonVariant: import("../../..").BlockButtonRole;
842
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
923
843
  demoEmailSuppressed?: boolean;
924
844
  }>;
925
845
  }>;
@@ -976,6 +896,7 @@ export declare const runtimeBackedBlockServerEntries: {
976
896
  memberships: readonly import("../..").PublicMembershipProduct[];
977
897
  passPurchaseMode: "add_to_cart" | "buy_now";
978
898
  buttonVariant: import("../../..").BlockButtonRole;
899
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
979
900
  demoEmailSuppressed?: boolean;
980
901
  }>;
981
902
  }>) => unknown;
@@ -1026,6 +947,7 @@ export declare const runtimeBackedBlockServerEntries: {
1026
947
  memberships: readonly import("../..").PublicMembershipProduct[];
1027
948
  passPurchaseMode: "add_to_cart" | "buy_now";
1028
949
  buttonVariant: import("../../..").BlockButtonRole;
950
+ siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
1029
951
  demoEmailSuppressed?: boolean;
1030
952
  }>;
1031
953
  }>>;
@@ -5,6 +5,8 @@ type BookingControllerInput = Omit<Parameters<typeof buildBookingSubmitPlan>[0],
5
5
  discountCode: string;
6
6
  mailingListEligible: boolean;
7
7
  submit: ReturnType<typeof useBookingSubmission>['submit'];
8
+ /** The site terms box's client-side required check; it shows its own error. */
9
+ requireSiteTerms: () => boolean;
8
10
  clearFeedback: () => void;
9
11
  setDiscountCode: (code: string) => void;
10
12
  navigateToCheckout: (url: string) => void;
@@ -5,6 +5,7 @@
5
5
  * Must be used within a BlockApiProvider.
6
6
  */
7
7
  import { type ActionResult, type FeedbackState } from '@riverbankcms/frontend-state';
8
+ import type { useSiteTermsAgreement } from './useSiteTermsAgreement';
8
9
  import type { BookingSubmitResponse } from '../api/types';
9
10
  import type { BookingSubmissionData } from '../nodes/booking-form.state';
10
11
  type UseBookingSubmissionResult = {
@@ -25,7 +26,7 @@ type UseBookingSubmissionResult = {
25
26
  * @example
26
27
  * ```tsx
27
28
  * function BookingForm({ siteId }) {
28
- * const { submit, isSubmitting, feedback } = useBookingSubmission(siteId);
29
+ * const { submit, isSubmitting, feedback } = useBookingSubmission(siteId, terms);
29
30
  *
30
31
  * const handleSubmit = async () => {
31
32
  * await submit({
@@ -40,5 +41,5 @@ type UseBookingSubmissionResult = {
40
41
  * }
41
42
  * ```
42
43
  */
43
- export declare function useBookingSubmission(_siteId: string): UseBookingSubmissionResult;
44
+ export declare function useBookingSubmission(_siteId: string, terms: Pick<ReturnType<typeof useSiteTermsAgreement>, 'api'>): UseBookingSubmissionResult;
44
45
  export {};
@@ -1,3 +1,5 @@
1
+ import { useSiteTermsAgreement } from './useSiteTermsAgreement';
2
+ import type { BlockSiteTerms } from '../../blocks/shared/siteTerms';
1
3
  import React from "react";
2
4
  import type { AppointmentBookingReview, MailingListRuntimeContext } from "../../../../../core/src/index";
3
5
  import { type BlockApiConfig } from "../api";
@@ -11,6 +13,7 @@ export type { BookingAppointmentPackagesModel };
11
13
  export { createBookingBlockApiConfig };
12
14
  export type HeadlessBookingFlowOptions = Readonly<{
13
15
  mailingList?: MailingListRuntimeContext;
16
+ siteTerms?: BlockSiteTerms;
14
17
  siteName?: string;
15
18
  siteId: string;
16
19
  formId: string;
@@ -140,6 +143,7 @@ export type BookingFlowActions = Readonly<{
140
143
  clearFeedback: () => void;
141
144
  }>;
142
145
  export type HeadlessBookingFlow = Readonly<{
146
+ siteTerms: ReturnType<typeof useSiteTermsAgreement>;
143
147
  mailingList: Readonly<{
144
148
  siteName: string;
145
149
  }> | null;
@@ -1,3 +1,4 @@
1
+ import type { BlockSiteTerms } from '../../blocks/shared/siteTerms';
1
2
  import React from 'react';
2
3
  import { type BlockApiConfig } from '../api';
3
4
  import type { EventRegistrationClientProps } from '../nodes/event-registration/types';
@@ -22,6 +23,7 @@ export type HeadlessEventRegistrationFlowOptions = Readonly<{
22
23
  maxTickets?: string | number;
23
24
  spamProtectionEnabled?: boolean;
24
25
  mailingList?: EventRegistrationClientProps['mailingList'];
26
+ siteTerms?: BlockSiteTerms;
25
27
  siteName?: string;
26
28
  }>;
27
29
  export type HeadlessEventRegistrationProviderProps = Readonly<{
@@ -0,0 +1,17 @@
1
+ import { type BoundBlockApiClient } from '../api/client';
2
+ import { type BlockSiteTerms } from '../../blocks/shared/siteTerms';
3
+ import { type SiteTermsCheckoutContext, type SiteTermsAgreementView } from '../shared/siteTermsAgreement';
4
+ export declare function siteTermsFailureKind(error: unknown): 'changed' | 'missing' | null;
5
+ export declare function useSiteTermsAgreement(options: Readonly<{
6
+ terms: BlockSiteTerms | undefined;
7
+ context: SiteTermsCheckoutContext;
8
+ }>): {
9
+ api: BoundBlockApiClient;
10
+ view: SiteTermsAgreementView;
11
+ commerceView: SiteTermsAgreementView;
12
+ onChange: (checked: boolean) => void;
13
+ requireAgreement: (surface?: "primary" | "commerce") => boolean;
14
+ notice: string | null;
15
+ error: string | null;
16
+ disabled: boolean;
17
+ };
@@ -0,0 +1,42 @@
1
+ import type { BlockSiteTerms, VerifiedSiteTermsAcceptance } from '../../blocks/shared/siteTerms';
2
+ import type { SiteTermsPresentationState } from '../shared/siteTermsAgreement';
3
+ export type SiteTermsAgreementState = SiteTermsPresentationState & Readonly<{
4
+ acceptanceRead: symbol | null;
5
+ error: string | null;
6
+ recovery: 'ready' | 'refreshing' | 'unavailable';
7
+ /** The terms changed under an in-progress checkout; shown as a banner, not a field error. */
8
+ changedNotice: boolean;
9
+ }>;
10
+ export type SiteTermsAgreementEvent = Readonly<{
11
+ kind: 'ticked';
12
+ versionId: string | null;
13
+ }> | Readonly<{
14
+ kind: 'acceptance_loading';
15
+ identity: string | null;
16
+ requestId: symbol;
17
+ }> | Readonly<{
18
+ kind: 'acceptance';
19
+ requestId: symbol;
20
+ value: VerifiedSiteTermsAcceptance | null;
21
+ }> | Readonly<{
22
+ kind: 'missing';
23
+ message: string;
24
+ targetKey: string | null;
25
+ }> | Readonly<{
26
+ kind: 'changed';
27
+ targetKey: string | null;
28
+ }> | Readonly<{
29
+ kind: 'refreshed';
30
+ terms: BlockSiteTerms;
31
+ projectionKey: string;
32
+ identity: string | null;
33
+ acceptance: VerifiedSiteTermsAcceptance | null;
34
+ }> | Readonly<{
35
+ kind: 'refresh_failed';
36
+ }> | Readonly<{
37
+ kind: 'accepted';
38
+ acceptance: VerifiedSiteTermsAcceptance | null;
39
+ identity: string | null;
40
+ }>;
41
+ export declare const initialSiteTermsAgreementState: SiteTermsAgreementState;
42
+ export declare function siteTermsAgreementReducer(state: SiteTermsAgreementState, event: SiteTermsAgreementEvent): SiteTermsAgreementState;
@@ -67,25 +67,30 @@ export declare const lookListPresentationSchemaShape: {
67
67
  time: "time";
68
68
  layout: "layout";
69
69
  group: "group";
70
+ contact: "contact";
70
71
  stack: "stack";
71
72
  inline: "inline";
72
73
  heading: "heading";
73
74
  intro: "intro";
74
75
  section: "section";
75
76
  navigation: "navigation";
77
+ head: "head";
78
+ social: "social";
79
+ panel: "panel";
80
+ base: "base";
76
81
  row: "row";
77
82
  media: "media";
78
83
  caption: "caption";
79
84
  items: "items";
80
85
  item: "item";
81
86
  places: "places";
87
+ background: "background";
82
88
  eyebrow: "eyebrow";
83
89
  mark: "mark";
84
90
  controls: "controls";
85
91
  icon: "icon";
86
92
  copy: "copy";
87
93
  grid: "grid";
88
- panel: "panel";
89
94
  facts: "facts";
90
95
  chips: "chips";
91
96
  numeral: "numeral";
@@ -97,7 +102,8 @@ export declare const lookListPresentationSchemaShape: {
97
102
  sticker: "sticker";
98
103
  list: "list";
99
104
  frame: "frame";
100
- head: "head";
105
+ "schedule-section": "schedule-section";
106
+ "shop-section": "shop-section";
101
107
  headline: "headline";
102
108
  lede: "lede";
103
109
  actions: "actions";
@@ -142,25 +148,30 @@ export declare const lookListPresentationSchemaShape: {
142
148
  time: "time";
143
149
  layout: "layout";
144
150
  group: "group";
151
+ contact: "contact";
145
152
  stack: "stack";
146
153
  inline: "inline";
147
154
  heading: "heading";
148
155
  intro: "intro";
149
156
  section: "section";
150
157
  navigation: "navigation";
158
+ head: "head";
159
+ social: "social";
160
+ panel: "panel";
161
+ base: "base";
151
162
  row: "row";
152
163
  media: "media";
153
164
  caption: "caption";
154
165
  items: "items";
155
166
  item: "item";
156
167
  places: "places";
168
+ background: "background";
157
169
  eyebrow: "eyebrow";
158
170
  mark: "mark";
159
171
  controls: "controls";
160
172
  icon: "icon";
161
173
  copy: "copy";
162
174
  grid: "grid";
163
- panel: "panel";
164
175
  facts: "facts";
165
176
  chips: "chips";
166
177
  numeral: "numeral";
@@ -172,7 +183,8 @@ export declare const lookListPresentationSchemaShape: {
172
183
  sticker: "sticker";
173
184
  list: "list";
174
185
  frame: "frame";
175
- head: "head";
186
+ "schedule-section": "schedule-section";
187
+ "shop-section": "shop-section";
176
188
  headline: "headline";
177
189
  lede: "lede";
178
190
  actions: "actions";
@@ -212,5 +224,11 @@ export declare const lookListPresentationSchemaShape: {
212
224
  itemSurfaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<ResolvedSurface, ResolvedSurface>>>;
213
225
  };
214
226
  export declare function listLookSlot(presentation: LookListPresentation, slot: ArrangementSlotName): {};
227
+ /** Control kind is semantic; legacy markup receives no extra attributes. */
228
+ export declare function listLookControl(presentation: Pick<LookListPresentation, 'lookSlots'>, kind: 'select' | 'select-multiple' | 'link'): {
229
+ 'data-control'?: undefined;
230
+ } | {
231
+ 'data-control': "link" | "select" | "select-multiple";
232
+ };
215
233
  /** Pagination uses the displayed collection, just as declarative repeaters do. */
216
234
  export declare function listItemPresentation<T extends LookListPresentation>(presentation: T, index: number, count: number): T;
@@ -1,3 +1,4 @@
1
+ import { type CardListRuntime } from './events/shared/EventItem';
1
2
  import { type CardListPresentation } from './events/shared/CardListItem';
2
3
  import { type RuntimeMedia as Media } from '../../../../../media-core/src/index';
3
4
  import React from 'react';
@@ -206,7 +207,7 @@ export type AppointmentServicesView = Readonly<{
206
207
  kind: 'error';
207
208
  message: string;
208
209
  }>;
209
- export type AppointmentServicesNodeProps = CardListPresentation & Readonly<{
210
+ export type AppointmentServicesNodeProps = CardListRuntime & CardListPresentation & Readonly<{
210
211
  preparedView?: AppointmentServicesView;
211
212
  sectionHeading?: unknown;
212
213
  categoryId?: unknown;
@@ -221,9 +222,12 @@ export declare function formatAppointmentLocation(location: PublicAppointmentLoc
221
222
  export declare function formatAppointmentPrice(service: Pick<PublicAppointmentService, 'pricing' | 'priceAmount' | 'priceCurrency'>): string | null;
222
223
  export declare function buildAppointmentServicesView(input: Readonly<{
223
224
  services: unknown;
225
+ arrangement?: import('./events/shared/CardListItem').CardListArrangement;
224
226
  categoryId?: unknown;
225
227
  pathname: string | undefined;
226
228
  servicePathPrefix?: string | null;
227
229
  }>): AppointmentServicesView;
228
- export declare function AppointmentServicesNode({ preparedView, sectionHeading, categoryId, services, pathname, servicePathPrefix, blockId, className, ...presentation }: AppointmentServicesNodeProps): React.ReactElement;
230
+ export declare function AppointmentServicesNode({ Carousel, preparedView, sectionHeading, categoryId, services, pathname, servicePathPrefix, blockId, className, ...presentation }: AppointmentServicesNodeProps): React.ReactElement;
229
231
  export default AppointmentServicesNode;
232
+ /** Undated services merge in category order for the same arrangements as offerings. */
233
+ export declare function appointmentServicesListing(view: AppointmentServicesView, arrangement?: import('./events/shared/CardListItem').CardListArrangement): AppointmentServicesView;
@@ -13,11 +13,12 @@ export type TextNodeProps = {
13
13
  export declare const TextNode: React.FC<TextNodeProps & {
14
14
  blockContent?: unknown;
15
15
  }>;
16
- export type RichTextNodeProps = {
16
+ export type RichTextNodeProps = Pick<import("../lookSurfaces").LookListPresentation, "lookSlots"> & {
17
17
  value?: unknown;
18
18
  path?: string;
19
19
  linkedEntryField?: PreviewLinkedEntryFieldBinding;
20
20
  className?: string;
21
+ leadParagraphSlot?: "lede";
21
22
  children?: React.ReactNode;
22
23
  };
23
24
  export declare const RichTextNode: React.FC<RichTextNodeProps & {
@@ -113,6 +113,10 @@ export type BookingFlowActionResult = Readonly<{
113
113
  }> | Readonly<{
114
114
  ok: false;
115
115
  reason: "validation-failed";
116
+ /**
117
+ * Empty when only the site terms box is unticked: that message lives on
118
+ * `siteTerms.error`, beside the box.
119
+ */
116
120
  errors: BookingValidationErrors;
117
121
  }> | Readonly<{
118
122
  ok: false;
@@ -1,3 +1,4 @@
1
+ import { type BlockSiteTerms } from '../../blocks/shared/siteTerms';
1
2
  import { type MailingListRuntimeContext } from "../../../../../core/src/index";
2
3
  import { type InteractiveIslandProps } from "../../../contracts/islands";
3
4
  import { type BookingFormService, type BookingFormServiceCategory, type BookingFormConfig, type BookingFormServicesSource } from "./booking-form.state";
@@ -15,6 +16,7 @@ export type BookingFormDisplay = Readonly<{
15
16
  export type BookingFormHydration = Readonly<{
16
17
  demoEmailSuppressed?: boolean;
17
18
  mailingList?: MailingListRuntimeContext;
19
+ siteTerms?: BlockSiteTerms;
18
20
  siteName?: string;
19
21
  formId: string | null;
20
22
  serviceId: string | null;
@@ -49,6 +51,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
49
51
  apiBaseUrl?: string;
50
52
  portalToken?: string | null;
51
53
  mailingList?: MailingListRuntimeContext;
54
+ siteTerms?: BlockSiteTerms;
52
55
  siteName?: string;
53
56
  formId?: string;
54
57
  serviceId?: string | null;
@@ -98,6 +101,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
98
101
  hydration: Readonly<{
99
102
  demoEmailSuppressed?: boolean;
100
103
  mailingList?: MailingListRuntimeContext;
104
+ siteTerms?: BlockSiteTerms;
101
105
  siteName?: string;
102
106
  formId: string | null;
103
107
  serviceId: string | null;
@@ -152,6 +156,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
152
156
  paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
153
157
  reason: "online_payment_configured_before_launch";
154
158
  }>;
159
+ asksSiteTerms?: boolean;
155
160
  consent?: Readonly<{
156
161
  requirementId: string;
157
162
  title: string;
@@ -180,6 +185,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
180
185
  apiBaseUrl?: string;
181
186
  portalToken?: string | null;
182
187
  mailingList?: MailingListRuntimeContext;
188
+ siteTerms?: BlockSiteTerms;
183
189
  siteName?: string;
184
190
  formId?: string;
185
191
  serviceId?: string | null;
@@ -224,6 +230,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
224
230
  apiBaseUrl?: string;
225
231
  portalToken?: string | null;
226
232
  mailingList?: MailingListRuntimeContext;
233
+ siteTerms?: BlockSiteTerms;
227
234
  siteName?: string;
228
235
  formId?: string;
229
236
  serviceId?: string | null;
@@ -276,6 +283,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
276
283
  hydration: Readonly<{
277
284
  demoEmailSuppressed?: boolean;
278
285
  mailingList?: MailingListRuntimeContext;
286
+ siteTerms?: BlockSiteTerms;
279
287
  siteName?: string;
280
288
  formId: string | null;
281
289
  serviceId: string | null;
@@ -330,6 +338,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
330
338
  paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
331
339
  reason: "online_payment_configured_before_launch";
332
340
  }>;
341
+ asksSiteTerms?: boolean;
333
342
  consent?: Readonly<{
334
343
  requirementId: string;
335
344
  title: string;
@@ -362,6 +371,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
362
371
  hydration: Readonly<{
363
372
  demoEmailSuppressed?: boolean;
364
373
  mailingList?: MailingListRuntimeContext;
374
+ siteTerms?: BlockSiteTerms;
365
375
  siteName?: string;
366
376
  formId: string | null;
367
377
  serviceId: string | null;
@@ -416,6 +426,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
416
426
  paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
417
427
  reason: "online_payment_configured_before_launch";
418
428
  }>;
429
+ asksSiteTerms?: boolean;
419
430
  consent?: Readonly<{
420
431
  requirementId: string;
421
432
  title: string;
@@ -460,6 +471,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
460
471
  hydration: Readonly<{
461
472
  demoEmailSuppressed?: boolean;
462
473
  mailingList?: MailingListRuntimeContext;
474
+ siteTerms?: BlockSiteTerms;
463
475
  siteName?: string;
464
476
  formId: string | null;
465
477
  serviceId: string | null;
@@ -514,6 +526,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
514
526
  paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
515
527
  reason: "online_payment_configured_before_launch";
516
528
  }>;
529
+ asksSiteTerms?: boolean;
517
530
  consent?: Readonly<{
518
531
  requirementId: string;
519
532
  title: string;
@@ -555,6 +568,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
555
568
  hydration: Readonly<{
556
569
  demoEmailSuppressed?: boolean;
557
570
  mailingList?: MailingListRuntimeContext;
571
+ siteTerms?: BlockSiteTerms;
558
572
  siteName?: string;
559
573
  formId: string | null;
560
574
  serviceId: string | null;
@@ -609,6 +623,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
609
623
  paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
610
624
  reason: "online_payment_configured_before_launch";
611
625
  }>;
626
+ asksSiteTerms?: boolean;
612
627
  consent?: Readonly<{
613
628
  requirementId: string;
614
629
  title: string;
@@ -68,6 +68,7 @@ export type BookingFormService = Readonly<{
68
68
  priceCurrency?: string | null;
69
69
  paymentTerms?: BlockBookingPaymentTerms;
70
70
  paymentTermsAvailability?: BlockBookingPaymentTermsAvailability;
71
+ asksSiteTerms?: boolean;
71
72
  consent?: BlockBookingConsent;
72
73
  /** The service's category (issue 1403); null or absent is "Other". */
73
74
  categoryId?: string | null;