@riverbankcms/sdk 0.132.0 → 0.135.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 (328) hide show
  1. package/CHANGELOG.md +14 -3
  2. package/README.md +1 -1
  3. package/dist/{PreviewEditorSidebar-DKQ5eFK9.mjs → PreviewEditorSidebar-roNY0GVy.mjs} +4 -4
  4. package/dist/{PreviewEditorUI-CNTcOjCC.mjs → PreviewEditorUI-KboDbEh_.mjs} +3 -3
  5. package/dist/{PreviewQueryProvider-D51gQaG3.mjs → PreviewQueryProvider-DcgaESkm.mjs} +1 -1
  6. package/dist/{SdkPreviewModeRuntime-DJu3qu33.mjs → SdkPreviewModeRuntime-DBrF7Caa.mjs} +48 -17
  7. package/dist/{SiteChromeCustomizeContext-2TzT3vbj.mjs → SiteChromeCustomizeContext-DrIEpJKn.mjs} +4351 -7964
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +549 -549
  9. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +234 -234
  10. package/dist/_dts/api/src/accountApi.d.ts +5 -5
  11. package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +1 -1
  12. package/dist/_dts/api/src/bookingConfig.d.ts +1 -1
  13. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +25 -60
  14. package/dist/_dts/api/src/bookingOperations.d.ts +111 -173
  15. package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +123 -0
  16. package/dist/_dts/api/src/bookingRecords.d.ts +13 -13
  17. package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +4 -4
  18. package/dist/_dts/api/src/bookingSessionSummaryTypes.d.ts +34 -0
  19. package/dist/_dts/api/src/bookings.d.ts +7 -11
  20. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -7
  21. package/dist/_dts/api/src/communications.d.ts +1 -1
  22. package/dist/_dts/api/src/contentRuntime.d.ts +1 -1
  23. package/dist/_dts/api/src/endpoints.d.ts +30 -110
  24. package/dist/_dts/api/src/eventManagementContracts.d.ts +1 -1
  25. package/dist/_dts/api/src/eventSeriesRegistrationEndpointDefinitions.d.ts +43 -0
  26. package/dist/_dts/api/src/index.d.ts +3 -4
  27. package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
  28. package/dist/_dts/api/src/navigation/contracts.d.ts +9 -6
  29. package/dist/_dts/api/src/navigation/linkResolver.d.ts +6 -2
  30. package/dist/_dts/api/src/navigation/types.d.ts +23 -6
  31. package/dist/_dts/api/src/navigation.d.ts +1 -1
  32. package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
  33. package/dist/_dts/api/src/publicBookingService.d.ts +15 -0
  34. package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +8 -0
  35. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +32 -28
  36. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +88 -6
  37. package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +1 -1
  38. package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +9 -98
  39. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +7 -6
  40. package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +0 -32
  41. package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +1 -1
  42. package/dist/_dts/api/src/sdk-event-upsert.d.ts +2 -2
  43. package/dist/_dts/api/src/sdkThemeWire.d.ts +50 -50
  44. package/dist/_dts/api/src/siteBanner.d.ts +4 -2
  45. package/dist/_dts/api/src/siteOperations.d.ts +2 -2
  46. package/dist/_dts/api/src/types.d.ts +2 -2
  47. package/dist/_dts/api/src/webhooks.d.ts +12 -12
  48. package/dist/_dts/api/src/{courses.d.ts → wholeSeriesOfferings.d.ts} +43 -95
  49. package/dist/_dts/blocks/src/client.d.ts +1 -6
  50. package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
  51. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +33 -166
  52. package/dist/_dts/blocks/src/index.d.ts +3 -2
  53. package/dist/_dts/blocks/src/portal/dateFormatting.d.ts +3 -0
  54. package/dist/_dts/blocks/src/portal/types.d.ts +17 -20
  55. package/dist/_dts/blocks/src/primitives/content/components/RichText.d.ts +2 -2
  56. package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +1 -0
  57. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +147 -42
  58. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +46 -24
  59. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +3 -0
  60. package/dist/_dts/blocks/src/system/blocks/events/whole-series/schemas.d.ts +3 -3
  61. package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +6 -0
  62. package/dist/_dts/blocks/src/system/blocks/index.d.ts +0 -2
  63. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +4 -4
  64. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +148 -148
  65. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +5 -4
  66. package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +3 -3
  67. package/dist/_dts/blocks/src/system/blocks/shared/bookingConsent.d.ts +36 -0
  68. package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
  69. package/dist/_dts/blocks/src/system/manifest/hydrateLinks.d.ts +9 -2
  70. package/dist/_dts/blocks/src/system/manifest/resolveBlockData.d.ts +8 -0
  71. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +79 -79
  72. package/dist/_dts/blocks/src/system/node/builder.d.ts +0 -1
  73. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +9 -12
  74. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +2 -44
  75. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  76. package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +2 -11
  77. package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +1 -1
  78. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +100 -59
  79. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
  80. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +19 -16
  81. package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -0
  82. package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
  83. package/dist/_dts/blocks/src/system/runtime/components/multi-step/DynamicFormFields.d.ts +3 -19
  84. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +24 -247
  85. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +13 -126
  86. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +0 -1
  87. package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -3
  88. package/dist/_dts/blocks/src/system/runtime/hooks/useSelectedAppointmentConsentForm.d.ts +2 -0
  89. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.consent.d.ts +10 -0
  90. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.field-values.d.ts +4 -0
  91. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.fields.d.ts +21 -0
  92. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +2 -1
  93. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +38 -144
  94. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +5 -19
  95. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -2
  96. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts +8 -0
  97. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +2 -0
  98. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +17 -0
  99. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +24 -0
  100. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +18 -0
  101. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +5 -0
  102. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/constants.d.ts +1 -0
  103. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +1 -3
  104. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +7 -4
  105. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +0 -1
  106. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +7 -8
  107. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/index.d.ts +1 -1
  108. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +4 -4
  109. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +3 -0
  110. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +5 -0
  111. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +18 -1
  112. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +28 -0
  113. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +12 -11
  114. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +53 -45
  115. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +10 -6
  116. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +9 -1
  117. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +24 -9
  118. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +20 -0
  119. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +5 -56
  120. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/validation.d.ts +2 -1
  121. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/waitlistClaimRestoration.d.ts +20 -0
  122. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +6 -22
  123. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DateTimeTile.d.ts +1 -1
  124. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +40 -18
  125. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
  126. package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +6 -1
  127. package/dist/_dts/blocks/src/system/runtime/shared/components/BookingConsentAgreement.d.ts +7 -0
  128. package/dist/_dts/blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.d.ts +1 -13
  129. package/dist/_dts/blocks/src/system/runtime/shared/components/LoggedInAsUser.d.ts +1 -1
  130. package/dist/_dts/blocks/src/system/runtime/shared/components/MembershipHero.d.ts +1 -1
  131. package/dist/_dts/blocks/src/system/runtime/shared/components/StateIcon.d.ts +1 -1
  132. package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +1 -1
  133. package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +2 -1
  134. package/dist/_dts/blocks/src/system/runtime/shared/utils/checkoutUrls.d.ts +2 -2
  135. package/dist/_dts/blocks/src/system/types/link.d.ts +7 -1
  136. package/dist/_dts/commerce/src/index.d.ts +16 -0
  137. package/dist/_dts/commerce/src/money.d.ts +122 -0
  138. package/dist/_dts/commerce/src/moneyContracts.d.ts +178 -0
  139. package/dist/_dts/commerce/src/moneyDateUtils.d.ts +22 -0
  140. package/dist/_dts/commerce/src/moneyPayments.d.ts +59 -0
  141. package/dist/_dts/commerce/src/moneyPlanningTime.d.ts +4 -0
  142. package/dist/_dts/commerce/src/moneyReceiptReadModel.d.ts +68 -0
  143. package/dist/_dts/commerce/src/moneyReport.d.ts +105 -0
  144. package/dist/_dts/commerce/src/moneyReportBreakdowns.d.ts +3 -0
  145. package/dist/_dts/commerce/src/moneyReportKindFilter.d.ts +4 -0
  146. package/dist/_dts/commerce/src/moneyReportPage.d.ts +132 -0
  147. package/dist/_dts/commerce/src/purchase/checkoutCollectionPlan.d.ts +1 -1
  148. package/dist/_dts/commerce/src/purchase/confirmationEmailPayment.d.ts +1 -1
  149. package/dist/_dts/commerce/src/purchase/orderCompletionEmailPlan.d.ts +3 -3
  150. package/dist/_dts/commerce/src/purchase/orderFulfillmentPlan.d.ts +6 -25
  151. package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -4
  152. package/dist/_dts/commerce/src/purchase/orderPlanningTypes.d.ts +11 -11
  153. package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +1 -1
  154. package/dist/_dts/commerce/src/purchase/persistedCheckoutLines.d.ts +1 -1
  155. package/dist/_dts/commerce/src/purchase/types.d.ts +12 -8
  156. package/dist/_dts/commerce/src/shop/digitalFulfillment.d.ts +111 -0
  157. package/dist/_dts/commerce/src/shop/fulfillmentStatus.d.ts +10 -0
  158. package/dist/_dts/commerce/src/shop/inventoryRestore.d.ts +13 -0
  159. package/dist/_dts/commerce/src/shop/shippingAddress.d.ts +18 -0
  160. package/dist/_dts/commerce/src/types/json.d.ts +3 -0
  161. package/dist/_dts/commerce/src/utils/isPlainRecord.d.ts +1 -0
  162. package/dist/_dts/commerce/src/waitlists.d.ts +172 -0
  163. package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -30
  164. package/dist/_dts/content-model/src/content-types/builtins.d.ts +2 -39
  165. package/dist/_dts/content-model/src/content-types/schema.d.ts +4 -4
  166. package/dist/_dts/content-model/src/metadataConfig.d.ts +0 -1
  167. package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -68
  168. package/dist/_dts/core/src/booking-consent.d.ts +8 -0
  169. package/dist/_dts/core/src/branded.d.ts +3 -3
  170. package/dist/_dts/core/src/event-pricing.d.ts +6 -6
  171. package/dist/_dts/core/src/index.d.ts +1 -0
  172. package/dist/_dts/core/src/participants.d.ts +17 -17
  173. package/dist/_dts/core/src/rectification.d.ts +1 -1
  174. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +899 -2157
  175. package/dist/_dts/db/src/schemas/forms.d.ts +21 -21
  176. package/dist/_dts/db/src/types/jsonb.d.ts +1 -1
  177. package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +2 -1
  178. package/dist/_dts/editor/src/primitives/rich-text/config.d.ts +2 -1
  179. package/dist/_dts/editor/src/primitives/rich-text/toolbar/linkPopoverUtils.d.ts +3 -2
  180. package/dist/_dts/editor/src/primitives/rich-text/useRichTextEditor.d.ts +3 -4
  181. package/dist/_dts/media-core/src/usageScanner.d.ts +1 -1
  182. package/dist/_dts/sdk/src/bookings/index.d.ts +4 -5
  183. package/dist/_dts/sdk/src/bookings/types.d.ts +8 -60
  184. package/dist/_dts/sdk/src/config/validation.d.ts +30 -30
  185. package/dist/_dts/sdk/src/contracts/content.d.ts +10 -36
  186. package/dist/_dts/sdk/src/contracts/rendering.d.ts +1 -1
  187. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +9 -9
  188. package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -19
  189. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +4 -6
  190. package/dist/_dts/sdk/src/version.d.ts +1 -1
  191. package/dist/_dts/theme-core/src/accordions/types.d.ts +2 -2
  192. package/dist/_dts/theme-core/src/blocks/vars/index.d.ts +0 -2
  193. package/dist/_dts/theme-core/src/buttons/types.d.ts +12 -12
  194. package/dist/_dts/theme-core/src/cards/types.d.ts +5 -5
  195. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  196. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +72 -72
  197. package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -4
  198. package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
  199. package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
  200. package/dist/_dts/theme-core/src/schema.d.ts +82 -82
  201. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +1 -1
  202. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +1 -1
  203. package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +1 -1
  204. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
  205. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -4
  206. package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
  207. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +1 -1
  208. package/dist/_dts/ui/src/badge.d.ts +1 -1
  209. package/dist/_dts/ui/src/button.d.ts +1 -1
  210. package/dist/_dts/ui/src/callout.d.ts +1 -1
  211. package/dist/_dts/ui/src/card.d.ts +1 -1
  212. package/dist/client/{usePolling-M5jG675x.mjs → BookingConsentAgreement-BQqwi8Oa.mjs} +180 -4
  213. package/dist/client/{DiscountCodeDisclosure-DO7llLxm.mjs → DiscountCodeDisclosure-B97aMo0V.mjs} +13 -27
  214. package/dist/client/{EventCombined.client-xID7zN__.mjs → EventCombined.client-Bs2Iw9Q6.mjs} +3 -3
  215. package/dist/client/{EventListing.client-CriBslp0.mjs → EventListing.client-C4QUQdmg.mjs} +2 -2
  216. package/dist/client/{LeafletStaticMap-DYmHnM8g.mjs → LeafletStaticMap-CwWRk69M.mjs} +1 -1
  217. package/dist/client/{accordion-CgFbnnnQ.mjs → accordion-BA0j8Mpw.mjs} +1 -1
  218. package/dist/client/{bookingForm-dUyGpbxc.mjs → bookingForm-Br2e41H0.mjs} +72 -47
  219. package/dist/client/bookings.mjs +1987 -2132
  220. package/dist/client/{carousel-BvBwkUzx.mjs → carousel-B4dmwnpD.mjs} +1 -1
  221. package/dist/client/{cart-DiZENT2E.mjs → cart-B_ckGW4b.mjs} +3 -3
  222. package/dist/client/{checkout-Dq13KIgR.mjs → checkout-DAyspHdf.mjs} +3 -3
  223. package/dist/client/checkoutUrls-BuseL0dw.mjs +189 -0
  224. package/dist/client/client.mjs +5627 -9543
  225. package/dist/client/{context-B83PiNzm.mjs → context-DljQn8L5.mjs} +15 -82
  226. package/dist/client/{eventCalendar-BF0Jatfw.mjs → eventCalendar-pJu3FUod.mjs} +5 -5
  227. package/dist/client/{eventCombined-BuoCF8je.mjs → eventCombined-B6Kacm9F.mjs} +3 -3
  228. package/dist/client/{eventDetails-CKwh0S9s.mjs → eventDetails-CaX9z1pv.mjs} +8 -8
  229. package/dist/client/{eventListing-eUxaWFaB.mjs → eventListing-B9aXPO-I.mjs} +3 -3
  230. package/dist/client/{eventRegistration-CfkNOkPb.mjs → eventRegistration-CBSovBkg.mjs} +4550 -3671
  231. package/dist/client/{form-C17H1c_H.mjs → form-Cm0tu_7o.mjs} +2 -2
  232. package/dist/client/{headerSection-DEwUmrtt.mjs → headerSection-OgRtHeKS.mjs} +2 -2
  233. package/dist/client/hooks.mjs +535 -694
  234. package/dist/client/{locationMap-Pf2QwuvW.mjs → locationMap-DmjcYqNM.mjs} +2 -2
  235. package/dist/client/{newsletterForm-BWQAH5Sv.mjs → newsletterForm-D08OZQAC.mjs} +2 -2
  236. package/dist/client/{productDetail-BZi1Fa_G.mjs → productDetail-BqZeu2P4.mjs} +3 -3
  237. package/dist/client/{productList-qq-55DNk.mjs → productList-mNyIF9FG.mjs} +3 -3
  238. package/dist/client/{propsDecoder-BxmqPKdP.mjs → propsDecoder-DwHXRm9X.mjs} +4850 -4502
  239. package/dist/client/rendering/client.mjs +59921 -62298
  240. package/dist/client/rendering/islands.mjs +17 -19
  241. package/dist/client/rendering.mjs +6226 -10236
  242. package/dist/client/{scrollToBlock-B3CcKdtG.mjs → scrollToBlock-DtmdM3v-.mjs} +2 -2
  243. package/dist/client/{shop-DNWJPut5.mjs → shop-CNjZK16F.mjs} +6 -6
  244. package/dist/client/{shop-commerce-BhvQCosS.mjs → shop-commerce-DkNNao1J.mjs} +7 -164
  245. package/dist/client/{shop-commerce-store-B04sCNnW.mjs → shop-commerce-store-9WA--zuW.mjs} +1 -1
  246. package/dist/client/{shopShared-DNNgZlmW.mjs → shopShared-CHCVfccY.mjs} +3 -3
  247. package/dist/client/{useEventFilters-CUmhE24_.mjs → useEventFilters-DvuaB4ZN.mjs} +3 -3
  248. package/dist/preview-next/before-render.mjs +40 -161
  249. package/dist/preview-next/client/runtime.mjs +4 -4
  250. package/dist/preview-next/keepAlive.mjs +40 -161
  251. package/dist/preview-next/middleware.mjs +40 -161
  252. package/dist/{previewAuthStore-BFKd4LrN.mjs → previewAuthStore-C7ksxt5b.mjs} +40 -161
  253. package/dist/{sdk-runtime-BEXb1wqo.mjs → sdk-runtime-3GhW4knb.mjs} +2 -2
  254. package/dist/{separator-DGMuip1D.mjs → separator-D3bCWYYb.mjs} +1 -1
  255. package/dist/server/components.mjs +634 -2969
  256. package/dist/server/config-validation.mjs +535 -694
  257. package/dist/server/config.mjs +535 -694
  258. package/dist/server/data.mjs +535 -694
  259. package/dist/server/index.mjs +41 -162
  260. package/dist/server/next.mjs +644 -2979
  261. package/dist/server/page-converter.mjs +435 -561
  262. package/dist/server/prebuild.mjs +1 -1
  263. package/dist/server/rendering/server.mjs +635 -2874
  264. package/dist/server/rendering.mjs +634 -2969
  265. package/dist/server/routing.mjs +706 -1138
  266. package/dist/server/server.mjs +549 -708
  267. package/dist/server/theme-bridge.mjs +152 -1635
  268. package/dist/styles/index.css +41 -1348
  269. package/package.json +2 -2
  270. package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +0 -99
  271. package/dist/_dts/blocks/src/client/course-registration.d.ts +0 -5
  272. package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -134
  273. package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +0 -130
  274. package/dist/_dts/blocks/src/system/blocks/courses/shared/index.d.ts +0 -3
  275. package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +0 -2
  276. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +0 -1
  277. package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +0 -1
  278. package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -133
  279. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +0 -28
  280. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +0 -11
  281. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/runs.d.ts +0 -10
  282. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +0 -15
  283. package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +0 -20
  284. package/dist/_dts/blocks/src/system/runtime/nodes/course-page-surface-scope.d.ts +0 -14
  285. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.client.d.ts +0 -10
  286. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +0 -181
  287. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +0 -12
  288. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/CoursePricingDisplay.d.ts +0 -8
  289. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/BookingModeStep.d.ts +0 -32
  290. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/CheckIcon.d.ts +0 -4
  291. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/ErrorStep.d.ts +0 -17
  292. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/MembershipHero.d.ts +0 -12
  293. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PaymentFailedStep.d.ts +0 -17
  294. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PortalAuthSidebar.d.ts +0 -9
  295. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/StepIndicator.d.ts +0 -6
  296. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/SuccessStep.d.ts +0 -14
  297. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/VerifyingTimeoutStep.d.ts +0 -17
  298. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WaitlistStep.d.ts +0 -12
  299. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationActiveSteps.d.ts +0 -9
  300. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationErrorBoundary.d.ts +0 -25
  301. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationTerminalContent.d.ts +0 -8
  302. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationWizard.d.ts +0 -8
  303. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/components.d.ts +0 -45
  304. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/index.d.ts +0 -18
  305. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/presentation.d.ts +0 -7
  306. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/pricing.d.ts +0 -14
  307. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/types.d.ts +0 -105
  308. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesEligibility.d.ts +0 -24
  309. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesPaymentVerification.d.ts +0 -10
  310. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationActions.d.ts +0 -35
  311. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationPortal.d.ts +0 -7
  312. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationSelection.d.ts +0 -35
  313. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationWizard.d.ts +0 -185
  314. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesWaitlistSelection.d.ts +0 -14
  315. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/utils.d.ts +0 -43
  316. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.contract.d.ts +0 -323
  317. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.planning.d.ts +0 -27
  318. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesPageSurfaceScope.d.ts +0 -17
  319. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesRegistrationViewState.d.ts +0 -21
  320. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wizardSteps.d.ts +0 -30
  321. package/dist/_dts/sdk/src/rendering/islands/enhancers/courseRegistration.d.ts +0 -3
  322. package/dist/_dts/theme-core/src/blocks/vars/course-details.d.ts +0 -16
  323. package/dist/_dts/theme-core/src/blocks/vars/course-registration.d.ts +0 -21
  324. package/dist/client/StepIndicator-CGixP_LW.mjs +0 -138
  325. package/dist/client/WholeSeriesRegistrationWizard-BEjzSiOA.mjs +0 -2496
  326. package/dist/client/checkoutUrls-Ct8Mxna3.mjs +0 -26
  327. package/dist/client/courseRegistration-CKC5NmyH.mjs +0 -52
  328. package/dist/client/pricing-CVdvbopJ.mjs +0 -195
