@riverbankcms/sdk 0.151.0 → 0.153.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 (316) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/{EventEmbeddedCheckoutStep-BBHbM22D.mjs → EventEmbeddedCheckoutStep-veN-QiAE.mjs} +10 -9
  3. package/dist/{PreviewEditorSidebar-BHplI9HE.mjs → PreviewEditorSidebar-jI_4DTZY.mjs} +4 -3
  4. package/dist/{PreviewEditorUI-DuyN8nsD.mjs → PreviewEditorUI-ORkVZhfu.mjs} +5 -4
  5. package/dist/{SdkPreviewModeRuntime-CR5ypwxJ.mjs → SdkPreviewModeRuntime-DaNqevI1.mjs} +341 -164
  6. package/dist/{SiteChromeCustomizeContext-D5t6joF_.mjs → SiteChromeCustomizeContext-CgNuBHC0.mjs} +27124 -39230
  7. package/dist/ThemedButton-X2UxhW6F.mjs +16525 -0
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +52 -52
  9. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +2357 -7859
  10. package/dist/_dts/api/src/bookingOperations.d.ts +5 -3
  11. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +4 -0
  12. package/dist/_dts/api/src/communications.d.ts +19 -5
  13. package/dist/_dts/api/src/endpoints.d.ts +7 -0
  14. package/dist/_dts/api/src/index.d.ts +1 -1
  15. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
  16. package/dist/_dts/api/src/navigation/types.d.ts +7 -0
  17. package/dist/_dts/api/src/navigation.d.ts +1 -1
  18. package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +10 -1
  19. package/dist/_dts/api/src/sdkThemeWire.d.ts +186 -1434
  20. package/dist/_dts/api/src/shared-contracts.d.ts +10 -0
  21. package/dist/_dts/api/src/siteAssets.d.ts +1 -0
  22. package/dist/_dts/api/src/siteInfrastructure.d.ts +2 -1
  23. package/dist/_dts/api/src/teamMembers.d.ts +2 -27
  24. package/dist/_dts/block-form/src/widgets/RepeaterField/components/layoutGridDomain.d.ts +3 -13
  25. package/dist/_dts/blocks/src/contracts/index.d.ts +1 -0
  26. package/dist/_dts/blocks/src/definitions.d.ts +1 -1
  27. package/dist/_dts/blocks/src/index.d.ts +2 -0
  28. package/dist/_dts/blocks/src/lib/media.d.ts +1 -0
  29. package/dist/_dts/blocks/src/lib/picsum.d.ts +2 -2
  30. package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +1 -0
  31. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +2 -1
  32. package/dist/_dts/blocks/src/primitives/content/utils/sanitizeHref.d.ts +1 -1
  33. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +4 -4
  34. package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +1 -1
  35. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +212 -804
  36. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +7 -2
  37. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
  38. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +45 -45
  39. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +2 -0
  40. package/dist/_dts/blocks/src/system/blocks/shared/teamMembers.d.ts +4 -7
  41. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +2 -2
  42. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +6 -6
  43. package/dist/_dts/blocks/src/system/fields/backgroundContent.d.ts +377 -1
  44. package/dist/_dts/blocks/src/system/helpers/backgroundMedia.d.ts +6 -2
  45. package/dist/_dts/blocks/src/system/helpers/normalizeMailingListBlockContent.d.ts +2 -0
  46. package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +3 -3
  47. package/dist/_dts/blocks/src/system/layout/repeaterGrid.d.ts +12 -5
  48. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +3 -3
  49. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +24 -24
  50. package/dist/_dts/blocks/src/system/manifest/validation.d.ts +2 -0
  51. package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +1 -1
  52. package/dist/_dts/blocks/src/system/registry.d.ts +14 -2
  53. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +0 -5
  54. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +2 -0
  55. package/dist/_dts/blocks/src/system/runtime/api/schemas/events.d.ts +971 -0
  56. package/dist/_dts/blocks/src/system/runtime/api/schemas/waitlist-claims.d.ts +42 -0
  57. package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +10 -2
  58. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +10 -136
  59. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +48 -6
  60. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -3
  61. package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFlowController.d.ts +1 -1
  62. package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSubmission.state.d.ts +2 -0
  63. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +5 -1
  64. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +1 -1
  65. package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +2 -2
  66. package/dist/_dts/blocks/src/system/runtime/nodes/ImageResolveContext.d.ts +1 -1
  67. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +50 -202
  68. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +51 -1
  69. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +6 -2
  70. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.hooks.d.ts +6 -0
  71. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.state.d.ts +7 -0
  72. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +2 -2
  73. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +1 -1
  74. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/BookingEntryViews.d.ts +42 -0
  75. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.d.ts +4 -1
  76. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +19 -9
  77. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.d.ts +4 -2
  78. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +24 -9
  79. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardContent.d.ts +4 -2
  80. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventSelectionStep.d.ts +5 -4
  81. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/GuestDetailsSection.d.ts +1 -1
  82. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentStatusStep.d.ts +2 -0
  83. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SingleTicketEntitlementNote.d.ts +11 -0
  84. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +4 -0
  85. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +5 -0
  86. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/VerifyingTimeoutStep.d.ts +2 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingCardDisplay.d.ts +31 -0
  88. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingEntry.d.ts +154 -0
  89. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingFocus.d.ts +12 -0
  90. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -2
  91. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +2 -2
  92. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +9 -0
  93. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/finishedBooking.d.ts +77 -0
  94. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/index.d.ts +0 -1
  95. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/offeringNoun.d.ts +12 -0
  96. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentResponse.d.ts +2 -1
  97. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +33 -1
  98. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +11 -0
  99. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDisplay.d.ts +31 -0
  100. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDraft.state.d.ts +60 -0
  101. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -1
  102. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +3 -0
  103. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +58 -10
  104. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +17 -0
  105. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +23 -7
  106. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useBookingBarFacts.d.ts +12 -0
  107. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationRecoveryRequest.d.ts +3 -0
  108. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +4 -0
  109. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +4 -11
  110. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +1563 -31
  111. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.d.ts +2 -12
  112. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +147 -4
  113. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +50 -2
  114. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/waitlistClaimRestoration.d.ts +6 -5
  115. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts +85 -15
  116. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +53 -8
  117. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CardListItem.d.ts +1 -1
  118. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/MonthLookView.d.ts +10 -3
  119. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +290 -882
  120. package/dist/_dts/blocks/src/system/runtime/nodes/file-download.d.ts +3 -2
  121. package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +22 -90
  122. package/dist/_dts/blocks/src/system/runtime/nodes/mediaContext.d.ts +69 -0
  123. package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptionCopy.d.ts +5 -1
  124. package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +37 -1
  125. package/dist/_dts/blocks/src/system/runtime/shared/components/ModalShell.d.ts +9 -2
  126. package/dist/_dts/blocks/src/system/runtime/shared/components/PaymentChoiceRows.d.ts +28 -0
  127. package/dist/_dts/blocks/src/system/runtime/shared/components/StepIndicator.d.ts +6 -8
  128. package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -2
  129. package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
  130. package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +9 -12
  131. package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.state.d.ts +15 -0
  132. package/dist/_dts/blocks/src/system/runtime/shared/utils/themePortalRoot.d.ts +10 -15
  133. package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -0
  134. package/dist/_dts/blocks/src/system/transforms/registry/links.d.ts +2 -0
  135. package/dist/_dts/commerce/src/purchase/bookingInstalmentSchedule.d.ts +2 -0
  136. package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +6 -0
  137. package/dist/_dts/commerce/src/purchase/confirmationEmailPayment.d.ts +14 -14
  138. package/dist/_dts/commerce/src/purchase/confirmationPayment.d.ts +65 -0
  139. package/dist/_dts/commerce/src/purchase/confirmationPaymentSchema.d.ts +66 -0
  140. package/dist/_dts/commerce/src/purchase/index.d.ts +2 -0
  141. package/dist/_dts/commerce/src/purchase/orderPaymentState.d.ts +8 -0
  142. package/dist/_dts/content-model/src/content-types/schema.d.ts +3 -3
  143. package/dist/_dts/content-model/src/templates/defaults.d.ts +2 -2
  144. package/dist/_dts/core/src/appointment-booking-terms.d.ts +20 -0
  145. package/dist/_dts/core/src/booking-payment-schemas.d.ts +70 -0
  146. package/dist/_dts/core/src/branded.d.ts +0 -2
  147. package/dist/_dts/core/src/demo-claim-access.d.ts +1 -1
  148. package/dist/_dts/core/src/demo-claim-readiness.d.ts +18 -0
  149. package/dist/_dts/core/src/demo-lifecycle-status.d.ts +1 -1
  150. package/dist/_dts/core/src/demo-warm-pool-target.d.ts +1 -1
  151. package/dist/_dts/core/src/index.d.ts +4 -0
  152. package/dist/_dts/core/src/mailing-list-runtime.d.ts +2 -2
  153. package/dist/_dts/core/src/mailing-list-setup-parser.d.ts +9 -1
  154. package/dist/_dts/core/src/mailing-list-setup.d.ts +9 -1
  155. package/dist/_dts/core/src/mailing-list-submission.d.ts +1 -1
  156. package/dist/_dts/core/src/mailing-list-targeting-availability.d.ts +68 -0
  157. package/dist/_dts/core/src/mailing-list-targeting.d.ts +11 -1
  158. package/dist/_dts/core/src/ticket-quantity.d.ts +13 -0
  159. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +106 -36
  160. package/dist/_dts/editor/src/chrome/chromeLayers.d.ts +7 -0
  161. package/dist/_dts/editor/src/index.d.ts +1 -0
  162. package/dist/_dts/editor-blocks/src/index.d.ts +1 -0
  163. package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -2
  164. package/dist/_dts/editor-blocks/src/media/admitEditorMediaField.d.ts +4 -0
  165. package/dist/_dts/editor-blocks/src/widgets/link/LinkAddressInput.d.ts +8 -0
  166. package/dist/_dts/editor-blocks/src/widgets/link/LinkContentList.d.ts +12 -0
  167. package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +5 -1
  168. package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +3 -3
  169. package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +8 -2
  170. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +4 -3
  171. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +2 -1
  172. package/dist/_dts/editor-blocks/src/widgets/link/draft.d.ts +44 -0
  173. package/dist/_dts/editor-blocks/src/widgets/link/presentation.d.ts +13 -0
  174. package/dist/_dts/editor-blocks/src/widgets/link/types.d.ts +14 -0
  175. package/dist/_dts/editor-blocks/src/widgets/link/useRoutableContent.d.ts +2 -0
  176. package/dist/_dts/editor-blocks/src/widgets/link/utils.d.ts +5 -4
  177. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts +1 -1
  178. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/targetingState.d.ts +13 -8
  179. package/dist/_dts/media-core/src/assetsInUseSummary.d.ts +6 -0
  180. package/dist/_dts/media-core/src/contentMediaAudit.d.ts +3 -2
  181. package/dist/_dts/media-core/src/fileStorage.d.ts +4 -3
  182. package/dist/_dts/media-core/src/index.d.ts +5 -0
  183. package/dist/_dts/media-core/src/media.d.ts +406 -0
  184. package/dist/_dts/media-core/src/mediaIdentifierSchema.d.ts +3 -0
  185. package/dist/_dts/media-core/src/mediaKinds.d.ts +2 -0
  186. package/dist/_dts/media-core/src/mediaUsageProjection.d.ts +13 -1
  187. package/dist/_dts/media-core/src/mediaWriteNormalizer.d.ts +2 -6
  188. package/dist/_dts/media-core/src/portableMediaReferences.d.ts +8 -21
  189. package/dist/_dts/media-core/src/renderableMediaAsset.d.ts +28 -14
  190. package/dist/_dts/media-core/src/renderableMediaAssetAdmission.d.ts +15 -0
  191. package/dist/_dts/media-core/src/storageObjectKey.d.ts +12 -0
  192. package/dist/_dts/media-editor/src/CropDialog.d.ts +6 -3
  193. package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -1
  194. package/dist/_dts/media-editor/src/MediaPreview.d.ts +3 -3
  195. package/dist/_dts/media-editor/src/cropEditorSource.d.ts +5 -7
  196. package/dist/_dts/media-editor/src/editorMediaState.d.ts +29 -0
  197. package/dist/_dts/media-editor/src/mediaSelection.d.ts +1 -2
  198. package/dist/_dts/media-editor/src/runtimeMediaAssetState.d.ts +4 -5
  199. package/dist/_dts/media-editor/src/types.d.ts +1 -1
  200. package/dist/_dts/media-editor/src/utils.d.ts +0 -1
  201. package/dist/_dts/media-react/src/components/cropChangePolicy.d.ts +4 -1
  202. package/dist/_dts/media-react/src/components/cropGeometry.d.ts +1 -0
  203. package/dist/_dts/media-react/src/components/useImageCropperController.d.ts +1 -0
  204. package/dist/_dts/media-react/src/hooks/useSupabaseMediaUploader.d.ts +1 -1
  205. package/dist/_dts/media-react/src/internal/supabaseResumableUpload.d.ts +13 -0
  206. package/dist/_dts/preview-next/src/client/blocks/BlockBackgroundChooser.d.ts +2 -1
  207. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeSelectedMedia.d.ts +11 -12
  208. package/dist/_dts/preview-next/src/client/preview/previewModeRootAttribute.d.ts +11 -0
  209. package/dist/_dts/sdk/src/contracts/content.d.ts +2 -45
  210. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  211. package/dist/_dts/sdk/src/contracts/rendering.d.ts +3 -3
  212. package/dist/_dts/sdk/src/index.d.ts +1 -0
  213. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +0 -1
  214. package/dist/_dts/sdk/src/rendering/image.d.ts +14 -4
  215. package/dist/_dts/sdk/src/rendering/index.d.ts +5 -2
  216. package/dist/_dts/sdk/src/rendering/link.d.ts +5 -0
  217. package/dist/_dts/sdk/src/rendering/mediaAssets.d.ts +2 -4
  218. package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
  219. package/dist/_dts/sdk/src/version.d.ts +1 -1
  220. package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
  221. package/dist/_dts/theme-core/src/blocks/opaquePanels.d.ts +3 -3
  222. package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +397 -26
  223. package/dist/_dts/theme-core/src/buttons/types.d.ts +21 -21
  224. package/dist/_dts/theme-core/src/cards/types.d.ts +34 -34
  225. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  226. package/dist/_dts/theme-core/src/inputs/types.d.ts +3 -3
  227. package/dist/_dts/theme-core/src/lib/media.d.ts +2 -616
  228. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +261 -2619
  229. package/dist/_dts/theme-core/src/palette/curated/types.d.ts +1 -1
  230. package/dist/_dts/theme-core/src/schema.d.ts +548 -3187
  231. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  232. package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +9 -9
  233. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
  234. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
  235. package/dist/_dts/theme-core/src/styles/skinTokens.d.ts +2 -2
  236. package/dist/_dts/theme-core/src/typography/schema.d.ts +2 -2
  237. package/dist/client/BookingMailingListNote-DrchYW1m.mjs +386 -0
  238. package/dist/client/{CardListItem-ZDLYh6dL.mjs → CardListItem-CC_GVmF6.mjs} +5 -5
  239. package/dist/client/CheckIcon-CpyXr-Kg.mjs +35 -0
  240. package/dist/client/{CheckboxChoice-M-3HycLw.mjs → CheckboxChoice-Dq30m3DO.mjs} +1 -1
  241. package/dist/client/{DemoBookingPortalAccess-BMtvPTWE.mjs → DemoBookingPortalAccess-ojwbVUmx.mjs} +85 -85
  242. package/dist/client/{EventCombined.client-DUm_DOxW.mjs → EventCombined.client-DyN0v0Xk.mjs} +7 -9
  243. package/dist/client/{EventEmbeddedCheckoutStep-DsNNzgRm.mjs → EventEmbeddedCheckoutStep-CgfpKc3n.mjs} +11 -10
  244. package/dist/client/{EventListing.client-DjNYGUVm.mjs → EventListing.client-CuOuvYMz.mjs} +2 -2
  245. package/dist/client/{LeafletStaticMap-DuFiOHq_.mjs → LeafletStaticMap-B0WhRr3j.mjs} +1 -1
  246. package/dist/client/{ModalShell-CqkBvBIC.mjs → ModalShell-BXzucfR6.mjs} +83 -12
  247. package/dist/client/{RichText-LjPCUGGi.mjs → RichText-C1fIXBzA.mjs} +50 -34
  248. package/dist/client/{ThemedButton-DZKjtaDD.mjs → ThemedButton-B7HFqFBg.mjs} +1 -2
  249. package/dist/client/{accordion-Qe--SILD.mjs → accordion-DCDVWSye.mjs} +1 -1
  250. package/dist/client/{bookingForm-3BCl4g_f.mjs → bookingForm-BJ3C4GlM.mjs} +321 -154
  251. package/dist/client/bookings.mjs +118607 -22429
  252. package/dist/client/{carousel-h2YjKOS2.mjs → carousel-BSCBhfHY.mjs} +2 -2
  253. package/dist/client/{carousel.client-BLrd4hmY.mjs → carousel.client-GEtOGsxo.mjs} +46 -41
  254. package/dist/client/{cart-5NeiigVd.mjs → cart-Yv-aAtck.mjs} +3 -3
  255. package/dist/client/{checkout-G4UWjOEw.mjs → checkout-B9xDkl30.mjs} +3 -3
  256. package/dist/client/client.mjs +37511 -33793
  257. package/dist/client/{context-GK4-AVAh.mjs → context-BOGe3rIA.mjs} +275 -10
  258. package/dist/client/{eventCalendar-Prw3Yo_L.mjs → eventCalendar-D6M0T9hs.mjs} +18 -17
  259. package/dist/client/{eventCombined-BUugi6__.mjs → eventCombined-NM4UFBq8.mjs} +4 -4
  260. package/dist/client/{eventDetails-CBHUda-R.mjs → eventDetails-f_FhV4O8.mjs} +3 -4
  261. package/dist/client/{eventListing-CQeG45Dg.mjs → eventListing-WLkfAROh.mjs} +4 -4
  262. package/dist/client/{eventRegistration-Dif3p3oJ.mjs → eventRegistration-D3ejfLvW.mjs} +2209 -2144
  263. package/dist/client/{form-Cf0WMtfG.mjs → form-D5Or2Jyu.mjs} +5 -6
  264. package/dist/client/{headerSection-Bqdr3JWp.mjs → headerSection-hWgnv27V.mjs} +9 -9
  265. package/dist/client/hooks.mjs +17278 -16106
  266. package/dist/client/{locationMap-BVvPou4O.mjs → locationMap-Di1K0O2S.mjs} +3 -4
  267. package/dist/client/{media-47fcnhzD.mjs → media-D29-F1u_.mjs} +183 -362
  268. package/dist/client/mediaContext-CwbbimYB.mjs +135 -0
  269. package/dist/client/{newsletterForm-Cx-1dnic.mjs → newsletterForm-CwxcwTNO.mjs} +5 -5
  270. package/dist/client/{productDetail-DaUMaJYk.mjs → productDetail-BLSnhPdA.mjs} +3 -3
  271. package/dist/client/{productList-BKQlWEKE.mjs → productList-oGytONOX.mjs} +3 -3
  272. package/dist/client/{propsDecoder-DO5iXphQ.mjs → propsDecoder-lf_dTeZS.mjs} +18659 -14473
  273. package/dist/client/renderableMediaAssetAdmission-CHkXYDC_.mjs +143 -0
  274. package/dist/client/rendering/client.mjs +58971 -55722
  275. package/dist/client/rendering/islands.mjs +20 -23
  276. package/dist/client/rendering.mjs +41610 -37917
  277. package/dist/client/{routeIslandApiConfig-BNm0Z3-g.mjs → routeIslandApiConfig-Bc_WVPS8.mjs} +1 -1
  278. package/dist/client/{shop-D7ytcFBC.mjs → shop-BQ3bR7fA.mjs} +16 -14
  279. package/dist/client/{shop-commerce-D68-hHy2.mjs → shop-commerce-DDPll6ZC.mjs} +9 -9
  280. package/dist/client/{shop-commerce-store-Cu7X2lyu.mjs → shop-commerce-store-DO-e1pTe.mjs} +1 -1
  281. package/dist/client/{shopShared-D12rxE69.mjs → shopShared-BylM9jh1.mjs} +5 -5
  282. package/dist/client/themePortalRoot-DS92SRVZ.mjs +47 -0
  283. package/dist/client/{TerminalPanel-DOTSUCO0.mjs → useDiscountCodeUi-B1Puub2v.mjs} +60 -77
  284. package/dist/client/{useEventPagination-jgKa67KV.mjs → useEventPagination-BBhkmQaT.mjs} +6 -8
  285. package/dist/preview-next/before-render.mjs +96 -4
  286. package/dist/preview-next/client/runtime.mjs +3 -3
  287. package/dist/preview-next/keepAlive.mjs +7 -0
  288. package/dist/preview-next/middleware.mjs +7 -0
  289. package/dist/{sdk-runtime-4cCWO_3i.mjs → sdk-runtime-DWCvhJGu.mjs} +1 -1
  290. package/dist/server/components.mjs +21820 -19902
  291. package/dist/server/config-validation.mjs +1786 -642
  292. package/dist/server/config.mjs +1786 -642
  293. package/dist/server/data.mjs +17220 -16076
  294. package/dist/server/index.mjs +234 -2
  295. package/dist/server/next.mjs +22505 -20528
  296. package/dist/server/page-converter.mjs +7587 -6572
  297. package/dist/server/prebuild.mjs +1 -1
  298. package/dist/server/rendering/server.mjs +20487 -19044
  299. package/dist/server/rendering.mjs +21844 -19901
  300. package/dist/server/routing.mjs +19186 -17961
  301. package/dist/server/server.mjs +1874 -695
  302. package/dist/server/theme-bridge.mjs +1371 -914
  303. package/dist/server/theme.mjs +154 -37
  304. package/dist/{spinner-tSdG9YvG.mjs → spinner-BYM-Y81w.mjs} +1 -1
  305. package/dist/styles/index.css +1088 -721
  306. package/package.json +1 -1
  307. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/OrderSummary.d.ts +0 -15
  308. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +0 -22
  309. package/dist/_dts/blocks/src/system/runtime/shared/components/SelectableOptionCard.d.ts +0 -30
  310. package/dist/client/BookingMailingListNote-DlDSs5Vm.mjs +0 -567
  311. package/dist/client/colorStyles-DTunOThj.mjs +0 -1316
  312. package/dist/client/pricing-CMD0kADd.mjs +0 -314
  313. package/dist/client/result-DRW7JWXz.mjs +0 -30
  314. package/dist/client/scrollToBlock-C86BYkyV.mjs +0 -17
  315. package/dist/client/themePortalRoot-AGs4cE7t.mjs +0 -30
  316. package/dist/spinner-BL3kW9Uh.mjs +0 -803
