@riverbankcms/sdk 0.132.0 → 0.135.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -3
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DKQ5eFK9.mjs → PreviewEditorSidebar-roNY0GVy.mjs} +4 -4
- package/dist/{PreviewEditorUI-CNTcOjCC.mjs → PreviewEditorUI-KboDbEh_.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D51gQaG3.mjs → PreviewQueryProvider-DcgaESkm.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DJu3qu33.mjs → SdkPreviewModeRuntime-DBrF7Caa.mjs} +48 -17
- package/dist/{SiteChromeCustomizeContext-2TzT3vbj.mjs → SiteChromeCustomizeContext-DrIEpJKn.mjs} +4351 -7964
- package/dist/_dts/ai/src/contracts/proposals.d.ts +549 -549
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +234 -234
- package/dist/_dts/api/src/accountApi.d.ts +5 -5
- package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +1 -1
- 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 -173
- 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 +7 -11
- 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/contentRuntime.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +30 -110
- 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/navigation/contracts.d.ts +9 -6
- package/dist/_dts/api/src/navigation/linkResolver.d.ts +6 -2
- package/dist/_dts/api/src/navigation/types.d.ts +23 -6
- package/dist/_dts/api/src/navigation.d.ts +1 -1
- package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
- package/dist/_dts/api/src/publicBookingService.d.ts +15 -0
- 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 +88 -6
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +1 -1
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +9 -98
- 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 +2 -2
- package/dist/_dts/api/src/sdkThemeWire.d.ts +50 -50
- package/dist/_dts/api/src/siteBanner.d.ts +4 -2
- package/dist/_dts/api/src/siteOperations.d.ts +2 -2
- package/dist/_dts/api/src/types.d.ts +2 -2
- package/dist/_dts/api/src/webhooks.d.ts +12 -12
- package/dist/_dts/api/src/{courses.d.ts → wholeSeriesOfferings.d.ts} +43 -95
- package/dist/_dts/blocks/src/client.d.ts +1 -6
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +33 -166
- package/dist/_dts/blocks/src/index.d.ts +3 -2
- 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/primitives/content/components/RichText.d.ts +2 -2
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +1 -0
- 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 +46 -24
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/schemas.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +6 -0
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +148 -148
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +5 -4
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/shared/bookingConsent.d.ts +36 -0
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/hydrateLinks.d.ts +9 -2
- package/dist/_dts/blocks/src/system/manifest/resolveBlockData.d.ts +8 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +79 -79
- 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/appointments.d.ts +2 -11
- 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 +100 -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/multi-step/DynamicFormFields.d.ts +3 -19
- 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/hooks/useSelectedAppointmentConsentForm.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.consent.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.field-values.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.fields.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +38 -144
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +5 -19
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -2
- 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/AttendeeDetailsStep.d.ts +2 -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/registrationSurface.d.ts +18 -1
- 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 +24 -9
- 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/validation.d.ts +2 -1
- 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 +40 -18
- 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/BookingConsentAgreement.d.ts +7 -0
- 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 +2 -1
- package/dist/_dts/blocks/src/system/runtime/shared/utils/checkoutUrls.d.ts +2 -2
- package/dist/_dts/blocks/src/system/types/link.d.ts +7 -1
- 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/content-types/schema.d.ts +4 -4
- 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/booking-consent.d.ts +8 -0
- 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/index.d.ts +1 -0
- 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 +899 -2157
- package/dist/_dts/db/src/schemas/forms.d.ts +21 -21
- package/dist/_dts/db/src/types/jsonb.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +2 -1
- package/dist/_dts/editor/src/primitives/rich-text/config.d.ts +2 -1
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/linkPopoverUtils.d.ts +3 -2
- package/dist/_dts/editor/src/primitives/rich-text/useRichTextEditor.d.ts +3 -4
- package/dist/_dts/media-core/src/usageScanner.d.ts +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +4 -5
- package/dist/_dts/sdk/src/bookings/types.d.ts +8 -60
- package/dist/_dts/sdk/src/config/validation.d.ts +30 -30
- package/dist/_dts/sdk/src/contracts/content.d.ts +10 -36
- package/dist/_dts/sdk/src/contracts/rendering.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +9 -9
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -19
- 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/accordions/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/blocks/vars/index.d.ts +0 -2
- package/dist/_dts/theme-core/src/buttons/types.d.ts +12 -12
- package/dist/_dts/theme-core/src/cards/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +72 -72
- package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +82 -82
- 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/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +1 -1
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/callout.d.ts +1 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/client/{usePolling-M5jG675x.mjs → BookingConsentAgreement-BQqwi8Oa.mjs} +180 -4
- package/dist/client/{DiscountCodeDisclosure-DO7llLxm.mjs → DiscountCodeDisclosure-B97aMo0V.mjs} +13 -27
- package/dist/client/{EventCombined.client-xID7zN__.mjs → EventCombined.client-Bs2Iw9Q6.mjs} +3 -3
- package/dist/client/{EventListing.client-CriBslp0.mjs → EventListing.client-C4QUQdmg.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DYmHnM8g.mjs → LeafletStaticMap-CwWRk69M.mjs} +1 -1
- package/dist/client/{accordion-CgFbnnnQ.mjs → accordion-BA0j8Mpw.mjs} +1 -1
- package/dist/client/{bookingForm-dUyGpbxc.mjs → bookingForm-Br2e41H0.mjs} +72 -47
- package/dist/client/bookings.mjs +1987 -2132
- package/dist/client/{carousel-BvBwkUzx.mjs → carousel-B4dmwnpD.mjs} +1 -1
- package/dist/client/{cart-DiZENT2E.mjs → cart-B_ckGW4b.mjs} +3 -3
- package/dist/client/{checkout-Dq13KIgR.mjs → checkout-DAyspHdf.mjs} +3 -3
- package/dist/client/checkoutUrls-BuseL0dw.mjs +189 -0
- package/dist/client/client.mjs +5627 -9543
- package/dist/client/{context-B83PiNzm.mjs → context-DljQn8L5.mjs} +15 -82
- package/dist/client/{eventCalendar-BF0Jatfw.mjs → eventCalendar-pJu3FUod.mjs} +5 -5
- package/dist/client/{eventCombined-BuoCF8je.mjs → eventCombined-B6Kacm9F.mjs} +3 -3
- package/dist/client/{eventDetails-CKwh0S9s.mjs → eventDetails-CaX9z1pv.mjs} +8 -8
- package/dist/client/{eventListing-eUxaWFaB.mjs → eventListing-B9aXPO-I.mjs} +3 -3
- package/dist/client/{eventRegistration-CfkNOkPb.mjs → eventRegistration-CBSovBkg.mjs} +4550 -3671
- package/dist/client/{form-C17H1c_H.mjs → form-Cm0tu_7o.mjs} +2 -2
- package/dist/client/{headerSection-DEwUmrtt.mjs → headerSection-OgRtHeKS.mjs} +2 -2
- package/dist/client/hooks.mjs +535 -694
- package/dist/client/{locationMap-Pf2QwuvW.mjs → locationMap-DmjcYqNM.mjs} +2 -2
- package/dist/client/{newsletterForm-BWQAH5Sv.mjs → newsletterForm-D08OZQAC.mjs} +2 -2
- package/dist/client/{productDetail-BZi1Fa_G.mjs → productDetail-BqZeu2P4.mjs} +3 -3
- package/dist/client/{productList-qq-55DNk.mjs → productList-mNyIF9FG.mjs} +3 -3
- package/dist/client/{propsDecoder-BxmqPKdP.mjs → propsDecoder-DwHXRm9X.mjs} +4850 -4502
- package/dist/client/rendering/client.mjs +59921 -62298
- package/dist/client/rendering/islands.mjs +17 -19
- package/dist/client/rendering.mjs +6226 -10236
- package/dist/client/{scrollToBlock-B3CcKdtG.mjs → scrollToBlock-DtmdM3v-.mjs} +2 -2
- package/dist/client/{shop-DNWJPut5.mjs → shop-CNjZK16F.mjs} +6 -6
- package/dist/client/{shop-commerce-BhvQCosS.mjs → shop-commerce-DkNNao1J.mjs} +7 -164
- package/dist/client/{shop-commerce-store-B04sCNnW.mjs → shop-commerce-store-9WA--zuW.mjs} +1 -1
- package/dist/client/{shopShared-DNNgZlmW.mjs → shopShared-CHCVfccY.mjs} +3 -3
- package/dist/client/{useEventFilters-CUmhE24_.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-BEXb1wqo.mjs → sdk-runtime-3GhW4knb.mjs} +2 -2
- package/dist/{separator-DGMuip1D.mjs → separator-D3bCWYYb.mjs} +1 -1
- package/dist/server/components.mjs +634 -2969
- package/dist/server/config-validation.mjs +535 -694
- package/dist/server/config.mjs +535 -694
- package/dist/server/data.mjs +535 -694
- package/dist/server/index.mjs +41 -162
- package/dist/server/next.mjs +644 -2979
- package/dist/server/page-converter.mjs +435 -561
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +635 -2874
- package/dist/server/rendering.mjs +634 -2969
- package/dist/server/routing.mjs +706 -1138
- package/dist/server/server.mjs +549 -708
- package/dist/server/theme-bridge.mjs +152 -1635
- package/dist/styles/index.css +41 -1348
- package/package.json +2 -2
- 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 -133
- 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 -45
- 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 -323
- 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/StepIndicator-CGixP_LW.mjs +0 -138
- package/dist/client/WholeSeriesRegistrationWizard-BEjzSiOA.mjs +0 -2496
- package/dist/client/checkoutUrls-Ct8Mxna3.mjs +0 -26
- package/dist/client/courseRegistration-CKC5NmyH.mjs +0 -52
- package/dist/client/pricing-CVdvbopJ.mjs +0 -195
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riverbankcms/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.135.0",
|
|
4
4
|
"description": "Riverbank CMS SDK for headless content consumption",
|
|
5
5
|
"main": "./dist/server/index.mjs",
|
|
6
6
|
"module": "./dist/server/index.mjs",
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
"eslint": "^9.39.2",
|
|
296
296
|
"happy-dom": "^20.10.6",
|
|
297
297
|
"lucide-react": "^1.21.0",
|
|
298
|
-
"next": "^16.
|
|
298
|
+
"next": "^16.3.3",
|
|
299
299
|
"typescript": "^6.0.3"
|
|
300
300
|
},
|
|
301
301
|
"repository": {
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
export declare const COURSE_ENDPOINT_DEFINITIONS: {
|
|
2
|
-
listCourses: {
|
|
3
|
-
path: "/sites/{siteId}/bookings/courses";
|
|
4
|
-
method: "GET";
|
|
5
|
-
auth: "user";
|
|
6
|
-
responseKind: "json";
|
|
7
|
-
};
|
|
8
|
-
exportCoursesCsv: {
|
|
9
|
-
path: "/sites/{siteId}/bookings/courses/export.csv";
|
|
10
|
-
method: "GET";
|
|
11
|
-
tags: ("site-{siteId}" | "bookings" | "courses-{siteId}")[];
|
|
12
|
-
errors: never[];
|
|
13
|
-
auth: "user";
|
|
14
|
-
responseKind: "blob";
|
|
15
|
-
};
|
|
16
|
-
createCourse: {
|
|
17
|
-
path: "/sites/{siteId}/bookings/courses";
|
|
18
|
-
method: "POST";
|
|
19
|
-
auth: "user";
|
|
20
|
-
responseKind: "json";
|
|
21
|
-
errors: ("validation:invalid_input" | "resource:not_found" | "resource:already_exists" | "resource:conflict" | "server:internal_error")[];
|
|
22
|
-
};
|
|
23
|
-
getCourse: {
|
|
24
|
-
path: "/sites/{siteId}/bookings/courses/{courseId}";
|
|
25
|
-
method: "GET";
|
|
26
|
-
auth: "user";
|
|
27
|
-
responseKind: "json";
|
|
28
|
-
};
|
|
29
|
-
updateCourse: {
|
|
30
|
-
path: "/sites/{siteId}/bookings/courses/{courseId}";
|
|
31
|
-
method: "PATCH";
|
|
32
|
-
auth: "user";
|
|
33
|
-
responseKind: "json";
|
|
34
|
-
errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
|
|
35
|
-
};
|
|
36
|
-
deleteCourse: {
|
|
37
|
-
path: "/sites/{siteId}/bookings/courses/{courseId}";
|
|
38
|
-
method: "DELETE";
|
|
39
|
-
auth: "user";
|
|
40
|
-
responseKind: "json";
|
|
41
|
-
errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
|
|
42
|
-
};
|
|
43
|
-
deleteEventOffering: {
|
|
44
|
-
path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}";
|
|
45
|
-
method: "DELETE";
|
|
46
|
-
auth: "user";
|
|
47
|
-
responseKind: "json";
|
|
48
|
-
errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
|
|
49
|
-
};
|
|
50
|
-
duplicateCourse: {
|
|
51
|
-
path: "/sites/{siteId}/bookings/courses/{courseId}/duplicate";
|
|
52
|
-
method: "POST";
|
|
53
|
-
auth: "user";
|
|
54
|
-
responseKind: "json";
|
|
55
|
-
errors: ("validation:invalid_input" | "resource:not_found" | "resource:already_exists" | "server:internal_error")[];
|
|
56
|
-
};
|
|
57
|
-
changeCourseContentOwnership: {
|
|
58
|
-
path: "/sites/{siteId}/bookings/courses/{courseId}/content-ownership";
|
|
59
|
-
method: "POST";
|
|
60
|
-
auth: "user";
|
|
61
|
-
responseKind: "json";
|
|
62
|
-
errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
|
|
63
|
-
};
|
|
64
|
-
addCourseEnrollment: {
|
|
65
|
-
path: "/sites/{siteId}/bookings/courses/{courseId}/enrollments";
|
|
66
|
-
method: "POST";
|
|
67
|
-
auth: "user";
|
|
68
|
-
responseKind: "json";
|
|
69
|
-
errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
|
|
70
|
-
};
|
|
71
|
-
listCourseEnrollments: {
|
|
72
|
-
path: "/sites/{siteId}/bookings/courses/{courseId}/enrollments";
|
|
73
|
-
method: "GET";
|
|
74
|
-
auth: "user";
|
|
75
|
-
responseKind: "json";
|
|
76
|
-
};
|
|
77
|
-
exportCourseEnrollmentsCsv: {
|
|
78
|
-
path: "/sites/{siteId}/bookings/courses/{courseId}/enrollments/export.csv";
|
|
79
|
-
method: "GET";
|
|
80
|
-
auth: "user";
|
|
81
|
-
errors: never[];
|
|
82
|
-
responseKind: "blob";
|
|
83
|
-
};
|
|
84
|
-
exportCourseWaitlistCsv: {
|
|
85
|
-
path: "/sites/{siteId}/bookings/courses/{courseId}/waitlist/export.csv";
|
|
86
|
-
method: "GET";
|
|
87
|
-
tags: ("site-{siteId}" | "bookings" | "courses-{courseId}")[];
|
|
88
|
-
auth: "user";
|
|
89
|
-
responseKind: "blob";
|
|
90
|
-
errors: never[];
|
|
91
|
-
};
|
|
92
|
-
updateCourseEnrollment: {
|
|
93
|
-
path: "/sites/{siteId}/bookings/courses/{courseId}/enrollments/{enrollmentId}";
|
|
94
|
-
method: "PATCH";
|
|
95
|
-
auth: "user";
|
|
96
|
-
responseKind: "json";
|
|
97
|
-
errors: ("validation:invalid_input" | "resource:not_found" | "server:internal_error")[];
|
|
98
|
-
};
|
|
99
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { BlockApiProvider, type BlockApiConfig } from '../system/runtime/api';
|
|
2
|
-
export { CourseRegistrationIslandClient, type CourseRegistrationIslandClientProps, } from '../system/runtime/nodes/course-registration.client';
|
|
3
|
-
export { HeadlessWholeSeriesRegistrationProvider, createWholeSeriesRegistrationBlockApiConfig, useHeadlessWholeSeriesRegistrationFlow, } from '../system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow';
|
|
4
|
-
export { AltchaWidget as HeadlessWholeSeriesRegistrationAltchaWidget } from '../../../altcha/src/client';
|
|
5
|
-
export type { HeadlessWholeSeriesRegistrationFlow, HeadlessWholeSeriesRegistrationFlowOptions, HeadlessWholeSeriesRegistrationProviderProps, WholeSeriesRegistrationAvailabilityModel, WholeSeriesRegistrationFlowActionResult, WholeSeriesRegistrationFlowActions, WholeSeriesRegistrationFlowStatus, WholeSeriesRegistrationFlowStep, WholeSeriesRegistrationFlowStepId, WholeSeriesRegistrationFlowView, WholeSeriesRegistrationPaymentModel, WholeSeriesRegistrationPaymentSelection, WholeSeriesRegistrationPricingInput, WholeSeriesRegistrationPricingModel, WholeSeriesRegistrationPricingOptionInput, WholeSeriesRegistrationRun, WholeSeriesRegistrationRunInput, WholeSeriesRegistrationRunsModel, WholeSeriesRegistrationSpamProtectionModel, WholeSeriesRegistrationWaitlistClaimModel, } from '../system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow';
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import type { SystemBlockDefinition } from "../registry";
|
|
2
|
-
import type { SectionStylesContent } from "../fields/boxStyles";
|
|
3
|
-
/**
|
|
4
|
-
* Course Details Block
|
|
5
|
-
*
|
|
6
|
-
* Displays logistics for a course:
|
|
7
|
-
* - Sessions (date/time list)
|
|
8
|
-
* - Venue
|
|
9
|
-
* - Price + capacity + enrollment status
|
|
10
|
-
*
|
|
11
|
-
* Intended for use on course templates, but can also be placed on standalone pages.
|
|
12
|
-
*/
|
|
13
|
-
export declare const courseDetailsManifest: import("..").DefinedBlockManifest<{
|
|
14
|
-
readonly additionalFields: readonly [{
|
|
15
|
-
readonly id: "heading";
|
|
16
|
-
readonly type: "text";
|
|
17
|
-
readonly label: "Heading";
|
|
18
|
-
readonly description: "Optional heading shown above course details";
|
|
19
|
-
readonly required: false;
|
|
20
|
-
readonly multiline: false;
|
|
21
|
-
readonly defaultValue: "Course details";
|
|
22
|
-
}, {
|
|
23
|
-
readonly id: "showTitle";
|
|
24
|
-
readonly type: "boolean";
|
|
25
|
-
readonly label: "Show course title";
|
|
26
|
-
readonly required: false;
|
|
27
|
-
readonly defaultValue: false;
|
|
28
|
-
readonly ui: {
|
|
29
|
-
readonly intent: "display";
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
readonly id: "showDescription";
|
|
33
|
-
readonly type: "boolean";
|
|
34
|
-
readonly label: "Show course description";
|
|
35
|
-
readonly description: "Render the course description from the bookings course record";
|
|
36
|
-
readonly required: false;
|
|
37
|
-
readonly defaultValue: false;
|
|
38
|
-
readonly ui: {
|
|
39
|
-
readonly intent: "display";
|
|
40
|
-
};
|
|
41
|
-
}, {
|
|
42
|
-
readonly id: "showSessions";
|
|
43
|
-
readonly type: "boolean";
|
|
44
|
-
readonly label: "Show sessions";
|
|
45
|
-
readonly required: false;
|
|
46
|
-
readonly defaultValue: true;
|
|
47
|
-
readonly ui: {
|
|
48
|
-
readonly intent: "display";
|
|
49
|
-
};
|
|
50
|
-
}, {
|
|
51
|
-
readonly id: "sessionsLimit";
|
|
52
|
-
readonly type: "select";
|
|
53
|
-
readonly label: "Sessions limit";
|
|
54
|
-
readonly required: false;
|
|
55
|
-
readonly multiple: false;
|
|
56
|
-
readonly defaultValue: "10";
|
|
57
|
-
readonly options: [{
|
|
58
|
-
readonly value: "3";
|
|
59
|
-
readonly label: "3 sessions";
|
|
60
|
-
}, {
|
|
61
|
-
readonly value: "5";
|
|
62
|
-
readonly label: "5 sessions";
|
|
63
|
-
}, {
|
|
64
|
-
readonly value: "10";
|
|
65
|
-
readonly label: "10 sessions";
|
|
66
|
-
}, {
|
|
67
|
-
readonly value: "all";
|
|
68
|
-
readonly label: "All sessions";
|
|
69
|
-
}];
|
|
70
|
-
readonly ui: {
|
|
71
|
-
readonly intent: "display";
|
|
72
|
-
};
|
|
73
|
-
}, {
|
|
74
|
-
readonly id: "showVenue";
|
|
75
|
-
readonly type: "boolean";
|
|
76
|
-
readonly label: "Show venue";
|
|
77
|
-
readonly required: false;
|
|
78
|
-
readonly defaultValue: true;
|
|
79
|
-
readonly ui: {
|
|
80
|
-
readonly intent: "display";
|
|
81
|
-
};
|
|
82
|
-
}, {
|
|
83
|
-
readonly id: "showPrice";
|
|
84
|
-
readonly type: "boolean";
|
|
85
|
-
readonly label: "Show price";
|
|
86
|
-
readonly required: false;
|
|
87
|
-
readonly defaultValue: true;
|
|
88
|
-
readonly ui: {
|
|
89
|
-
readonly intent: "display";
|
|
90
|
-
};
|
|
91
|
-
}, {
|
|
92
|
-
readonly id: "showCapacity";
|
|
93
|
-
readonly type: "boolean";
|
|
94
|
-
readonly label: "Show capacity";
|
|
95
|
-
readonly required: false;
|
|
96
|
-
readonly defaultValue: true;
|
|
97
|
-
readonly ui: {
|
|
98
|
-
readonly intent: "display";
|
|
99
|
-
};
|
|
100
|
-
}, {
|
|
101
|
-
readonly id: "showEnrollmentStatus";
|
|
102
|
-
readonly type: "boolean";
|
|
103
|
-
readonly label: "Show enrollment status";
|
|
104
|
-
readonly required: false;
|
|
105
|
-
readonly defaultValue: true;
|
|
106
|
-
readonly ui: {
|
|
107
|
-
readonly intent: "display";
|
|
108
|
-
};
|
|
109
|
-
}, {
|
|
110
|
-
readonly id: "showMembershipNote";
|
|
111
|
-
readonly type: "boolean";
|
|
112
|
-
readonly label: "Show membership note";
|
|
113
|
-
readonly description: "Indicate when memberships can be used for free enrollment";
|
|
114
|
-
readonly required: false;
|
|
115
|
-
readonly defaultValue: true;
|
|
116
|
-
readonly ui: {
|
|
117
|
-
readonly intent: "display";
|
|
118
|
-
};
|
|
119
|
-
}];
|
|
120
|
-
}>;
|
|
121
|
-
export type CourseDetailsContent = {
|
|
122
|
-
heading?: string | null;
|
|
123
|
-
showTitle?: boolean | null;
|
|
124
|
-
showDescription?: boolean | null;
|
|
125
|
-
showSessions?: boolean | null;
|
|
126
|
-
sessionsLimit?: "3" | "5" | "10" | "all" | null;
|
|
127
|
-
showVenue?: boolean | null;
|
|
128
|
-
showPrice?: boolean | null;
|
|
129
|
-
showCapacity?: boolean | null;
|
|
130
|
-
showEnrollmentStatus?: boolean | null;
|
|
131
|
-
showMembershipNote?: boolean | null;
|
|
132
|
-
_sectionStyles?: SectionStylesContent;
|
|
133
|
-
};
|
|
134
|
-
export declare const courseDetailsBlockDefinition: SystemBlockDefinition<CourseDetailsContent>;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import type { SystemBlockDefinition } from "../registry";
|
|
2
|
-
import type { SectionStylesContent } from "../fields/boxStyles";
|
|
3
|
-
import { courseRegistrationBlockRuntime } from "../runtime/nodes/course-registration.interactive";
|
|
4
|
-
import type { BlockButtonRole } from "../constants/buttonRoles";
|
|
5
|
-
export { type PublicCourse, type PublicWholeSeriesOffering, type CourseSession, type CourseVenue, type CourseStatus, } from "./courses/shared";
|
|
6
|
-
/**
|
|
7
|
-
* Course Registration Block
|
|
8
|
-
*
|
|
9
|
-
* Registration form for multi-session courses. Customers enroll once
|
|
10
|
-
* and are automatically added to all course sessions.
|
|
11
|
-
*
|
|
12
|
-
* Key differences from Event Registration:
|
|
13
|
-
* - No occurrence selection (all sessions included)
|
|
14
|
-
* - No ticket quantity (enrollment is binary)
|
|
15
|
-
* - No pass payment option (passes not valid for courses)
|
|
16
|
-
* - Shows all session dates upfront
|
|
17
|
-
* - Membership-based payment if course accepts memberships
|
|
18
|
-
*
|
|
19
|
-
* Context:
|
|
20
|
-
* - The canonical event-offering/event-series page subject scopes the
|
|
21
|
-
* available run or runs.
|
|
22
|
-
*/
|
|
23
|
-
export declare const courseRegistrationManifest: import("..").DefinedBlockManifest<{
|
|
24
|
-
readonly additionalFields: readonly [{
|
|
25
|
-
readonly id: "heading";
|
|
26
|
-
readonly type: "text";
|
|
27
|
-
readonly label: "Heading";
|
|
28
|
-
readonly description: "Main heading for the registration form";
|
|
29
|
-
readonly required: false;
|
|
30
|
-
readonly multiline: false;
|
|
31
|
-
readonly defaultValue: "Sign up";
|
|
32
|
-
}, {
|
|
33
|
-
readonly id: "description";
|
|
34
|
-
readonly type: "richText";
|
|
35
|
-
readonly label: "Description";
|
|
36
|
-
readonly description: "Optional introductory text";
|
|
37
|
-
readonly required: false;
|
|
38
|
-
}, {
|
|
39
|
-
readonly id: "showSessions";
|
|
40
|
-
readonly type: "boolean";
|
|
41
|
-
readonly label: "Show sessions";
|
|
42
|
-
readonly description: "Display the list of course sessions";
|
|
43
|
-
readonly required: false;
|
|
44
|
-
readonly defaultValue: true;
|
|
45
|
-
readonly ui: {
|
|
46
|
-
readonly intent: "display";
|
|
47
|
-
};
|
|
48
|
-
}, {
|
|
49
|
-
readonly id: "showPrice";
|
|
50
|
-
readonly type: "boolean";
|
|
51
|
-
readonly label: "Show price";
|
|
52
|
-
readonly description: "Display the course price";
|
|
53
|
-
readonly required: false;
|
|
54
|
-
readonly defaultValue: true;
|
|
55
|
-
readonly ui: {
|
|
56
|
-
readonly intent: "display";
|
|
57
|
-
};
|
|
58
|
-
}, {
|
|
59
|
-
readonly id: "showCapacity";
|
|
60
|
-
readonly type: "boolean";
|
|
61
|
-
readonly label: "Show available spots";
|
|
62
|
-
readonly description: "Display remaining enrollment capacity";
|
|
63
|
-
readonly required: false;
|
|
64
|
-
readonly defaultValue: true;
|
|
65
|
-
readonly ui: {
|
|
66
|
-
readonly intent: "display";
|
|
67
|
-
};
|
|
68
|
-
}, {
|
|
69
|
-
readonly id: "showVenue";
|
|
70
|
-
readonly type: "boolean";
|
|
71
|
-
readonly label: "Show venue";
|
|
72
|
-
readonly description: "Display venue information";
|
|
73
|
-
readonly required: false;
|
|
74
|
-
readonly defaultValue: true;
|
|
75
|
-
readonly ui: {
|
|
76
|
-
readonly intent: "display";
|
|
77
|
-
};
|
|
78
|
-
}, {
|
|
79
|
-
readonly id: "successMessage";
|
|
80
|
-
readonly type: "text";
|
|
81
|
-
readonly label: "Success message";
|
|
82
|
-
readonly description: "Message shown after successful enrollment";
|
|
83
|
-
readonly required: false;
|
|
84
|
-
readonly multiline: true;
|
|
85
|
-
readonly defaultValue: "You're enrolled! Check your email for confirmation and session details.";
|
|
86
|
-
readonly maxLength: 500;
|
|
87
|
-
}, {
|
|
88
|
-
readonly id: "waitlistMessage";
|
|
89
|
-
readonly type: "text";
|
|
90
|
-
readonly label: "Waitlist message";
|
|
91
|
-
readonly description: "Message when added to waitlist";
|
|
92
|
-
readonly required: false;
|
|
93
|
-
readonly multiline: true;
|
|
94
|
-
readonly defaultValue: "You've been added to the waitlist. We'll email you a claim link if a spot opens up.";
|
|
95
|
-
readonly maxLength: 500;
|
|
96
|
-
}, {
|
|
97
|
-
readonly id: "membershipMessage";
|
|
98
|
-
readonly type: "text";
|
|
99
|
-
readonly label: "Membership enrollment message";
|
|
100
|
-
readonly description: "Message when enrolled using a membership";
|
|
101
|
-
readonly required: false;
|
|
102
|
-
readonly multiline: true;
|
|
103
|
-
readonly defaultValue: "Enrolled using your membership! Check your email for session details.";
|
|
104
|
-
readonly maxLength: 500;
|
|
105
|
-
}, {
|
|
106
|
-
readonly id: "buttonText";
|
|
107
|
-
readonly type: "text";
|
|
108
|
-
readonly label: "Submit button text";
|
|
109
|
-
readonly description: "Text for the enrollment submit button";
|
|
110
|
-
readonly required: false;
|
|
111
|
-
readonly multiline: false;
|
|
112
|
-
readonly defaultValue: "Sign up";
|
|
113
|
-
readonly maxLength: 40;
|
|
114
|
-
}, import("../../../../block-form/src/backend/index").FieldDefinition];
|
|
115
|
-
}>;
|
|
116
|
-
export type CourseRegistrationContent = {
|
|
117
|
-
heading?: string | null;
|
|
118
|
-
description?: unknown;
|
|
119
|
-
showSessions?: boolean | null;
|
|
120
|
-
showPrice?: boolean | null;
|
|
121
|
-
showCapacity?: boolean | null;
|
|
122
|
-
showVenue?: boolean | null;
|
|
123
|
-
successMessage?: string | null;
|
|
124
|
-
waitlistMessage?: string | null;
|
|
125
|
-
membershipMessage?: string | null;
|
|
126
|
-
buttonText?: string | null;
|
|
127
|
-
buttonVariant?: BlockButtonRole | null;
|
|
128
|
-
_sectionStyles?: SectionStylesContent;
|
|
129
|
-
};
|
|
130
|
-
export declare const courseRegistrationBlockDefinition: SystemBlockDefinition<CourseRegistrationContent, typeof courseRegistrationBlockRuntime>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export type { WholeSeriesPriceDisplay as CoursePriceDisplay, ResolvedWholeSeriesPricingState as ResolvedCoursePricingState, } from '../../events/whole-series/pricing';
|
|
2
|
-
export { getSelectableWholeSeriesPricingOptions as getSelectableCoursePricingOptions, resolveWholeSeriesPricingState as resolveCoursePricingState, formatWholeSeriesCurrencyAmount as formatCourseCurrencyAmount, formatWholeSeriesPriceAmount as formatCoursePriceAmount, formatWholeSeriesPriceDisplay as formatCoursePriceDisplay, } from '../../events/whole-series/pricing';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { wholeSeriesVenueSchema as courseVenueSchema, wholeSeriesSessionSchema as courseSessionSchema, wholeSeriesTeamMemberSummarySchema as courseTeamMemberSummarySchema, wholeSeriesPricingOptionSchema as coursePricingOptionSchema, wholeSeriesPricingSchema as coursePricingSchema, publicWholeSeriesOfferingSchema, publicWholeSeriesOfferingSchema as publicCourseSchema, publicWholeSeriesOfferingsArraySchema, publicWholeSeriesOfferingsArraySchema as publicCoursesArraySchema, } from '../../events/whole-series/schemas';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { WholeSeriesOfferingStatus as CourseStatus, WholeSeriesVenue as CourseVenue, WholeSeriesSession as CourseSession, WholeSeriesPricingOption as CoursePricingOption, WholeSeriesPricing as CoursePricing, PublicWholeSeriesOffering, PublicWholeSeriesOffering as PublicCourse, ButtonVariant, } from '../../events/whole-series/types';
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Course enrolment, eligibility and checkout types
|
|
3
|
-
*
|
|
4
|
-
* Part of the block API client type surface; re-exported from `../types`.
|
|
5
|
-
*/
|
|
6
|
-
import type { PaymentStatus } from "./events";
|
|
7
|
-
export type CoursePaymentMethod = "free" | "membership" | "stripe";
|
|
8
|
-
export interface WholeSeriesRegistrationRequest {
|
|
9
|
-
siteId: string;
|
|
10
|
-
eventSeriesId: string;
|
|
11
|
-
pricingOptionId?: string;
|
|
12
|
-
selectedSlidingAmount?: number;
|
|
13
|
-
email: string;
|
|
14
|
-
name: string;
|
|
15
|
-
phone?: string;
|
|
16
|
-
formData?: Record<string, unknown>;
|
|
17
|
-
altchaSolution?: string | null;
|
|
18
|
-
paymentMethod?: Exclude<CoursePaymentMethod, "stripe">;
|
|
19
|
-
customerMembershipId?: string;
|
|
20
|
-
claimToken?: string;
|
|
21
|
-
}
|
|
22
|
-
interface WholeSeriesRegistrationBaseResponse {
|
|
23
|
-
waitlistPosition?: number | null;
|
|
24
|
-
courseTitle: string;
|
|
25
|
-
sessionsCount: number;
|
|
26
|
-
message: string;
|
|
27
|
-
}
|
|
28
|
-
export interface WholeSeriesRegistrationSuccessResponse extends WholeSeriesRegistrationBaseResponse {
|
|
29
|
-
status: "enrolled";
|
|
30
|
-
enrollmentId: string;
|
|
31
|
-
paymentMethod: CoursePaymentMethod;
|
|
32
|
-
pendingPayment: boolean;
|
|
33
|
-
}
|
|
34
|
-
export interface WholeSeriesWaitlistResponse extends WholeSeriesRegistrationBaseResponse {
|
|
35
|
-
status: "waitlist";
|
|
36
|
-
paymentMethod: "free";
|
|
37
|
-
pendingPayment: false;
|
|
38
|
-
}
|
|
39
|
-
export type WholeSeriesRegistrationResponse = WholeSeriesRegistrationSuccessResponse | WholeSeriesWaitlistResponse;
|
|
40
|
-
export interface WholeSeriesEligibilityRequest {
|
|
41
|
-
siteId: string;
|
|
42
|
-
eventSeriesId: string;
|
|
43
|
-
}
|
|
44
|
-
export interface WholeSeriesEligibilityResponse {
|
|
45
|
-
eventSeriesId: string;
|
|
46
|
-
canEnroll: boolean;
|
|
47
|
-
canJoinWaitlist: boolean;
|
|
48
|
-
reason?: string;
|
|
49
|
-
availableSpots: number | null;
|
|
50
|
-
isFull: boolean;
|
|
51
|
-
isOnWaitlist: boolean;
|
|
52
|
-
waitlistEnabled: boolean;
|
|
53
|
-
price: {
|
|
54
|
-
cents: number | null;
|
|
55
|
-
currency: string;
|
|
56
|
-
};
|
|
57
|
-
paymentOptions: {
|
|
58
|
-
free: boolean;
|
|
59
|
-
membership: boolean;
|
|
60
|
-
stripe: boolean;
|
|
61
|
-
};
|
|
62
|
-
eligibleMemberships?: Array<{
|
|
63
|
-
customerMembershipId: string;
|
|
64
|
-
membershipName: string;
|
|
65
|
-
}>;
|
|
66
|
-
}
|
|
67
|
-
export interface WholeSeriesCheckoutRequest {
|
|
68
|
-
siteId: string;
|
|
69
|
-
eventSeriesId: string;
|
|
70
|
-
pricingOptionId?: string;
|
|
71
|
-
selectedSlidingAmount?: number;
|
|
72
|
-
email: string;
|
|
73
|
-
name: string;
|
|
74
|
-
phone?: string;
|
|
75
|
-
formData?: Record<string, unknown>;
|
|
76
|
-
altchaSolution?: string | null;
|
|
77
|
-
/** Optional booking discount code (applies only to Stripe/card flows) */
|
|
78
|
-
discountCode?: string;
|
|
79
|
-
successUrl: string;
|
|
80
|
-
cancelUrl: string;
|
|
81
|
-
claimToken?: string;
|
|
82
|
-
}
|
|
83
|
-
export type WaitlistClaimSubject = {
|
|
84
|
-
kind: "event_occurrence";
|
|
85
|
-
occurrenceId: string;
|
|
86
|
-
attendanceMode: 'in_person' | 'online';
|
|
87
|
-
} | {
|
|
88
|
-
kind: "whole_series";
|
|
89
|
-
eventSeriesId: string;
|
|
90
|
-
};
|
|
91
|
-
export interface ResolveWaitlistClaimRequest {
|
|
92
|
-
siteId: string;
|
|
93
|
-
claimToken: string;
|
|
94
|
-
}
|
|
95
|
-
export interface ResolveWaitlistClaimResponse {
|
|
96
|
-
subject: WaitlistClaimSubject;
|
|
97
|
-
expiresAt: string;
|
|
98
|
-
customer: {
|
|
99
|
-
email: string;
|
|
100
|
-
name: string;
|
|
101
|
-
phone: string | null;
|
|
102
|
-
};
|
|
103
|
-
prefill: {
|
|
104
|
-
email: string;
|
|
105
|
-
name: string;
|
|
106
|
-
phone: string | null;
|
|
107
|
-
notes: string | null;
|
|
108
|
-
guests: Array<{
|
|
109
|
-
name: string;
|
|
110
|
-
email?: string | null;
|
|
111
|
-
phone: string | null;
|
|
112
|
-
}>;
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
export interface WholeSeriesCheckoutResponse {
|
|
116
|
-
checkoutUrl: string | null;
|
|
117
|
-
sessionId: string | null;
|
|
118
|
-
enrollmentId: string;
|
|
119
|
-
bypassed: boolean;
|
|
120
|
-
}
|
|
121
|
-
export interface WholeSeriesRegistrationStatusRequest {
|
|
122
|
-
siteId: string;
|
|
123
|
-
sessionId: string;
|
|
124
|
-
}
|
|
125
|
-
export interface WholeSeriesRegistrationStatusResponse {
|
|
126
|
-
enrollmentId: string;
|
|
127
|
-
eventSeriesId: string;
|
|
128
|
-
courseTitle: string;
|
|
129
|
-
status: "pending_payment" | "enrolled" | "waitlist" | "cancelled" | "completed";
|
|
130
|
-
paymentMethod: CoursePaymentMethod | null;
|
|
131
|
-
paymentStatus: PaymentStatus | null;
|
|
132
|
-
}
|
|
133
|
-
export {};
|
package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type BlockApiConfig } from '../api';
|
|
3
|
-
import type { WholeSeriesRegistrationClientProps } from '../nodes/event-registration/whole-series/types';
|
|
4
|
-
import { useWholeSeriesRegistrationWizard } from '../nodes/event-registration/whole-series/useWholeSeriesRegistrationWizard';
|
|
5
|
-
import type { HeadlessWholeSeriesRegistrationFlow, WholeSeriesRegistrationRunInput } from '../nodes/event-registration/whole-series/whole-series-registration.headless.contract';
|
|
6
|
-
export type { BlockApiConfig };
|
|
7
|
-
export type { HeadlessWholeSeriesRegistrationFlow, WholeSeriesRegistrationAvailabilityModel, WholeSeriesRegistrationFlowActionResult, WholeSeriesRegistrationFlowActions, WholeSeriesRegistrationFlowStatus, WholeSeriesRegistrationFlowStep, WholeSeriesRegistrationFlowStepId, WholeSeriesRegistrationFlowView, WholeSeriesRegistrationPaymentModel, WholeSeriesRegistrationPaymentSelection, WholeSeriesRegistrationPricingInput, WholeSeriesRegistrationPricingModel, WholeSeriesRegistrationPricingOptionInput, WholeSeriesRegistrationRun, WholeSeriesRegistrationRunInput, WholeSeriesRegistrationRunsModel, WholeSeriesRegistrationSpamProtectionModel, WholeSeriesRegistrationWaitlistClaimModel, } from '../nodes/event-registration/whole-series/whole-series-registration.headless.contract';
|
|
8
|
-
export type HeadlessWholeSeriesRegistrationFlowOptions = Readonly<{
|
|
9
|
-
runs?: readonly WholeSeriesRegistrationRunInput[];
|
|
10
|
-
subject?: WholeSeriesRegistrationClientProps['subject'];
|
|
11
|
-
}>;
|
|
12
|
-
export type HeadlessWholeSeriesRegistrationProviderProps = Readonly<{
|
|
13
|
-
config: BlockApiConfig;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
}>;
|
|
16
|
-
export type WholeSeriesRegistrationControllerDeps = Readonly<{
|
|
17
|
-
useWholeSeriesRegistrationWizard: typeof useWholeSeriesRegistrationWizard;
|
|
18
|
-
}>;
|
|
19
|
-
export declare function createWholeSeriesRegistrationBlockApiConfig(input: Readonly<{
|
|
20
|
-
siteId: string;
|
|
21
|
-
apiBaseUrl: string;
|
|
22
|
-
portalToken?: string | null;
|
|
23
|
-
previewToken?: string | null;
|
|
24
|
-
stage?: 'preview' | 'published';
|
|
25
|
-
}>): BlockApiConfig;
|
|
26
|
-
export declare function HeadlessWholeSeriesRegistrationProvider({ config, children, }: HeadlessWholeSeriesRegistrationProviderProps): React.ReactElement;
|
|
27
|
-
export declare function useHeadlessWholeSeriesRegistrationFlow(options: HeadlessWholeSeriesRegistrationFlowOptions): HeadlessWholeSeriesRegistrationFlow;
|
|
28
|
-
export declare function useWholeSeriesRegistrationControllerWithDeps(options: HeadlessWholeSeriesRegistrationFlowOptions, deps: WholeSeriesRegistrationControllerDeps): HeadlessWholeSeriesRegistrationFlow;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { PublicCourse } from '../../../blocks/courses/shared/types';
|
|
2
|
-
export type CourseDetailsSelection = {
|
|
3
|
-
mode: 'pageSurfaceSubject' | 'unsupportedPageSurfaceSubject';
|
|
4
|
-
selected: PublicCourse | null;
|
|
5
|
-
scoped: PublicCourse[];
|
|
6
|
-
};
|
|
7
|
-
export declare function selectCourseDetails(args: {
|
|
8
|
-
courses: PublicCourse[] | null | undefined;
|
|
9
|
-
subject?: unknown;
|
|
10
|
-
}): CourseDetailsSelection;
|
|
11
|
-
export declare function sortCourseSessions(course: PublicCourse): PublicCourse['sessions'];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { PublicCourse } from '../../../blocks/courses/shared/types';
|
|
2
|
-
export type CourseDateRange = {
|
|
3
|
-
start: Date | null;
|
|
4
|
-
end: Date | null;
|
|
5
|
-
startIso: string | null;
|
|
6
|
-
endIso: string | null;
|
|
7
|
-
timeZone: string | null;
|
|
8
|
-
};
|
|
9
|
-
export declare function getCourseDateRange(course: PublicCourse): CourseDateRange;
|
|
10
|
-
export declare function formatCourseDateRange(range: CourseDateRange): string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PublicCourse } from '../../../blocks/courses/shared/types';
|
|
3
|
-
export declare function CourseDetailsView(props: {
|
|
4
|
-
course: PublicCourse | null;
|
|
5
|
-
showTitle?: boolean;
|
|
6
|
-
showDescription?: boolean;
|
|
7
|
-
showSessions?: boolean;
|
|
8
|
-
sessionsLimit?: string | number | null;
|
|
9
|
-
showVenue?: boolean;
|
|
10
|
-
showPrice?: boolean;
|
|
11
|
-
showCapacity?: boolean;
|
|
12
|
-
showEnrollmentStatus?: boolean;
|
|
13
|
-
showMembershipNote?: boolean;
|
|
14
|
-
emptyMessage?: string;
|
|
15
|
-
}): React.JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PublicCourse } from '../../blocks/courses/shared/types';
|
|
3
|
-
type CourseDetailsProps = {
|
|
4
|
-
blockId?: string | null;
|
|
5
|
-
subject?: unknown;
|
|
6
|
-
courses?: PublicCourse[] | null;
|
|
7
|
-
showTitle?: boolean;
|
|
8
|
-
showDescription?: boolean;
|
|
9
|
-
showSessions?: boolean;
|
|
10
|
-
sessionsLimit?: string | number | null;
|
|
11
|
-
showVenue?: boolean;
|
|
12
|
-
showPrice?: boolean;
|
|
13
|
-
showCapacity?: boolean;
|
|
14
|
-
showEnrollmentStatus?: boolean;
|
|
15
|
-
showMembershipNote?: boolean;
|
|
16
|
-
className?: string | null;
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
};
|
|
19
|
-
export declare function CourseDetailsSSR({ courses, subject, showTitle, showDescription, showSessions, sessionsLimit, showVenue, showPrice, showCapacity, showEnrollmentStatus, showMembershipNote, className, children, }: CourseDetailsProps): React.JSX.Element;
|
|
20
|
-
export default CourseDetailsSSR;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { EventPageSurfaceSubject, EventPageSurfaceSubjectParseError } from '../../../../../core/src/index';
|
|
2
|
-
import type { PublicCourse } from '../../blocks/courses/shared/types';
|
|
3
|
-
export type CoursePageSurfaceScope = Readonly<{
|
|
4
|
-
kind: 'absent';
|
|
5
|
-
}> | Readonly<{
|
|
6
|
-
kind: 'scoped';
|
|
7
|
-
subject: EventPageSurfaceSubject;
|
|
8
|
-
courses: readonly PublicCourse[];
|
|
9
|
-
}> | Readonly<{
|
|
10
|
-
kind: 'unsupported';
|
|
11
|
-
reason: EventPageSurfaceSubjectParseError['kind'];
|
|
12
|
-
}>;
|
|
13
|
-
/** Temporary Course-block adapter over canonical Event run scoping. */
|
|
14
|
-
export declare function resolveCoursePageSurfaceScope(courses: readonly PublicCourse[], subjectValue: unknown): CoursePageSurfaceScope;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WholeSeriesRegistrationClientProps } from './event-registration/whole-series';
|
|
3
|
-
import type { CourseRegistrationInteractiveIslandProps } from './course-registration.interactive';
|
|
4
|
-
export type CourseRegistrationClientProps = Omit<WholeSeriesRegistrationClientProps, 'runs'> & Readonly<{
|
|
5
|
-
courses?: WholeSeriesRegistrationClientProps['runs'];
|
|
6
|
-
}>;
|
|
7
|
-
export type CourseRegistrationIslandClientProps = CourseRegistrationInteractiveIslandProps;
|
|
8
|
-
export declare function CourseRegistrationClient(props: CourseRegistrationClientProps): React.JSX.Element;
|
|
9
|
-
export declare function CourseRegistrationIslandClient(props: CourseRegistrationIslandClientProps): React.JSX.Element;
|
|
10
|
-
export default CourseRegistrationClient;
|