@riverbankcms/sdk 0.134.0 → 0.135.1

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 (258) hide show
  1. package/CHANGELOG.md +4 -3
  2. package/README.md +1 -1
  3. package/dist/{PreviewEditorSidebar-DfRhJPFQ.mjs → PreviewEditorSidebar-D4p_5TdY.mjs} +4 -4
  4. package/dist/{PreviewEditorUI-Dppxcr_g.mjs → PreviewEditorUI-D0cRoTX1.mjs} +3 -3
  5. package/dist/{PreviewQueryProvider-D51gQaG3.mjs → PreviewQueryProvider-DcgaESkm.mjs} +1 -1
  6. package/dist/{SdkPreviewModeRuntime-8CyGCXir.mjs → SdkPreviewModeRuntime-BKLtM3Nz.mjs} +5 -5
  7. package/dist/{SiteChromeCustomizeContext-DVMTMvqA.mjs → SiteChromeCustomizeContext-61X2m7QV.mjs} +4105 -8035
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +165 -165
  9. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +15 -15
  10. package/dist/_dts/api/src/bookingConfig.d.ts +1 -1
  11. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +25 -60
  12. package/dist/_dts/api/src/bookingOperations.d.ts +111 -161
  13. package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +123 -0
  14. package/dist/_dts/api/src/bookingRecords.d.ts +13 -13
  15. package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +4 -4
  16. package/dist/_dts/api/src/bookingSessionSummaryTypes.d.ts +34 -0
  17. package/dist/_dts/api/src/bookings.d.ts +5 -9
  18. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -7
  19. package/dist/_dts/api/src/communications.d.ts +1 -1
  20. package/dist/_dts/api/src/endpoints.d.ts +29 -109
  21. package/dist/_dts/api/src/eventManagementContracts.d.ts +1 -1
  22. package/dist/_dts/api/src/eventSeriesRegistrationEndpointDefinitions.d.ts +43 -0
  23. package/dist/_dts/api/src/index.d.ts +3 -4
  24. package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
  25. package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
  26. package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +8 -0
  27. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +32 -28
  28. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +85 -5
  29. package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +1 -1
  30. package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +9 -100
  31. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +7 -6
  32. package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +0 -32
  33. package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +1 -1
  34. package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
  35. package/dist/_dts/api/src/siteOperations.d.ts +2 -2
  36. package/dist/_dts/api/src/types.d.ts +1 -1
  37. package/dist/_dts/api/src/{courses.d.ts → wholeSeriesOfferings.d.ts} +43 -95
  38. package/dist/_dts/blocks/src/client.d.ts +0 -5
  39. package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
  40. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +5 -94
  41. package/dist/_dts/blocks/src/portal/dateFormatting.d.ts +3 -0
  42. package/dist/_dts/blocks/src/portal/types.d.ts +17 -20
  43. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +147 -42
  44. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +35 -10
  45. package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +3 -0
  46. package/dist/_dts/blocks/src/system/blocks/index.d.ts +0 -2
  47. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +3 -3
  48. package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +3 -3
  49. package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
  50. package/dist/_dts/blocks/src/system/node/builder.d.ts +0 -1
  51. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +9 -12
  52. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +2 -44
  53. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  54. package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +1 -1
  55. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +99 -59
  56. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
  57. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +19 -16
  58. package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -0
  59. package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
  60. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +24 -247
  61. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +13 -126
  62. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +0 -1
  63. package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -3
  64. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts +8 -0
  65. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +17 -0
  66. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +24 -0
  67. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +18 -0
  68. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +5 -0
  69. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/constants.d.ts +1 -0
  70. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +1 -3
  71. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +7 -4
  72. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +0 -1
  73. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +7 -8
  74. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/index.d.ts +1 -1
  75. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +4 -4
  76. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +3 -0
  77. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +5 -0
  78. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +28 -0
  79. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +12 -11
  80. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +53 -45
  81. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +10 -6
  82. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +9 -1
  83. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +20 -5
  84. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +20 -0
  85. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +5 -56
  86. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/waitlistClaimRestoration.d.ts +20 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +6 -22
  88. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DateTimeTile.d.ts +1 -1
  89. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +16 -6
  90. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
  91. package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +6 -1
  92. package/dist/_dts/blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.d.ts +1 -13
  93. package/dist/_dts/blocks/src/system/runtime/shared/components/LoggedInAsUser.d.ts +1 -1
  94. package/dist/_dts/blocks/src/system/runtime/shared/components/MembershipHero.d.ts +1 -1
  95. package/dist/_dts/blocks/src/system/runtime/shared/components/StateIcon.d.ts +1 -1
  96. package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +1 -1
  97. package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +1 -1
  98. package/dist/_dts/blocks/src/system/runtime/shared/utils/checkoutUrls.d.ts +2 -2
  99. package/dist/_dts/commerce/src/index.d.ts +16 -0
  100. package/dist/_dts/commerce/src/money.d.ts +122 -0
  101. package/dist/_dts/commerce/src/moneyContracts.d.ts +178 -0
  102. package/dist/_dts/commerce/src/moneyDateUtils.d.ts +22 -0
  103. package/dist/_dts/commerce/src/moneyPayments.d.ts +59 -0
  104. package/dist/_dts/commerce/src/moneyPlanningTime.d.ts +4 -0
  105. package/dist/_dts/commerce/src/moneyReceiptReadModel.d.ts +68 -0
  106. package/dist/_dts/commerce/src/moneyReport.d.ts +105 -0
  107. package/dist/_dts/commerce/src/moneyReportBreakdowns.d.ts +3 -0
  108. package/dist/_dts/commerce/src/moneyReportKindFilter.d.ts +4 -0
  109. package/dist/_dts/commerce/src/moneyReportPage.d.ts +132 -0
  110. package/dist/_dts/commerce/src/purchase/checkoutCollectionPlan.d.ts +1 -1
  111. package/dist/_dts/commerce/src/purchase/confirmationEmailPayment.d.ts +1 -1
  112. package/dist/_dts/commerce/src/purchase/orderCompletionEmailPlan.d.ts +3 -3
  113. package/dist/_dts/commerce/src/purchase/orderFulfillmentPlan.d.ts +6 -25
  114. package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -4
  115. package/dist/_dts/commerce/src/purchase/orderPlanningTypes.d.ts +11 -11
  116. package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +1 -1
  117. package/dist/_dts/commerce/src/purchase/persistedCheckoutLines.d.ts +1 -1
  118. package/dist/_dts/commerce/src/purchase/types.d.ts +12 -8
  119. package/dist/_dts/commerce/src/shop/digitalFulfillment.d.ts +111 -0
  120. package/dist/_dts/commerce/src/shop/fulfillmentStatus.d.ts +10 -0
  121. package/dist/_dts/commerce/src/shop/inventoryRestore.d.ts +13 -0
  122. package/dist/_dts/commerce/src/shop/shippingAddress.d.ts +18 -0
  123. package/dist/_dts/commerce/src/types/json.d.ts +3 -0
  124. package/dist/_dts/commerce/src/utils/isPlainRecord.d.ts +1 -0
  125. package/dist/_dts/commerce/src/waitlists.d.ts +172 -0
  126. package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -30
  127. package/dist/_dts/content-model/src/content-types/builtins.d.ts +2 -39
  128. package/dist/_dts/content-model/src/metadataConfig.d.ts +0 -1
  129. package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -68
  130. package/dist/_dts/core/src/branded.d.ts +3 -3
  131. package/dist/_dts/core/src/event-pricing.d.ts +6 -6
  132. package/dist/_dts/core/src/participants.d.ts +17 -17
  133. package/dist/_dts/core/src/rectification.d.ts +1 -1
  134. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +890 -2154
  135. package/dist/_dts/sdk/src/bookings/index.d.ts +4 -5
  136. package/dist/_dts/sdk/src/bookings/types.d.ts +34 -4
  137. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +4 -6
  138. package/dist/_dts/sdk/src/version.d.ts +1 -1
  139. package/dist/_dts/theme-core/src/blocks/vars/index.d.ts +0 -2
  140. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  141. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +1 -1
  142. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +1 -1
  143. package/dist/client/{usePolling-UN4WKnaM.mjs → BookingConsentAgreement-Bz9znbpn.mjs} +180 -4
  144. package/dist/client/{DiscountCodeDisclosure-CfuPOHD0.mjs → DiscountCodeDisclosure-35Ru8yB9.mjs} +13 -27
  145. package/dist/client/{EventCombined.client-DB8Qfzi-.mjs → EventCombined.client-BKB0ZxRR.mjs} +3 -3
  146. package/dist/client/{EventListing.client-DD4X8hp4.mjs → EventListing.client-Dx8I21ok.mjs} +2 -2
  147. package/dist/client/{LeafletStaticMap-QhgIBQbv.mjs → LeafletStaticMap-CEWx-Bhe.mjs} +1 -1
  148. package/dist/client/{accordion-DFXpLvwg.mjs → accordion-KIDsKTwS.mjs} +1 -1
  149. package/dist/client/{bookingForm-sI05d3lk.mjs → bookingForm-D96Rmp-5.mjs} +6 -7
  150. package/dist/client/bookings.mjs +913 -1906
  151. package/dist/client/{carousel-wjyWTZCh.mjs → carousel-YwUgyL66.mjs} +1 -1
  152. package/dist/client/{cart-DCwdpA4i.mjs → cart-BbwuNrUT.mjs} +3 -3
  153. package/dist/client/{checkout-DTDW3l0R.mjs → checkout-hp1ucmEY.mjs} +3 -3
  154. package/dist/client/{checkoutUrls-DQYC_Br-.mjs → checkoutUrls-BuseL0dw.mjs} +4 -2
  155. package/dist/client/client.mjs +5109 -9333
  156. package/dist/client/{context-TSK1CGx8.mjs → context-DljQn8L5.mjs} +15 -69
  157. package/dist/client/{eventCalendar-B0Zg-i_w.mjs → eventCalendar-DU4iNLpo.mjs} +5 -5
  158. package/dist/client/{eventCombined-B8Y2wizd.mjs → eventCombined-CZuupW8m.mjs} +3 -3
  159. package/dist/client/{eventDetails-DPDOwURJ.mjs → eventDetails-DPQWwCIi.mjs} +8 -8
  160. package/dist/client/{eventListing-CjBcmSLn.mjs → eventListing-C7oMidwS.mjs} +3 -3
  161. package/dist/client/{eventRegistration-CK30HsAq.mjs → eventRegistration-zEiunlUs.mjs} +4522 -3690
  162. package/dist/client/{form-CUXfsABE.mjs → form-D2KIyCVJ.mjs} +2 -2
  163. package/dist/client/{headerSection-N-mN3rjr.mjs → headerSection-CK5uChUK.mjs} +2 -2
  164. package/dist/client/hooks.mjs +459 -714
  165. package/dist/client/{locationMap-oiIDQMBt.mjs → locationMap-DLQNH1ln.mjs} +2 -2
  166. package/dist/client/{newsletterForm-CkQ2tTrM.mjs → newsletterForm-ZuhIG7fZ.mjs} +2 -2
  167. package/dist/client/{productDetail-CnidyrsN.mjs → productDetail-7hIcGeae.mjs} +3 -3
  168. package/dist/client/{productList-CttYcS_S.mjs → productList-T4Cii1ot.mjs} +3 -3
  169. package/dist/client/{propsDecoder-CeUMxI9a.mjs → propsDecoder-mB0aC_Fi.mjs} +4702 -4458
  170. package/dist/client/rendering/client.mjs +59617 -62260
  171. package/dist/client/rendering/islands.mjs +17 -19
  172. package/dist/client/rendering.mjs +5389 -9707
  173. package/dist/client/{scrollToBlock-lPr1oqxB.mjs → scrollToBlock-Du5mHgvL.mjs} +2 -2
  174. package/dist/client/{shop-DXQtMo2O.mjs → shop-B5zAcKZn.mjs} +6 -6
  175. package/dist/client/{shop-commerce-quDL411J.mjs → shop-commerce-BKBZB6l5.mjs} +6 -6
  176. package/dist/client/{shop-commerce-store-Dnu-8Iub.mjs → shop-commerce-store-Cq4qlNtQ.mjs} +1 -1
  177. package/dist/client/{shopShared-BWPUURvG.mjs → shopShared-DYGzEs9D.mjs} +3 -3
  178. package/dist/client/{useEventFilters-DRhWp2_5.mjs → useEventFilters-Bphkda8m.mjs} +3 -3
  179. package/dist/preview-next/before-render.mjs +40 -161
  180. package/dist/preview-next/client/runtime.mjs +4 -4
  181. package/dist/preview-next/keepAlive.mjs +40 -161
  182. package/dist/preview-next/middleware.mjs +40 -161
  183. package/dist/{previewAuthStore-BFKd4LrN.mjs → previewAuthStore-C7ksxt5b.mjs} +40 -161
  184. package/dist/{sdk-runtime-Ca5RD78X.mjs → sdk-runtime-BbIC8G4J.mjs} +2 -2
  185. package/dist/{separator-CMhj6BTi.mjs → separator-CadhAtI7.mjs} +1 -1
  186. package/dist/server/components.mjs +558 -2962
  187. package/dist/server/config-validation.mjs +459 -714
  188. package/dist/server/config.mjs +459 -714
  189. package/dist/server/data.mjs +459 -714
  190. package/dist/server/index.mjs +41 -162
  191. package/dist/server/next.mjs +572 -2976
  192. package/dist/server/page-converter.mjs +360 -582
  193. package/dist/server/prebuild.mjs +1 -1
  194. package/dist/server/rendering/server.mjs +569 -2879
  195. package/dist/server/rendering.mjs +558 -2962
  196. package/dist/server/routing.mjs +603 -1087
  197. package/dist/server/server.mjs +473 -728
  198. package/dist/server/theme-bridge.mjs +41 -1524
  199. package/dist/styles/index.css +41 -1348
  200. package/package.json +1 -1
  201. package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +0 -99
  202. package/dist/_dts/blocks/src/client/course-registration.d.ts +0 -5
  203. package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -134
  204. package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +0 -130
  205. package/dist/_dts/blocks/src/system/blocks/courses/shared/index.d.ts +0 -3
  206. package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +0 -2
  207. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +0 -1
  208. package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +0 -1
  209. package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -135
  210. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +0 -28
  211. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +0 -11
  212. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/runs.d.ts +0 -10
  213. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +0 -15
  214. package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +0 -20
  215. package/dist/_dts/blocks/src/system/runtime/nodes/course-page-surface-scope.d.ts +0 -14
  216. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.client.d.ts +0 -10
  217. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +0 -181
  218. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +0 -12
  219. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/CoursePricingDisplay.d.ts +0 -8
  220. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/BookingModeStep.d.ts +0 -32
  221. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/CheckIcon.d.ts +0 -4
  222. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/ErrorStep.d.ts +0 -17
  223. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/MembershipHero.d.ts +0 -12
  224. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PaymentFailedStep.d.ts +0 -17
  225. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PortalAuthSidebar.d.ts +0 -9
  226. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/StepIndicator.d.ts +0 -6
  227. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/SuccessStep.d.ts +0 -14
  228. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/VerifyingTimeoutStep.d.ts +0 -17
  229. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WaitlistStep.d.ts +0 -12
  230. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationActiveSteps.d.ts +0 -9
  231. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationErrorBoundary.d.ts +0 -25
  232. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationTerminalContent.d.ts +0 -8
  233. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationWizard.d.ts +0 -8
  234. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/components.d.ts +0 -46
  235. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/index.d.ts +0 -18
  236. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/presentation.d.ts +0 -7
  237. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/pricing.d.ts +0 -14
  238. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/types.d.ts +0 -105
  239. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesEligibility.d.ts +0 -24
  240. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesPaymentVerification.d.ts +0 -10
  241. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationActions.d.ts +0 -35
  242. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationPortal.d.ts +0 -7
  243. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationSelection.d.ts +0 -35
  244. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationWizard.d.ts +0 -185
  245. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesWaitlistSelection.d.ts +0 -14
  246. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/utils.d.ts +0 -43
  247. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.contract.d.ts +0 -325
  248. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.planning.d.ts +0 -27
  249. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesPageSurfaceScope.d.ts +0 -17
  250. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesRegistrationViewState.d.ts +0 -21
  251. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wizardSteps.d.ts +0 -30
  252. package/dist/_dts/sdk/src/rendering/islands/enhancers/courseRegistration.d.ts +0 -3
  253. package/dist/_dts/theme-core/src/blocks/vars/course-details.d.ts +0 -16
  254. package/dist/_dts/theme-core/src/blocks/vars/course-registration.d.ts +0 -21
  255. package/dist/client/BookingConsentAgreement-BxgpGEFD.mjs +0 -160
  256. package/dist/client/WholeSeriesRegistrationWizard-DwtC7bCs.mjs +0 -2546
  257. package/dist/client/courseRegistration-A-Tg7qw_.mjs +0 -52
  258. package/dist/client/pricing-Caa0QWzh.mjs +0 -195