@@ -0,0 +1,60 @@
1
+ import type { EventRegistrationErrorAction } from '../../../../../../commerce/src/purchase/index';
2
+ import type { WaitlistClaimCredential, WaitlistClaimRequest } from '../../shared/useWaitlistClaim.state';
3
+ import type { ResolveWaitlistClaimResponse } from '../../api/types';
4
+ import type { EventTicketSelectionLine, FormData, Guest, RegistrationEvent } from './types';
5
+ import type { WaitlistClaimRestoration } from './waitlistClaimRestoration';
6
+ export type WaitlistInvitation = Readonly<{
7
+ kind: 'none';
8
+ }> | Readonly<{
9
+ kind: 'resolving';
10
+ request: WaitlistClaimRequest;
11
+ }> | Readonly<{
12
+ kind: 'portal-login-required';
13
+ request: WaitlistClaimRequest;
14
+ message: string;
15
+ }> | Readonly<{
16
+ kind: 'error';
17
+ request: WaitlistClaimRequest;
18
+ message: string;
19
+ action: EventRegistrationErrorAction;
20
+ }> | Readonly<{
21
+ kind: 'ready';
22
+ request: WaitlistClaimRequest;
23
+ claim: ResolveWaitlistClaimResponse;
24
+ restoration: Extract<WaitlistClaimRestoration, {
25
+ kind: 'ready';
26
+ }>;
27
+ }>;
28
+ export type RegistrationDraftData = Readonly<{
29
+ selectedEvent: RegistrationEvent | null;
30
+ formData: FormData;
31
+ guests: Guest[];
32
+ selectedAttendanceMode: 'in_person' | 'online' | null;
33
+ selectedTicketLines: EventTicketSelectionLine[];
34
+ selectedSlidingAmountInput: string;
35
+ }>;
36
+ export type StateUpdate<T> = T | ((current: T) => T);
37
+ export type RegistrationDraftEdit = {
38
+ [K in keyof RegistrationDraftData]: Readonly<{
39
+ field: K;
40
+ value: StateUpdate<RegistrationDraftData[K]>;
41
+ }>;
42
+ }[keyof RegistrationDraftData];
43
+ export declare function createRegistrationDraftData(event: RegistrationEvent | null): RegistrationDraftData;
44
+ export declare function editRegistrationDraft(draft: RegistrationDraftData, edit: RegistrationDraftEdit): RegistrationDraftData;
45
+ /** Ready invitations own their reserved selection; identity fields remain editable. */
46
+ export declare function canEditInvitedDraft(invitation: WaitlistInvitation, edit: RegistrationDraftEdit): boolean;
47
+ export declare function beginWaitlistInvitation(credential: WaitlistClaimCredential | null): WaitlistInvitation;
48
+ /** A source notification is not a new attempt when its credential is unchanged. */
49
+ export declare function receiveWaitlistInvitation(invitation: WaitlistInvitation, credential: WaitlistClaimCredential | null): WaitlistInvitation;
50
+ export declare function restoreRegistrationDraft(draft: RegistrationDraftData, claim: ResolveWaitlistClaimResponse, restoration: Extract<WaitlistClaimRestoration, {
51
+ kind: 'ready';
52
+ }>): RegistrationDraftData;
53
+ export type InvitationSubmission = Readonly<{
54
+ kind: 'available';
55
+ credential: WaitlistClaimCredential | null;
56
+ }> | Readonly<{
57
+ kind: 'blocked';
58
+ message: string;
59
+ }>;
60
+ export declare function invitationSubmission(invitation: WaitlistInvitation): InvitationSubmission;
@@ -17,6 +17,6 @@ export declare function recoverRegistrationError(action: EventRegistrationErrorA
17
17
  canJoinWaitlist?: boolean;
18
18
  refreshOptions: () => void;
19
19
  clearError: () => void;
20
- setStep: (step: RegistrationStep) => void;
20
+ setStep: (step: Exclude<RegistrationStep, 'success'>) => void;
21
21
  reset: () => void;
22
22
  }>): void;