@@ -1,35 +0,0 @@
1
- import type { PublicWholeSeriesOffering, ResolvedWholeSeriesPricingState } from '../../../../blocks/events/whole-series';
2
- import type { BlockApiClient } from '../../../api';
3
- import type { WholeSeriesEligibilityResponse } from '../../../api/types';
4
- import type { WholeSeriesRegistrationWizardActionResult, WholeSeriesRegistrationWizardOptions, EnrollmentResult, EnrollmentStep, FormData, PortalAuthState } from './types';
5
- import type { PaymentChoice } from './useWholeSeriesEligibility';
6
- type Membership = Readonly<{
7
- customerMembershipId: string;
8
- membershipName: string;
9
- }>;
10
- type ActionState = Readonly<{
11
- api: BlockApiClient;
12
- selectedRun: PublicWholeSeriesOffering | null;
13
- pricing: ResolvedWholeSeriesPricingState | null;
14
- formData: FormData;
15
- portalAuthState: PortalAuthState;
16
- eligibility: WholeSeriesEligibilityResponse | null;
17
- eligibleMemberships: readonly Membership[];
18
- paymentChoice: PaymentChoice;
19
- selectedMembershipId: string | null;
20
- claimToken: string | null;
21
- hasClaim: boolean;
22
- altchaSolution: string | null;
23
- discountCode: string;
24
- options: WholeSeriesRegistrationWizardOptions;
25
- }>;
26
- export declare function useWholeSeriesRegistrationActions(state: ActionState, setStep: (step: EnrollmentStep) => void): {
27
- errors: Partial<Record<keyof FormData, string>>;
28
- enrollmentResult: EnrollmentResult | null;
29
- errorMessage: string;
30
- reportError: (message: string) => void;
31
- recordEnrollmentResult: (result: EnrollmentResult) => void;
32
- handleSubmit: () => Promise<WholeSeriesRegistrationWizardActionResult>;
33
- handlePaymentContinue: () => Promise<WholeSeriesRegistrationWizardActionResult>;
34
- };
35
- export {};
@@ -1,7 +0,0 @@
1
- import type { BlockApiClient } from '../../../api';
2
- import type { FormData, PortalAuthState } from './types';
3
- export declare function useWholeSeriesRegistrationPortal(api: BlockApiClient): {
4
- formData: FormData;
5
- updateFormData: (updater: FormData | ((current: FormData) => FormData)) => void;
6
- portalAuthState: PortalAuthState;
7
- };
@@ -1,35 +0,0 @@
1
- import type { PublicWholeSeriesOffering } from '../../../../blocks/events/whole-series';
2
- import type { WholeSeriesRegistrationClientProps, EnrollmentStep } from './types';
3
- export type WholeSeriesRegistrationLocation = Readonly<{
4
- search: string;
5
- hash: string;
6
- }>;
7
- export declare function getWholeSeriesCheckoutSessionId(location?: WholeSeriesRegistrationLocation): string | null;
8
- export declare function useWholeSeriesRegistrationSelection(props: WholeSeriesRegistrationClientProps, location?: WholeSeriesRegistrationLocation): {
9
- scopedRuns: readonly PublicWholeSeriesOffering[];
10
- step: EnrollmentStep;
11
- goToStep: (nextStep: EnrollmentStep) => void;
12
- selectedRun: PublicWholeSeriesOffering | null;
13
- chooseRun: (run: PublicWholeSeriesOffering) => void;
14
- selectedPricingOptionId: string | null;
15
- choosePricingOption: (pricingOptionId: string | null) => void;
16
- selectedSlidingAmountInput: string;
17
- changeSlidingAmount: (amount: string) => void;
18
- selectedRunPricing: Readonly<{
19
- currency: string;
20
- display: import("../../../../blocks/events/whole-series").WholeSeriesPriceDisplay;
21
- selectableOptions: readonly import("../../../../blocks/events/whole-series").WholeSeriesPricingOption[];
22
- requiresSelection: boolean;
23
- selectedOption: import("../../../../blocks/events/whole-series").WholeSeriesPricingOption | null;
24
- slidingScale: Readonly<{
25
- minAmount: number;
26
- maxAmount: number;
27
- suggestedAmount: number | null;
28
- }> | null;
29
- selectedSlidingAmount: number | null;
30
- selectedPriceAmount: number | null;
31
- selectedRequiresPayment: boolean;
32
- hasPaidSelection: boolean;
33
- hasFreeSelection: boolean;
34
- }> | null;
35
- };
@@ -1,185 +0,0 @@
1
- import { useBlockApi } from '../../../api';
2
- import type { UseWaitlistClaimResult } from '../../../shared/useWaitlistClaim';
3
- import { useDiscountCodeUi } from '../useDiscountCodeUi';
4
- import type { BookingMode, WholeSeriesRegistrationClientProps, WholeSeriesRegistrationWizardOptions } from './types';
5
- import { deriveWholeSeriesRegistrationViewState } from './wholeSeriesRegistrationViewState';
6
- import { useWholeSeriesEligibility } from './useWholeSeriesEligibility';
7
- import { useWholeSeriesRegistrationActions } from './useWholeSeriesRegistrationActions';
8
- import { useWholeSeriesRegistrationPortal } from './useWholeSeriesRegistrationPortal';
9
- import { useWholeSeriesRegistrationSelection } from './useWholeSeriesRegistrationSelection';
10
- import type { WholeSeriesRegistrationLocation } from './useWholeSeriesRegistrationSelection';
11
- export declare function useWholeSeriesRegistrationWizard(props: WholeSeriesRegistrationClientProps, options?: WholeSeriesRegistrationWizardOptions): {
12
- handleRunSelect: (run: NonNullable<WizardParts["selection"]["selectedRun"]>) => void;
13
- handleRetry: () => void;
14
- handleBookingModeChange: (mode: BookingMode) => void;
15
- handleLogout: (() => void) | undefined;
16
- selectedRunPricingPayload: {
17
- pricingOptionId?: string;
18
- selectedSlidingAmount?: number;
19
- };
20
- hasRunPayment: boolean;
21
- canUseMembership: boolean;
22
- hasPreSelectedRun: boolean;
23
- wizardSteps: readonly import("./types").EnrollmentStep[];
24
- currentStepNumber: number;
25
- totalSteps: number;
26
- stepLabels: string[];
27
- showPortalAuthSidebar: boolean;
28
- waitlistClaim: UseWaitlistClaimResult;
29
- bookingMode: BookingMode;
30
- altchaSolution: string | null;
31
- setAltchaSolution: (solution: string | null) => void;
32
- showSpamProtection: boolean;
33
- discountUiOpen: boolean;
34
- setDiscountUiOpen: (isOpen: boolean) => void;
35
- discountCode: string;
36
- setDiscountCode: (code: string) => void;
37
- discountsAvailable: boolean;
38
- manualCodeEntryAllowed: boolean;
39
- discountsAvailableLoading: boolean;
40
- errors: Partial<Record<keyof import("./types").FormData, string>>;
41
- enrollmentResult: import("./types").EnrollmentResult | null;
42
- errorMessage: string;
43
- reportError: (message: string) => void;
44
- recordEnrollmentResult: (result: import("./types").EnrollmentResult) => void;
45
- handleSubmit: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
46
- handlePaymentContinue: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
47
- eligibilityLoading: boolean;
48
- eligibilityError: string | null;
49
- runEligibility: import("../../../api/types").WholeSeriesEligibilityResponse | null;
50
- eligibleMemberships: Readonly<{
51
- customerMembershipId: string;
52
- membershipName: string;
53
- }>[];
54
- paymentChoice: import("./useWholeSeriesEligibility").PaymentChoice;
55
- choosePaymentChoice: (choice: import("./useWholeSeriesEligibility").PaymentChoice) => void;
56
- selectedMembershipId: string | null;
57
- chooseMembership: (membershipId: string | null) => void;
58
- formData: import("./types").FormData;
59
- updateFormData: (updater: import("./types").FormData | ((current: import("./types").FormData) => import("./types").FormData)) => void;
60
- portalAuthState: import("./types").PortalAuthState;
61
- scopedRuns: readonly import("../../../..").PublicCourse[];
62
- step: import("./types").EnrollmentStep;
63
- goToStep: (nextStep: import("./types").EnrollmentStep) => void;
64
- selectedRun: import("../../../..").PublicCourse | null;
65
- chooseRun: (run: import("../../../..").PublicCourse) => void;
66
- selectedPricingOptionId: string | null;
67
- choosePricingOption: (pricingOptionId: string | null) => void;
68
- selectedSlidingAmountInput: string;
69
- changeSlidingAmount: (amount: string) => void;
70
- selectedRunPricing: Readonly<{
71
- currency: string;
72
- display: import("../../../../blocks/events/whole-series").WholeSeriesPriceDisplay;
73
- selectableOptions: readonly import("../../../../blocks/events/whole-series").WholeSeriesPricingOption[];
74
- requiresSelection: boolean;
75
- selectedOption: import("../../../../blocks/events/whole-series").WholeSeriesPricingOption | null;
76
- slidingScale: Readonly<{
77
- minAmount: number;
78
- maxAmount: number;
79
- suggestedAmount: number | null;
80
- }> | null;
81
- selectedSlidingAmount: number | null;
82
- selectedPriceAmount: number | null;
83
- selectedRequiresPayment: boolean;
84
- hasPaidSelection: boolean;
85
- hasFreeSelection: boolean;
86
- }> | null;
87
- api: import("../../../api").BlockApiClient;
88
- };
89
- export type WholeSeriesRegistrationWizardDeps = Readonly<{
90
- readLocation: () => WholeSeriesRegistrationLocation;
91
- }>;
92
- export declare function useWholeSeriesRegistrationWizardWithDeps(deps: WholeSeriesRegistrationWizardDeps, props: WholeSeriesRegistrationClientProps, options?: WholeSeriesRegistrationWizardOptions): {
93
- handleRunSelect: (run: NonNullable<WizardParts["selection"]["selectedRun"]>) => void;
94
- handleRetry: () => void;
95
- handleBookingModeChange: (mode: BookingMode) => void;
96
- handleLogout: (() => void) | undefined;
97
- selectedRunPricingPayload: {
98
- pricingOptionId?: string;
99
- selectedSlidingAmount?: number;
100
- };
101
- hasRunPayment: boolean;
102
- canUseMembership: boolean;
103
- hasPreSelectedRun: boolean;
104
- wizardSteps: readonly import("./types").EnrollmentStep[];
105
- currentStepNumber: number;
106
- totalSteps: number;
107
- stepLabels: string[];
108
- showPortalAuthSidebar: boolean;
109
- waitlistClaim: UseWaitlistClaimResult;
110
- bookingMode: BookingMode;
111
- altchaSolution: string | null;
112
- setAltchaSolution: (solution: string | null) => void;
113
- showSpamProtection: boolean;
114
- discountUiOpen: boolean;
115
- setDiscountUiOpen: (isOpen: boolean) => void;
116
- discountCode: string;
117
- setDiscountCode: (code: string) => void;
118
- discountsAvailable: boolean;
119
- manualCodeEntryAllowed: boolean;
120
- discountsAvailableLoading: boolean;
121
- errors: Partial<Record<keyof import("./types").FormData, string>>;
122
- enrollmentResult: import("./types").EnrollmentResult | null;
123
- errorMessage: string;
124
- reportError: (message: string) => void;
125
- recordEnrollmentResult: (result: import("./types").EnrollmentResult) => void;
126
- handleSubmit: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
127
- handlePaymentContinue: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
128
- eligibilityLoading: boolean;
129
- eligibilityError: string | null;
130
- runEligibility: import("../../../api/types").WholeSeriesEligibilityResponse | null;
131
- eligibleMemberships: Readonly<{
132
- customerMembershipId: string;
133
- membershipName: string;
134
- }>[];
135
- paymentChoice: import("./useWholeSeriesEligibility").PaymentChoice;
136
- choosePaymentChoice: (choice: import("./useWholeSeriesEligibility").PaymentChoice) => void;
137
- selectedMembershipId: string | null;
138
- chooseMembership: (membershipId: string | null) => void;
139
- formData: import("./types").FormData;
140
- updateFormData: (updater: import("./types").FormData | ((current: import("./types").FormData) => import("./types").FormData)) => void;
141
- portalAuthState: import("./types").PortalAuthState;
142
- scopedRuns: readonly import("../../../..").PublicCourse[];
143
- step: import("./types").EnrollmentStep;
144
- goToStep: (nextStep: import("./types").EnrollmentStep) => void;
145
- selectedRun: import("../../../..").PublicCourse | null;
146
- chooseRun: (run: import("../../../..").PublicCourse) => void;
147
- selectedPricingOptionId: string | null;
148
- choosePricingOption: (pricingOptionId: string | null) => void;
149
- selectedSlidingAmountInput: string;
150
- changeSlidingAmount: (amount: string) => void;
151
- selectedRunPricing: Readonly<{
152
- currency: string;
153
- display: import("../../../../blocks/events/whole-series").WholeSeriesPriceDisplay;
154
- selectableOptions: readonly import("../../../../blocks/events/whole-series").WholeSeriesPricingOption[];
155
- requiresSelection: boolean;
156
- selectedOption: import("../../../../blocks/events/whole-series").WholeSeriesPricingOption | null;
157
- slidingScale: Readonly<{
158
- minAmount: number;
159
- maxAmount: number;
160
- suggestedAmount: number | null;
161
- }> | null;
162
- selectedSlidingAmount: number | null;
163
- selectedPriceAmount: number | null;
164
- selectedRequiresPayment: boolean;
165
- hasPaidSelection: boolean;
166
- hasFreeSelection: boolean;
167
- }> | null;
168
- api: import("../../../api").BlockApiClient;
169
- };
170
- type WizardParts = Readonly<{
171
- api: ReturnType<typeof useBlockApi>;
172
- selection: ReturnType<typeof useWholeSeriesRegistrationSelection>;
173
- portal: ReturnType<typeof useWholeSeriesRegistrationPortal>;
174
- eligibility: ReturnType<typeof useWholeSeriesEligibility>;
175
- actions: ReturnType<typeof useWholeSeriesRegistrationActions>;
176
- discountUi: ReturnType<typeof useDiscountCodeUi>;
177
- waitlistClaim: UseWaitlistClaimResult;
178
- view: ReturnType<typeof deriveWholeSeriesRegistrationViewState>;
179
- bookingMode: BookingMode;
180
- setBookingMode: (mode: BookingMode) => void;
181
- altchaSolution: string | null;
182
- setAltchaSolution: (solution: string | null) => void;
183
- anchorId: 'event-registration' | 'course-registration';
184
- }>;
185
- export {};
@@ -1,14 +0,0 @@
1
- import type { PublicWholeSeriesOffering } from '../../../../blocks/events/whole-series';
2
- import type { EnrollmentStep, FormData } from './types';
3
- import type { useWaitlistClaim } from '../../../shared/useWaitlistClaim';
4
- type WaitlistClaimState = ReturnType<typeof useWaitlistClaim>;
5
- export declare function useWholeSeriesWaitlistSelection(input: Readonly<{
6
- waitlistClaim: WaitlistClaimState;
7
- scopedRuns: readonly PublicWholeSeriesOffering[];
8
- step: EnrollmentStep;
9
- goToStep: (step: EnrollmentStep) => void;
10
- chooseRun: (run: PublicWholeSeriesOffering) => void;
11
- updateFormData: (updater: (current: FormData) => FormData) => void;
12
- reportError: (message: string) => void;
13
- }>): void;
14
- export {};
@@ -1,43 +0,0 @@
1
- /**
2
- * Run Registration Utilities
3
- *
4
- * Formatting and validation helpers for run registration.
5
- */
6
- export { buildCheckoutReturnUrls, formatPrice, validateFormData, } from '../../../shared';
7
- /**
8
- * Format a date string to a localized date.
9
- *
10
- * @param dateString - ISO 8601 date string
11
- * @param locale - Optional locale for formatting (defaults to browser locale)
12
- * @returns Formatted date string (e.g., "Sat, Feb 1, 2026")
13
- */
14
- export declare function formatDate(dateString: string, options?: {
15
- locale?: string;
16
- timeZone?: string | null;
17
- }): string;
18
- /**
19
- * Format a date string to a localized time.
20
- *
21
- * @param dateString - ISO 8601 date string
22
- * @param locale - Optional locale for formatting (defaults to browser locale)
23
- * @returns Formatted time string (e.g., "10:00 AM")
24
- */
25
- export declare function formatTime(dateString: string, options?: {
26
- locale?: string;
27
- timeZone?: string | null;
28
- }): string;
29
- /**
30
- * Format a date and time together.
31
- *
32
- * @param dateString - ISO 8601 date string
33
- * @param locale - Optional locale for formatting
34
- * @returns Formatted date and time string
35
- */
36
- export declare function formatDateTime(dateString: string, options?: {
37
- locale?: string;
38
- timeZone?: string | null;
39
- }): string;
40
- /**
41
- * Anchor ID for the registration block, used for scroll targeting.
42
- */
43
- export declare const WHOLE_SERIES_REGISTRATION_ANCHOR_ID = "event-registration";
@@ -1,323 +0,0 @@
1
- import type { BlockBookingPaymentTerms } from '../../../../blocks/shared/bookingPaymentTerms';
2
- import type { PublicTeamMemberSummary } from '../../../../blocks/shared/teamMembers';
3
- import type { WholeSeriesRegistrationClientProps, EnrollmentResult, FormData } from './types';
4
- export type WholeSeriesRegistrationPricingOptionInput = Readonly<{
5
- id: string;
6
- name: string;
7
- description: string | null;
8
- priceAmount: number;
9
- isActive: boolean;
10
- sortOrder: number;
11
- capacityLimit: number | null;
12
- saleStartsAt: string | null;
13
- saleEndsAt: string | null;
14
- attendanceScope?: 'in_person' | 'online' | 'both' | null;
15
- }>;
16
- type WholeSeriesRegistrationPricingBase = Readonly<{
17
- currency: string;
18
- paymentTerms: BlockBookingPaymentTerms;
19
- bookingRequirement: 'none' | 'required';
20
- }>;
21
- export type WholeSeriesRegistrationPricingInput = (WholeSeriesRegistrationPricingBase & Readonly<{
22
- pricingStrategy: 'free';
23
- }>) | (WholeSeriesRegistrationPricingBase & Readonly<{
24
- pricingStrategy: 'single';
25
- amountCents: number;
26
- }>) | (WholeSeriesRegistrationPricingBase & Readonly<{
27
- pricingStrategy: 'tiered';
28
- options: readonly WholeSeriesRegistrationPricingOptionInput[];
29
- }>) | (WholeSeriesRegistrationPricingBase & Readonly<{
30
- pricingStrategy: 'sliding_scale';
31
- minAmountCents: number;
32
- maxAmountCents: number;
33
- suggestedAmountCents: number | null;
34
- }>);
35
- export type WholeSeriesRegistrationRunInput = Readonly<{
36
- /** Offering identity owning this run in the public run experience. */
37
- eventOfferingId: string;
38
- registrationTarget: Readonly<{
39
- kind: 'event_series_whole_series';
40
- eventSeriesId: string;
41
- }>;
42
- title: string;
43
- slug: string;
44
- description: unknown;
45
- teamMembers?: readonly PublicTeamMemberSummary[];
46
- registrationOpen: boolean;
47
- pricing: WholeSeriesRegistrationPricingInput;
48
- capacity: number | null;
49
- acceptsMemberships: boolean;
50
- lifecycleStatus: 'active' | 'draft' | 'cancelled';
51
- registeredCount: number;
52
- availableSpots: number | null;
53
- includedDates: readonly Readonly<{
54
- id: string;
55
- startsAt: string;
56
- endsAt: string;
57
- timeZone: string;
58
- capacityOverride?: number | null;
59
- overrides?: Readonly<Record<string, unknown>> | null;
60
- }>[];
61
- venue: Readonly<{
62
- id: string;
63
- name: string;
64
- address: string | null;
65
- }> | null;
66
- }>;
67
- export type WholeSeriesRegistrationRun = Readonly<{
68
- /** Stable dated-offering run identity. */
69
- id: string;
70
- title: string;
71
- slug: string;
72
- description: unknown;
73
- registrationOpen: boolean;
74
- capacity: number | null;
75
- registeredCount: number;
76
- availableSpots: number | null;
77
- includedDates: readonly Readonly<{
78
- id: string;
79
- startsAt: string;
80
- endsAt: string;
81
- timeZone: string;
82
- }>[];
83
- venue: Readonly<{
84
- id: string;
85
- name: string;
86
- address: string | null;
87
- }> | null;
88
- }>;
89
- export type WholeSeriesRegistrationFlowStatus = Readonly<{
90
- tag: 'ready';
91
- }> | Readonly<{
92
- tag: 'submitting';
93
- }> | Readonly<{
94
- tag: 'redirecting';
95
- }> | Readonly<{
96
- tag: 'verifying-payment';
97
- }> | Readonly<{
98
- tag: 'verifying-timeout';
99
- message: string;
100
- }> | Readonly<{
101
- tag: 'payment-failed';
102
- message: string;
103
- }> | Readonly<{
104
- tag: 'success';
105
- result: EnrollmentResult;
106
- }> | Readonly<{
107
- tag: 'waitlist';
108
- result: EnrollmentResult;
109
- }> | Readonly<{
110
- tag: 'error';
111
- message: string;
112
- }>;
113
- export type WholeSeriesRegistrationFlowView = Readonly<{
114
- kind: 'empty';
115
- message: string;
116
- }> | Readonly<{
117
- kind: 'unavailable';
118
- message: string;
119
- }> | Readonly<{
120
- kind: 'form';
121
- }> | Readonly<{
122
- kind: 'verifying';
123
- message: string;
124
- }> | Readonly<{
125
- kind: 'success';
126
- result: EnrollmentResult;
127
- }> | Readonly<{
128
- kind: 'waitlist';
129
- result: EnrollmentResult;
130
- }> | Readonly<{
131
- kind: 'error';
132
- message: string;
133
- }>;
134
- export type WholeSeriesRegistrationFlowStepId = 'select-run' | 'enter-details' | 'select-booking-method' | 'select-payment';
135
- export type WholeSeriesRegistrationFlowStep = Readonly<{
136
- id: WholeSeriesRegistrationFlowStepId;
137
- state: 'complete' | 'active' | 'available' | 'blocked';
138
- index: number;
139
- canEnter: boolean;
140
- }>;
141
- export type WholeSeriesRegistrationFlowActionResult = Readonly<{
142
- ok: true;
143
- outcome: Readonly<{
144
- kind: 'state-updated';
145
- }> | Readonly<{
146
- kind: 'checkout-redirect';
147
- checkoutUrl: string;
148
- }>;
149
- }> | Readonly<{
150
- ok: false;
151
- reason: 'blocked' | 'validation-failed' | 'failed';
152
- message: string;
153
- }>;
154
- export type WholeSeriesRegistrationRunsModel = Readonly<{
155
- items: readonly WholeSeriesRegistrationRun[];
156
- scoped: readonly WholeSeriesRegistrationRun[];
157
- selected: WholeSeriesRegistrationRun | null;
158
- hasPreSelectedRun: boolean;
159
- subject: WholeSeriesRegistrationClientProps['subject'];
160
- }>;
161
- export type WholeSeriesRegistrationPricingModel = Readonly<{
162
- currency: string | null;
163
- display: Readonly<{
164
- kind: 'free';
165
- currency: string;
166
- }> | Readonly<{
167
- kind: 'exact';
168
- amountCents: number;
169
- currency: string;
170
- }> | Readonly<{
171
- kind: 'from';
172
- amountCents: number;
173
- currency: string;
174
- }> | Readonly<{
175
- kind: 'range';
176
- minAmountCents: number;
177
- maxAmountCents: number;
178
- currency: string;
179
- }> | Readonly<{
180
- kind: 'unavailable';
181
- currency: string;
182
- }> | null;
183
- options: readonly Readonly<{
184
- id: string;
185
- name: string;
186
- description: string | null;
187
- amountCents: number;
188
- }>[];
189
- selectedOptionId: string | null;
190
- slidingScale: Readonly<{
191
- minAmountCents: number;
192
- maxAmountCents: number;
193
- suggestedAmountCents: number | null;
194
- }> | null;
195
- selectedAmountCents: number | null;
196
- selectedPriceCents: number | null;
197
- requiresPayment: boolean;
198
- selection: Readonly<{
199
- tag: 'not-required';
200
- }> | Readonly<{
201
- tag: 'required';
202
- }> | Readonly<{
203
- tag: 'valid';
204
- }> | Readonly<{
205
- tag: 'invalid';
206
- message: string;
207
- }> | Readonly<{
208
- tag: 'unavailable';
209
- }>;
210
- }>;
211
- export type WholeSeriesRegistrationPaymentSelection = Readonly<{
212
- method: 'none';
213
- }> | Readonly<{
214
- method: 'card';
215
- }> | Readonly<{
216
- method: 'membership';
217
- membershipId: string | null;
218
- }>;
219
- export type WholeSeriesRegistrationPaymentModel = Readonly<{
220
- required: boolean;
221
- selection: WholeSeriesRegistrationPaymentSelection;
222
- canUseMembership: boolean;
223
- eligibleMemberships: readonly Readonly<{
224
- id: string;
225
- name: string;
226
- }>[];
227
- eligibility: Readonly<{
228
- tag: 'idle';
229
- }> | Readonly<{
230
- tag: 'loading';
231
- }> | Readonly<{
232
- tag: 'loaded';
233
- }> | Readonly<{
234
- tag: 'error';
235
- message: string;
236
- }>;
237
- }>;
238
- export type WholeSeriesRegistrationAvailabilityModel = Readonly<{
239
- enrollmentOpen: boolean;
240
- availableSpots: number | null;
241
- isFull: boolean;
242
- canJoinWaitlist: boolean;
243
- message: string | null;
244
- }>;
245
- export type WholeSeriesRegistrationSpamProtectionModel = Readonly<{
246
- enabled: false;
247
- }> | Readonly<{
248
- enabled: true;
249
- provider: 'altcha';
250
- challenge: Readonly<{
251
- url: string;
252
- auto: 'onfocus';
253
- }>;
254
- solution: string | null;
255
- }>;
256
- export type WholeSeriesRegistrationWaitlistClaimModel = Readonly<{
257
- tag: 'none';
258
- }> | Readonly<{
259
- tag: 'loading';
260
- }> | Readonly<{
261
- tag: 'login-required';
262
- message: string;
263
- }> | Readonly<{
264
- tag: 'ready';
265
- expiresAt: string;
266
- prefill: Readonly<{
267
- email: string;
268
- name: string;
269
- phone: string | null;
270
- notes: string | null;
271
- }>;
272
- }> | Readonly<{
273
- tag: 'error';
274
- message: string;
275
- }>;
276
- export type WholeSeriesRegistrationFlowActions = Readonly<{
277
- selectRun: (runId: string) => void;
278
- updateRegistrant: (values: FormData) => void;
279
- selectPricingOption: (pricingOptionId: string | null) => void;
280
- setSlidingAmountCents: (amount: number | null) => void;
281
- selectPayment: (selection: WholeSeriesRegistrationPaymentSelection) => void;
282
- setDiscountCode: (code: string) => void;
283
- setDiscountOpen: (isOpen: boolean) => void;
284
- setAltchaSolution: (solution: string | null) => void;
285
- continue: () => Promise<WholeSeriesRegistrationFlowActionResult>;
286
- back: () => void;
287
- submit: () => Promise<WholeSeriesRegistrationFlowActionResult>;
288
- retry: () => void;
289
- logout: () => void;
290
- }>;
291
- export type HeadlessWholeSeriesRegistrationFlow = Readonly<{
292
- status: WholeSeriesRegistrationFlowStatus;
293
- view: WholeSeriesRegistrationFlowView;
294
- steps: readonly WholeSeriesRegistrationFlowStep[];
295
- currentStep: WholeSeriesRegistrationFlowStep | null;
296
- runs: WholeSeriesRegistrationRunsModel;
297
- registrant: Readonly<{
298
- values: FormData;
299
- errors: Partial<Record<keyof FormData, string>>;
300
- }>;
301
- pricing: WholeSeriesRegistrationPricingModel;
302
- payment: WholeSeriesRegistrationPaymentModel;
303
- discount: Readonly<{
304
- code: string;
305
- isOpen: boolean;
306
- available: boolean;
307
- manualCodeEntryAllowed: boolean;
308
- loading: boolean;
309
- }>;
310
- availability: WholeSeriesRegistrationAvailabilityModel;
311
- portalAuth: Readonly<{
312
- state: 'checking' | 'authenticated' | 'unauthenticated';
313
- isAuthenticated: boolean;
314
- }>;
315
- waitlistClaim: WholeSeriesRegistrationWaitlistClaimModel;
316
- spamProtection: WholeSeriesRegistrationSpamProtectionModel;
317
- terminal: Readonly<{
318
- result: EnrollmentResult | null;
319
- errorMessage: string;
320
- }>;
321
- actions: WholeSeriesRegistrationFlowActions;
322
- }>;
323
- export {};
@@ -1,27 +0,0 @@
1
- import type { ResolvedWholeSeriesPricingState } from '../../../../blocks/events/whole-series';
2
- import type { EnrollmentStep } from './types';
3
- import type { HeadlessWholeSeriesRegistrationFlow, WholeSeriesRegistrationFlowStatus, WholeSeriesRegistrationFlowStep, WholeSeriesRegistrationFlowView, WholeSeriesRegistrationPaymentSelection, WholeSeriesRegistrationPricingModel } from './whole-series-registration.headless.contract';
4
- export declare function deriveWholeSeriesRegistrationSteps(input: Readonly<{
5
- wizardSteps: readonly EnrollmentStep[];
6
- step: EnrollmentStep;
7
- }>): readonly WholeSeriesRegistrationFlowStep[];
8
- export declare function resolveWholeSeriesRegistrationStatus(wizard: Readonly<{
9
- step: EnrollmentStep;
10
- enrollmentResult: HeadlessWholeSeriesRegistrationFlow['terminal']['result'];
11
- errorMessage: string;
12
- }>): WholeSeriesRegistrationFlowStatus;
13
- export declare function resolveWholeSeriesRegistrationView(wizard: Readonly<{
14
- step: EnrollmentStep;
15
- scopedRunsCount: number;
16
- selectedRun: Readonly<{
17
- enrollmentOpen: boolean;
18
- }> | null;
19
- enrollmentResult: HeadlessWholeSeriesRegistrationFlow['terminal']['result'];
20
- errorMessage: string;
21
- }>): WholeSeriesRegistrationFlowView;
22
- export declare function resolveWholeSeriesPricingSelection(pricing: ResolvedWholeSeriesPricingState | null): WholeSeriesRegistrationPricingModel['selection'];
23
- export declare function resolveWholeSeriesPaymentSelection(input: Readonly<{
24
- paymentChoice: 'checkout' | 'membership';
25
- selectedMembershipId: string | null;
26
- required: boolean;
27
- }>): WholeSeriesRegistrationPaymentSelection;