@riverbankcms/sdk 0.143.0 → 0.145.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 (254) hide show
  1. package/dist/{PreviewEditorSidebar-DROGfMKi.mjs → PreviewEditorSidebar-O-V6Pl5a.mjs} +20 -26
  2. package/dist/{PreviewEditorUI-BaRjhFu-.mjs → PreviewEditorUI-1UlX_9cw.mjs} +3 -3
  3. package/dist/{PreviewQueryProvider-BCYICImX.mjs → PreviewQueryProvider-BxGwdOCV.mjs} +1 -1
  4. package/dist/{SdkPreviewModeRuntime-OIABYLES.mjs → SdkPreviewModeRuntime-DYbA_4iv.mjs} +431 -351
  5. package/dist/{SiteChromeCustomizeContext-ohjTvZbc.mjs → SiteChromeCustomizeContext-CNTKQ9nx.mjs} +3989 -2769
  6. package/dist/_dts/ai/src/contracts/proposals.d.ts +4719 -66
  7. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +429 -6
  8. package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +49 -0
  9. package/dist/_dts/api/src/appointmentServiceCategoryEndpoints.d.ts +75 -0
  10. package/dist/_dts/api/src/appointmentServiceContracts.d.ts +80 -0
  11. package/dist/_dts/api/src/appointmentSetup.d.ts +8 -1
  12. package/dist/_dts/api/src/billing.d.ts +1 -1
  13. package/dist/_dts/api/src/billingEndpointTypes.d.ts +8 -2
  14. package/dist/_dts/api/src/bookingConfig.d.ts +3 -1
  15. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -12
  16. package/dist/_dts/api/src/communications.d.ts +14 -22
  17. package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
  18. package/dist/_dts/api/src/endpoints.d.ts +105 -58
  19. package/dist/_dts/api/src/index.d.ts +1 -1
  20. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
  21. package/dist/_dts/api/src/launchReadiness.d.ts +2 -0
  22. package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -4
  23. package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +0 -23
  24. package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +3 -0
  25. package/dist/_dts/api/src/publicBookingService.d.ts +35 -1
  26. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +1 -0
  27. package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +13 -0
  28. package/dist/_dts/api/src/publicNewsletterEndpointDefinitions.d.ts +58 -0
  29. package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +3 -3
  30. package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
  31. package/dist/_dts/api/src/sdkSettingsContracts.d.ts +8 -0
  32. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -6
  33. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -8
  34. package/dist/_dts/api/src/siteSettings.d.ts +17 -7
  35. package/dist/_dts/api/src/types.d.ts +2 -1
  36. package/dist/_dts/billing/src/membership/index.d.ts +3 -0
  37. package/dist/_dts/block-form/src/backend/types.d.ts +14 -0
  38. package/dist/_dts/block-form/src/client/index.d.ts +1 -0
  39. package/dist/_dts/block-form/src/context/RepeaterHostActionsContext.d.ts +30 -0
  40. package/dist/_dts/block-form/src/context/index.d.ts +1 -0
  41. package/dist/_dts/block-form/src/index.d.ts +1 -0
  42. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +4 -1
  43. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +5 -2
  44. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +11 -1
  45. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -0
  46. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useEmptyStateFocusAfterRemoval.d.ts +8 -0
  47. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +15 -1
  48. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +5 -2
  49. package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -4
  50. package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
  51. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +58 -10
  52. package/dist/_dts/blocks/src/index.d.ts +1 -1
  53. package/dist/_dts/blocks/src/pageRenderJoins.d.ts +68 -0
  54. package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -27
  55. package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +7 -4
  56. package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +40 -23
  57. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +3 -0
  58. package/dist/_dts/blocks/src/server.d.ts +1 -1
  59. package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +2 -0
  60. package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +2 -2
  61. package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +1 -1
  62. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
  63. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
  64. package/dist/_dts/blocks/src/system/constants/events.d.ts +10 -0
  65. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +29 -3
  66. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +5 -0
  67. package/dist/_dts/blocks/src/system/runtime/api/context.d.ts +3 -3
  68. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +10 -0
  69. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +3 -2
  70. package/dist/_dts/blocks/src/system/runtime/api/readAuthority.d.ts +11 -0
  71. package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +9 -0
  72. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -13
  73. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -6
  74. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +9 -4
  75. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +0 -1
  76. package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -3
  77. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -1
  78. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +22 -2
  79. package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +7 -24
  80. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +3 -1
  81. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +57 -2
  82. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-categories.d.ts +29 -0
  83. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-choices.d.ts +13 -0
  84. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +3 -3
  85. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +13 -1
  86. package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -0
  88. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +2 -1
  89. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
  90. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
  91. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
  92. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +2 -1
  93. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +1 -1
  94. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
  95. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -0
  96. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -5
  97. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +7 -2
  98. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +7 -5
  99. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -6
  100. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +6 -4
  101. package/dist/_dts/blocks/src/system/runtime/nodes/header-control.d.ts +10 -0
  102. package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +6 -21
  103. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +20 -1
  104. package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -0
  105. package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -0
  106. package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
  107. package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -0
  108. package/dist/_dts/blocks/src/system/runtime/shared/components/ThemedButton.d.ts +58 -0
  109. package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
  110. package/dist/_dts/blocks/src/system/transforms/registry/chromeLogo.d.ts +23 -0
  111. package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
  112. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +3 -1
  113. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +4 -1
  114. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -0
  115. package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
  116. package/dist/_dts/core/src/appointment-service-categories.d.ts +108 -0
  117. package/dist/_dts/core/src/editor-state.d.ts +6 -0
  118. package/dist/_dts/core/src/event-catalogue.d.ts +27 -0
  119. package/dist/_dts/core/src/event-preset-vocabulary.d.ts +7 -0
  120. package/dist/_dts/core/src/index.d.ts +3 -0
  121. package/dist/_dts/core/src/public-profile.d.ts +9 -0
  122. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +676 -241
  123. package/dist/_dts/db/src/schemas/forms.d.ts +286 -2
  124. package/dist/_dts/editor-blocks/src/block-editor/{BlockCardHeader.d.ts → BlockCardFrame.d.ts} +11 -3
  125. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +6 -0
  126. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +16 -1
  127. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +13 -0
  128. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +29 -0
  129. package/dist/_dts/logger/src/console.d.ts +3 -0
  130. package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +7 -2
  131. package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +1 -1
  132. package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +1 -0
  133. package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +1 -3
  134. package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
  135. package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -2
  136. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
  137. package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +1 -0
  138. package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +8 -0
  139. package/dist/_dts/sdk/src/client/types.d.ts +4 -1
  140. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  141. package/dist/_dts/sdk/src/contracts/page.d.ts +7 -2
  142. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
  143. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +2 -2
  144. package/dist/_dts/sdk/src/navigation/index.d.ts +27 -0
  145. package/dist/_dts/sdk/src/public-api/contracts.d.ts +21 -15
  146. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +3 -2
  147. package/dist/_dts/sdk/src/rendering/client.d.ts +1 -0
  148. package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +1 -0
  149. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +7 -1
  150. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +4 -2
  151. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
  152. package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -1
  153. package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +3 -2
  154. package/dist/_dts/sdk/src/rendering/islands/enhancers/shopShared.d.ts +2 -0
  155. package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
  156. package/dist/_dts/sdk/src/version.d.ts +1 -1
  157. package/dist/_dts/surfaces/src/index.d.ts +1 -0
  158. package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +1 -1
  159. package/dist/_dts/theme-core/src/buttons/classNames.d.ts +3 -13
  160. package/dist/_dts/theme-core/src/customCss/index.d.ts +1 -1
  161. package/dist/_dts/theme-core/src/customCss/patch.d.ts +0 -5
  162. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  163. package/dist/_dts/theme-core/src/layout/boundaryCss.d.ts +3 -0
  164. package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +8 -0
  165. package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +3 -2
  166. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +1 -3
  167. package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -0
  168. package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
  169. package/dist/_dts/theme-core/src/site-styles/joinTreatment.d.ts +132 -0
  170. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorBoundaries.d.ts +31 -0
  171. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +33 -29
  172. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
  173. package/dist/_dts/theme-core/src/site-styles/pageFlowPresets.d.ts +36 -0
  174. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -10
  175. package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +17 -4
  176. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +20 -74
  177. package/dist/_dts/theme-core/src/site-styles/sectionBoundaryComposition.d.ts +95 -0
  178. package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +80 -518
  179. package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +9 -4
  180. package/dist/_dts/theme-core/src/site-styles/transitionCatalogue.d.ts +320 -0
  181. package/dist/_dts/theme-core/src/site-styles/types.d.ts +3 -18
  182. package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
  183. package/dist/_dts/theme-core/src/surfaces/logoVariant.d.ts +26 -0
  184. package/dist/_dts/theme-core/src/utils/colorStyles.d.ts +10 -0
  185. package/dist/_dts/ui/src/editor-item-card.d.ts +116 -0
  186. package/dist/_dts/ui/src/index.d.ts +1 -0
  187. package/dist/client/{BookingConsentAgreement-BoCtvzzu.mjs → BookingConsentAgreement-DlVOmpW4.mjs} +4 -55
  188. package/dist/client/{DiscountCodeDisclosure-B5S30nZk.mjs → DiscountCodeDisclosure-T9q623PQ.mjs} +27 -17
  189. package/dist/client/{EventCombined.client-CeZ2-zSt.mjs → EventCombined.client-DnsUeONl.mjs} +54 -46
  190. package/dist/client/{EventListing.client-DJN3j8B3.mjs → EventListing.client-CNBFqJS4.mjs} +3 -4
  191. package/dist/client/{LeafletStaticMap-RjtGzDQT.mjs → LeafletStaticMap-C7higg52.mjs} +1 -1
  192. package/dist/client/ThemedButton-LAJTNrS8.mjs +412 -0
  193. package/dist/client/{accordion-DOmnDoyg.mjs → accordion-BcNF9TjX.mjs} +1 -1
  194. package/dist/client/{bookingForm-C0vk7pgS.mjs → bookingForm-BUaQ3S03.mjs} +161 -75
  195. package/dist/client/bookings.mjs +392 -182
  196. package/dist/client/{carousel-BZJ7pno3.mjs → carousel-CTdF6e0V.mjs} +2 -2
  197. package/dist/client/{carousel.client-DQTjCVQT.mjs → carousel.client-jahpU9Vz.mjs} +1 -1
  198. package/dist/client/{cart-CaeVAHJl.mjs → cart-pGtyf_XU.mjs} +3 -3
  199. package/dist/client/{checkout-7wmoNDtG.mjs → checkout-Da9WSn7Y.mjs} +3 -3
  200. package/dist/client/{checkoutUrls-FL6lRkrt.mjs → checkoutUrls-CW3-78uu.mjs} +1 -1
  201. package/dist/client/client.mjs +3819 -2717
  202. package/dist/client/{colorStyles-3013aRAY.mjs → colorStyles-CuJBiS-1.mjs} +16 -4
  203. package/dist/client/{context-BOimxE3U.mjs → context-BFeY_Wbm.mjs} +24 -8
  204. package/dist/client/{dates-BnzVksi4.mjs → dates-BhwVSxDg.mjs} +2 -2
  205. package/dist/client/{eventCalendar-l-fpaslC.mjs → eventCalendar-BAtdnR4s.mjs} +39 -50
  206. package/dist/client/{eventCombined-DGGvssK6.mjs → eventCombined-RksA3tRC.mjs} +5 -4
  207. package/dist/client/{eventDetails-DRiCm_hL.mjs → eventDetails-BB9hB4wR.mjs} +4 -4
  208. package/dist/client/{eventListing-dph8loYX.mjs → eventListing-BpJBkviM.mjs} +5 -4
  209. package/dist/client/{eventRegistration-ClBohmbY.mjs → eventRegistration-B18jFq_o.mjs} +83 -68
  210. package/dist/client/{form-BLVVAnd3.mjs → form-Dodt8Y8t.mjs} +9 -10
  211. package/dist/client/{headerSection-DHy4C8Ix.mjs → headerSection-B0qj9ttg.mjs} +23 -30
  212. package/dist/client/hooks.mjs +807 -162
  213. package/dist/client/{locationMap-6HuS28ck.mjs → locationMap-gn-iMk7a.mjs} +9 -10
  214. package/dist/client/{media-DHpfFwd3.mjs → media-BtJ37tzS.mjs} +1 -1
  215. package/dist/client/{newsletterForm-xOdcOhZP.mjs → newsletterForm-oByLdFkr.mjs} +31 -11
  216. package/dist/client/{pricing-ChinRYFt.mjs → pricing-BOU0_Hai.mjs} +1 -1
  217. package/dist/client/{productDetail-0chA5gbK.mjs → productDetail-D9v1zH2j.mjs} +3 -3
  218. package/dist/client/{productList-OoINA0h1.mjs → productList-D-mItx1n.mjs} +3 -3
  219. package/dist/client/{propsDecoder-CIZ-hbIG.mjs → propsDecoder-C3TP_z4x.mjs} +158 -61
  220. package/dist/client/rendering/client.mjs +2785 -2000
  221. package/dist/client/rendering/islands.mjs +19 -19
  222. package/dist/client/rendering.mjs +3855 -2694
  223. package/dist/client/{routeIslandApiConfig-UNsfPcYq.mjs → routeIslandApiConfig-DzN1W0sq.mjs} +8 -1
  224. package/dist/client/{scrollToBlock-BPZl0gPZ.mjs → scrollToBlock-CWs8EIdo.mjs} +1 -1
  225. package/dist/client/{shop-CLJFqNIq.mjs → shop-Dufw7N7o.mjs} +45 -58
  226. package/dist/client/{shop-commerce-PpANg5wB.mjs → shop-commerce-gklw_hLF.mjs} +42 -55
  227. package/dist/client/{shop-commerce-store-TA_Kz2ku.mjs → shop-commerce-store-Sf1eyTaZ.mjs} +1 -1
  228. package/dist/client/{shopShared-DzcFcA5g.mjs → shopShared-B5nyA41S.mjs} +6 -5
  229. package/dist/client/{useEventFilters-CFU21QZo.mjs → useEventFilters-CLL829vy.mjs} +66 -355
  230. package/dist/preview-next/before-render.mjs +147 -77
  231. package/dist/preview-next/client/runtime.mjs +4 -4
  232. package/dist/preview-next/editor-chrome.css +8 -0
  233. package/dist/preview-next/keepAlive.mjs +147 -77
  234. package/dist/preview-next/middleware.mjs +147 -77
  235. package/dist/{previewAuthStore-JA6-I_sL.mjs → previewAuthStore-BxAFlu-j.mjs} +147 -77
  236. package/dist/{sdk-runtime-CDKl0Fr7.mjs → sdk-runtime-D0uZFev7.mjs} +2 -2
  237. package/dist/{separator-BTp96X32.mjs → separator-EvdCAn4V.mjs} +1 -1
  238. package/dist/server/components.mjs +2548 -1607
  239. package/dist/server/config-validation.mjs +794 -160
  240. package/dist/server/config.mjs +794 -160
  241. package/dist/server/data.mjs +806 -161
  242. package/dist/server/index.mjs +167 -85
  243. package/dist/server/navigation.mjs +28 -1
  244. package/dist/server/next.mjs +14930 -14036
  245. package/dist/server/page-converter.mjs +494 -113
  246. package/dist/server/prebuild.mjs +1 -1
  247. package/dist/server/rendering/server.mjs +2537 -1590
  248. package/dist/server/rendering.mjs +2571 -1618
  249. package/dist/server/routing.mjs +918 -200
  250. package/dist/server/server.mjs +819 -205
  251. package/dist/server/theme-bridge.mjs +1232 -28
  252. package/dist/server/theme.mjs +6 -4
  253. package/dist/styles/index.css +6 -0
  254. package/package.json +2 -1
