@riverbankcms/sdk 0.134.0 → 0.135.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -3
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DfRhJPFQ.mjs → PreviewEditorSidebar-roNY0GVy.mjs} +4 -4
- package/dist/{PreviewEditorUI-Dppxcr_g.mjs → PreviewEditorUI-KboDbEh_.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D51gQaG3.mjs → PreviewQueryProvider-DcgaESkm.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-8CyGCXir.mjs → SdkPreviewModeRuntime-DBrF7Caa.mjs} +5 -5
- package/dist/{SiteChromeCustomizeContext-DVMTMvqA.mjs → SiteChromeCustomizeContext-DrIEpJKn.mjs} +4070 -8011
- package/dist/_dts/ai/src/contracts/proposals.d.ts +165 -165
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +15 -15
- package/dist/_dts/api/src/bookingConfig.d.ts +1 -1
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +25 -60
- package/dist/_dts/api/src/bookingOperations.d.ts +111 -161
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +123 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +13 -13
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +4 -4
- package/dist/_dts/api/src/bookingSessionSummaryTypes.d.ts +34 -0
- package/dist/_dts/api/src/bookings.d.ts +5 -9
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -7
- package/dist/_dts/api/src/communications.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +29 -109
- package/dist/_dts/api/src/eventManagementContracts.d.ts +1 -1
- package/dist/_dts/api/src/eventSeriesRegistrationEndpointDefinitions.d.ts +43 -0
- package/dist/_dts/api/src/index.d.ts +3 -4
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +32 -28
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +85 -5
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +1 -1
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +9 -100
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +7 -6
- package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +0 -32
- package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
- package/dist/_dts/api/src/siteOperations.d.ts +2 -2
- package/dist/_dts/api/src/types.d.ts +1 -1
- package/dist/_dts/api/src/{courses.d.ts → wholeSeriesOfferings.d.ts} +43 -95
- package/dist/_dts/blocks/src/client.d.ts +0 -5
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +5 -94
- package/dist/_dts/blocks/src/portal/dateFormatting.d.ts +3 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +17 -20
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +147 -42
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +10 -10
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +3 -3
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/builder.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +9 -12
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +2 -44
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +99 -59
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +19 -16
- package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +24 -247
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +13 -126
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/constants.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +1 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +7 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +7 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +28 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +12 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +53 -45
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +10 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +20 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +20 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +5 -56
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/waitlistClaimRestoration.d.ts +20 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +6 -22
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DateTimeTile.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +6 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.d.ts +1 -13
- package/dist/_dts/blocks/src/system/runtime/shared/components/LoggedInAsUser.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/MembershipHero.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/StateIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/utils/checkoutUrls.d.ts +2 -2
- package/dist/_dts/commerce/src/index.d.ts +16 -0
- package/dist/_dts/commerce/src/money.d.ts +122 -0
- package/dist/_dts/commerce/src/moneyContracts.d.ts +178 -0
- package/dist/_dts/commerce/src/moneyDateUtils.d.ts +22 -0
- package/dist/_dts/commerce/src/moneyPayments.d.ts +59 -0
- package/dist/_dts/commerce/src/moneyPlanningTime.d.ts +4 -0
- package/dist/_dts/commerce/src/moneyReceiptReadModel.d.ts +68 -0
- package/dist/_dts/commerce/src/moneyReport.d.ts +105 -0
- package/dist/_dts/commerce/src/moneyReportBreakdowns.d.ts +3 -0
- package/dist/_dts/commerce/src/moneyReportKindFilter.d.ts +4 -0
- package/dist/_dts/commerce/src/moneyReportPage.d.ts +132 -0
- package/dist/_dts/commerce/src/purchase/checkoutCollectionPlan.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/confirmationEmailPayment.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/orderCompletionEmailPlan.d.ts +3 -3
- package/dist/_dts/commerce/src/purchase/orderFulfillmentPlan.d.ts +6 -25
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -4
- package/dist/_dts/commerce/src/purchase/orderPlanningTypes.d.ts +11 -11
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/persistedCheckoutLines.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/types.d.ts +12 -8
- package/dist/_dts/commerce/src/shop/digitalFulfillment.d.ts +111 -0
- package/dist/_dts/commerce/src/shop/fulfillmentStatus.d.ts +10 -0
- package/dist/_dts/commerce/src/shop/inventoryRestore.d.ts +13 -0
- package/dist/_dts/commerce/src/shop/shippingAddress.d.ts +18 -0
- package/dist/_dts/commerce/src/types/json.d.ts +3 -0
- package/dist/_dts/commerce/src/utils/isPlainRecord.d.ts +1 -0
- package/dist/_dts/commerce/src/waitlists.d.ts +172 -0
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -30
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +2 -39
- package/dist/_dts/content-model/src/metadataConfig.d.ts +0 -1
- package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -68
- package/dist/_dts/core/src/branded.d.ts +3 -3
- package/dist/_dts/core/src/event-pricing.d.ts +6 -6
- package/dist/_dts/core/src/participants.d.ts +17 -17
- package/dist/_dts/core/src/rectification.d.ts +1 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +890 -2154
- package/dist/_dts/sdk/src/bookings/index.d.ts +4 -5
- package/dist/_dts/sdk/src/bookings/types.d.ts +34 -4
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +4 -6
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/vars/index.d.ts +0 -2
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +1 -1
- package/dist/client/{usePolling-UN4WKnaM.mjs → BookingConsentAgreement-BQqwi8Oa.mjs} +180 -4
- package/dist/client/{DiscountCodeDisclosure-CfuPOHD0.mjs → DiscountCodeDisclosure-B97aMo0V.mjs} +13 -27
- package/dist/client/{EventCombined.client-DB8Qfzi-.mjs → EventCombined.client-Bs2Iw9Q6.mjs} +3 -3
- package/dist/client/{EventListing.client-DD4X8hp4.mjs → EventListing.client-C4QUQdmg.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-QhgIBQbv.mjs → LeafletStaticMap-CwWRk69M.mjs} +1 -1
- package/dist/client/{accordion-DFXpLvwg.mjs → accordion-BA0j8Mpw.mjs} +1 -1
- package/dist/client/{bookingForm-sI05d3lk.mjs → bookingForm-Br2e41H0.mjs} +6 -7
- package/dist/client/bookings.mjs +912 -1906
- package/dist/client/{carousel-wjyWTZCh.mjs → carousel-B4dmwnpD.mjs} +1 -1
- package/dist/client/{cart-DCwdpA4i.mjs → cart-B_ckGW4b.mjs} +3 -3
- package/dist/client/{checkout-DTDW3l0R.mjs → checkout-DAyspHdf.mjs} +3 -3
- package/dist/client/{checkoutUrls-DQYC_Br-.mjs → checkoutUrls-BuseL0dw.mjs} +4 -2
- package/dist/client/client.mjs +5074 -9309
- package/dist/client/{context-TSK1CGx8.mjs → context-DljQn8L5.mjs} +15 -69
- package/dist/client/{eventCalendar-B0Zg-i_w.mjs → eventCalendar-pJu3FUod.mjs} +5 -5
- package/dist/client/{eventCombined-B8Y2wizd.mjs → eventCombined-B6Kacm9F.mjs} +3 -3
- package/dist/client/{eventDetails-DPDOwURJ.mjs → eventDetails-CaX9z1pv.mjs} +8 -8
- package/dist/client/{eventListing-CjBcmSLn.mjs → eventListing-B9aXPO-I.mjs} +3 -3
- package/dist/client/{eventRegistration-CK30HsAq.mjs → eventRegistration-CBSovBkg.mjs} +4522 -3690
- package/dist/client/{form-CUXfsABE.mjs → form-Cm0tu_7o.mjs} +2 -2
- package/dist/client/{headerSection-N-mN3rjr.mjs → headerSection-OgRtHeKS.mjs} +2 -2
- package/dist/client/hooks.mjs +430 -692
- package/dist/client/{locationMap-oiIDQMBt.mjs → locationMap-DmjcYqNM.mjs} +2 -2
- package/dist/client/{newsletterForm-CkQ2tTrM.mjs → newsletterForm-D08OZQAC.mjs} +2 -2
- package/dist/client/{productDetail-CnidyrsN.mjs → productDetail-BqZeu2P4.mjs} +3 -3
- package/dist/client/{productList-CttYcS_S.mjs → productList-mNyIF9FG.mjs} +3 -3
- package/dist/client/{propsDecoder-CeUMxI9a.mjs → propsDecoder-DwHXRm9X.mjs} +4656 -4419
- package/dist/client/rendering/client.mjs +59504 -62158
- package/dist/client/rendering/islands.mjs +17 -19
- package/dist/client/rendering.mjs +5354 -9683
- package/dist/client/{scrollToBlock-lPr1oqxB.mjs → scrollToBlock-DtmdM3v-.mjs} +2 -2
- package/dist/client/{shop-DXQtMo2O.mjs → shop-CNjZK16F.mjs} +6 -6
- package/dist/client/{shop-commerce-quDL411J.mjs → shop-commerce-DkNNao1J.mjs} +6 -6
- package/dist/client/{shop-commerce-store-Dnu-8Iub.mjs → shop-commerce-store-9WA--zuW.mjs} +1 -1
- package/dist/client/{shopShared-BWPUURvG.mjs → shopShared-CHCVfccY.mjs} +3 -3
- package/dist/client/{useEventFilters-DRhWp2_5.mjs → useEventFilters-DvuaB4ZN.mjs} +3 -3
- package/dist/preview-next/before-render.mjs +40 -161
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +40 -161
- package/dist/preview-next/middleware.mjs +40 -161
- package/dist/{previewAuthStore-BFKd4LrN.mjs → previewAuthStore-C7ksxt5b.mjs} +40 -161
- package/dist/{sdk-runtime-Ca5RD78X.mjs → sdk-runtime-3GhW4knb.mjs} +2 -2
- package/dist/{separator-CMhj6BTi.mjs → separator-D3bCWYYb.mjs} +1 -1
- package/dist/server/components.mjs +535 -2950
- package/dist/server/config-validation.mjs +430 -692
- package/dist/server/config.mjs +430 -692
- package/dist/server/data.mjs +430 -692
- package/dist/server/index.mjs +41 -162
- package/dist/server/next.mjs +549 -2964
- package/dist/server/page-converter.mjs +331 -560
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +534 -2855
- package/dist/server/rendering.mjs +535 -2950
- package/dist/server/routing.mjs +574 -1065
- package/dist/server/server.mjs +444 -706
- package/dist/server/theme-bridge.mjs +41 -1524
- package/dist/styles/index.css +41 -1348
- package/package.json +1 -1
- package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +0 -99
- package/dist/_dts/blocks/src/client/course-registration.d.ts +0 -5
- package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -134
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +0 -130
- package/dist/_dts/blocks/src/system/blocks/courses/shared/index.d.ts +0 -3
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +0 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -135
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +0 -28
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +0 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/runs.d.ts +0 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +0 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +0 -20
- package/dist/_dts/blocks/src/system/runtime/nodes/course-page-surface-scope.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.client.d.ts +0 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +0 -181
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +0 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/CoursePricingDisplay.d.ts +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/BookingModeStep.d.ts +0 -32
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/CheckIcon.d.ts +0 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/ErrorStep.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/MembershipHero.d.ts +0 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PaymentFailedStep.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PortalAuthSidebar.d.ts +0 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/StepIndicator.d.ts +0 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/SuccessStep.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/VerifyingTimeoutStep.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WaitlistStep.d.ts +0 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationActiveSteps.d.ts +0 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationErrorBoundary.d.ts +0 -25
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationTerminalContent.d.ts +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationWizard.d.ts +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/components.d.ts +0 -46
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/index.d.ts +0 -18
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/presentation.d.ts +0 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/pricing.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/types.d.ts +0 -105
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesEligibility.d.ts +0 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesPaymentVerification.d.ts +0 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationActions.d.ts +0 -35
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationPortal.d.ts +0 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationSelection.d.ts +0 -35
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationWizard.d.ts +0 -185
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesWaitlistSelection.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/utils.d.ts +0 -43
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.contract.d.ts +0 -325
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.planning.d.ts +0 -27
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesPageSurfaceScope.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesRegistrationViewState.d.ts +0 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wizardSteps.d.ts +0 -30
- package/dist/_dts/sdk/src/rendering/islands/enhancers/courseRegistration.d.ts +0 -3
- package/dist/_dts/theme-core/src/blocks/vars/course-details.d.ts +0 -16
- package/dist/_dts/theme-core/src/blocks/vars/course-registration.d.ts +0 -21
- package/dist/client/BookingConsentAgreement-BxgpGEFD.mjs +0 -160
- package/dist/client/WholeSeriesRegistrationWizard-DwtC7bCs.mjs +0 -2546
- package/dist/client/courseRegistration-A-Tg7qw_.mjs +0 -52
- package/dist/client/pricing-Caa0QWzh.mjs +0 -195
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import type { BlockButtonRole } from '../../constants/buttonRoles';
|
|
2
|
-
import type { PublicCourse } from '../../blocks/courses/shared/types';
|
|
3
|
-
import type { WholeSeriesRegistrationClientProps } from './event-registration/whole-series/types';
|
|
4
|
-
import { type InteractiveIslandProps } from '../../../contracts/islands';
|
|
5
|
-
import { type EventRegistrationPageSurfaceSubject } from './event-registration/eventScope';
|
|
6
|
-
export type CourseRegistrationSourceProps = Readonly<{
|
|
7
|
-
siteId?: string;
|
|
8
|
-
apiBaseUrl?: string;
|
|
9
|
-
portalToken?: string | null;
|
|
10
|
-
subject?: EventRegistrationPageSurfaceSubject | null;
|
|
11
|
-
courses?: PublicCourse[] | null;
|
|
12
|
-
className?: string | null;
|
|
13
|
-
showSessions?: boolean;
|
|
14
|
-
showPrice?: boolean;
|
|
15
|
-
showCapacity?: boolean;
|
|
16
|
-
showVenue?: boolean;
|
|
17
|
-
successMessage?: string;
|
|
18
|
-
waitlistMessage?: string;
|
|
19
|
-
membershipMessage?: string;
|
|
20
|
-
buttonText?: string | null;
|
|
21
|
-
buttonVariant?: BlockButtonRole;
|
|
22
|
-
stage?: 'preview' | 'published';
|
|
23
|
-
}>;
|
|
24
|
-
export type CourseRegistrationDisplay = Readonly<{
|
|
25
|
-
kind: 'course-registration';
|
|
26
|
-
state: 'shell';
|
|
27
|
-
className: string | null;
|
|
28
|
-
summaryButtonText: string;
|
|
29
|
-
}>;
|
|
30
|
-
export type CourseRegistrationHydration = Readonly<Omit<WholeSeriesRegistrationClientProps, 'runs' | 'siteId' | 'stage' | 'buttonText' | 'className'> & {
|
|
31
|
-
courses?: PublicCourse[] | null;
|
|
32
|
-
}>;
|
|
33
|
-
type CourseRegistrationIslandMeta = Readonly<{
|
|
34
|
-
siteId?: string;
|
|
35
|
-
apiBaseUrl?: string;
|
|
36
|
-
portalToken?: string | null;
|
|
37
|
-
stage?: 'preview' | 'published';
|
|
38
|
-
}>;
|
|
39
|
-
export declare function buildCourseRegistrationDisplay(source: CourseRegistrationSourceProps): CourseRegistrationDisplay;
|
|
40
|
-
export type CourseRegistrationInteractiveIslandProps = InteractiveIslandProps<CourseRegistrationIslandMeta, 'course-registration', typeof courseRegistrationBlockRuntime>;
|
|
41
|
-
export declare const courseRegistrationBlockRuntime: Readonly<{
|
|
42
|
-
kind: "client-owned";
|
|
43
|
-
buildRender: (source: Readonly<{
|
|
44
|
-
siteId?: string;
|
|
45
|
-
apiBaseUrl?: string;
|
|
46
|
-
portalToken?: string | null;
|
|
47
|
-
subject?: EventRegistrationPageSurfaceSubject | null;
|
|
48
|
-
courses?: PublicCourse[] | null;
|
|
49
|
-
className?: string | null;
|
|
50
|
-
showSessions?: boolean;
|
|
51
|
-
showPrice?: boolean;
|
|
52
|
-
showCapacity?: boolean;
|
|
53
|
-
showVenue?: boolean;
|
|
54
|
-
successMessage?: string;
|
|
55
|
-
waitlistMessage?: string;
|
|
56
|
-
membershipMessage?: string;
|
|
57
|
-
buttonText?: string | null;
|
|
58
|
-
buttonVariant?: BlockButtonRole;
|
|
59
|
-
stage?: "preview" | "published";
|
|
60
|
-
}>) => Readonly<{
|
|
61
|
-
display: Readonly<{
|
|
62
|
-
kind: "course-registration";
|
|
63
|
-
state: "shell";
|
|
64
|
-
className: string | null;
|
|
65
|
-
summaryButtonText: string;
|
|
66
|
-
}>;
|
|
67
|
-
hydration: Readonly<Omit<WholeSeriesRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "runs"> & {
|
|
68
|
-
courses?: PublicCourse[] | null;
|
|
69
|
-
}>;
|
|
70
|
-
}>;
|
|
71
|
-
contracts: Readonly<{
|
|
72
|
-
source: Readonly<{
|
|
73
|
-
encode: (value: Readonly<{
|
|
74
|
-
siteId?: string;
|
|
75
|
-
apiBaseUrl?: string;
|
|
76
|
-
portalToken?: string | null;
|
|
77
|
-
subject?: EventRegistrationPageSurfaceSubject | null;
|
|
78
|
-
courses?: PublicCourse[] | null;
|
|
79
|
-
className?: string | null;
|
|
80
|
-
showSessions?: boolean;
|
|
81
|
-
showPrice?: boolean;
|
|
82
|
-
showCapacity?: boolean;
|
|
83
|
-
showVenue?: boolean;
|
|
84
|
-
successMessage?: string;
|
|
85
|
-
waitlistMessage?: string;
|
|
86
|
-
membershipMessage?: string;
|
|
87
|
-
buttonText?: string | null;
|
|
88
|
-
buttonVariant?: BlockButtonRole;
|
|
89
|
-
stage?: "preview" | "published";
|
|
90
|
-
}>) => unknown;
|
|
91
|
-
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
92
|
-
siteId?: string;
|
|
93
|
-
apiBaseUrl?: string;
|
|
94
|
-
portalToken?: string | null;
|
|
95
|
-
subject?: EventRegistrationPageSurfaceSubject | null;
|
|
96
|
-
courses?: PublicCourse[] | null;
|
|
97
|
-
className?: string | null;
|
|
98
|
-
showSessions?: boolean;
|
|
99
|
-
showPrice?: boolean;
|
|
100
|
-
showCapacity?: boolean;
|
|
101
|
-
showVenue?: boolean;
|
|
102
|
-
successMessage?: string;
|
|
103
|
-
waitlistMessage?: string;
|
|
104
|
-
membershipMessage?: string;
|
|
105
|
-
buttonText?: string | null;
|
|
106
|
-
buttonVariant?: BlockButtonRole;
|
|
107
|
-
stage?: "preview" | "published";
|
|
108
|
-
}>>;
|
|
109
|
-
}>;
|
|
110
|
-
render: Readonly<{
|
|
111
|
-
encode: (value: Readonly<{
|
|
112
|
-
display: Readonly<{
|
|
113
|
-
kind: "course-registration";
|
|
114
|
-
state: "shell";
|
|
115
|
-
className: string | null;
|
|
116
|
-
summaryButtonText: string;
|
|
117
|
-
}>;
|
|
118
|
-
hydration: Readonly<Omit<WholeSeriesRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "runs"> & {
|
|
119
|
-
courses?: PublicCourse[] | null;
|
|
120
|
-
}>;
|
|
121
|
-
}>) => unknown;
|
|
122
|
-
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
123
|
-
display: Readonly<{
|
|
124
|
-
kind: "course-registration";
|
|
125
|
-
state: "shell";
|
|
126
|
-
className: string | null;
|
|
127
|
-
summaryButtonText: string;
|
|
128
|
-
}>;
|
|
129
|
-
hydration: Readonly<Omit<WholeSeriesRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "runs"> & {
|
|
130
|
-
courses?: PublicCourse[] | null;
|
|
131
|
-
}>;
|
|
132
|
-
}>>;
|
|
133
|
-
}>;
|
|
134
|
-
}>;
|
|
135
|
-
}>;
|
|
136
|
-
export declare const courseRegistrationInteractiveIslandPropsCodec: Readonly<{
|
|
137
|
-
encode: (value: Readonly<Readonly<{
|
|
138
|
-
siteId?: string;
|
|
139
|
-
apiBaseUrl?: string;
|
|
140
|
-
portalToken?: string | null;
|
|
141
|
-
stage?: "preview" | "published";
|
|
142
|
-
}> & {
|
|
143
|
-
renderKind: "client-owned";
|
|
144
|
-
render: Readonly<{
|
|
145
|
-
mode: "course-registration";
|
|
146
|
-
} & Readonly<{
|
|
147
|
-
display: Readonly<{
|
|
148
|
-
kind: "course-registration";
|
|
149
|
-
state: "shell";
|
|
150
|
-
className: string | null;
|
|
151
|
-
summaryButtonText: string;
|
|
152
|
-
}>;
|
|
153
|
-
hydration: Readonly<Omit<WholeSeriesRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "runs"> & {
|
|
154
|
-
courses?: PublicCourse[] | null;
|
|
155
|
-
}>;
|
|
156
|
-
}>>;
|
|
157
|
-
}>) => unknown;
|
|
158
|
-
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<Readonly<{
|
|
159
|
-
siteId?: string;
|
|
160
|
-
apiBaseUrl?: string;
|
|
161
|
-
portalToken?: string | null;
|
|
162
|
-
stage?: "preview" | "published";
|
|
163
|
-
}> & {
|
|
164
|
-
renderKind: "client-owned";
|
|
165
|
-
render: Readonly<{
|
|
166
|
-
mode: "course-registration";
|
|
167
|
-
} & Readonly<{
|
|
168
|
-
display: Readonly<{
|
|
169
|
-
kind: "course-registration";
|
|
170
|
-
state: "shell";
|
|
171
|
-
className: string | null;
|
|
172
|
-
summaryButtonText: string;
|
|
173
|
-
}>;
|
|
174
|
-
hydration: Readonly<Omit<WholeSeriesRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "runs"> & {
|
|
175
|
-
courses?: PublicCourse[] | null;
|
|
176
|
-
}>;
|
|
177
|
-
}>>;
|
|
178
|
-
}>>;
|
|
179
|
-
}>;
|
|
180
|
-
export declare function buildCourseRegistrationInteractiveIslandProps(props: CourseRegistrationSourceProps): CourseRegistrationInteractiveIslandProps;
|
|
181
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type CourseRegistrationSourceProps } from './course-registration.interactive';
|
|
3
|
-
type CourseRegistrationServerProps = CourseRegistrationSourceProps & Readonly<{
|
|
4
|
-
blockId?: string | null;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}>;
|
|
7
|
-
/**
|
|
8
|
-
* Server-safe placeholder for course registration.
|
|
9
|
-
* Provides a static container for island hydration without importing client hooks.
|
|
10
|
-
*/
|
|
11
|
-
export declare function CourseRegistrationSSR({ blockId, siteId, apiBaseUrl, portalToken, subject, courses, className, showSessions, showPrice, showCapacity, showVenue, successMessage, waitlistMessage, membershipMessage, buttonText, buttonVariant, stage, children, }: CourseRegistrationServerProps): React.JSX.Element;
|
|
12
|
-
export default CourseRegistrationSSR;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ResolvedCoursePricingState } from '../../../blocks/courses/shared';
|
|
3
|
-
type CoursePricingDisplayProps = {
|
|
4
|
-
pricing: ResolvedCoursePricingState;
|
|
5
|
-
acceptedItems: readonly string[];
|
|
6
|
-
};
|
|
7
|
-
export declare function CoursePricingDisplay({ pricing, acceptedItems, }: CoursePricingDisplayProps): React.JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Booking mode selection step.
|
|
3
|
-
* Allows user to choose between using membership or paying by card.
|
|
4
|
-
* Shows membership hero if single eligible membership is selected.
|
|
5
|
-
*/
|
|
6
|
-
import type { BookingMode } from './types';
|
|
7
|
-
type EligibleMembership = {
|
|
8
|
-
customerMembershipId: string;
|
|
9
|
-
membershipName: string;
|
|
10
|
-
};
|
|
11
|
-
type BookingModeStepProps = {
|
|
12
|
-
/** Current booking mode selection */
|
|
13
|
-
bookingMode: BookingMode;
|
|
14
|
-
/** Callback when booking mode changes */
|
|
15
|
-
onBookingModeChange: (mode: BookingMode) => void;
|
|
16
|
-
/** List of eligible memberships */
|
|
17
|
-
eligibleMemberships: EligibleMembership[];
|
|
18
|
-
/** Currently selected membership ID */
|
|
19
|
-
selectedMembershipId: string | null;
|
|
20
|
-
/** Callback when selected membership changes */
|
|
21
|
-
onMembershipSelect: (id: string | null) => void;
|
|
22
|
-
/** Run price in cents */
|
|
23
|
-
priceCents: number | null;
|
|
24
|
-
/** Currency code */
|
|
25
|
-
currency: string;
|
|
26
|
-
/** Whether to show "Enrolling for someone else?" link */
|
|
27
|
-
showEnrollForOtherLink?: boolean;
|
|
28
|
-
/** Callback when "Enrolling for someone else?" is clicked */
|
|
29
|
-
onEnrollForOther?: () => void;
|
|
30
|
-
};
|
|
31
|
-
export declare function BookingModeStep({ bookingMode, onBookingModeChange, eligibleMemberships, selectedMembershipId, onMembershipSelect, priceCents, currency, showEnrollForOtherLink, onEnrollForOther, }: BookingModeStepProps): import("react").JSX.Element;
|
|
32
|
-
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/ErrorStep.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error terminal state component.
|
|
3
|
-
* Shows error message with retry option.
|
|
4
|
-
*/
|
|
5
|
-
import type { BlockButtonRole } from '../../../../constants/buttonRoles';
|
|
6
|
-
type ErrorStepProps = {
|
|
7
|
-
/** Error message to display */
|
|
8
|
-
message: string;
|
|
9
|
-
/** Button text */
|
|
10
|
-
buttonText?: string;
|
|
11
|
-
/** Button style variant */
|
|
12
|
-
buttonVariant?: BlockButtonRole;
|
|
13
|
-
/** Callback when retry is clicked */
|
|
14
|
-
onRetry: () => void;
|
|
15
|
-
};
|
|
16
|
-
export declare function ErrorStep({ message, buttonText, buttonVariant, onRetry, }: ErrorStepProps): import("react").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Membership Hero for run registration.
|
|
3
|
-
* Thin wrapper around the shared MembershipHero with the canonical Event class prefix.
|
|
4
|
-
*/
|
|
5
|
-
type MembershipHeroProps = {
|
|
6
|
-
/** Name of the membership that covers this run */
|
|
7
|
-
membershipName: string;
|
|
8
|
-
/** Optional callback for "booking for someone else" */
|
|
9
|
-
onBookForSomeoneElse?: () => void;
|
|
10
|
-
};
|
|
11
|
-
export declare function MembershipHero(props: MembershipHeroProps): import("react").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Payment failed terminal state component.
|
|
3
|
-
* Shows when payment could not be processed.
|
|
4
|
-
*/
|
|
5
|
-
import type { BlockButtonRole } from '../../../../constants/buttonRoles';
|
|
6
|
-
type PaymentFailedStepProps = {
|
|
7
|
-
/** Error message to display */
|
|
8
|
-
message?: string;
|
|
9
|
-
/** Button text */
|
|
10
|
-
buttonText?: string;
|
|
11
|
-
/** Button style variant */
|
|
12
|
-
buttonVariant?: BlockButtonRole;
|
|
13
|
-
/** Callback when retry is clicked */
|
|
14
|
-
onRetry: () => void;
|
|
15
|
-
};
|
|
16
|
-
export declare function PaymentFailedStep({ message, buttonText, buttonVariant, onRetry, }: PaymentFailedStepProps): import("react").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type PortalAuthSidebarProps = {
|
|
2
|
-
/** Callback when user successfully sends magic link */
|
|
3
|
-
onMagicLinkSent?: () => void;
|
|
4
|
-
autoOpen?: boolean;
|
|
5
|
-
variant?: 'membership' | 'waitlist-claim';
|
|
6
|
-
loginMessage?: string | null;
|
|
7
|
-
};
|
|
8
|
-
export declare function PortalAuthSidebar({ onMagicLinkSent, autoOpen, variant, loginMessage, }: PortalAuthSidebarProps): import("react").JSX.Element;
|
|
9
|
-
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/StepIndicator.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Step indicator component for the run registration wizard.
|
|
3
|
-
* Thin wrapper around the shared StepIndicator with the canonical Event class prefix.
|
|
4
|
-
*/
|
|
5
|
-
import { type StepIndicatorBaseProps } from '../../../shared';
|
|
6
|
-
export declare function StepIndicator(props: StepIndicatorBaseProps): import("react").JSX.Element;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/SuccessStep.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Success terminal state component.
|
|
3
|
-
* Shows confirmation after successful enrollment.
|
|
4
|
-
*/
|
|
5
|
-
type SuccessStepProps = {
|
|
6
|
-
/** Whether enrollment used a membership */
|
|
7
|
-
usedMembership?: boolean;
|
|
8
|
-
/** Message shown for regular enrollment */
|
|
9
|
-
successMessage: string;
|
|
10
|
-
/** Message shown when enrolled using membership */
|
|
11
|
-
membershipMessage: string;
|
|
12
|
-
};
|
|
13
|
-
export declare function SuccessStep({ usedMembership, successMessage, membershipMessage, }: SuccessStepProps): import("react").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Verifying timeout terminal state component.
|
|
3
|
-
* Shows when payment verification takes too long.
|
|
4
|
-
*/
|
|
5
|
-
import type { BlockButtonRole } from '../../../../constants/buttonRoles';
|
|
6
|
-
type VerifyingTimeoutStepProps = {
|
|
7
|
-
/** Button text */
|
|
8
|
-
buttonText?: string;
|
|
9
|
-
/** Button style variant */
|
|
10
|
-
buttonVariant?: BlockButtonRole;
|
|
11
|
-
/** Callback when check again is clicked */
|
|
12
|
-
onCheckAgain: () => void;
|
|
13
|
-
/** Optional support email to display */
|
|
14
|
-
supportEmail?: string;
|
|
15
|
-
};
|
|
16
|
-
export declare function VerifyingTimeoutStep({ buttonText, buttonVariant, onCheckAgain, supportEmail, }: VerifyingTimeoutStepProps): import("react").JSX.Element;
|
|
17
|
-
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WaitlistStep.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Waitlist terminal state component.
|
|
3
|
-
* Shows confirmation when user is added to waitlist.
|
|
4
|
-
*/
|
|
5
|
-
type WaitlistStepProps = {
|
|
6
|
-
/** Message to display */
|
|
7
|
-
message: string;
|
|
8
|
-
/** User's position on the waitlist */
|
|
9
|
-
position?: number;
|
|
10
|
-
};
|
|
11
|
-
export declare function WaitlistStep({ message, position }: WaitlistStepProps): import("react").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { WholeSeriesRegistrationClientProps } from './types';
|
|
2
|
-
import type { useWholeSeriesRegistrationWizard } from './useWholeSeriesRegistrationWizard';
|
|
3
|
-
export type WholeSeriesWizardState = ReturnType<typeof useWholeSeriesRegistrationWizard>;
|
|
4
|
-
type ActiveStepProps = Readonly<{
|
|
5
|
-
wizard: WholeSeriesWizardState;
|
|
6
|
-
display: Required<Pick<WholeSeriesRegistrationClientProps, 'showSessions' | 'showPrice' | 'showCapacity' | 'showVenue' | 'buttonText'>> & Pick<WholeSeriesRegistrationClientProps, 'buttonVariant'>;
|
|
7
|
-
}>;
|
|
8
|
-
export declare function WholeSeriesRegistrationActiveStep({ wizard, display, }: ActiveStepProps): import("react").JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Component, type ErrorInfo, type ReactNode } from 'react';
|
|
2
|
-
import { type WholeSeriesRegistrationPresentationKind } from './presentation';
|
|
3
|
-
interface ErrorBoundaryState {
|
|
4
|
-
hasError: boolean;
|
|
5
|
-
error?: Error;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Error boundary wrapper for run registration.
|
|
9
|
-
* Catches render errors and displays a fallback UI.
|
|
10
|
-
*/
|
|
11
|
-
export declare class WholeSeriesRegistrationErrorBoundary extends Component<{
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
className?: string;
|
|
14
|
-
presentationKind?: WholeSeriesRegistrationPresentationKind;
|
|
15
|
-
}, ErrorBoundaryState> {
|
|
16
|
-
constructor(props: {
|
|
17
|
-
children: ReactNode;
|
|
18
|
-
className?: string;
|
|
19
|
-
presentationKind?: WholeSeriesRegistrationPresentationKind;
|
|
20
|
-
});
|
|
21
|
-
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
22
|
-
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
23
|
-
render(): ReactNode;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { WholeSeriesRegistrationClientProps } from './types';
|
|
2
|
-
import type { WholeSeriesWizardState } from './WholeSeriesRegistrationActiveSteps';
|
|
3
|
-
type TerminalProps = Readonly<{
|
|
4
|
-
wizard: WholeSeriesWizardState;
|
|
5
|
-
copy: Required<Pick<WholeSeriesRegistrationClientProps, 'successMessage' | 'waitlistMessage' | 'membershipMessage'>> & Pick<WholeSeriesRegistrationClientProps, 'buttonVariant'>;
|
|
6
|
-
}>;
|
|
7
|
-
export declare function WholeSeriesRegistrationTerminalContent({ wizard, copy, }: TerminalProps): import("react").JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { WholeSeriesRegistrationClientProps } from './types';
|
|
2
|
-
import { type WholeSeriesRegistrationPresentationKind } from './presentation';
|
|
3
|
-
type WholeSeriesRegistrationWizardProps = WholeSeriesRegistrationClientProps & Readonly<{
|
|
4
|
-
/** Temporary adapter input while persisted Course blocks are cut over. */
|
|
5
|
-
presentationKind?: WholeSeriesRegistrationPresentationKind;
|
|
6
|
-
}>;
|
|
7
|
-
export declare function WholeSeriesRegistrationWizard(props: WholeSeriesRegistrationWizardProps): import("react").JSX.Element;
|
|
8
|
-
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/components.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PublicWholeSeriesOffering } from '../../../../blocks/events/whole-series';
|
|
3
|
-
import { type ResolvedWholeSeriesPricingState } from '../../../../blocks/events/whole-series';
|
|
4
|
-
import type { FormData } from './types';
|
|
5
|
-
interface RunCardProps {
|
|
6
|
-
run: PublicWholeSeriesOffering;
|
|
7
|
-
isSelected: boolean;
|
|
8
|
-
onSelect: () => void;
|
|
9
|
-
showSessions: boolean;
|
|
10
|
-
showPrice: boolean;
|
|
11
|
-
showCapacity: boolean;
|
|
12
|
-
showVenue: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare function RunCard({ run, isSelected, onSelect, showSessions, showPrice, showCapacity, showVenue, }: RunCardProps): React.JSX.Element;
|
|
15
|
-
interface RunSummaryProps {
|
|
16
|
-
run: PublicWholeSeriesOffering;
|
|
17
|
-
pricing: ResolvedWholeSeriesPricingState;
|
|
18
|
-
showSessions: boolean;
|
|
19
|
-
showVenue: boolean;
|
|
20
|
-
showPrice: boolean;
|
|
21
|
-
showMembershipNote: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare function RunSummary({ run, pricing, showSessions, showVenue, showPrice, showMembershipNote, }: RunSummaryProps): React.JSX.Element;
|
|
24
|
-
interface WholeSeriesPricingSelectorProps {
|
|
25
|
-
pricing: ResolvedWholeSeriesPricingState;
|
|
26
|
-
selectedPricingOptionId: string | null;
|
|
27
|
-
onSelect: (pricingOptionId: string) => void;
|
|
28
|
-
}
|
|
29
|
-
export declare function WholeSeriesPricingSelector({ pricing, selectedPricingOptionId, onSelect, }: WholeSeriesPricingSelectorProps): React.JSX.Element | null;
|
|
30
|
-
interface WholeSeriesSlidingScaleInputProps {
|
|
31
|
-
pricing: ResolvedWholeSeriesPricingState;
|
|
32
|
-
value: string;
|
|
33
|
-
onChange: (value: string) => void;
|
|
34
|
-
}
|
|
35
|
-
export declare function WholeSeriesSlidingScaleInput({ pricing, value, onChange, }: WholeSeriesSlidingScaleInputProps): React.JSX.Element | null;
|
|
36
|
-
interface EnrollmentFormProps {
|
|
37
|
-
formData: FormData;
|
|
38
|
-
errors: Partial<Record<keyof FormData, string>>;
|
|
39
|
-
onChange: (data: FormData) => void;
|
|
40
|
-
isEmailLocked: boolean;
|
|
41
|
-
isLoading: boolean;
|
|
42
|
-
onLogout?: () => void;
|
|
43
|
-
consent: PublicWholeSeriesOffering['consent'];
|
|
44
|
-
}
|
|
45
|
-
export declare function EnrollmentForm({ formData, errors, onChange, isEmailLocked, isLoading, onLogout, consent, }: EnrollmentFormProps): React.JSX.Element;
|
|
46
|
-
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run Registration Block Module
|
|
3
|
-
*
|
|
4
|
-
* Exports types, utilities, and components for run enrollment.
|
|
5
|
-
*/
|
|
6
|
-
export type { EnrollmentStep, BookingMode, FormData, PortalAuthState, EnrollmentResult, ButtonVariant, WholeSeriesRegistrationBaseProps, WholeSeriesRegistrationServerProps, WholeSeriesRegistrationClientProps, } from './types';
|
|
7
|
-
export { formatPrice, formatDate, formatTime, formatDateTime, validateFormData, buildCheckoutReturnUrls, WHOLE_SERIES_REGISTRATION_ANCHOR_ID, } from './utils';
|
|
8
|
-
export { WIZARD_STEPS, STEP_LABELS, getWizardStepsForContext, getStepNumber, getStepLabel, getStepLabels, } from './wizardSteps';
|
|
9
|
-
export { CheckIcon } from './CheckIcon';
|
|
10
|
-
export { StepIndicator } from './StepIndicator';
|
|
11
|
-
export { MembershipHero } from './MembershipHero';
|
|
12
|
-
export { BookingModeStep } from './BookingModeStep';
|
|
13
|
-
export { PortalAuthSidebar } from './PortalAuthSidebar';
|
|
14
|
-
export { SuccessStep } from './SuccessStep';
|
|
15
|
-
export { ErrorStep } from './ErrorStep';
|
|
16
|
-
export { VerifyingTimeoutStep } from './VerifyingTimeoutStep';
|
|
17
|
-
export { PaymentFailedStep } from './PaymentFailedStep';
|
|
18
|
-
export { WaitlistStep } from './WaitlistStep';
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/presentation.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type WholeSeriesRegistrationPresentationKind = 'event' | 'temporary-course-adapter';
|
|
2
|
-
export type WholeSeriesRegistrationPresentation = Readonly<{
|
|
3
|
-
dataBlock: 'event-registration' | 'course-registration';
|
|
4
|
-
anchorId: 'event-registration' | 'course-registration';
|
|
5
|
-
rootClass: 'event-registration' | 'course-registration';
|
|
6
|
-
}>;
|
|
7
|
-
export declare function resolveWholeSeriesRegistrationPresentation(kind: WholeSeriesRegistrationPresentationKind): WholeSeriesRegistrationPresentation;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/pricing.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ResolvedWholeSeriesPricingState } from '../../../../blocks/events/whole-series';
|
|
2
|
-
export type WholeSeriesPricingSelection = Readonly<{
|
|
3
|
-
pricingOptionId: string | null;
|
|
4
|
-
slidingAmountInput: string;
|
|
5
|
-
}>;
|
|
6
|
-
export declare function parseCurrencyInputToCents(value: string): number | null;
|
|
7
|
-
export declare function formatCentsAsCurrencyInput(amount: number): string;
|
|
8
|
-
export declare function getMissingWholeSeriesPricingSelectionMessage(pricing: ResolvedWholeSeriesPricingState | null): string | null;
|
|
9
|
-
export declare function buildWholeSeriesPricingOptionPayload(pricing: ResolvedWholeSeriesPricingState | null): {
|
|
10
|
-
pricingOptionId?: string;
|
|
11
|
-
selectedSlidingAmount?: number;
|
|
12
|
-
};
|
|
13
|
-
export declare function resolveHasWholeSeriesPayment(pricing: ResolvedWholeSeriesPricingState | null): boolean;
|
|
14
|
-
export declare function defaultWholeSeriesPricingSelection(pricing: ResolvedWholeSeriesPricingState, previousOptionId: string | null): WholeSeriesPricingSelection;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/types.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run Registration Block Types
|
|
3
|
-
*
|
|
4
|
-
* Shared types for server and client components.
|
|
5
|
-
*/
|
|
6
|
-
import type { PublicWholeSeriesOffering } from '../../../../blocks/events/whole-series';
|
|
7
|
-
import type { ButtonVariant as SharedButtonVariant } from '../../../shared';
|
|
8
|
-
import type { EventRegistrationPageSurfaceSubject } from '../eventScope';
|
|
9
|
-
export type { FormData } from '../../../shared';
|
|
10
|
-
export type ButtonVariant = SharedButtonVariant;
|
|
11
|
-
/**
|
|
12
|
-
* Enrollment wizard step
|
|
13
|
-
*/
|
|
14
|
-
export type EnrollmentStep = 'select-run' | 'enter-details' | 'booking-mode' | 'select-payment' | 'submitting' | 'redirecting' | 'verifying-payment' | 'verifying-timeout' | 'payment-failed' | 'success' | 'waitlist' | 'error';
|
|
15
|
-
/**
|
|
16
|
-
* Booking mode for payment selection
|
|
17
|
-
*/
|
|
18
|
-
export type BookingMode = 'membership' | 'card' | null;
|
|
19
|
-
/**
|
|
20
|
-
* Portal authentication state
|
|
21
|
-
*/
|
|
22
|
-
export type PortalAuthState = 'checking' | 'authenticated' | 'unauthenticated';
|
|
23
|
-
/**
|
|
24
|
-
* Enrollment result from API
|
|
25
|
-
*/
|
|
26
|
-
export type EnrollmentResult = {
|
|
27
|
-
status: 'enrolled' | 'waitlist';
|
|
28
|
-
waitlistPosition?: number;
|
|
29
|
-
usedMembership?: boolean;
|
|
30
|
-
};
|
|
31
|
-
export type WholeSeriesRegistrationWizardActionResult = Readonly<{
|
|
32
|
-
kind: 'state-updated';
|
|
33
|
-
}> | Readonly<{
|
|
34
|
-
kind: 'checkout-redirect';
|
|
35
|
-
checkoutUrl: string;
|
|
36
|
-
}> | Readonly<{
|
|
37
|
-
kind: 'validation-failed';
|
|
38
|
-
}> | Readonly<{
|
|
39
|
-
kind: 'blocked';
|
|
40
|
-
message: string;
|
|
41
|
-
}> | Readonly<{
|
|
42
|
-
kind: 'failed';
|
|
43
|
-
message: string;
|
|
44
|
-
}>;
|
|
45
|
-
/**
|
|
46
|
-
* Base props shared between server and client components
|
|
47
|
-
*/
|
|
48
|
-
export interface WholeSeriesRegistrationBaseProps {
|
|
49
|
-
/** Native page-surface subject for series/offering-owned run pages. */
|
|
50
|
-
subject?: EventRegistrationPageSurfaceSubject | null;
|
|
51
|
-
/** List of available runs from data loader */
|
|
52
|
-
runs?: PublicWholeSeriesOffering[] | null;
|
|
53
|
-
/** Display the list of run sessions */
|
|
54
|
-
showSessions?: boolean;
|
|
55
|
-
/** Display the run price */
|
|
56
|
-
showPrice?: boolean;
|
|
57
|
-
/** Display remaining enrollment capacity */
|
|
58
|
-
showCapacity?: boolean;
|
|
59
|
-
/** Display venue information */
|
|
60
|
-
showVenue?: boolean;
|
|
61
|
-
/** Message shown after successful enrollment */
|
|
62
|
-
successMessage?: string;
|
|
63
|
-
/** Message when added to waitlist */
|
|
64
|
-
waitlistMessage?: string;
|
|
65
|
-
/** Message when enrolled using a membership */
|
|
66
|
-
membershipMessage?: string;
|
|
67
|
-
/** Text for the enrollment submit button */
|
|
68
|
-
buttonText?: string;
|
|
69
|
-
/** Button style variant */
|
|
70
|
-
buttonVariant?: ButtonVariant;
|
|
71
|
-
/** Additional CSS class */
|
|
72
|
-
className?: string;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Server component props (extends base with SSR-specific fields)
|
|
76
|
-
*/
|
|
77
|
-
export interface WholeSeriesRegistrationServerProps extends WholeSeriesRegistrationBaseProps {
|
|
78
|
-
blockId?: string | null;
|
|
79
|
-
siteId?: string;
|
|
80
|
-
/** API base URL for client-side fetching */
|
|
81
|
-
apiBaseUrl?: string;
|
|
82
|
-
/** Portal session token for Bearer auth */
|
|
83
|
-
portalToken?: string | null;
|
|
84
|
-
/** Stage for preview mode */
|
|
85
|
-
stage?: 'preview' | 'published';
|
|
86
|
-
children?: React.ReactNode;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Client component props
|
|
90
|
-
*/
|
|
91
|
-
export interface WholeSeriesRegistrationClientProps extends WholeSeriesRegistrationBaseProps {
|
|
92
|
-
/** @deprecated Site ID is now provided by BlockApiProvider context */
|
|
93
|
-
siteId?: string;
|
|
94
|
-
/** @deprecated Stage is now controlled by BlockApiProvider's isPreview config */
|
|
95
|
-
stage?: 'preview' | 'published';
|
|
96
|
-
}
|
|
97
|
-
export type WholeSeriesRegistrationWizardOptions = Readonly<{
|
|
98
|
-
/**
|
|
99
|
-
* Receives checkout destinations for headless consumers. The default UI
|
|
100
|
-
* navigates automatically when this callback is absent.
|
|
101
|
-
*/
|
|
102
|
-
onCheckoutRedirect?: (checkoutUrl: string) => void;
|
|
103
|
-
/** Internal render anchor; the Course adapter preserves existing return URLs. */
|
|
104
|
-
anchorId?: 'event-registration' | 'course-registration';
|
|
105
|
-
}>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { PublicWholeSeriesOffering } from '../../../../blocks/events/whole-series';
|
|
2
|
-
import type { BlockApiClient } from '../../../api';
|
|
3
|
-
import type { WholeSeriesEligibilityResponse } from '../../../api/types';
|
|
4
|
-
import type { PortalAuthState } from './types';
|
|
5
|
-
export type PaymentChoice = 'checkout' | 'membership';
|
|
6
|
-
export declare function useWholeSeriesEligibility(input: Readonly<{
|
|
7
|
-
api: BlockApiClient;
|
|
8
|
-
selectedRun: PublicWholeSeriesOffering | null;
|
|
9
|
-
hasPaidSelection: boolean;
|
|
10
|
-
portalAuthState: PortalAuthState;
|
|
11
|
-
waitlistClaimToken: string | null;
|
|
12
|
-
}>): {
|
|
13
|
-
eligibilityLoading: boolean;
|
|
14
|
-
eligibilityError: string | null;
|
|
15
|
-
runEligibility: WholeSeriesEligibilityResponse | null;
|
|
16
|
-
eligibleMemberships: Readonly<{
|
|
17
|
-
customerMembershipId: string;
|
|
18
|
-
membershipName: string;
|
|
19
|
-
}>[];
|
|
20
|
-
paymentChoice: PaymentChoice;
|
|
21
|
-
choosePaymentChoice: (choice: PaymentChoice) => void;
|
|
22
|
-
selectedMembershipId: string | null;
|
|
23
|
-
chooseMembership: (membershipId: string | null) => void;
|
|
24
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BlockApiClient } from '../../../api';
|
|
2
|
-
import type { EnrollmentResult, EnrollmentStep } from './types';
|
|
3
|
-
import type { WholeSeriesRegistrationLocation } from './useWholeSeriesRegistrationSelection';
|
|
4
|
-
type VerificationSetters = Readonly<{
|
|
5
|
-
setStep: (step: EnrollmentStep) => void;
|
|
6
|
-
setErrorMessage: (message: string) => void;
|
|
7
|
-
setEnrollmentResult: (result: EnrollmentResult) => void;
|
|
8
|
-
}>;
|
|
9
|
-
export declare function useWholeSeriesPaymentVerification(api: BlockApiClient, setters: VerificationSetters, anchorId?: string, location?: WholeSeriesRegistrationLocation): void;
|
|
10
|
-
export {};
|