@@ -1,5 +1,5 @@
1
1
  import type { DiscountContext } from '../../api/types';
2
- import type { EventTicketSelectionLine, EventRegistrationClientProps, FormData, Guest, GuestErrors, PaymentSelection, PaymentStepState, PublicEvent, RegistrationEvent, RegistrationResult, RegistrationStep } from './types';
2
+ import type { EventTicketSelectionLine, EventRegistrationClientProps, EligibilityData, FormData, Guest, GuestErrors, PaymentSelection, PaymentStepState, PublicEvent, RegistrationEvent, RegistrationResult, RegistrationStep } from './types';
3
3
  import { usePortalAuth, useEligibility, useExistingEventRegistration } from './hooks';
4
4
  import { useWaitlistClaim } from '../../shared/useWaitlistClaim';
5
5
  import { useEventRegistrationStripeReturn } from './useEventRegistrationStripeReturn';
@@ -18,6 +18,7 @@ export type UseEventRegistrationWizardOptions = Readonly<{
18
18
  occurrenceContext: EventRegistrationClientProps['occurrenceContext'];
19
19
  subject?: EventRegistrationClientProps['subject'];
20
20
  events: PublicEvent[];
21
+ wholeSeriesOfferings?: EventRegistrationClientProps['wholeSeriesOfferings'];
21
22
  maxTicketsNum: number;
22
23
  }>;