@@ -1,4 +1,5 @@
1
1
  import type { PublicEventRunGroup } from '../../../blocks/events/shared/runGrouping';
2
+ import type { ConfirmedBookingIdentity } from '../../api/types';
2
3
  import type { PublicEvent, RegistrationEvent } from './types';
3
4
  export declare function toRegistrationEvent(event: PublicEvent): RegistrationEvent;
4
5
  export declare function toRegistrationEvents(events: readonly PublicEvent[]): RegistrationEvent[];
@@ -15,3 +16,5 @@ export declare function toWholeSeriesRegistrationEvents(events: readonly PublicE
15
16
  export declare function getRegistrationStartAt(event: Pick<RegistrationEvent, 'registrationSubject' | 'startsAt'> | null | undefined, occurrenceContext: Readonly<{
16
17
  startsAt: string;
17
18
  }> | null | undefined): string | undefined;
19
+ /** Confirmation identifies its persisted subject, independently of the current draft. */
20
+ export declare function findBookedEvent(events: readonly RegistrationEvent[], identity: ConfirmedBookingIdentity): RegistrationEvent | null;
@@ -1,17 +1,56 @@
1
- import type { EligibilityData, PaymentSelection, RegistrationStep } from './types';
1
+ import type { WaitlistClaimCredential, WaitlistClaimLookup } from '../../shared/useWaitlistClaim.state';
2
+ import { type RegistrationDraftData, type RegistrationDraftEdit, type WaitlistInvitation } from './registrationDraft.state';
3
+ import type { RegistrationEvent } from './types';
4
+ import type { EventSourceRecovery } from './eventSourceRecovery';
5
+ import type { EligibilityData, PaymentSelection, RegistrationStep, RegistrationResult } from './types';
2
6
  export type SelectionSource = 'auto' | 'manual';
3
- export type RegistrationFlowState = {
4
- step: RegistrationStep;
7
+ type RegistrationDraftState = {
8
+ draft: RegistrationDraftData;
5
9
  ticketsCount: number;
6
- isAuthenticated: boolean;
7
10
  eligibility: EligibilityData | null;
8
11
  passOptOut: boolean;
9
12
  paymentSelection: PaymentSelection;
10
13
  selectionSource: SelectionSource;
11
14
  };
15
+ export type RegistrationFlowState = Readonly<{
16
+ isAuthenticated: boolean;
17
+ }> & RegistrationDraftState & (Readonly<{
18
+ step: Exclude<RegistrationStep, 'success'>;
19
+ invitation: WaitlistInvitation;
20
+ }> | Readonly<{
21
+ step: 'success';
22
+ result: RegistrationResult;
23
+ invitation: Readonly<{
24
+ kind: 'none';
25
+ }>;
26
+ }>);
27
+ /** Constructors of a fresh draft cannot return invitation authority. */
28
+ type FreshRegistrationFlowState = Exclude<RegistrationFlowState, {
29
+ step: 'success';
30
+ }> & Readonly<{
31
+ invitation: Extract<WaitlistInvitation, {
32
+ kind: 'none';
33
+ }>;
34
+ }>;
12
35
  export type RegistrationFlowAction = {
36
+ type: 'draft-edited';
37
+ edit: RegistrationDraftEdit;
38
+ } | {
39
+ type: 'claim-arrived';
40
+ credential: WaitlistClaimCredential | null;
41
+ } | {
42
+ type: 'claim-updated';
43
+ lookup: WaitlistClaimLookup;
44
+ events: EventSourceRecovery<RegistrationEvent>;
45
+ occurrenceContextId: string | undefined;
46
+ } | {
47
+ type: 'refresh-invitation';
48
+ } | {
13
49
  type: 'set-step';
14
- step: RegistrationStep;
50
+ step: Exclude<RegistrationStep, 'success'>;
51
+ } | {
52
+ type: 'completed';
53
+ result: RegistrationResult;
15
54
  } | {
16
55
  type: 'tickets-completed';
17
56
  } | {
@@ -30,16 +69,24 @@ export type RegistrationFlowAction = {
30
69
  type: 'use-card-instead-of-pass';
31
70
  } | {
32
71
  type: 'use-pass';
33
- } | {
34
- type: 'event-changed';
35
- hasPreSelectedContext: boolean;
36
- } | {
72
+ } | (EventChoice & Readonly<{
73
+ navigation: 'choose' | 'advance';
74
+ }>) | {
37
75
  type: 'reset';
38
76
  hasPreSelectedContext: boolean;
39
77
  };
40
- export declare function createInitialRegistrationFlowState(hasPreSelectedContext: boolean): RegistrationFlowState;
78
+ export type EventChoice = Readonly<{
79
+ type: 'event-continued';
80
+ }> | Readonly<{
81
+ type: 'event-replaced';
82
+ event: RegistrationEvent;
83
+ }>;
84
+ /** Identity, not clicking a row, decides whether this is a new booking. */
85
+ export declare function decideEventChoice(state: Pick<RegistrationFlowState, 'draft' | 'invitation'>, event: RegistrationEvent): EventChoice;
86
+ export declare function createInitialRegistrationFlowState(hasPreSelectedContext: boolean): FreshRegistrationFlowState;
41
87
  export declare function areEventRegistrationPaymentSelectionsEqual(a: PaymentSelection, b: PaymentSelection): boolean;
42
88
  export declare function registrationFlowReducer(state: RegistrationFlowState, action: RegistrationFlowAction): RegistrationFlowState;
89
+ export declare function isRegistrationLocked(step: RegistrationStep): boolean;
43
90
  /**
44
91
  * The pass the customer turned down, while it would otherwise cover this booking.
45
92
  *
@@ -54,3 +101,4 @@ export declare function requiresPaymentStep(params: {
54
101
  eventRequiresPayment: boolean;
55
102
  paymentSelection: PaymentSelection;
56
103
  }): boolean;
104
+ export {};
@@ -1,3 +1,4 @@
1
+ import type { EventRegistrationRecoveryRequest } from './useEventRegistrationRecoveryRequest';
1
2
  import type { PublicEvent } from '../../../blocks/events/shared/types';
2
3
  import { type PublicEventRunGroup } from '../../../blocks/events/shared/runGrouping';
3
4
  import { type EventRegistrationPageSurfaceSubject } from './eventScope';
@@ -12,6 +13,22 @@ export type EventRegistrationSurfacePlan = Readonly<{
12
13
  }> | Readonly<{
13
14
  kind: 'mixedBookingScopes';
14
15
  }>;
16
+ /** Admission only limits fresh bookings; existing purchases always reach recovery. */
17
+ export declare function registrationAdmissionSurface(input: Readonly<{
18
+ availability: 'open' | 'closed' | 'empty';
19
+ recoveryRequested: boolean;
20
+ }>): 'registration' | 'closed' | 'empty';
21
+ /** Resolve the host guard once; past-date notices only concern new bookings. */
22
+ export declare function resolveEventRegistrationClientSurface(input: Readonly<{
23
+ plan: EventRegistrationSurfacePlan;
24
+ pastStartsAt: string | null;
25
+ recoveryRequest: EventRegistrationRecoveryRequest;
26
+ }>): Readonly<{
27
+ kind: 'wizard' | 'unavailable';
28
+ }> | Readonly<{
29
+ kind: 'past';
30
+ startsAt: string;
31
+ }>;
15
32
  export declare function planEventRegistrationSurface(input: Readonly<{
16
33
  events: readonly PublicEvent[];
17
34
  occurrenceContext?: Readonly<{
@@ -1,3 +1,4 @@
1
+ import type { RegistrationDisplay } from './registrationDisplay';
1
2
  import type { BookingMailingListNote as BookingSignupNote } from '../../../../../../core/src/index';
2
3
  import type { PublicEventPricing } from '../../../../../../core/src/index';
3
4
  import type { MailingListRuntimeContext } from '../../../../../../core/src/index';
@@ -7,7 +8,7 @@ import type { PublicEvent, PublicEventPricingOption, PublicEventPricingOptionAva
7
8
  import type { BlockBookingPaymentTerms } from '../../../blocks/shared/bookingPaymentTerms';
8
9
  import type { PublicMembershipProductCollection, PublicPassProductCollection } from '../../../blocks/shop.shared';
9
10
  import type { BlockButtonRole } from '../../../constants/buttonRoles';
10
- import type { AvailableMembership, AvailablePass, DirectCheckoutCollectionOptionKind, EventTicketLineSummary } from '../../api/types';
11
+ import type { AvailableMembership, AvailablePass, DirectCheckoutCollectionOptionKind, EventTicketLineSummary, EventBookingOutcome } from '../../api/types';
11
12
  import type { EventRegistrationPageSurfaceSubject } from './eventScope';
12
13
  export type { OccurrenceContext, PublicEvent };
13
14
  export type { FormData } from '../../shared';
@@ -27,8 +28,7 @@ export type GuestErrors = Record<number, {
27
28
  name?: string;
28
29
  }>;
29
30
  export type RegistrationStep = 'select-event' | 'select-tickets' | 'enter-details' | 'select-payment' | 'submitting' | 'payment' | 'verifying-payment' | 'verifying-timeout' | 'payment-status' | 'payment-failed' | 'success' | 'error';
30
- export type RegistrationResult = {
31
- status: 'confirmed' | 'waitlist';
31
+ type RegistrationResultCopy = {
32
32
  /**
33
33
  * Optional success copy overrides (e.g. idempotent "already registered" responses).
34
34
  * When omitted, the block-level `successMessage`/default copy is used.
@@ -39,6 +39,12 @@ export type RegistrationResult = {
39
39
  variant?: 'success' | 'info';
40
40
  mailingListSignupNote?: BookingSignupNote;
41
41
  };
42
+ export type RegistrationResult = RegistrationResultCopy & (Readonly<{
43
+ status: 'confirmed';
44
+ outcome: EventBookingOutcome;
45
+ }> | Readonly<{
46
+ status: 'waitlist';
47
+ }>);
42
48
  export type PaymentStatusRecoveryState = Readonly<{
43
49
  subject: import('../../api/types').EventRegistrationPaymentSubject;
44
50
  mailingListSignupNote?: BookingSignupNote;
@@ -124,7 +130,7 @@ export type RegistrationSubject = Readonly<{
124
130
  /** Ordered live booking sessions; cancellation history stays on PublicEvent.run. */
125
131
  sessions: readonly PublicRunSession[];
126
132
  }>;
127
- export type RegistrationEvent = Pick<PublicEvent, 'seriesId' | 'title' | 'startsAt' | 'endsAt' | 'bookingAvailability' | 'deliveryMode' | 'attendanceModes' | 'capacity' | 'registeredCount' | 'availableSpots' | 'waitlistEnabled' | 'venue' | 'eventCategory' | 'teamMembers' | 'status' | 'timeZone' | 'paymentTerms' | 'consent' | 'requireGuestDetails' | 'acceptsPasses' | 'acceptsMemberships'> & Readonly<{
133
+ export type RegistrationEvent = Pick<PublicEvent, 'seriesId' | 'scheduleSummary' | 'title' | 'startsAt' | 'endsAt' | 'bookingAvailability' | 'deliveryMode' | 'attendanceModes' | 'capacity' | 'registeredCount' | 'availableSpots' | 'waitlistEnabled' | 'venue' | 'eventCategory' | 'teamMembers' | 'status' | 'timeZone' | 'siteTimeZone' | 'paymentTerms' | 'consent' | 'requireGuestDetails' | 'acceptsPasses' | 'acceptsMemberships' | 'eventPreset'> & Readonly<{
128
134
  selectionId: string;
129
135
  registrationSubject: RegistrationSubject;
130
136
  pricing: PublicEventPricing;
@@ -183,13 +189,18 @@ export type EventRegistrationClientProps = {
183
189
  occurrenceContext?: OccurrenceContext | null;
184
190
  subject?: EventRegistrationPageSurfaceSubject | null;
185
191
  events?: PublicEvent[] | null;
192
+ /** Client recovery preserves loading/failure instead of presenting an empty loaded list. */
193
+ eventSourceRecovery?: import('./eventSourceRecovery').EventSourceRecovery;
186
194
  maxTickets?: string;
187
- showVenue?: boolean;
188
- showCapacity?: boolean;
195
+ display: RegistrationDisplay;
189
196
  successMessage?: string;
190
197
  buttonText?: string;
191
198
  buttonVariant?: BlockButtonRole;
192
- overlayEnabled?: boolean;
199
+ /**
200
+ * Where the booking panel lives; the server always sets it. Rendered
201
+ * without the island (tests, stories), the wizard shows in place.
202
+ */
203
+ host?: import('./bookingCardDisplay').BookingHost;
193
204
  className?: string;
194
205
  /** Server-passed spam protection flag. Falls back to NEXT_PUBLIC_SPAM_PROTECTION_ENABLED. */
195
206
  spamProtectionEnabled?: boolean;
@@ -201,6 +212,11 @@ export type EventRegistrationClientProps = {
201
212
  siteMemberships?: PublicMembershipProductCollection | null;
202
213
  mailingList?: MailingListRuntimeContext;
203
214
  siteName?: string;
215
+ /** What the site calls this offering ("class", "course"), resolved on the server. */
216
+ offeringNoun?: Readonly<{
217
+ label: string;
218
+ pluralLabel: string;
219
+ }> | null;
204
220
  };
205
221
  export type EventPaymentState =
206
222
  /** `heldPlaceRetry`: this tab is booking again for a booking whose place the
@@ -0,0 +1,12 @@
1
+ import { type RefObject } from 'react';
2
+ import { type BookingBarPlacement } from './bookingEntry';
3
+ /** The CSS variable the bar reads its push from (`translateY`). */
4
+ export declare const BOOKING_BAR_PUSH_VAR = "--er-bar-push";
5
+ /**
6
+ * Keeps the bar placed (issue 1581): shown or hidden in React state, which
7
+ * changes rarely, and the card's push written straight to the bar element.
8
+ * The card's position is only read while an IntersectionObserver says it is
9
+ * on screen; otherwise it can't be pushing, and the bar is simply shown or
10
+ * hidden. Scroll work is batched to one read per animation frame.
11
+ */
12
+ export declare function useBookingBarPlacement(cardRef: RefObject<HTMLElement | null>, barRef: RefObject<HTMLElement | null>, panelOpen: boolean): BookingBarPlacement['state'];
@@ -0,0 +1,3 @@
1
+ export type EventRegistrationRecoveryRequest = 'none' | 'paymentReturn' | 'waitlistInvitation';
2
+ /** Retain arrival intent while the payment controller cleans up the return URL. */
3
+ export declare function useEventRegistrationRecoveryRequest(): EventRegistrationRecoveryRequest;
@@ -1,5 +1,9 @@
1
1
  import type { EventCheckoutReturnRequest } from '../../api/types';
2
2
  import type { PendingRegistration } from './sessionStorage';
3
+ /** A return URL asks the server to verify; it is never proof of payment. */
4
+ export declare function eventRegistrationCheckoutReturnRequest(params: URLSearchParams): Extract<EventCheckoutReturnRequest, {
5
+ kind: 'resolveSession';
6
+ }> | null;
3
7
  export declare function useEventRegistrationStripeReturn(options: Readonly<{
4
8
  siteId: string | undefined;
5
9
  restore: (pending: PendingRegistration) => void;
@@ -1,3 +1,4 @@
1
+ import type { InvitationSubmission } from './registrationDraft.state';
1
2
  import type { BookingMailingListNote as BookingSignupNote } from '../../../../../../core/src/index';
2
3
  import { generateUuidV4 } from '../../../../../../core/src/index';
3
4
  import type { EventRegistrationErrorAction } from '../../../../../../commerce/src/purchase/index';
@@ -45,11 +46,10 @@ export type UseEventRegistrationSubmitInput = {
45
46
  requireGuestDetails: boolean;
46
47
  guests: Guest[];
47
48
  discountCode: string;
48
- claimToken: string | null;
49
- waitlistEntryId?: string | null;
50
- setStep: (step: RegistrationStep) => void;
49
+ invitation: InvitationSubmission;
50
+ setStep: (step: Exclude<RegistrationStep, 'success'>) => void;
51
51
  setErrorAction?: (action: EventRegistrationErrorAction) => void;
52
- setRegistrationResult: (result: RegistrationResult) => void;
52
+ complete: (result: RegistrationResult) => void;
53
53
  setErrorMessage: (message: string) => void;
54
54
  setPaymentStatusRecovery: (state: PaymentStatusRecoveryState | null) => void;
55
55
  };
@@ -70,13 +70,6 @@ export type EventRegistrationSubmitDeps = Readonly<{
70
70
  }>;
71
71
  export declare const createClientCommandId: typeof generateUuidV4;
72
72
  export declare function useEventRegistrationSubmit(options: UseEventRegistrationSubmitInput): EventRegistrationSubmit;
73
- /**
74
- * Describe a completed registration to the success step.
75
- *
76
- * Only pass redemptions adopt the server's message: it names the credits spent
77
- * and the balance left, which the block's copy cannot. Every other method keeps
78
- * whatever success message the site configured.
79
- */
80
73
  export declare function useEventRegistrationSubmitWithDeps(options: UseEventRegistrationSubmitInput, deps: EventRegistrationSubmitDeps): EventRegistrationSubmit;
81
74
  type SelectionSnapshot = Exclude<PaymentSelection, Readonly<{
82
75
  method: null;