@@ -10,7 +10,7 @@ export type DisplayMediaKind = (typeof DISPLAY_MEDIA_KINDS)[number];
10
10
  export declare const DEFAULT_MEDIA_FIELD_KINDS: readonly ["image"];
11
11
  export declare const PUBLIC_FILE_FIELD_KINDS: readonly ["document", "spreadsheet", "archive", "audio"];
12
12
  export type FileFieldKind = (typeof PUBLIC_FILE_FIELD_KINDS)[number];
13
- export declare const siteOptionSources: readonly ["eventCategories", "eventSeries", "venues", "staffMembers"];
13
+ export declare const siteOptionSources: readonly ["eventCategories", "eventSeries", "venues", "staffMembers", "appointmentServiceCategories"];
14
14
  export type SiteOptionSource = (typeof siteOptionSources)[number];
15
15
  declare const selectOptionSchema: z.ZodObject<{
16
16
  value: z.ZodString;
@@ -27,6 +27,7 @@ declare const selectSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
27
  eventCategories: "eventCategories";
28
28
  venues: "venues";
29
29
  staffMembers: "staffMembers";
30
+ appointmentServiceCategories: "appointmentServiceCategories";
30
31
  }>;
31
32
  }, z.core.$strip>, z.ZodObject<{
32
33
  kind: z.ZodLiteral<"sdk">;
@@ -210,6 +211,7 @@ declare const uiSchema: z.ZodObject<{
210
211
  eventCategories: "eventCategories";
211
212
  venues: "venues";
212
213
  staffMembers: "staffMembers";
214
+ appointmentServiceCategories: "appointmentServiceCategories";
213
215
  }>>>;
214
216
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
215
217
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -399,6 +401,7 @@ declare const baseFieldSchema: z.ZodObject<{
399
401
  eventCategories: "eventCategories";
400
402
  venues: "venues";
401
403
  staffMembers: "staffMembers";
404
+ appointmentServiceCategories: "appointmentServiceCategories";
402
405
  }>>>;
403
406
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
404
407
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -589,6 +592,7 @@ declare const textFieldSchema: z.ZodObject<{
589
592
  eventCategories: "eventCategories";
590
593
  venues: "venues";
591
594
  staffMembers: "staffMembers";
595
+ appointmentServiceCategories: "appointmentServiceCategories";
592
596
  }>>>;
593
597
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
594
598
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -782,6 +786,7 @@ declare const richTextFieldSchema: z.ZodObject<{
782
786
  eventCategories: "eventCategories";
783
787
  venues: "venues";
784
788
  staffMembers: "staffMembers";
789
+ appointmentServiceCategories: "appointmentServiceCategories";
785
790
  }>>>;
786
791
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
787
792
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -973,6 +978,7 @@ declare const inlineTextFieldSchema: z.ZodObject<{
973
978
  eventCategories: "eventCategories";
974
979
  venues: "venues";
975
980
  staffMembers: "staffMembers";
981
+ appointmentServiceCategories: "appointmentServiceCategories";
976
982
  }>>>;
977
983
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
978
984
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -1166,6 +1172,7 @@ declare const mediaFieldSchema: z.ZodObject<{
1166
1172
  eventCategories: "eventCategories";
1167
1173
  venues: "venues";
1168
1174
  staffMembers: "staffMembers";
1175
+ appointmentServiceCategories: "appointmentServiceCategories";
1169
1176
  }>>>;
1170
1177
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1171
1178
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -1366,6 +1373,7 @@ declare const fileFieldSchema: z.ZodObject<{
1366
1373
  eventCategories: "eventCategories";
1367
1374
  venues: "venues";
1368
1375
  staffMembers: "staffMembers";
1376
+ appointmentServiceCategories: "appointmentServiceCategories";
1369
1377
  }>>>;
1370
1378
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1371
1379
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -1563,6 +1571,7 @@ declare const booleanFieldSchema: z.ZodObject<{
1563
1571
  eventCategories: "eventCategories";
1564
1572
  venues: "venues";
1565
1573
  staffMembers: "staffMembers";
1574
+ appointmentServiceCategories: "appointmentServiceCategories";
1566
1575
  }>>>;
1567
1576
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1568
1577
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -1754,6 +1763,7 @@ declare const dateFieldSchema: z.ZodObject<{
1754
1763
  eventCategories: "eventCategories";
1755
1764
  venues: "venues";
1756
1765
  staffMembers: "staffMembers";
1766
+ appointmentServiceCategories: "appointmentServiceCategories";
1757
1767
  }>>>;
1758
1768
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1759
1769
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -1945,6 +1955,7 @@ declare const timeFieldSchema: z.ZodObject<{
1945
1955
  eventCategories: "eventCategories";
1946
1956
  venues: "venues";
1947
1957
  staffMembers: "staffMembers";
1958
+ appointmentServiceCategories: "appointmentServiceCategories";
1948
1959
  }>>>;
1949
1960
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1950
1961
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -2136,6 +2147,7 @@ declare const dateTimeFieldSchema: z.ZodObject<{
2136
2147
  eventCategories: "eventCategories";
2137
2148
  venues: "venues";
2138
2149
  staffMembers: "staffMembers";
2150
+ appointmentServiceCategories: "appointmentServiceCategories";
2139
2151
  }>>>;
2140
2152
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2141
2153
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -2327,6 +2339,7 @@ declare const slugFieldSchema: z.ZodObject<{
2327
2339
  eventCategories: "eventCategories";
2328
2340
  venues: "venues";
2329
2341
  staffMembers: "staffMembers";
2342
+ appointmentServiceCategories: "appointmentServiceCategories";
2330
2343
  }>>>;
2331
2344
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2332
2345
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -2521,6 +2534,7 @@ declare const urlFieldSchema: z.ZodObject<{
2521
2534
  eventCategories: "eventCategories";
2522
2535
  venues: "venues";
2523
2536
  staffMembers: "staffMembers";
2537
+ appointmentServiceCategories: "appointmentServiceCategories";
2524
2538
  }>>>;
2525
2539
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2526
2540
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -2713,6 +2727,7 @@ declare const linkFieldSchema: z.ZodObject<{
2713
2727
  eventCategories: "eventCategories";
2714
2728
  venues: "venues";
2715
2729
  staffMembers: "staffMembers";
2730
+ appointmentServiceCategories: "appointmentServiceCategories";
2716
2731
  }>>>;
2717
2732
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2718
2733
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -2904,6 +2919,7 @@ declare const selectFieldSchema: z.ZodObject<{
2904
2919
  eventCategories: "eventCategories";
2905
2920
  venues: "venues";
2906
2921
  staffMembers: "staffMembers";
2922
+ appointmentServiceCategories: "appointmentServiceCategories";
2907
2923
  }>>>;
2908
2924
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2909
2925
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -2934,6 +2950,7 @@ declare const selectFieldSchema: z.ZodObject<{
2934
2950
  eventCategories: "eventCategories";
2935
2951
  venues: "venues";
2936
2952
  staffMembers: "staffMembers";
2953
+ appointmentServiceCategories: "appointmentServiceCategories";
2937
2954
  }>;
2938
2955
  }, z.core.$strip>, z.ZodObject<{
2939
2956
  kind: z.ZodLiteral<"sdk">;
@@ -3115,6 +3132,7 @@ declare const referenceFieldSchema: z.ZodObject<{
3115
3132
  eventCategories: "eventCategories";
3116
3133
  venues: "venues";
3117
3134
  staffMembers: "staffMembers";
3135
+ appointmentServiceCategories: "appointmentServiceCategories";
3118
3136
  }>>>;
3119
3137
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
3120
3138
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -3318,6 +3336,7 @@ declare const repeaterFieldSchema: z.ZodObject<{
3318
3336
  eventCategories: "eventCategories";
3319
3337
  venues: "venues";
3320
3338
  staffMembers: "staffMembers";
3339
+ appointmentServiceCategories: "appointmentServiceCategories";
3321
3340
  }>>>;
3322
3341
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
3323
3342
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -3526,6 +3545,7 @@ declare const groupFieldSchema: z.ZodObject<{
3526
3545
  eventCategories: "eventCategories";
3527
3546
  venues: "venues";
3528
3547
  staffMembers: "staffMembers";
3548
+ appointmentServiceCategories: "appointmentServiceCategories";
3529
3549
  }>>>;
3530
3550
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
3531
3551
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -3720,6 +3740,7 @@ declare const modalFieldSchema: z.ZodObject<{
3720
3740
  eventCategories: "eventCategories";
3721
3741
  venues: "venues";
3722
3742
  staffMembers: "staffMembers";
3743
+ appointmentServiceCategories: "appointmentServiceCategories";
3723
3744
  }>>>;
3724
3745
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
3725
3746
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -3914,6 +3935,7 @@ declare const numberFieldSchema: z.ZodObject<{
3914
3935
  eventCategories: "eventCategories";
3915
3936
  venues: "venues";
3916
3937
  staffMembers: "staffMembers";
3938
+ appointmentServiceCategories: "appointmentServiceCategories";
3917
3939
  }>>>;
3918
3940
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
3919
3941
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -4108,6 +4130,7 @@ declare const tabGroupFieldSchema: z.ZodObject<{
4108
4130
  eventCategories: "eventCategories";
4109
4131
  venues: "venues";
4110
4132
  staffMembers: "staffMembers";
4133
+ appointmentServiceCategories: "appointmentServiceCategories";
4111
4134
  }>>>;
4112
4135
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4113
4136
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -4312,6 +4335,7 @@ declare const presetOrCustomFieldSchema: z.ZodObject<{
4312
4335
  eventCategories: "eventCategories";
4313
4336
  venues: "venues";
4314
4337
  staffMembers: "staffMembers";
4338
+ appointmentServiceCategories: "appointmentServiceCategories";
4315
4339
  }>>>;
4316
4340
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4317
4341
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -4512,6 +4536,7 @@ declare const contentTypeSelectFieldSchema: z.ZodObject<{
4512
4536
  eventCategories: "eventCategories";
4513
4537
  venues: "venues";
4514
4538
  staffMembers: "staffMembers";
4539
+ appointmentServiceCategories: "appointmentServiceCategories";
4515
4540
  }>>>;
4516
4541
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4517
4542
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -4708,6 +4733,7 @@ declare const entryPickerFieldSchema: z.ZodObject<{
4708
4733
  eventCategories: "eventCategories";
4709
4734
  venues: "venues";
4710
4735
  staffMembers: "staffMembers";
4736
+ appointmentServiceCategories: "appointmentServiceCategories";
4711
4737
  }>>>;
4712
4738
  searchThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4713
4739
  renderInHeader: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -4933,8 +4959,8 @@ export declare const previewCustomizeManifestCurationSchema: z.ZodObject<{
4933
4959
  export type PreviewCustomizeManifestCuration = z.infer<typeof previewCustomizeManifestCurationSchema>;
4934
4960
  export declare const blockCategoryEnum: z.ZodEnum<{
4935
4961
  content: "content";
4936
- media: "media";
4937
4962
  layout: "layout";
4963
+ media: "media";
4938
4964
  marketing: "marketing";
4939
4965
  blog: "blog";
4940
4966
  interactive: "interactive";
@@ -5050,8 +5076,8 @@ export declare const manifestSchema: z.ZodObject<{
5050
5076
  }, z.core.$strip>>>>;
5051
5077
  category: z.ZodOptional<z.ZodEnum<{
5052
5078
  content: "content";
5053
- media: "media";
5054
5079
  layout: "layout";
5080
+ media: "media";
5055
5081
  marketing: "marketing";
5056
5082
  blog: "blog";
5057
5083
  interactive: "interactive";
@@ -106,5 +106,10 @@ export interface BlockApiClient {
106
106
  sendMagicLink(data: Omit<MagicLinkRequest, 'siteId'>): Promise<void>;
107
107
  logout(): Promise<void>;
108
108
  }
109
+ /** Components use provider-owned browsing mode, never per-call stage selection. */
110
+ export type BoundBlockApiClient = Omit<BlockApiClient, 'getPublicEvents' | 'getPublicEventCalendarWindow'> & {
111
+ getPublicEvents(params?: Omit<PublicEventsRequest, 'siteId' | 'stage'>): Promise<PublicEvent[]>;
112
+ getPublicEventCalendarWindow(params?: Omit<CalendarWindowRequest, 'stage'>): Promise<CalendarWindowPage>;
113
+ };
109
114
  export declare function createBlockApi(config: BlockApiConfig): BlockApiClient;
110
115
  export {};
@@ -4,7 +4,7 @@
4
4
  * Provider and hook for accessing the Block API Client in React components.
5
5
  */
6
6
  import React from 'react';
7
- import { type BlockApiClient } from './client';
7
+ import { type BlockApiClient, type BoundBlockApiClient } from './client';
8
8
  import type { BlockApiConfig } from './types';
9
9
  declare global {
10
10
  var __RIVERBANK_BLOCK_API_CONTEXT__: React.Context<BlockApiClient | null> | undefined;
@@ -62,11 +62,11 @@ export declare function BlockApiProvider({ client, config, children, }: BlockApi
62
62
  * }
63
63
  * ```
64
64
  */
65
- export declare function useBlockApi(): BlockApiClient;
65
+ export declare function useBlockApi(): BoundBlockApiClient;
66
66
  /**
67
67
  * Hook to optionally access the Block API Client
68
68
  *
69
69
  * Returns null if not within a BlockApiProvider.
70
70
  * Useful for components that can work with or without the API client.
71
71
  */
72
- export declare function useBlockApiOptional(): BlockApiClient | null;
72
+ export declare function useBlockApiOptional(): BoundBlockApiClient | null;
@@ -10,6 +10,8 @@ export interface EndpointDefinition {
10
10
  method: HttpMethod;
11
11
  authScope?: EndpointAuthScope;
12
12
  skipPreviewStage?: boolean;
13
+ /** This existing public endpoint supports authorized draft browsing. */
14
+ previewRead?: true;
13
15
  }
14
16
  /**
15
17
  * Build endpoint path with parameter substitution
@@ -77,14 +79,17 @@ export declare const EVENTS: {
77
79
  calendarWindow: {
78
80
  path: string;
79
81
  method: "GET";
82
+ previewRead: true;
80
83
  };
81
84
  list: {
82
85
  path: string;
83
86
  method: "GET";
87
+ previewRead: true;
84
88
  };
85
89
  filters: {
86
90
  path: string;
87
91
  method: "GET";
92
+ previewRead: true;
88
93
  };
89
94
  register: {
90
95
  path: string;
@@ -125,6 +130,7 @@ export declare const SHOP: {
125
130
  listProducts: {
126
131
  path: string;
127
132
  method: "GET";
133
+ previewRead: true;
128
134
  };
129
135
  checkout: {
130
136
  path: string;
@@ -412,14 +418,17 @@ export declare const ENDPOINTS: {
412
418
  calendarWindow: {
413
419
  path: string;
414
420
  method: "GET";
421
+ previewRead: true;
415
422
  };
416
423
  list: {
417
424
  path: string;
418
425
  method: "GET";
426
+ previewRead: true;
419
427
  };
420
428
  filters: {
421
429
  path: string;
422
430
  method: "GET";
431
+ previewRead: true;
423
432
  };
424
433
  register: {
425
434
  path: string;
@@ -460,6 +469,7 @@ export declare const ENDPOINTS: {
460
469
  listProducts: {
461
470
  path: string;
462
471
  method: "GET";
472
+ previewRead: true;
463
473
  };
464
474
  checkout: {
465
475
  path: string;
@@ -40,10 +40,11 @@
40
40
  * ```
41
41
  */
42
42
  export { createBlockApi, BlockApiError } from './client';
43
- export type { BlockApiClient } from './client';
43
+ export type { BlockApiClient, BoundBlockApiClient } from './client';
44
+ export { createHostedBlockApiConfig, getBlockApiReadStage } from './readAuthority';
44
45
  export { BlockApiProvider, useBlockApi, useBlockApiOptional } from './context';
45
46
  export type { BlockApiProviderProps } from './context';
46
- export type { BlockApiConfig, BlockApiAuth, ApiKeyAuth, BearerAuth, NoAuth, ApiResponse, ApiSuccessResponse, ApiErrorResponse, ApiFieldError, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, FormField, BookingSubmitRequest, BookingSubmitResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, TimeSlot, AvailableDatesRequest, AvailableDatesResponse, BookingService, BookingServicesRequest, BookingServicesResponse, BookingServiceResponse, BookingResource, BookingResourcesRequest, BookingResourcesResponse, PublicEvent, PublicEventsRequest, PublicEventsResponse, EventVenue, AccessRestriction, EventFilterCategory, EventFilterStaffMember, EventFilterVenue, EventFiltersResponse, EventRegisterRequest, EventRegisterResponse, EventCheckoutRequest, EventCheckoutResponse, EventCheckoutReturnRequest, EventCheckoutReturnResponse, PaymentMethod, EligiblePass, EligibleMembership, AvailablePass, AvailableMembership, DiscountContext, DiscountsAvailableRequest, DiscountsAvailableResponse, DiscountApplyLine, DiscountApplyRequest, DiscountApplyRejectedReason, DiscountApplyResponse, ShopCheckoutRequest, ShopCheckoutResponse, ShopDuplicateMembershipWarning, CustomerProfile, CustomerOrder, CustomerOrderFilter, CustomerOrderItem, CustomerOrderInstalmentPlan, CustomerOrderInstalmentPlanStatus, CustomerOrderInstalmentRow, CustomerOrderInstalmentStatus, CustomerOrderPaymentState, CustomerOrderRefund, EnabledModules, PortalMeResponse, PortalMeUpdateRequest, CustomerPass, CustomerPassCreditHistoryEntry, CustomerMembership, EventTicketBreakdownLine, CustomerEventRegistration, CustomerPortalWaitlistEntry, CustomerPortalWaitlistSubject, PortalEventTicket, CustomerAppointment, AppointmentBookingQuestionsTaskDetail, BookingQuestionsTaskDetail, BookingQuestionsAnswerValue, BookingQuestionsField, BookingQuestionsFieldOption, BookingQuestionsSection, BeforeYouComeTaskSummary, CustomerEventSeriesRegistration, EventGuest, PortalCredit, PortalCreditSummary, PortalCreditTransaction, PortalCreditResponse, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalDigitalProduct, PortalDigitalProductFile, PortalDigitalProductsResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalAppointmentBookingQuestionsResponse, PortalCreateAppointmentBookingQuestionsUploadUrlRequest, PortalCreateAppointmentBookingQuestionsUploadUrlResponse, PortalFinalizeAppointmentBookingQuestionsUploadRequest, PortalFinalizeAppointmentBookingQuestionsUploadResponse, PortalUpdateAppointmentBookingQuestionsRequest, PortalUpdateAppointmentBookingQuestionsResponse, PortalEventBookingQuestionsResponse, PortalCreateEventBookingQuestionsUploadUrlRequest, PortalCreateEventBookingQuestionsUploadUrlResponse, PortalFinalizeEventBookingQuestionsUploadRequest, PortalFinalizeEventBookingQuestionsUploadResponse, PortalUpdateEventBookingQuestionsRequest, PortalUpdateEventBookingQuestionsResponse, PortalWholeSeriesBookingQuestionsResponse, PortalCreateWholeSeriesBookingQuestionsUploadUrlRequest, PortalCreateWholeSeriesBookingQuestionsUploadUrlResponse, PortalFinalizeWholeSeriesBookingQuestionsUploadRequest, PortalFinalizeWholeSeriesBookingQuestionsUploadResponse, PortalUpdateWholeSeriesBookingQuestionsRequest, PortalUpdateWholeSeriesBookingQuestionsResponse, UpdateEventGuestsRequest, EventGuestsResponse, PortalCancelWholeSeriesRegistrationRequest, PortalCancelWholeSeriesRegistrationResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalCancelEventRegistrationRequest, PortalRefundInfo, PortalCancelEventRegistrationResult, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCancelMembershipAtPeriodEndResult, MagicLinkRequest, } from './types';
47
+ export type { BlockApiConfig, BlockApiAuth, BrowserReadAuthority, ApiKeyAuth, BearerAuth, NoAuth, ApiResponse, ApiSuccessResponse, ApiErrorResponse, ApiFieldError, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, FormField, BookingSubmitRequest, BookingSubmitResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, TimeSlot, AvailableDatesRequest, AvailableDatesResponse, BookingService, BookingServicesRequest, BookingServicesResponse, BookingServiceResponse, BookingResource, BookingResourcesRequest, BookingResourcesResponse, PublicEvent, PublicEventsRequest, PublicEventsResponse, EventVenue, AccessRestriction, EventFilterCategory, EventFilterStaffMember, EventFilterVenue, EventFiltersResponse, EventRegisterRequest, EventRegisterResponse, EventCheckoutRequest, EventCheckoutResponse, EventCheckoutReturnRequest, EventCheckoutReturnResponse, PaymentMethod, EligiblePass, EligibleMembership, AvailablePass, AvailableMembership, DiscountContext, DiscountsAvailableRequest, DiscountsAvailableResponse, DiscountApplyLine, DiscountApplyRequest, DiscountApplyRejectedReason, DiscountApplyResponse, ShopCheckoutRequest, ShopCheckoutResponse, ShopDuplicateMembershipWarning, CustomerProfile, CustomerOrder, CustomerOrderFilter, CustomerOrderItem, CustomerOrderInstalmentPlan, CustomerOrderInstalmentPlanStatus, CustomerOrderInstalmentRow, CustomerOrderInstalmentStatus, CustomerOrderPaymentState, CustomerOrderRefund, EnabledModules, PortalMeResponse, PortalMeUpdateRequest, CustomerPass, CustomerPassCreditHistoryEntry, CustomerMembership, EventTicketBreakdownLine, CustomerEventRegistration, CustomerPortalWaitlistEntry, CustomerPortalWaitlistSubject, PortalEventTicket, CustomerAppointment, AppointmentBookingQuestionsTaskDetail, BookingQuestionsTaskDetail, BookingQuestionsAnswerValue, BookingQuestionsField, BookingQuestionsFieldOption, BookingQuestionsSection, BeforeYouComeTaskSummary, CustomerEventSeriesRegistration, EventGuest, PortalCredit, PortalCreditSummary, PortalCreditTransaction, PortalCreditResponse, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalDigitalProduct, PortalDigitalProductFile, PortalDigitalProductsResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalAppointmentBookingQuestionsResponse, PortalCreateAppointmentBookingQuestionsUploadUrlRequest, PortalCreateAppointmentBookingQuestionsUploadUrlResponse, PortalFinalizeAppointmentBookingQuestionsUploadRequest, PortalFinalizeAppointmentBookingQuestionsUploadResponse, PortalUpdateAppointmentBookingQuestionsRequest, PortalUpdateAppointmentBookingQuestionsResponse, PortalEventBookingQuestionsResponse, PortalCreateEventBookingQuestionsUploadUrlRequest, PortalCreateEventBookingQuestionsUploadUrlResponse, PortalFinalizeEventBookingQuestionsUploadRequest, PortalFinalizeEventBookingQuestionsUploadResponse, PortalUpdateEventBookingQuestionsRequest, PortalUpdateEventBookingQuestionsResponse, PortalWholeSeriesBookingQuestionsResponse, PortalCreateWholeSeriesBookingQuestionsUploadUrlRequest, PortalCreateWholeSeriesBookingQuestionsUploadUrlResponse, PortalFinalizeWholeSeriesBookingQuestionsUploadRequest, PortalFinalizeWholeSeriesBookingQuestionsUploadResponse, PortalUpdateWholeSeriesBookingQuestionsRequest, PortalUpdateWholeSeriesBookingQuestionsResponse, UpdateEventGuestsRequest, EventGuestsResponse, PortalCancelWholeSeriesRegistrationRequest, PortalCancelWholeSeriesRegistrationResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalCancelEventRegistrationRequest, PortalRefundInfo, PortalCancelEventRegistrationResult, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCancelMembershipAtPeriodEndResult, MagicLinkRequest, } from './types';
47
48
  export { discountAvailabilityAllowsManualEntry, discountAvailabilityHasDiscounts, getAutoAppliedDiscountPreview, } from './types';
48
49
  export type { BookingQuestionsDocumentAnswerValue } from '../../../portal/types';
49
50
  export { deriveCreditProductLabels, getCreditProductCreditUnit, getCreditProductTypeLabel, getPortalCreditProductCreditNoun, } from './creditProducts';
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import type { BlockApiConfig, BrowserReadAuthority } from './types';
3
+ export declare const browserReadAuthoritySchema: z.ZodType<BrowserReadAuthority>;
4
+ /** Generic SDK/editor configuration is projected here; hosted callers supply the closed union. */
5
+ export declare function getBlockApiReadStage(config: BlockApiConfig): 'published' | 'preview';
6
+ export declare function createHostedBlockApiConfig(input: Readonly<{
7
+ baseUrl: string;
8
+ siteId: string;
9
+ readAuthority: BrowserReadAuthority;
10
+ portalToken?: string | null;
11
+ }>): BlockApiConfig;
@@ -20,6 +20,13 @@ export type NoAuth = {
20
20
  };
21
21
  /** Auth strategy for Block API Client */
22
22
  export type BlockApiAuth = ApiKeyAuth | BearerAuth | NoAuth;
23
+ /** Serializable browsing authority. Customer identity is deliberately separate. */
24
+ export type BrowserReadAuthority = Readonly<{
25
+ kind: "published";
26
+ }> | Readonly<{
27
+ kind: "preview";
28
+ token: string;
29
+ }>;
23
30
  /** Configuration for creating a Block API Client */
24
31
  export interface BlockApiConfig {
25
32
  /** Dashboard API URL (e.g., https://dashboard.example.com/api) */
@@ -41,6 +48,8 @@ export interface BlockApiConfig {
41
48
  siteId?: string;
42
49
  /** Include draft content (adds stage=preview param) */
43
50
  isPreview?: boolean;
51
+ /** Bound hosted browsing authority; legacy SDK auth/stage fields cannot override it. */
52
+ readAuthority?: BrowserReadAuthority;
44
53
  }
45
54
  /** API success response wrapper */
46
55
  export interface ApiSuccessResponse<T> {
@@ -228,7 +228,6 @@ export declare const runtimeBackedBlockClientEntries: {
228
228
  }>;
229
229
  hydration: Readonly<{
230
230
  siteId: string;
231
- stage?: "preview" | "published";
232
231
  eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
233
232
  paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
234
233
  showFilters: boolean;
@@ -271,7 +270,6 @@ export declare const runtimeBackedBlockClientEntries: {
271
270
  }>;
272
271
  hydration: Readonly<{
273
272
  siteId: string;
274
- stage?: "preview" | "published";
275
273
  eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
276
274
  paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
277
275
  showFilters: boolean;
@@ -308,7 +306,6 @@ export declare const runtimeBackedBlockClientEntries: {
308
306
  }>;
309
307
  hydration: Readonly<{
310
308
  siteId: string;
311
- stage?: "preview" | "published";
312
309
  eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
313
310
  paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
314
311
  showFilters: boolean;
@@ -353,7 +350,6 @@ export declare const runtimeBackedBlockClientEntries: {
353
350
  }>;
354
351
  hydration: Readonly<{
355
352
  siteId: string;
356
- stage?: "preview" | "published";
357
353
  eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
358
354
  paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
359
355
  showFilters: boolean;
@@ -396,7 +392,6 @@ export declare const runtimeBackedBlockClientEntries: {
396
392
  }>;
397
393
  hydration: Readonly<{
398
394
  siteId: string;
399
- stage?: "preview" | "published";
400
395
  eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
401
396
  paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
402
397
  showFilters: boolean;
@@ -433,7 +428,6 @@ export declare const runtimeBackedBlockClientEntries: {
433
428
  }>;
434
429
  hydration: Readonly<{
435
430
  siteId: string;
436
- stage?: "preview" | "published";
437
431
  eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
438
432
  paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
439
433
  showFilters: boolean;
@@ -466,7 +460,6 @@ export declare const runtimeBackedBlockClientEntries: {
466
460
  hydration: Readonly<{
467
461
  calendarWindow?: import("../../../contracts").CalendarWindowPage;
468
462
  siteId: string;
469
- stage?: "preview" | "published";
470
463
  prefetchedEvents: boolean;
471
464
  eventSurface: import("../..").EventSurfaceScope;
472
465
  filterEventPresets: string | null;
@@ -492,7 +485,6 @@ export declare const runtimeBackedBlockClientEntries: {
492
485
  hydration: Readonly<{
493
486
  calendarWindow?: import("../../../contracts").CalendarWindowPage;
494
487
  siteId: string;
495
- stage?: "preview" | "published";
496
488
  prefetchedEvents: boolean;
497
489
  eventSurface: import("../..").EventSurfaceScope;
498
490
  filterEventPresets: string | null;
@@ -512,7 +504,6 @@ export declare const runtimeBackedBlockClientEntries: {
512
504
  hydration: Readonly<{
513
505
  calendarWindow?: import("../../../contracts").CalendarWindowPage;
514
506
  siteId: string;
515
- stage?: "preview" | "published";
516
507
  prefetchedEvents: boolean;
517
508
  eventSurface: import("../..").EventSurfaceScope;
518
509
  filterEventPresets: string | null;
@@ -540,7 +531,6 @@ export declare const runtimeBackedBlockClientEntries: {
540
531
  hydration: Readonly<{
541
532
  calendarWindow?: import("../../../contracts").CalendarWindowPage;
542
533
  siteId: string;
543
- stage?: "preview" | "published";
544
534
  prefetchedEvents: boolean;
545
535
  eventSurface: import("../..").EventSurfaceScope;
546
536
  filterEventPresets: string | null;
@@ -566,7 +556,6 @@ export declare const runtimeBackedBlockClientEntries: {
566
556
  hydration: Readonly<{
567
557
  calendarWindow?: import("../../../contracts").CalendarWindowPage;
568
558
  siteId: string;
569
- stage?: "preview" | "published";
570
559
  prefetchedEvents: boolean;
571
560
  eventSurface: import("../..").EventSurfaceScope;
572
561
  filterEventPresets: string | null;
@@ -586,7 +575,6 @@ export declare const runtimeBackedBlockClientEntries: {
586
575
  hydration: Readonly<{
587
576
  calendarWindow?: import("../../../contracts").CalendarWindowPage;
588
577
  siteId: string;
589
- stage?: "preview" | "published";
590
578
  prefetchedEvents: boolean;
591
579
  eventSurface: import("../..").EventSurfaceScope;
592
580
  filterEventPresets: string | null;
@@ -1559,6 +1547,7 @@ export declare const runtimeBackedBlockClientEntries: {
1559
1547
  apiBaseUrl?: string;
1560
1548
  portalToken?: string | null;
1561
1549
  previewToken?: string | null;
1550
+ readAuthority?: import("../api").BrowserReadAuthority;
1562
1551
  occurrenceContext?: import("../..").OccurrenceContext | null;
1563
1552
  subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
1564
1553
  events?: import("../../../../../api/src/index").PublicEvent[] | null;
@@ -1594,6 +1583,7 @@ export declare const runtimeBackedBlockClientEntries: {
1594
1583
  apiBaseUrl?: string;
1595
1584
  portalToken?: string | null;
1596
1585
  previewToken?: string | null;
1586
+ readAuthority?: import("../api").BrowserReadAuthority;
1597
1587
  occurrenceContext?: import("../..").OccurrenceContext | null;
1598
1588
  subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
1599
1589
  events?: import("../../../../../api/src/index").PublicEvent[] | null;
@@ -1622,6 +1612,7 @@ export declare const runtimeBackedBlockClientEntries: {
1622
1612
  apiBaseUrl?: string;
1623
1613
  portalToken?: string | null;
1624
1614
  previewToken?: string | null;
1615
+ readAuthority?: import("../api").BrowserReadAuthority;
1625
1616
  occurrenceContext?: import("../..").OccurrenceContext | null;
1626
1617
  subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
1627
1618
  events?: import("../../../../../api/src/index").PublicEvent[] | null;
@@ -1672,6 +1663,7 @@ export declare const runtimeBackedBlockClientEntries: {
1672
1663
  apiBaseUrl?: string;
1673
1664
  portalToken?: string | null;
1674
1665
  previewToken?: string | null;
1666
+ readAuthority?: import("../api").BrowserReadAuthority;
1675
1667
  occurrenceContext?: import("../..").OccurrenceContext | null;
1676
1668
  subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
1677
1669
  events?: import("../../../../../api/src/index").PublicEvent[] | null;
@@ -1707,6 +1699,7 @@ export declare const runtimeBackedBlockClientEntries: {
1707
1699
  apiBaseUrl?: string;
1708
1700
  portalToken?: string | null;
1709
1701
  previewToken?: string | null;
1702
+ readAuthority?: import("../api").BrowserReadAuthority;
1710
1703
  occurrenceContext?: import("../..").OccurrenceContext | null;
1711
1704
  subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
1712
1705
  events?: import("../../../../../api/src/index").PublicEvent[] | null;
@@ -1735,6 +1728,7 @@ export declare const runtimeBackedBlockClientEntries: {
1735
1728
  apiBaseUrl?: string;
1736
1729
  portalToken?: string | null;
1737
1730
  previewToken?: string | null;
1731
+ readAuthority?: import("../api").BrowserReadAuthority;
1738
1732
  occurrenceContext?: import("../..").OccurrenceContext | null;
1739
1733
  subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
1740
1734
  events?: import("../../../../../api/src/index").PublicEvent[] | null;
@@ -2145,6 +2139,7 @@ export declare const clientComponentRegistryEntries: {
2145
2139
  component: React.ComponentType<Readonly<Readonly<{
2146
2140
  siteId: string;
2147
2141
  apiBaseUrl?: string;
2142
+ readAuthority?: import("../api").BrowserReadAuthority;
2148
2143
  stage?: "preview" | "published";
2149
2144
  }> & {
2150
2145
  renderKind: "progressive";
@@ -2155,7 +2150,6 @@ export declare const clientComponentRegistryEntries: {
2155
2150
  hydration: Readonly<{
2156
2151
  calendarWindow?: import("../../../contracts").CalendarWindowPage;
2157
2152
  siteId: string;
2158
- stage?: "preview" | "published";
2159
2153
  prefetchedEvents: boolean;
2160
2154
  eventSurface: import("../..").EventSurfaceScope;
2161
2155
  filterEventPresets: string | null;
@@ -128,7 +128,6 @@ export declare const runtimeBackedBlockServerEntries: {
128
128
  }>;
129
129
  hydration: Readonly<{
130
130
  siteId: string;
131
- stage?: "preview" | "published";
132
131
  eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
133
132
  paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
134
133
  showFilters: boolean;
@@ -171,7 +170,6 @@ export declare const runtimeBackedBlockServerEntries: {
171
170
  }>;
172
171
  hydration: Readonly<{
173
172
  siteId: string;
174
- stage?: "preview" | "published";
175
173
  eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
176
174
  paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
177
175
  showFilters: boolean;
@@ -208,7 +206,6 @@ export declare const runtimeBackedBlockServerEntries: {
208
206
  }>;
209
207
  hydration: Readonly<{
210
208
  siteId: string;
211
- stage?: "preview" | "published";
212
209
  eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
213
210
  paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
214
211
  showFilters: boolean;
@@ -239,7 +236,6 @@ export declare const runtimeBackedBlockServerEntries: {
239
236
  hydration: Readonly<{
240
237
  calendarWindow?: import("../../../contracts").CalendarWindowPage;
241
238
  siteId: string;
242
- stage?: "preview" | "published";
243
239
  prefetchedEvents: boolean;
244
240
  eventSurface: import("../..").EventSurfaceScope;
245
241
  filterEventPresets: string | null;
@@ -265,7 +261,6 @@ export declare const runtimeBackedBlockServerEntries: {
265
261
  hydration: Readonly<{
266
262
  calendarWindow?: import("../../../contracts").CalendarWindowPage;
267
263
  siteId: string;
268
- stage?: "preview" | "published";
269
264
  prefetchedEvents: boolean;
270
265
  eventSurface: import("../..").EventSurfaceScope;
271
266
  filterEventPresets: string | null;
@@ -285,7 +280,6 @@ export declare const runtimeBackedBlockServerEntries: {
285
280
  hydration: Readonly<{
286
281
  calendarWindow?: import("../../../contracts").CalendarWindowPage;
287
282
  siteId: string;
288
- stage?: "preview" | "published";
289
283
  prefetchedEvents: boolean;
290
284
  eventSurface: import("../..").EventSurfaceScope;
291
285
  filterEventPresets: string | null;
@@ -782,6 +776,7 @@ export declare const runtimeBackedBlockServerEntries: {
782
776
  apiBaseUrl?: string;
783
777
  portalToken?: string | null;
784
778
  previewToken?: string | null;
779
+ readAuthority?: import("../api").BrowserReadAuthority;
785
780
  occurrenceContext?: import("../..").OccurrenceContext | null;
786
781
  subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
787
782
  events?: import("../../../../../api/src/index").PublicEvent[] | null;
@@ -817,6 +812,7 @@ export declare const runtimeBackedBlockServerEntries: {
817
812
  apiBaseUrl?: string;
818
813
  portalToken?: string | null;
819
814
  previewToken?: string | null;
815
+ readAuthority?: import("../api").BrowserReadAuthority;
820
816
  occurrenceContext?: import("../..").OccurrenceContext | null;
821
817
  subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
822
818
  events?: import("../../../../../api/src/index").PublicEvent[] | null;
@@ -845,6 +841,7 @@ export declare const runtimeBackedBlockServerEntries: {
845
841
  apiBaseUrl?: string;
846
842
  portalToken?: string | null;
847
843
  previewToken?: string | null;
844
+ readAuthority?: import("../api").BrowserReadAuthority;
848
845
  occurrenceContext?: import("../..").OccurrenceContext | null;
849
846
  subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
850
847
  events?: import("../../../../../api/src/index").PublicEvent[] | null;
@@ -23,8 +23,6 @@ type UseCalendarEventsOptions = {
23
23
  preloadMonths?: number;
24
24
  /** Block-level filters to apply to all calendar fetches */
25
25
  filters?: EventRuntimeFilters;
26
- /** Fetch stage (preview vs published) */
27
- stage?: 'preview' | 'published';
28
26
  calendarContext: Readonly<{
29
27
  timeZone: BookingTimeZone;
30
28
  initialToday: CalendarDate;
@@ -84,14 +82,21 @@ type UseCalendarEventCacheOptions = Readonly<{
84
82
  calendarWindow?: CalendarWindowPage;
85
83
  preloadMonths?: number;
86
84
  filters?: EventRuntimeFilters;
87
- stage?: 'preview' | 'published';
88
85
  timeZone: BookingTimeZone;
89
86
  }>;
87
+ type CalendarReadPreparation = Readonly<{
88
+ kind: 'ready';
89
+ key: string;
90
+ }> | Readonly<{
91
+ kind: 'missing-site-config';
92
+ error: Error;
93
+ }>;
94
+ export declare function prepareCalendarRead(siteId: string | undefined, stage: 'preview' | 'published' | undefined, filters: EventRuntimeFilters | undefined, readProfile: CalendarReadProfile): CalendarReadPreparation;
90
95
  /**
91
96
  * The reducer owns month data and request ownership. The hook only performs I/O.
92
97
  * Requests for other months remain useful until the query context changes.
93
98
  */
94
- export declare function useCalendarEventCache({ readProfile, viewDate, calendarWindow, preloadMonths, filters, stage, timeZone, }: UseCalendarEventCacheOptions): Readonly<{
99
+ export declare function useCalendarEventCache({ readProfile, viewDate, calendarWindow, preloadMonths, filters, timeZone, }: UseCalendarEventCacheOptions): Readonly<{
95
100
  events: PublicEvent[];
96
101
  loadState: CalendarViewLoadState;
97
102
  retryCurrentView: () => void;