23
24
  export type EventRegistrationWizardDeps = Readonly<{
@@ -42,7 +43,7 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
42
43
  overrides?: Record<string, unknown> | null | undefined;
43
44
  } | null | undefined;
44
45
  registrationTarget: Readonly<{
45
- occurrenceId: string;
46
+ subject: import("./types").RegistrationSubject;
46
47
  selectedEventId: string | null;
47
48
  }> | null;
48
49
  subject: import("./eventScope").EventRegistrationPageSurfaceSubject | null | undefined;
@@ -114,12 +115,19 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
114
115
  paymentSelection: PaymentSelection;
115
116
  isMembershipFastTrack: boolean;
116
117
  waitlistClaim: import("../../shared/useWaitlistClaim").UseWaitlistClaimResult;
117
- eligibility: import("./types").EligibilityData | null;
118
+ eligibility: EligibilityData | null;
118
119
  eligibilityLoading: boolean;
119
120
  eligibilityError: string | null;
120
121
  existingRegistration: import("../../api").CustomerEventRegistration | null;
121
122
  existingRegistrationLoading: boolean;
122
123
  existingRegistrationState: import("./hooks.state").ExistingRegistrationLookupState;
124
+ registrationState: Readonly<{
125
+ kind: "none";
126
+ }> | Readonly<{
127
+ kind: "booked";
128
+ }> | Readonly<{
129
+ kind: "waitlisted";
130
+ }>;
123
131
  hasEligibility: boolean;
