@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
@@ -1,4 +1,4 @@
1
- import { q as createHostedBlockApiConfig } from "./propsDecoder-DO5iXphQ.mjs";
1
+ import { vn as createHostedBlockApiConfig } from "./propsDecoder-lf_dTeZS.mjs";
2
2
  //#region src/rendering/islands/enhancers/routeIslandApiConfig.ts
3
3
  function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage, readAuthority }) {
4
4
  if (readAuthority) return createHostedBlockApiConfig({
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { Kn as assertNever$1, Vt as getShopSuccessCopy, o as formatCommercePrice, rn as assertNever, s as formatInterval, t as defineIslandPropsDecoder } from "./propsDecoder-DO5iXphQ.mjs";
3
- import { t as ThemedButton } from "./ThemedButton-DZKjtaDD.mjs";
4
- import { n as useBlockApi } from "./context-GK4-AVAh.mjs";
5
- import { d as storeDemoBookingCheckoutReturn, o as DiscountCodeDisclosure, t as BookingConfirmation, u as readDemoBookingCheckoutReturnEmail } from "./DemoBookingPortalAccess-BMtvPTWE.mjs";
6
- import { i as useDiscountCodeUi, n as StateIcon, r as CheckIcon, t as TerminalPanel } from "./TerminalPanel-DOTSUCO0.mjs";
7
- import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
8
- import { t as scrollToBlock } from "./scrollToBlock-C86BYkyV.mjs";
9
- import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
10
- import { D as consumeSearchParams, _ as MembershipCardView, a as getDiscountApplyFeedback, b as PassesMembershipsSectionView, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassPurchaseUnavailable } from "./shopShared-D12rxE69.mjs";
2
+ import { Lr as assertNever, ji as assertNever$1, o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder, xr as getShopSuccessCopy } from "./propsDecoder-lf_dTeZS.mjs";
3
+ import { t as ThemedButton } from "./ThemedButton-B7HFqFBg.mjs";
4
+ import { n as scrollToBlock, t as CheckIcon } from "./CheckIcon-CpyXr-Kg.mjs";
5
+ import { t as createBodyThemePortalRoot } from "./themePortalRoot-DS92SRVZ.mjs";
6
+ import { D as consumeSearchParams, _ as MembershipCardView, a as getDiscountApplyFeedback, b as PassesMembershipsSectionView, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassPurchaseUnavailable } from "./shopShared-BylM9jh1.mjs";
11
7
  import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
12
- import { t as addPassToCommerceCart } from "./shop-commerce-store-Cu7X2lyu.mjs";
13
- import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
8
+ import { l as readDemoBookingCheckoutReturnEmail, p as DiscountCodeDisclosure, t as BookingConfirmation, u as storeDemoBookingCheckoutReturn } from "./DemoBookingPortalAccess-ojwbVUmx.mjs";
9
+ import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
10
+ import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-B1Puub2v.mjs";
11
+ import { n as useBlockApi } from "./context-BOGe3rIA.mjs";
12
+ import { t as addPassToCommerceCart } from "./shop-commerce-store-DO-e1pTe.mjs";
13
+ import { t as ModalShell } from "./ModalShell-BXzucfR6.mjs";
14
14
  import React, { useCallback, useEffect, useRef, useState } from "react";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
16
  //#region ../blocks/src/system/runtime/shared/components/ActionRow.tsx
@@ -364,9 +364,11 @@ function PassesMembershipsController({ render }) {
364
364
  if (!sourceEl) return;
365
365
  const portal = createBodyThemePortalRoot(sourceEl);
366
366
  if (!portal) return;
367
- portal.root.style.setProperty("--rb-modal-z-index", "20000");
368
- portal.root.style.setProperty("--rb-modal-overlay-bg", "rgb(var(--tb-text, 0 0 0) / 0.6)");
369
- setModalPortalRoot(portal.root);
367
+ const modalRoot = document.createElement("div");
368
+ modalRoot.style.setProperty("--rb-modal-z-index", "20000");
369
+ modalRoot.style.setProperty("--rb-modal-overlay-bg", "rgb(var(--tb-text, 0 0 0) / 0.6)");
370
+ portal.root.appendChild(modalRoot);
371
+ setModalPortalRoot(modalRoot);
370
372
  return () => {
371
373
  portal.cleanup();
372
374
  };
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { Nt as logger, a as buildProductDetailDisplay, cn as reportWorkflowError, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, in as clearWorkflowFeedback, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, rn as assertNever, tn as RichTextDocSchema, u as buildProductCartItem } from "./propsDecoder-DO5iXphQ.mjs";
3
- import { n as ThemedButtonLink, t as ThemedButton } from "./ThemedButton-DZKjtaDD.mjs";
4
- import { n as useBlockApi } from "./context-GK4-AVAh.mjs";
5
- import { d as storeDemoBookingCheckoutReturn, n as DemoBookingPortalAccess, o as DiscountCodeDisclosure, u as readDemoBookingCheckoutReturnEmail } from "./DemoBookingPortalAccess-BMtvPTWE.mjs";
6
- import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
7
- import { t as RichText } from "./RichText-LjPCUGGi.mjs";
2
+ import { Fr as RichTextDocSchema, Hr as reportWorkflowError, Lr as assertNever, Rr as clearWorkflowFeedback, a as buildProductDetailDisplay, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, pr as logger, u as buildProductCartItem } from "./propsDecoder-lf_dTeZS.mjs";
3
+ import { n as ThemedButtonLink, t as ThemedButton } from "./ThemedButton-B7HFqFBg.mjs";
8
4
  import { t as buildCheckoutReturnUrls } from "./checkoutUrls-ChxwaNtO.mjs";
9
- import { C as ProductGalleryFrameView, E as consumeSearchParam, S as ProductDetailView, T as VariantSelectView, a as getDiscountApplyFeedback, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as ProductListSectionView, x as ProductCardView } from "./shopShared-D12rxE69.mjs";
10
- import { t as CarouselNodeClient } from "./carousel.client-BLrd4hmY.mjs";
5
+ import { C as ProductGalleryFrameView, E as consumeSearchParam, S as ProductDetailView, T as VariantSelectView, a as getDiscountApplyFeedback, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as ProductListSectionView, x as ProductCardView } from "./shopShared-BylM9jh1.mjs";
6
+ import { l as readDemoBookingCheckoutReturnEmail, n as DemoBookingPortalAccess, p as DiscountCodeDisclosure, u as storeDemoBookingCheckoutReturn } from "./DemoBookingPortalAccess-ojwbVUmx.mjs";
7
+ import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
8
+ import { n as useBlockApi } from "./context-BOGe3rIA.mjs";
9
+ import { t as RichText } from "./RichText-C1fIXBzA.mjs";
10
+ import { t as CarouselNodeClient } from "./carousel.client-GEtOGsxo.mjs";
11
11
  import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
12
- import { n as useCommerceCart } from "./shop-commerce-store-Cu7X2lyu.mjs";
12
+ import { n as useCommerceCart } from "./shop-commerce-store-DO-e1pTe.mjs";
13
13
  import * as React$1 from "react";
14
14
  import { useEffect, useState } from "react";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-DO5iXphQ.mjs";
2
+ import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-lf_dTeZS.mjs";
3
3
  import * as React$1 from "react";
4
4
  //#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
5
5
  const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { n as ok, t as err } from "./result-DRW7JWXz.mjs";
3
- import { rn as assertNever } from "./propsDecoder-DO5iXphQ.mjs";
4
- import { t as BlockApiProvider } from "./context-GK4-AVAh.mjs";
5
- import { c as discountAvailabilityHasDiscounts, l as getAutoAppliedDiscountPreview, s as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-BMtvPTWE.mjs";
2
+ import { _ as err, v as ok } from "./renderableMediaAssetAdmission-CHkXYDC_.mjs";
3
+ import { Lr as assertNever } from "./propsDecoder-lf_dTeZS.mjs";
4
+ import { c as getAutoAppliedDiscountPreview, o as discountAvailabilityAllowsManualEntry, s as discountAvailabilityHasDiscounts } from "./DemoBookingPortalAccess-ojwbVUmx.mjs";
6
5
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
6
+ import { t as BlockApiProvider } from "./context-BOGe3rIA.mjs";
7
7
  import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
8
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BNm0Z3-g.mjs";
8
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-Bc_WVPS8.mjs";
9
9
  import * as React$1 from "react";
10
10
  import { useCallback } from "react";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -0,0 +1,47 @@
1
+ //#region ../blocks/src/system/runtime/shared/utils/themePortalRoot.ts
2
+ function readThemeAttributes(scope) {
3
+ return new Map(scope.getAttributeNames().flatMap((name) => {
4
+ if (name !== "style" && !name.startsWith("data-")) return [];
5
+ const value = scope.getAttribute(name);
6
+ return value === null ? [] : [[name, value]];
7
+ }));
8
+ }
9
+ function attributeChanges(prev, next) {
10
+ return {
11
+ set: new Map([...next].filter(([name, value]) => prev.get(name) !== value)),
12
+ remove: [...prev.keys()].filter((name) => !next.has(name))
13
+ };
14
+ }
15
+ function applyAttributeChanges(root, changes) {
16
+ changes.set.forEach((value, name) => root.setAttribute(name, value));
17
+ changes.remove.forEach((name) => root.removeAttribute(name));
18
+ }
19
+ function observeThemeAttributes(scope, root) {
20
+ const state = { snapshot: readThemeAttributes(scope) };
21
+ applyAttributeChanges(root, attributeChanges(/* @__PURE__ */ new Map(), state.snapshot));
22
+ const observer = new MutationObserver(() => {
23
+ const next = readThemeAttributes(scope);
24
+ applyAttributeChanges(root, attributeChanges(state.snapshot, next));
25
+ state.snapshot = next;
26
+ });
27
+ observer.observe(scope, { attributes: true });
28
+ return observer;
29
+ }
30
+ function createBodyThemePortalRoot(sourceEl) {
31
+ if (typeof document === "undefined") return null;
32
+ const scope = sourceEl.closest(".theme-scope");
33
+ if (!(scope instanceof HTMLElement)) return null;
34
+ const root = document.createElement("div");
35
+ root.className = "theme-scope rb-theme-portal-root";
36
+ const observer = observeThemeAttributes(scope, root);
37
+ document.body.appendChild(root);
38
+ return {
39
+ root,
40
+ cleanup: () => {
41
+ observer.disconnect();
42
+ root.remove();
43
+ }
44
+ };
45
+ }
46
+ //#endregion
47
+ export { createBodyThemePortalRoot as t };
@@ -1,7 +1,65 @@
1
1
  "use client";
2
- import { c as discountAvailabilityHasDiscounts, l as getAutoAppliedDiscountPreview, s as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-BMtvPTWE.mjs";
2
+ import { c as getAutoAppliedDiscountPreview, o as discountAvailabilityAllowsManualEntry, s as discountAvailabilityHasDiscounts } from "./DemoBookingPortalAccess-ojwbVUmx.mjs";
3
3
  import { useEffect, useReducer, useRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ //#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
6
+ /**
7
+ * Circular icon wrapper for terminal state screens (success, error, waitlist, etc.).
8
+ *
9
+ * Layout is provided by shared `rb-state-icon` CSS; color variants are
10
+ * block-scoped by the owning registration surface.
11
+ */
12
+ function StateIcon({ variant, children }) {
13
+ return /* @__PURE__ */ jsx("div", {
14
+ className: `rb-state-icon rb-state-icon--${variant}`,
15
+ "aria-hidden": "true",
16
+ children
17
+ });
18
+ }
19
+ //#endregion
20
+ //#region ../blocks/src/system/runtime/shared/components/TerminalPanel.tsx
21
+ function joinClasses(...parts) {
22
+ return parts.filter((part) => typeof part === "string" && part.length > 0).join(" ");
23
+ }
24
+ function TerminalPanel({ tone, title, titleAs: Title = "h3", body, secondaryBody, icon, actions, className, titleClassName, bodyClassName, secondaryBodyClassName, iconClassName, actionsClassName, role, live }) {
25
+ const resolvedRole = role ?? (tone === "error" ? "alert" : "status");
26
+ const resolvedLive = live ?? (resolvedRole === "alert" ? "assertive" : "polite");
27
+ return /* @__PURE__ */ jsxs("div", {
28
+ className,
29
+ "data-terminal-panel": true,
30
+ "data-terminal-tone": tone,
31
+ role: resolvedRole,
32
+ "aria-live": resolvedLive === "off" ? void 0 : resolvedLive,
33
+ children: [
34
+ icon ? /* @__PURE__ */ jsx("div", {
35
+ className: joinClasses(iconClassName),
36
+ "data-terminal-icon": true,
37
+ children: icon
38
+ }) : null,
39
+ /* @__PURE__ */ jsx(Title, {
40
+ className: joinClasses(titleClassName),
41
+ "data-terminal-title": true,
42
+ children: title
43
+ }),
44
+ body ? /* @__PURE__ */ jsx("div", {
45
+ className: joinClasses(bodyClassName),
46
+ "data-terminal-body": true,
47
+ children: body
48
+ }) : null,
49
+ actions ? /* @__PURE__ */ jsx("div", {
50
+ className: joinClasses(actionsClassName),
51
+ "data-terminal-actions": true,
52
+ children: actions
53
+ }) : null,
54
+ secondaryBody ? /* @__PURE__ */ jsx("div", {
55
+ className: joinClasses(secondaryBodyClassName),
56
+ "data-terminal-secondary-body": true,
57
+ children: secondaryBody
58
+ }) : null
59
+ ]
60
+ });
61
+ }
62
+ //#endregion
5
63
  //#region ../blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.ts
6
64
  const initialDiscountCodeUiState = {
7
65
  discountUiOpen: false,
@@ -161,79 +219,4 @@ function useDiscountCodeUi(options) {
161
219
  };
162
220
  }
163
221
  //#endregion
164
- //#region ../blocks/src/system/runtime/shared/components/CheckIcon.tsx
165
- function CheckIcon({ className, strokeWidth = 2 }) {
166
- return /* @__PURE__ */ jsx("svg", {
167
- fill: "none",
168
- strokeLinecap: "round",
169
- strokeLinejoin: "round",
170
- strokeWidth,
171
- viewBox: "0 0 24 24",
172
- stroke: "currentColor",
173
- className,
174
- width: "1em",
175
- height: "1em",
176
- "aria-hidden": "true",
177
- children: /* @__PURE__ */ jsx("path", { d: "M5 13l4 4L19 7" })
178
- });
179
- }
180
- //#endregion
181
- //#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
182
- /**
183
- * Circular icon wrapper for terminal state screens (success, error, waitlist, etc.).
184
- *
185
- * Layout is provided by shared `rb-state-icon` CSS; color variants are
186
- * block-scoped by the owning registration surface.
187
- */
188
- function StateIcon({ variant, children }) {
189
- return /* @__PURE__ */ jsx("div", {
190
- className: `rb-state-icon rb-state-icon--${variant}`,
191
- "aria-hidden": "true",
192
- children
193
- });
194
- }
195
- //#endregion
196
- //#region ../blocks/src/system/runtime/shared/components/TerminalPanel.tsx
197
- function joinClasses(...parts) {
198
- return parts.filter((part) => typeof part === "string" && part.length > 0).join(" ");
199
- }
200
- function TerminalPanel({ tone, title, titleAs: Title = "h3", body, secondaryBody, icon, actions, className, titleClassName, bodyClassName, secondaryBodyClassName, iconClassName, actionsClassName, role, live }) {
201
- const resolvedRole = role ?? (tone === "error" ? "alert" : "status");
202
- const resolvedLive = live ?? (resolvedRole === "alert" ? "assertive" : "polite");
203
- return /* @__PURE__ */ jsxs("div", {
204
- className,
205
- "data-terminal-panel": true,
206
- "data-terminal-tone": tone,
207
- role: resolvedRole,
208
- "aria-live": resolvedLive === "off" ? void 0 : resolvedLive,
209
- children: [
210
- icon ? /* @__PURE__ */ jsx("div", {
211
- className: joinClasses(iconClassName),
212
- "data-terminal-icon": true,
213
- children: icon
214
- }) : null,
215
- /* @__PURE__ */ jsx(Title, {
216
- className: joinClasses(titleClassName),
217
- "data-terminal-title": true,
218
- children: title
219
- }),
220
- body ? /* @__PURE__ */ jsx("div", {
221
- className: joinClasses(bodyClassName),
222
- "data-terminal-body": true,
223
- children: body
224
- }) : null,
225
- actions ? /* @__PURE__ */ jsx("div", {
226
- className: joinClasses(actionsClassName),
227
- "data-terminal-actions": true,
228
- children: actions
229
- }) : null,
230
- secondaryBody ? /* @__PURE__ */ jsx("div", {
231
- className: joinClasses(secondaryBodyClassName),
232
- "data-terminal-secondary-body": true,
233
- children: secondaryBody
234
- }) : null
235
- ]
236
- });
237
- }
238
- //#endregion
239
- export { useDiscountCodeUi as i, StateIcon as n, CheckIcon as r, TerminalPanel as t };
222
+ export { TerminalPanel as n, StateIcon as r, useDiscountCodeUi as t };
@@ -1,12 +1,10 @@
1
1
  "use client";
2
- import { M as hexToRgb, a as isCssColorLiteral, j as relativeLuminance, o as resolveOnColorForThemeToken, s as resolveTokenOrCssColorValue } from "./colorStyles-DTunOThj.mjs";
3
- import { $ as normalizeOptionalId, Dt as listItemPresentation, F as resolveSpacing, I as asPartialObject, J as getBlockApiReadStage, Mt as normalizeCardRole, N as SEMANTIC_SPACING_VALUES, Ot as listLookSlot, P as isSemanticSpacing, Q as normalizeCsvString, X as getEventRuntimeFiltersKey, Z as normalizeCsvIds, at as formatEventCompactDateRail, ct as formatEventTimeRange, it as formatDate, jt as boxBackgroundSchema, lt as formatTime, nt as eventDateOptions, rn as assertNever, rt as eventLocalDateKey, st as formatEventNextDateFact } from "./propsDecoder-DO5iXphQ.mjs";
4
- import { t as ImagePresets } from "./media-47fcnhzD.mjs";
5
- import { n as ThemedButtonLink, r as ClockIcon, t as ThemedButton } from "./ThemedButton-DZKjtaDD.mjs";
6
- import { d as getEventAvailabilityStatus, o as formatEventRemainingPlaces, t as formatEventPrice } from "./pricing-CMD0kADd.mjs";
7
- import { a as resolveEventLinkProps, i as resolveEventCta, n as resolveCardListSchedule, r as MediaNodeServer, t as CardListContentPart } from "./CardListItem-ZDLYh6dL.mjs";
8
- import { n as useBlockApi } from "./context-GK4-AVAh.mjs";
9
- import { t as LeafletStaticMap } from "./LeafletStaticMap-DuFiOHq_.mjs";
2
+ import { $r as relativeLuminance, An as eventDateOptions, Cn as normalizeCsvString, En as formatEventPrice, Fn as formatEventNextDateFact, In as formatEventTimeRange, Kr as boxBackgroundSchema, Ln as formatTime, Lr as assertNever, Mn as formatDate, Nn as formatEventCompactDateRail, Qr as resolveTokenOrCssColorValue, Sn as normalizeCsvIds, Xr as isCssColorLiteral, Zr as resolveOnColorForThemeToken, an as isSemanticSpacing, ar as getEventAvailabilityStatus, dr as listItemPresentation, ei as hexToRgb, fr as listLookSlot, in as SEMANTIC_SPACING_VALUES, jn as eventLocalDateKey, nr as formatEventRemainingPlaces, on as resolveSpacing, sn as asPartialObject, ti as normalizeCardRole, wn as normalizeOptionalId, xn as getEventRuntimeFiltersKey, yn as getBlockApiReadStage } from "./propsDecoder-lf_dTeZS.mjs";
3
+ import { t as ImagePresets } from "./media-D29-F1u_.mjs";
4
+ import { n as ThemedButtonLink, r as ClockIcon, t as ThemedButton } from "./ThemedButton-B7HFqFBg.mjs";
5
+ import { a as resolveEventLinkProps, i as resolveEventCta, n as resolveCardListSchedule, r as MediaNodeServer, t as CardListContentPart } from "./CardListItem-CC_GVmF6.mjs";
6
+ import { n as useBlockApi } from "./context-BOGe3rIA.mjs";
7
+ import { t as LeafletStaticMap } from "./LeafletStaticMap-B0WhRr3j.mjs";
10
8
  import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
11
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
10
  //#region ../theme-core/src/palette/utils/textColor.ts
@@ -1855,8 +1855,31 @@ const SDK_PAGE_DESIGN_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1855
1855
  }
1856
1856
  });
1857
1857
  //#endregion
1858
+ //#region ../core/src/result.ts
1859
+ function ok(value) {
1860
+ return {
1861
+ ok: true,
1862
+ value
1863
+ };
1864
+ }
1865
+ function err(error) {
1866
+ return {
1867
+ ok: false,
1868
+ error
1869
+ };
1870
+ }
1871
+ //#endregion
1858
1872
  //#region ../core/src/branded.ts
1873
+ const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
1874
+ function parseUuidBrand(value, unsafeConstructor) {
1875
+ if (typeof value !== "string") return err({ kind: "not_string" });
1876
+ const normalized = value.trim().toLowerCase();
1877
+ if (normalized.length === 0) return err({ kind: "empty_string" });
1878
+ if (!UUID_PATTERN.test(normalized)) return err({ kind: "invalid_uuid" });
1879
+ return ok(unsafeConstructor(normalized));
1880
+ }
1859
1881
  const unsafeAsMediaAssetId = (id) => id;
1882
+ const parseMediaAssetId = (value) => parseUuidBrand(value, unsafeAsMediaAssetId);
1860
1883
  const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
1861
1884
  function availability(transport) {
1862
1885
  return {
@@ -8158,6 +8181,13 @@ const API_ENDPOINTS = {
8158
8181
  auth: "public",
8159
8182
  responseKind: "json"
8160
8183
  },
8184
+ demoClaimReadiness: {
8185
+ path: "/demo/claims/{claimId}/readiness",
8186
+ method: "GET",
8187
+ auth: "user",
8188
+ responseKind: "json",
8189
+ errors: []
8190
+ },
8161
8191
  demoClaimMagicLink: {
8162
8192
  path: "/demo/auth/send-magic-link",
8163
8193
  method: "POST",
@@ -8404,13 +8434,75 @@ const getPreviewSession = cache(async () => {
8404
8434
  return readPreviewSession(await cookies());
8405
8435
  });
8406
8436
  //#endregion
8437
+ //#region ../media-core/src/identifiers.ts
8438
+ function slugifyMediaIdentifier(value) {
8439
+ return value.toLowerCase().trim().replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-");
8440
+ }
8441
+ function parseMediaIdentifier(value) {
8442
+ if (typeof value !== "string") return err({ kind: "not_string" });
8443
+ const trimmed = value.trim();
8444
+ if (trimmed.length === 0) return err({ kind: "empty_identifier" });
8445
+ const normalized = slugifyMediaIdentifier(trimmed);
8446
+ if (normalized.length === 0) return err({
8447
+ kind: "empty_after_normalization",
8448
+ value
8449
+ });
8450
+ return ok(normalized);
8451
+ }
8452
+ /**
8453
+ * Admits identifiers read from trusted persistence without repairing dirty data in memory.
8454
+ * User input should use parseMediaIdentifier, which intentionally canonicalizes it.
8455
+ */
8456
+ function parseCanonicalMediaIdentifier(value) {
8457
+ if (typeof value !== "string") return err({ kind: "not_string" });
8458
+ const parsed = parseMediaIdentifier(value);
8459
+ if (!parsed.ok) return parsed;
8460
+ if (value !== parsed.value) return err({
8461
+ kind: "non_canonical_identifier",
8462
+ value,
8463
+ canonical: parsed.value
8464
+ });
8465
+ return parsed;
8466
+ }
8467
+ //#endregion
8468
+ //#region ../media-core/src/mediaIdentifierSchema.ts
8469
+ /** Strict stored-reference admission delegates the canonical identifier decision. */
8470
+ const mediaIdentifierSchema = z.string().transform((value, context) => {
8471
+ const parsed = parseCanonicalMediaIdentifier(value);
8472
+ if (parsed.ok) return parsed.value;
8473
+ context.addIssue({
8474
+ code: "custom",
8475
+ message: "Expected a canonical media identifier"
8476
+ });
8477
+ return z.NEVER;
8478
+ });
8479
+ //#endregion
8480
+ //#region ../media-core/src/renderableMediaAssetAdmission.ts
8481
+ const mediaAssetIdSchema = z.string().transform((value, context) => {
8482
+ const parsed = parseMediaAssetId(value);
8483
+ if (parsed.ok) return parsed.value;
8484
+ context.addIssue({
8485
+ code: "custom",
8486
+ message: "Expected a media asset ID"
8487
+ });
8488
+ return z.NEVER;
8489
+ });
8490
+ const nonemptyStorageValue = z.string().refine((value) => value.trim().length > 0);
8491
+ const renderableMediaAssetSchema = z.object({
8492
+ id: mediaAssetIdSchema,
8493
+ identifier: mediaIdentifierSchema,
8494
+ storageBucket: nonemptyStorageValue,
8495
+ storagePath: nonemptyStorageValue,
8496
+ mimeType: nonemptyStorageValue,
8497
+ filename: z.string().optional(),
8498
+ width: z.number().positive().nullable(),
8499
+ height: z.number().positive().nullable()
8500
+ });
8501
+ //#endregion
8407
8502
  //#region src/rendering/mediaAssets.ts
8408
8503
  function toBlocksMediaAssets(assets) {
8409
8504
  if (!assets) return void 0;
8410
- return assets.map((asset) => ({
8411
- ...asset,
8412
- id: unsafeAsMediaAssetId(asset.id)
8413
- }));
8505
+ return assets.map((asset) => renderableMediaAssetSchema.parse(asset));
8414
8506
  }
8415
8507
  //#endregion
8416
8508
  //#region src/rendering/helpers/pageRuntimeSupport.ts
@@ -4,13 +4,13 @@ import React from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/preview-next/client/runtime.tsx
6
6
  const LazySdkPreviewMode = React.lazy(async () => {
7
- return { default: (await import("../../SdkPreviewModeRuntime-CR5ypwxJ.mjs").then((n) => n.n)).SdkPreviewModeRuntime };
7
+ return { default: (await import("../../SdkPreviewModeRuntime-DaNqevI1.mjs").then((n) => n.n)).SdkPreviewModeRuntime };
8
8
  });
9
9
  const LazyPreviewShell = React.lazy(async () => {
10
- return { default: (await import("../../sdk-runtime-4cCWO_3i.mjs")).PreviewShell };
10
+ return { default: (await import("../../sdk-runtime-DWCvhJGu.mjs")).PreviewShell };
11
11
  });
12
12
  const LazyPreviewShellLayout = React.lazy(async () => {
13
- return { default: (await import("../../sdk-runtime-4cCWO_3i.mjs")).PreviewShellLayout };
13
+ return { default: (await import("../../sdk-runtime-DWCvhJGu.mjs")).PreviewShellLayout };
14
14
  });
15
15
  function SdkPreviewMode(props) {
16
16
  return /* @__PURE__ */ jsx(React.Suspense, {
@@ -8049,6 +8049,13 @@ const API_ENDPOINTS = {
8049
8049
  auth: "public",
8050
8050
  responseKind: "json"
8051
8051
  },
8052
+ demoClaimReadiness: {
8053
+ path: "/demo/claims/{claimId}/readiness",
8054
+ method: "GET",
8055
+ auth: "user",
8056
+ responseKind: "json",
8057
+ errors: []
8058
+ },
8052
8059
  demoClaimMagicLink: {
8053
8060
  path: "/demo/auth/send-magic-link",
8054
8061
  method: "POST",
@@ -8026,6 +8026,13 @@ const API_ENDPOINTS = {
8026
8026
  auth: "public",
8027
8027
  responseKind: "json"
8028
8028
  },
8029
+ demoClaimReadiness: {
8030
+ path: "/demo/claims/{claimId}/readiness",
8031
+ method: "GET",
8032
+ auth: "user",
8033
+ responseKind: "json",
8034
+ errors: []
8035
+ },
8029
8036
  demoClaimMagicLink: {
8030
8037
  path: "/demo/auth/send-magic-link",
8031
8038
  method: "POST",
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  import "./PreviewQueryProvider-AR9eEn7j.mjs";
3
- import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-CR5ypwxJ.mjs";
3
+ import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-DaNqevI1.mjs";
4
4
  export { PreviewShell, PreviewShellLayout };