124
132
  hasMembershipEligibility: boolean;
125
133
  requireGuestDetails: boolean;
@@ -155,7 +163,7 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
155
163
  overrides?: Record<string, unknown> | null | undefined;
156
164
  } | null | undefined;
157
165
  registrationTarget: Readonly<{
158
- occurrenceId: string;
166
+ subject: import("./types").RegistrationSubject;
159
167
  selectedEventId: string | null;
160
168
  }> | null;
161
169
  subject: import("./eventScope").EventRegistrationPageSurfaceSubject | null | undefined;
@@ -227,12 +235,19 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
227
235
  paymentSelection: PaymentSelection;
228
236
  isMembershipFastTrack: boolean;
229
237
  waitlistClaim: import("../../shared/useWaitlistClaim").UseWaitlistClaimResult;
230
- eligibility: import("./types").EligibilityData | null;
238
+ eligibility: EligibilityData | null;
231
239
  eligibilityLoading: boolean;
232
240
  eligibilityError: string | null;
233
241
  existingRegistration: import("../../api").CustomerEventRegistration | null;
234
242
  existingRegistrationLoading: boolean;
235
243
  existingRegistrationState: import("./hooks.state").ExistingRegistrationLookupState;
244
+ registrationState: Readonly<{
245
+ kind: "none";
246
+ }> | Readonly<{
247
+ kind: "booked";
248
+ }> | Readonly<{
249
+ kind: "waitlisted";
250
+ }>;
236
251
  hasEligibility: boolean;
237
252
  hasMembershipEligibility: boolean;
238
253
  requireGuestDetails: boolean;
@@ -0,0 +1,20 @@
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
+ import type { ResolveWaitlistClaimResponse } from '../../api/types';
3
+ import type { EventTicketSelectionLine, FormData, Guest, RegistrationEvent, RegistrationStep } from './types';
4
+ export type WaitlistClaimRestorationSetters = Readonly<{
5
+ setErrorMessage: Dispatch<SetStateAction<string>>;
6
+ setStep: (step: RegistrationStep) => void;
7
+ setSelectedEvent: Dispatch<SetStateAction<RegistrationEvent | null>>;
8
+ setAttendanceMode: Dispatch<SetStateAction<'in_person' | 'online' | null>>;
9
+ setTicketSelections: Dispatch<SetStateAction<EventTicketSelectionLine[]>>;
10
+ setSlidingAmountInput: Dispatch<SetStateAction<string>>;
11
+ setTicketsCount: (count: number) => void;
12
+ setFormData: Dispatch<SetStateAction<FormData>>;
13
+ setGuests: Dispatch<SetStateAction<Guest[]>>;
14
+ }>;
15
+ export declare function useWaitlistClaimRestoration(input: Readonly<{
16
+ claim: ResolveWaitlistClaimResponse | null;
17
+ scopedEvents: readonly RegistrationEvent[];
18
+ occurrenceContextId?: string;
19
+ setters: WaitlistClaimRestorationSetters;
20
+ }>): void;
@@ -1,6 +1,9 @@
1
- import type { EligibilityCheckResponse } from '../../api/types';
1
+ import type { RegistrationOptionsResponse } from '../../api/types';
2
2
  import type { EligibilityData, EligibilityEventTicketType, PublicEvent, PublicEventTicketType, RegistrationEvent } from './types';
3
3
  export declare const DEFAULT_EVENT_CURRENCY = "usd";
4
+ export declare function getPortalSubjectEmail(profile: Readonly<{
5
+ email: string;
6
+ }> | null): string | null;
4
7
  export type SelectableEventTicketType = EligibilityEventTicketType | PublicEventTicketType;
5
8
  type TicketTypeSourceEvent = PublicEvent | RegistrationEvent;
6
9
  /**
@@ -24,15 +27,6 @@ export declare function formatEventDateTime(isoTimestamp: string, options?: {
24
27
  timeZone?: string | null;
25
28
  locale?: string;
26
29
  }): string;
27
- /**
28
- * Build the registration API endpoint URL
29
- *
30
- * @param apiBaseUrl - The dashboard API base URL (e.g., "http://localhost:4000/api")
31
- * @param siteId - The site ID
32
- * @param customEndpoint - Optional custom endpoint override
33
- * @returns The full API endpoint URL
34
- */
35
- export declare function buildRegistrationEndpoint(apiBaseUrl: string, siteId: string, customEndpoint?: string): string;
36
30
  export { formatPrice } from '../../shared';
37
31
  /** Tooltip text shown when pass/membership redemptions are unavailable for multi-ticket bookings. */
38
32
  export declare const ENTITLEMENT_SINGLE_TICKET_TOOLTIP = "Only available for single-ticket bookings";
@@ -51,31 +45,7 @@ export declare function areEntitlementsDisabledForTicketCount(ticketsCount: numb
51
45
  * @param creditsRemaining - Credits on the pass before this booking, if known
52
46
  */
53
47
  export declare function formatPassCreditUsageLabel(creditsRemaining: number | null | undefined): string;
54
- /**
55
- * Build the eligibility check endpoint URL
56
- *
57
- * @param apiBaseUrl - The dashboard API base URL (e.g., "http://localhost:4000/api")
58
- * @param siteId - The site ID
59
- * @param customEndpoint - Optional custom endpoint override
60
- * @returns The full API endpoint URL
61
- */
62
- export declare function buildEligibilityEndpoint(apiBaseUrl: string, siteId: string, customEndpoint?: string): string;
63
- /**
64
- * Build the checkout endpoint URL
65
- *
66
- * @param apiBaseUrl - The dashboard API base URL (e.g., "http://localhost:4000/api")
67
- * @param siteId - The site ID
68
- * @param customEndpoint - Optional custom endpoint override
69
- * @returns The full API endpoint URL
70
- */
71
- export declare function buildCheckoutEndpoint(apiBaseUrl: string, siteId: string, customEndpoint?: string): string;
72
- /**
73
- * Transform API eligibility response to internal eligibility data.
74
- *
75
- * @param response - The raw API response from checkEligibility
76
- * @returns Transformed eligibility data for component use
77
- */
78
- export declare function transformEligibilityResponse(response: EligibilityCheckResponse): EligibilityData;
48
+ export declare function transformRegistrationOptionsResponse(response: RegistrationOptionsResponse): EligibilityData;
79
49
  export declare function getTicketTypeAvailabilityLabel(ticketType: Pick<SelectableEventTicketType, 'availability'>): string | null;
80
50
  export declare function getVisibleTicketTypes(input: {
81
51
  event: TicketTypeSourceEvent | null;
@@ -89,24 +59,3 @@ export declare function findSelectedTicketType(input: {
89
59
  selectedTicketTypeId: string | null;
90
60
  selectedAttendanceMode?: 'in_person' | 'online' | null;
91
61
  }): SelectableEventTicketType | null;
92
- /**
93
- * Check if card payment is the only available option.
94
- *
95
- * Returns true when:
96
- * - Event requires payment (not free)
97
- * - User can pay directly (card payment enabled)
98
- * - User has no eligible passes
99
- * - User has no eligible memberships
100
- * - No passes are available for purchase (upsells)
101
- * - No memberships are available for purchase (upsells)
102
- *
103
- * Used to pre-select stripe in PaymentSelectionStep when there's only one option.
104
- */
105
- export declare function isOnlyCardPaymentAvailable(eligibility: EligibilityData | null): boolean;
106
- /**
107
- * Like `isOnlyCardPaymentAvailable`, but accounts for ticket-count rules.
108
- *
109
- * Passes/memberships (and pass/membership bundles) are disabled for multi-ticket bookings,
110
- * so they shouldn't prevent us auto-selecting card when they're visible-but-disabled.
111
- */
112
- export declare function isOnlyCardPaymentAvailableForTicketCount(eligibility: EligibilityData | null, ticketsCount: number): boolean;
@@ -0,0 +1,20 @@
1
+ import type { ResolveWaitlistClaimResponse } from '../../api/types';
2
+ import type { EventTicketSelectionLine, RegistrationEvent } from './types';
3
+ export type WaitlistClaimRestoration = Readonly<{
4
+ ok: false;
5
+ message: string;
6
+ }> | Readonly<{
7
+ ok: true;
8
+ event: RegistrationEvent | null;
9
+ attendanceMode: 'in_person' | 'online';
10
+ ticketSelections: readonly EventTicketSelectionLine[];
11
+ ticketsCount: number;
12
+ slidingAmountInput: string | null;
13
+ }>;
14
+ export declare function resolveWaitlistClaimRestoration(input: Readonly<{
15
+ claim: ResolveWaitlistClaimResponse;
16
+ scopedEvents: readonly RegistrationEvent[];
17
+ occurrenceContextId?: string;
18
+ }>): WaitlistClaimRestoration;
19
+ export declare function resolveClaimedTicketSelections(claim: ResolveWaitlistClaimResponse | null): readonly EventTicketSelectionLine[] | null;
20
+ export declare function resolveClaimTicketCount(claim: ResolveWaitlistClaimResponse | null, fallback: number): number;
@@ -26,11 +26,7 @@ export type EventRegistrationSourceProps = Readonly<{
26
26
  maxTickets?: string | null;
27
27
  showVenue?: boolean;
28
28
  showCapacity?: boolean;
29
- showSessions?: boolean;
30
- showPrice?: boolean;
31
29
  successMessage?: string;
32
- waitlistMessage?: string;
33
- membershipMessage?: string;
34
30
  buttonVariant?: BlockButtonRole;
35
31
  overlayEnabled?: boolean;
36
32
  spamProtectionEnabled?: boolean;
@@ -54,7 +50,7 @@ export type EventRegistrationDisplay = Readonly<{
54
50
  titleText: string;
55
51
  bodyText: string;
56
52
  }>;
57
- export type EventRegistrationHydration = Readonly<Omit<InternalEventRegistrationClientProps, 'siteId' | 'stage' | 'registrationEndpoint' | 'eligibilityEndpoint' | 'checkoutEndpoint' | 'buttonText' | 'className'>>;
53
+ export type EventRegistrationHydration = Readonly<Omit<InternalEventRegistrationClientProps, 'siteId' | 'stage' | 'buttonText' | 'className'>>;
58
54
  type EventRegistrationIslandMeta = Readonly<{
59
55
  siteId?: string;
60
56
  apiBaseUrl?: string;
@@ -82,11 +78,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
82
78
  maxTickets?: string | null;
83
79
  showVenue?: boolean;
84
80
  showCapacity?: boolean;
85
- showSessions?: boolean;
86
- showPrice?: boolean;
87
81
  successMessage?: string;
88
- waitlistMessage?: string;
89
- membershipMessage?: string;
90
82
  buttonVariant?: BlockButtonRole;
91
83
  overlayEnabled?: boolean;
92
84
  spamProtectionEnabled?: boolean;
@@ -100,7 +92,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
100
92
  }> | null;
101
93
  }>) => Readonly<{
102
94
  display: EventRegistrationDisplay;
103
- hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
95
+ hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
104
96
  }>;
105
97
  contracts: Readonly<{
106
98
  source: Readonly<{
@@ -120,11 +112,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
120
112
  maxTickets?: string | null;
121
113
  showVenue?: boolean;
122
114
  showCapacity?: boolean;
123
- showSessions?: boolean;
124
- showPrice?: boolean;
125
115
  successMessage?: string;
126
- waitlistMessage?: string;
127
- membershipMessage?: string;
128
116
  buttonVariant?: BlockButtonRole;
129
117
  overlayEnabled?: boolean;
130
118
  spamProtectionEnabled?: boolean;
@@ -153,11 +141,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
153
141
  maxTickets?: string | null;
154
142
  showVenue?: boolean;
155
143
  showCapacity?: boolean;
156
- showSessions?: boolean;
157
- showPrice?: boolean;
158
144
  successMessage?: string;
159
- waitlistMessage?: string;
160
- membershipMessage?: string;
161
145
  buttonVariant?: BlockButtonRole;
162
146
  overlayEnabled?: boolean;
163
147
  spamProtectionEnabled?: boolean;
@@ -174,11 +158,11 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
174
158
  render: Readonly<{
175
159
  encode: (value: Readonly<{
176
160
  display: EventRegistrationDisplay;
177
- hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
161
+ hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
178
162
  }>) => unknown;
179
163
  decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
180
164
  display: EventRegistrationDisplay;
181
- hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
165
+ hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
182
166
  }>>;
183
167
  }>;
184
168
  }>;
@@ -196,7 +180,7 @@ export declare const eventRegistrationInteractiveIslandPropsCodec: Readonly<{
196
180
  mode: "event-registration";
197
181
  } & Readonly<{
198
182
  display: EventRegistrationDisplay;
199
- hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
183
+ hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
200
184
  }>>;
201
185
  }>) => unknown;
202
186
  decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<Readonly<{
@@ -211,7 +195,7 @@ export declare const eventRegistrationInteractiveIslandPropsCodec: Readonly<{
211
195
  mode: "event-registration";
212
196
  } & Readonly<{
213
197
  display: EventRegistrationDisplay;
214
- hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
198
+ hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
215
199
  }>>;
216
200
  }>>;
217
201
  }>;
@@ -6,6 +6,6 @@ export type DateTimeTileProps = {
6
6
  };
7
7
  /**
8
8
  * Shared tile content for displaying date and time range.
9
- * Used by event-details "Other dates" and course-details "Sessions".
9
+ * Used by event-details "Other dates".
10
10
  */
11
11
  export declare function DateTimeTile({ startsAt, endsAt, timeZone }: DateTimeTileProps): React.JSX.Element;
@@ -141,8 +141,8 @@ export declare const eventCollectionSourceSchemaShape: {
141
141
  readonly filterVenueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
142
  readonly events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
143
143
  bookingScope: z.ZodEnum<{
144
- single_occurrence: "single_occurrence";
145
144
  whole_series: "whole_series";
145
+ single_occurrence: "single_occurrence";
146
146
  }>;
147
147
  eventPreset: z.ZodOptional<z.ZodEnum<{
148
148
  course: "course";
@@ -632,9 +632,9 @@ export declare const eventCollectionSourceSchemaShape: {
632
632
  currency: z.ZodString;
633
633
  }, z.core.$strip>;
634
634
  }, z.core.$strip>, z.ZodObject<{
635
- kind: z.ZodLiteral<"course">;
635
+ kind: z.ZodLiteral<"whole_series">;
636
636
  display: z.ZodObject<{
637
- kind: z.ZodLiteral<"course">;
637
+ kind: z.ZodLiteral<"whole_series">;
638
638
  display: z.ZodDiscriminatedUnion<[z.ZodObject<{
639
639
  kind: z.ZodLiteral<"free">;
640
640
  currency: z.ZodString;
@@ -646,6 +646,11 @@ export declare const eventCollectionSourceSchemaShape: {
646
646
  kind: z.ZodLiteral<"from">;
647
647
  amount: z.ZodNumber;
648
648
  currency: z.ZodString;
649
+ }, z.core.$strip>, z.ZodObject<{
650
+ kind: z.ZodLiteral<"range">;
651
+ minAmount: z.ZodNumber;
652
+ maxAmount: z.ZodNumber;
653
+ currency: z.ZodString;
649
654
  }, z.core.$strip>, z.ZodObject<{
650
655
  kind: z.ZodLiteral<"unavailable">;
651
656
  currency: z.ZodString;
@@ -880,8 +885,8 @@ export declare const eventCollectionSourceSchemaShape: {
880
885
  export declare const eventCollectionDisplaySchemaShape: {
881
886
  readonly events: z.ZodArray<z.ZodObject<{
882
887
  bookingScope: z.ZodEnum<{
883
- single_occurrence: "single_occurrence";
884
888
  whole_series: "whole_series";
889
+ single_occurrence: "single_occurrence";
885
890
  }>;
886
891
  eventPreset: z.ZodOptional<z.ZodEnum<{
887
892
  course: "course";
@@ -1371,9 +1376,9 @@ export declare const eventCollectionDisplaySchemaShape: {
1371
1376
  currency: z.ZodString;
1372
1377
  }, z.core.$strip>;
1373
1378
  }, z.core.$strip>, z.ZodObject<{
1374
- kind: z.ZodLiteral<"course">;
1379
+ kind: z.ZodLiteral<"whole_series">;
1375
1380
  display: z.ZodObject<{
1376
- kind: z.ZodLiteral<"course">;
1381
+ kind: z.ZodLiteral<"whole_series">;
1377
1382
  display: z.ZodDiscriminatedUnion<[z.ZodObject<{
1378
1383
  kind: z.ZodLiteral<"free">;
1379
1384
  currency: z.ZodString;
@@ -1385,6 +1390,11 @@ export declare const eventCollectionDisplaySchemaShape: {
1385
1390
  kind: z.ZodLiteral<"from">;
1386
1391
  amount: z.ZodNumber;
1387
1392
  currency: z.ZodString;
1393
+ }, z.core.$strip>, z.ZodObject<{
1394
+ kind: z.ZodLiteral<"range">;
1395
+ minAmount: z.ZodNumber;
1396
+ maxAmount: z.ZodNumber;
1397
+ currency: z.ZodString;
1388
1398
  }, z.core.$strip>, z.ZodObject<{
1389
1399
  kind: z.ZodLiteral<"unavailable">;
1390
1400
  currency: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { PublicCourse } from '../../blocks/courses/shared/types';
2
+ import type { PublicWholeSeriesOffering } from '../../blocks/events/whole-series/types';
3
3
  import type { ButtonVariant, PublicEvent } from '../../blocks/events/shared/types';
4
4
  import type { CardStylesContent } from '../../fields/boxStyles';
5
5
  import { type BookingOfferingPresetSummary, type OfferingsPreviewEventDataKey, type OfferingsPreviewGroupOrder, type OfferingsPreviewGroupOverride, type OfferingsPreviewRouteCandidate } from '../../blocks/offerings-preview/model';
@@ -17,7 +17,7 @@ type OfferingsPreviewProps = Readonly<{
17
17
  routeCandidates?: Readonly<{
18
18
  routes?: readonly OfferingsPreviewRouteCandidate[] | null;
19
19
  }> | null;
20
- courses?: readonly PublicCourse[] | null;
20
+ wholeSeriesOfferings?: readonly PublicWholeSeriesOffering[] | null;
21
21
  }> & Partial<Record<OfferingsPreviewEventDataKey, readonly PublicEvent[] | null>>;
22
22
  export declare function OfferingsPreviewNode(props: OfferingsPreviewProps): React.JSX.Element | null;
23
23
  export default OfferingsPreviewNode;
@@ -1,4 +1,4 @@
1
- import type { BlockBookingPaymentTerms } from '../../blocks/shared/bookingPaymentTerms';
1
+ import type { BlockBookingPaymentCollectionOption, BlockBookingPaymentTerms } from '../../blocks/shared/bookingPaymentTerms';
2
2
  export type BookingPaymentSelectionKind = 'upfront' | 'deferred_manual' | 'instalment_plan' | 'flexible_balance';
3
3
  export type BookingPaymentOptionSummaryRow = Readonly<{
4
4
  label: string;
@@ -18,6 +18,11 @@ export type BookingPaymentSelectionViewModel = Readonly<{
18
18
  serviceTitle: string;
19
19
  options: readonly BookingPaymentOptionViewModel[];
20
20
  }>;
21
+ export declare function resolveBookingPaymentDueNowCents(input: Readonly<{
22
+ option: BlockBookingPaymentCollectionOption;
23
+ totalCents: number;
24
+ bookingStartAt?: string | null;
25
+ }>): number;
21
26
  export declare function buildBookingPaymentSelectionViewModel(input: Readonly<{
22
27
  serviceTitle: string;
23
28
  paymentTerms?: BlockBookingPaymentTerms;
@@ -1,19 +1,7 @@
1
1
  import type React from 'react';
2
- type BlockDiscountCodeSurface = 'event-registration' | 'whole-series-registration';
2
+ type BlockDiscountCodeSurface = 'event-registration';
3
3
  export type DiscountCodeDisclosureSurface = BlockDiscountCodeSurface | 'theme-form';
4
4
  export declare const BLOCK_DISCOUNT_CODE_DISCLOSURE_CLASSES: {
5
- readonly 'whole-series-registration': {
6
- readonly root: "er-whole-series-discount";
7
- readonly toggle: "er-whole-series-discount__toggle";
8
- readonly form: "er-whole-series-discount__form";
9
- readonly label: "er-whole-series-discount__label";
10
- readonly row: "er-whole-series-discount__row";
11
- readonly input: "er-whole-series-discount__input";
12
- readonly apply: "er-whole-series-discount__apply";
13
- readonly remove: "er-whole-series-discount__remove";
14
- readonly hint: "er-whole-series-discount__hint";
15
- readonly feedback: "er-whole-series-discount__feedback";
16
- };
17
5
  readonly 'event-registration': {
18
6
  readonly root: "er-discount";
19
7
  readonly toggle: "er-discount__toggle";
@@ -4,7 +4,7 @@ export type LoggedInAsUserProps = {
4
4
  email: string;
5
5
  /** Optional logout handler. If provided, shows "Not you? Log out" link. */
6
6
  onLogout?: () => void;
7
- /** CSS class prefix for styling (e.g., 'er' for event-registration, 'cr' for course-registration) */
7
+ /** CSS class prefix for the owning registration surface. */
8
8
  classPrefix: string;
9
9
  };
10
10
  /**
@@ -2,7 +2,7 @@
2
2
  * Celebratory UI shown when user's membership covers the course/event.
3
3
  * Displays confirmation that no payment is required.
4
4
  *
5
- * Supports both course-registration (cr-*) and event-registration (er-*) class prefixes.
5
+ * Supports registration surfaces with a caller-provided class prefix.
6
6
  */
7
7
  type MembershipHeroProps = {
8
8
  /** Name of the membership that covers this item */
@@ -8,7 +8,7 @@ type StateIconProps = {
8
8
  * Circular icon wrapper for terminal state screens (success, error, waitlist, etc.).
9
9
  *
10
10
  * Layout is provided by shared `rb-state-icon` CSS; color variants are
11
- * block-scoped (e.g., scoped to `[data-block="course-registration"]`).
11
+ * block-scoped by the owning registration surface.
12
12
  */
13
13
  export declare function StateIcon({ variant, children }: StateIconProps): import("react").JSX.Element;
14
14
  export {};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Shared Registration Components and Utilities
3
3
  *
4
- * This module provides shared code for course-registration and event-registration blocks.
4
+ * Shared registration components and utilities.
5
5
  */
6
6
  export type { FormData, ButtonVariant } from './types';
7
7
  export { DEFAULT_CURRENCY } from './types';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Shared Registration Types
3
3
  *
4
- * Common types used by both course-registration and event-registration blocks.
4
+ * Common types used by public registration blocks.
5
5
  */
6
6
  import type { BlockButtonRole } from '../../constants/buttonRoles';
7
7
  /**
@@ -5,10 +5,10 @@
5
5
  * and include the block anchor hash for post-redirect scroll targeting.
6
6
  *
7
7
  * @param paramName - Query parameter name to add (e.g., 'enrollment', 'registration')
8
- * @param anchorId - Block anchor ID for hash fragment (e.g., 'course-registration')
8
+ * @param anchorId - Block anchor ID for the return URL hash fragment.
9
9
  * @returns Object with success and cancel URLs
10
10
  */
11
- export declare function buildCheckoutReturnUrls(paramName: string, anchorId: string): {
11
+ export declare function buildCheckoutReturnUrls(paramName: string, anchorId: string, returnParams?: Readonly<Record<string, string>>): {
12
12
  successUrl: string;
13
13
  cancelUrl: string;
14
14
  };
@@ -0,0 +1,16 @@
1
+ export { assertNever } from './utils/assertNever';
2
+ export type { Json } from './types/json';
3
+ export * from './money';
4
+ export * from './moneyContracts';
5
+ export * from './moneyDateUtils';
6
+ export * from './moneyPayments';
7
+ export * from './moneyReceiptReadModel';
8
+ export * from './moneyPlanningTime';
9
+ export * from './moneyReport';
10
+ export * from './moneyReportPage';
11
+ export * from './waitlists';
12
+ export * from './shop/digitalFulfillment';
13
+ export * from './shop/fulfillmentStatus';
14
+ export * from './shop/shipmentEligibility';
15
+ export * from './shop/shippingAddress';
16
+ export * from './shop/inventoryRestore';
@@ -0,0 +1,122 @@
1
+ import { type Result, type EventCategoryId, type EventSeriesId, type MembershipId, type MoneyDateString, type PassId, type ProductId, type VenueId } from '../../core/src/index';
2
+ import { type MoneyPlanningTimeInput } from './moneyPlanningTime';
3
+ export declare const MONEY_PERIOD_PRESETS: readonly ["1d", "7d", "30d", "90d", "365d"];
4
+ export type MoneyPeriodPreset = (typeof MONEY_PERIOD_PRESETS)[number];
5
+ export declare const MONEY_ITEM_KINDS: readonly ["event", "event_series_registration", "pass", "membership", "product"];
6
+ export type MoneyItemKind = (typeof MONEY_ITEM_KINDS)[number];
7
+ export type MoneyPeriod = Readonly<{
8
+ kind: 'preset';
9
+ preset: MoneyPeriodPreset;
10
+ from?: never;
11
+ to?: never;
12
+ }> | Readonly<{
13
+ kind: 'custom';
14
+ from: MoneyDateString;
15
+ to: MoneyDateString;
16
+ preset?: never;
17
+ }>;
18
+ export type MoneyDateRange = Readonly<{
19
+ from: MoneyDateString;
20
+ to: MoneyDateString;
21
+ }>;
22
+ export type MoneyEntityFilters = Readonly<{
23
+ eventSeriesIds: readonly EventSeriesId[];
24
+ eventCategoryIds: readonly EventCategoryId[];
25
+ venueIds: readonly VenueId[];
26
+ passIds: readonly PassId[];
27
+ membershipIds: readonly MembershipId[];
28
+ productIds: readonly ProductId[];
29
+ discountCodes: readonly string[];
30
+ }>;
31
+ export type MoneyFilterState = Readonly<{
32
+ period: MoneyPeriod;
33
+ itemKinds: readonly MoneyItemKind[];
34
+ entities: MoneyEntityFilters;
35
+ }>;
36
+ export type MoneyFilterSelection = Readonly<{
37
+ itemKinds: readonly MoneyItemKind[];
38
+ entities: MoneyEntityFilters;
39
+ }>;
40
+ export type MoneyQueryRange = Readonly<{
41
+ kind: 'all';
42
+ }> | MoneyPeriod;
43
+ export type MoneyQueryParamKey = 'period' | 'from' | 'to' | 'kind' | 'event' | 'category' | 'venue' | 'pass' | 'membership' | 'product' | 'discount';
44
+ export type MoneyFilterQuery = Readonly<{
45
+ period?: MoneyPeriodPreset;
46
+ from?: string;
47
+ to?: string;
48
+ kind?: MoneyItemKind[];
49
+ event?: string[];
50
+ category?: string[];
51
+ venue?: string[];
52
+ pass?: string[];
53
+ membership?: string[];
54
+ product?: string[];
55
+ discount?: string[];
56
+ }>;
57
+ type MoneyQueryRangeInput = Readonly<{
58
+ period?: string;
59
+ from?: string;
60
+ to?: string;
61
+ }>;
62
+ export type MoneyFilterParseIssue = Readonly<{
63
+ kind: 'invalid_period_preset';
64
+ value: string;
65
+ }> | Readonly<{
66
+ kind: 'invalid_date';
67
+ field: 'from' | 'to';
68
+ value: string;
69
+ }> | Readonly<{
70
+ kind: 'invalid_date_range';
71
+ from: string;
72
+ to: string;
73
+ }> | Readonly<{
74
+ kind: 'partial_custom_range';
75
+ from: string | null;
76
+ to: string | null;
77
+ }> | Readonly<{
78
+ kind: 'invalid_item_kind';
79
+ value: string;
80
+ }> | Readonly<{
81
+ kind: 'empty_filter_value';
82
+ field: Exclude<MoneyQueryParamKey, 'period' | 'from' | 'to' | 'kind'>;
83
+ }>;
84
+ export type MoneyFilterParseResult = Readonly<{
85
+ value: MoneyFilterState;
86
+ issues: readonly MoneyFilterParseIssue[];
87
+ }>;
88
+ export type MoneyQueryRangeError = Readonly<{
89
+ kind: 'invalid_period';
90
+ value: string;
91
+ }> | Readonly<{
92
+ kind: 'invalid_date';
93
+ field: 'from' | 'to';
94
+ value: string;
95
+ }> | Readonly<{
96
+ kind: 'invalid_date_range';
97
+ from: string;
98
+ to: string;
99
+ }> | Readonly<{
100
+ kind: 'partial_custom_range';
101
+ from: string | null;
102
+ to: string | null;
103
+ }>;
104
+ export declare const DEFAULT_MONEY_FILTER_STATE: MoneyFilterState;
105
+ export declare function isMoneyDateString(value: string): value is MoneyDateString;
106
+ export declare function parseMoneyDateString(value: string): MoneyDateString | null;
107
+ export declare function isMoneyPeriodPreset(value: unknown): value is MoneyPeriodPreset;
108
+ export declare function isMoneyItemKind(value: unknown): value is MoneyItemKind;
109
+ export declare function createDefaultMoneyFilterState(): MoneyFilterState;
110
+ export declare function createDefaultMoneyFilterSelection(): MoneyFilterSelection;
111
+ export declare function resolveMoneyDateRange(period: MoneyPeriod, options?: MoneyPlanningTimeInput): MoneyDateRange;
112
+ export declare function parseMoneyFilterState(searchParams: URLSearchParams): MoneyFilterParseResult;
113
+ export declare function serializeMoneyFilterState(filters: MoneyFilterState): URLSearchParams;
114
+ export declare function moneyFilterStateToQuery(filters: MoneyFilterState, options?: Readonly<{
115
+ includePeriod?: boolean;
116
+ }>): MoneyFilterQuery;
117
+ export declare function moneyFilterStateToSelection(filters: MoneyFilterState): MoneyFilterSelection;
118
+ export declare function moneyFilterSelectionFromQuery(query: Pick<MoneyFilterQuery, 'kind' | 'event' | 'category' | 'venue' | 'pass' | 'membership' | 'product' | 'discount'>): MoneyFilterSelection;
119
+ export declare function resolveMoneyQueryRange(query: MoneyQueryRangeInput, options?: Readonly<{
120
+ defaultPreset?: MoneyPeriodPreset;
121
+ }>): Result<MoneyQueryRange, MoneyQueryRangeError>;
122
+ export {};