@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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type BookingRequirementConsentField } from "../../blocks/shared/bookingConsent";
|
|
2
|
+
import type { BookingFormConfig, BookingFormService } from "./booking-form.state";
|
|
3
|
+
export type SelectedAppointmentConsent = Readonly<{
|
|
4
|
+
kind: "not-applicable";
|
|
5
|
+
}> | Readonly<{
|
|
6
|
+
kind: "required-for-selected-service";
|
|
7
|
+
field: BookingRequirementConsentField;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function resolveSelectedAppointmentConsent(service: BookingFormService | null | undefined): SelectedAppointmentConsent;
|
|
10
|
+
export declare function projectSelectedAppointmentConsentIntoForm(form: BookingFormConfig | null, selectedConsent: SelectedAppointmentConsent): BookingFormConfig | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BookingFormData } from "./booking-form.state";
|
|
2
|
+
export type BookingFieldValue = string | number | boolean | readonly string[] | null;
|
|
3
|
+
export declare function collectInitialBookingFieldValues(initialData: Partial<BookingFormData>): Record<string, BookingFieldValue>;
|
|
4
|
+
export declare function omitBookingConsentEntries<T>(record: Readonly<Record<string, T>>): Record<string, T>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { BookingRequirementConsentField } from '../../blocks/shared/bookingConsent';
|
|
2
|
+
export type BookingFormFieldOption = Readonly<{
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}>;
|
|
6
|
+
export type StandardBookingFormField = Readonly<{
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
type: 'text' | 'email' | 'textarea' | 'select' | 'radio' | 'checkbox' | 'tel' | 'url' | 'number' | 'date' | 'time';
|
|
10
|
+
required?: boolean;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
helpText?: string;
|
|
13
|
+
options?: readonly BookingFormFieldOption[];
|
|
14
|
+
multiple?: boolean;
|
|
15
|
+
minLength?: number;
|
|
16
|
+
maxLength?: number;
|
|
17
|
+
pattern?: string;
|
|
18
|
+
min?: number;
|
|
19
|
+
max?: number;
|
|
20
|
+
}>;
|
|
21
|
+
export type BookingFormField = StandardBookingFormField | BookingRequirementConsentField;
|
|
@@ -3,6 +3,8 @@ import type { BlockApiConfig, EligibleAppointmentPackage } from "../api/types";
|
|
|
3
3
|
import type { TimeSlot } from "../api/types";
|
|
4
4
|
import type { BookingFormConfig, BookingFormData, BookingFormField, BookingPaymentStepResolution, BookingFormServicesSource, BookingFormService, BookingSelectedCollectionOptionKind, BookingSubmissionData } from "./booking-form.state";
|
|
5
5
|
import type { BookingValidationErrors } from "./booking-form.validationErrors";
|
|
6
|
+
import { type BookingFieldValue } from "./booking-form.field-values";
|
|
7
|
+
export type { BookingFieldValue } from "./booking-form.field-values";
|
|
6
8
|
export type LoadState<T> = Readonly<{
|
|
7
9
|
tag: "idle";
|
|
8
10
|
}> | Readonly<{
|
|
@@ -28,7 +30,6 @@ export type BookingFlowStep = Readonly<{
|
|
|
28
30
|
}>;
|
|
29
31
|
export type BookingFieldId = Brand<string, "BookingFieldId">;
|
|
30
32
|
export declare const unsafeAsBookingFieldId: (id: string) => BookingFieldId;
|
|
31
|
-
export type BookingFieldValue = string | number | boolean | readonly string[] | null;
|
|
32
33
|
export type BookingSlotView = Readonly<{
|
|
33
34
|
key: string;
|
|
34
35
|
startAt: string;
|
|
@@ -58,24 +58,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
58
58
|
name: string;
|
|
59
59
|
schemaJson?: Readonly<{
|
|
60
60
|
version?: string;
|
|
61
|
-
fields?: readonly
|
|
62
|
-
id: string;
|
|
63
|
-
label: string;
|
|
64
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
65
|
-
required?: boolean;
|
|
66
|
-
placeholder?: string;
|
|
67
|
-
helpText?: string;
|
|
68
|
-
options?: readonly Readonly<{
|
|
69
|
-
value: string;
|
|
70
|
-
label: string;
|
|
71
|
-
}>[];
|
|
72
|
-
multiple?: boolean;
|
|
73
|
-
minLength?: number;
|
|
74
|
-
maxLength?: number;
|
|
75
|
-
pattern?: string;
|
|
76
|
-
min?: number;
|
|
77
|
-
max?: number;
|
|
78
|
-
}>[];
|
|
61
|
+
fields?: readonly import("./booking-form.fields").BookingFormField[];
|
|
79
62
|
}>;
|
|
80
63
|
settingsJson?: Readonly<{
|
|
81
64
|
type: "booking";
|
|
@@ -126,24 +109,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
126
109
|
}>;
|
|
127
110
|
schema?: Readonly<{
|
|
128
111
|
version?: string;
|
|
129
|
-
fields: readonly
|
|
130
|
-
id: string;
|
|
131
|
-
label: string;
|
|
132
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
133
|
-
required?: boolean;
|
|
134
|
-
placeholder?: string;
|
|
135
|
-
helpText?: string;
|
|
136
|
-
options?: readonly Readonly<{
|
|
137
|
-
value: string;
|
|
138
|
-
label: string;
|
|
139
|
-
}>[];
|
|
140
|
-
multiple?: boolean;
|
|
141
|
-
minLength?: number;
|
|
142
|
-
maxLength?: number;
|
|
143
|
-
pattern?: string;
|
|
144
|
-
min?: number;
|
|
145
|
-
max?: number;
|
|
146
|
-
}>[];
|
|
112
|
+
fields: readonly import("./booking-form.fields").BookingFormField[];
|
|
147
113
|
}>;
|
|
148
114
|
}> | null;
|
|
149
115
|
services: readonly Readonly<{
|
|
@@ -171,6 +137,12 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
171
137
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
172
138
|
reason: "online_payment_configured_before_launch";
|
|
173
139
|
}>;
|
|
140
|
+
consent?: Readonly<{
|
|
141
|
+
requirementId: string;
|
|
142
|
+
title: string;
|
|
143
|
+
agreement: import("../../../../../core/src/index").RichTextDoc;
|
|
144
|
+
checkboxLabel: string;
|
|
145
|
+
}>;
|
|
174
146
|
}>[];
|
|
175
147
|
spamProtectionEnabled?: boolean;
|
|
176
148
|
}>;
|
|
@@ -201,24 +173,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
201
173
|
name: string;
|
|
202
174
|
schemaJson?: Readonly<{
|
|
203
175
|
version?: string;
|
|
204
|
-
fields?: readonly
|
|
205
|
-
id: string;
|
|
206
|
-
label: string;
|
|
207
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
208
|
-
required?: boolean;
|
|
209
|
-
placeholder?: string;
|
|
210
|
-
helpText?: string;
|
|
211
|
-
options?: readonly Readonly<{
|
|
212
|
-
value: string;
|
|
213
|
-
label: string;
|
|
214
|
-
}>[];
|
|
215
|
-
multiple?: boolean;
|
|
216
|
-
minLength?: number;
|
|
217
|
-
maxLength?: number;
|
|
218
|
-
pattern?: string;
|
|
219
|
-
min?: number;
|
|
220
|
-
max?: number;
|
|
221
|
-
}>[];
|
|
176
|
+
fields?: readonly import("./booking-form.fields").BookingFormField[];
|
|
222
177
|
}>;
|
|
223
178
|
settingsJson?: Readonly<{
|
|
224
179
|
type: "booking";
|
|
@@ -259,24 +214,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
259
214
|
name: string;
|
|
260
215
|
schemaJson?: Readonly<{
|
|
261
216
|
version?: string;
|
|
262
|
-
fields?: readonly
|
|
263
|
-
id: string;
|
|
264
|
-
label: string;
|
|
265
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
266
|
-
required?: boolean;
|
|
267
|
-
placeholder?: string;
|
|
268
|
-
helpText?: string;
|
|
269
|
-
options?: readonly Readonly<{
|
|
270
|
-
value: string;
|
|
271
|
-
label: string;
|
|
272
|
-
}>[];
|
|
273
|
-
multiple?: boolean;
|
|
274
|
-
minLength?: number;
|
|
275
|
-
maxLength?: number;
|
|
276
|
-
pattern?: string;
|
|
277
|
-
min?: number;
|
|
278
|
-
max?: number;
|
|
279
|
-
}>[];
|
|
217
|
+
fields?: readonly import("./booking-form.fields").BookingFormField[];
|
|
280
218
|
}>;
|
|
281
219
|
settingsJson?: Readonly<{
|
|
282
220
|
type: "booking";
|
|
@@ -330,24 +268,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
330
268
|
}>;
|
|
331
269
|
schema?: Readonly<{
|
|
332
270
|
version?: string;
|
|
333
|
-
fields: readonly
|
|
334
|
-
id: string;
|
|
335
|
-
label: string;
|
|
336
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
337
|
-
required?: boolean;
|
|
338
|
-
placeholder?: string;
|
|
339
|
-
helpText?: string;
|
|
340
|
-
options?: readonly Readonly<{
|
|
341
|
-
value: string;
|
|
342
|
-
label: string;
|
|
343
|
-
}>[];
|
|
344
|
-
multiple?: boolean;
|
|
345
|
-
minLength?: number;
|
|
346
|
-
maxLength?: number;
|
|
347
|
-
pattern?: string;
|
|
348
|
-
min?: number;
|
|
349
|
-
max?: number;
|
|
350
|
-
}>[];
|
|
271
|
+
fields: readonly import("./booking-form.fields").BookingFormField[];
|
|
351
272
|
}>;
|
|
352
273
|
}> | null;
|
|
353
274
|
services: readonly Readonly<{
|
|
@@ -375,6 +296,12 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
375
296
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
376
297
|
reason: "online_payment_configured_before_launch";
|
|
377
298
|
}>;
|
|
299
|
+
consent?: Readonly<{
|
|
300
|
+
requirementId: string;
|
|
301
|
+
title: string;
|
|
302
|
+
agreement: import("../../../../../core/src/index").RichTextDoc;
|
|
303
|
+
checkboxLabel: string;
|
|
304
|
+
}>;
|
|
378
305
|
}>[];
|
|
379
306
|
spamProtectionEnabled?: boolean;
|
|
380
307
|
}>;
|
|
@@ -414,24 +341,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
414
341
|
}>;
|
|
415
342
|
schema?: Readonly<{
|
|
416
343
|
version?: string;
|
|
417
|
-
fields: readonly
|
|
418
|
-
id: string;
|
|
419
|
-
label: string;
|
|
420
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
421
|
-
required?: boolean;
|
|
422
|
-
placeholder?: string;
|
|
423
|
-
helpText?: string;
|
|
424
|
-
options?: readonly Readonly<{
|
|
425
|
-
value: string;
|
|
426
|
-
label: string;
|
|
427
|
-
}>[];
|
|
428
|
-
multiple?: boolean;
|
|
429
|
-
minLength?: number;
|
|
430
|
-
maxLength?: number;
|
|
431
|
-
pattern?: string;
|
|
432
|
-
min?: number;
|
|
433
|
-
max?: number;
|
|
434
|
-
}>[];
|
|
344
|
+
fields: readonly import("./booking-form.fields").BookingFormField[];
|
|
435
345
|
}>;
|
|
436
346
|
}> | null;
|
|
437
347
|
services: readonly Readonly<{
|
|
@@ -459,6 +369,12 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
459
369
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
460
370
|
reason: "online_payment_configured_before_launch";
|
|
461
371
|
}>;
|
|
372
|
+
consent?: Readonly<{
|
|
373
|
+
requirementId: string;
|
|
374
|
+
title: string;
|
|
375
|
+
agreement: import("../../../../../core/src/index").RichTextDoc;
|
|
376
|
+
checkboxLabel: string;
|
|
377
|
+
}>;
|
|
462
378
|
}>[];
|
|
463
379
|
spamProtectionEnabled?: boolean;
|
|
464
380
|
}>;
|
|
@@ -510,24 +426,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
510
426
|
}>;
|
|
511
427
|
schema?: Readonly<{
|
|
512
428
|
version?: string;
|
|
513
|
-
fields: readonly
|
|
514
|
-
id: string;
|
|
515
|
-
label: string;
|
|
516
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
517
|
-
required?: boolean;
|
|
518
|
-
placeholder?: string;
|
|
519
|
-
helpText?: string;
|
|
520
|
-
options?: readonly Readonly<{
|
|
521
|
-
value: string;
|
|
522
|
-
label: string;
|
|
523
|
-
}>[];
|
|
524
|
-
multiple?: boolean;
|
|
525
|
-
minLength?: number;
|
|
526
|
-
maxLength?: number;
|
|
527
|
-
pattern?: string;
|
|
528
|
-
min?: number;
|
|
529
|
-
max?: number;
|
|
530
|
-
}>[];
|
|
429
|
+
fields: readonly import("./booking-form.fields").BookingFormField[];
|
|
531
430
|
}>;
|
|
532
431
|
}> | null;
|
|
533
432
|
services: readonly Readonly<{
|
|
@@ -555,6 +454,12 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
555
454
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
556
455
|
reason: "online_payment_configured_before_launch";
|
|
557
456
|
}>;
|
|
457
|
+
consent?: Readonly<{
|
|
458
|
+
requirementId: string;
|
|
459
|
+
title: string;
|
|
460
|
+
agreement: import("../../../../../core/src/index").RichTextDoc;
|
|
461
|
+
checkboxLabel: string;
|
|
462
|
+
}>;
|
|
558
463
|
}>[];
|
|
559
464
|
spamProtectionEnabled?: boolean;
|
|
560
465
|
}>;
|
|
@@ -603,24 +508,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
603
508
|
}>;
|
|
604
509
|
schema?: Readonly<{
|
|
605
510
|
version?: string;
|
|
606
|
-
fields: readonly
|
|
607
|
-
id: string;
|
|
608
|
-
label: string;
|
|
609
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
610
|
-
required?: boolean;
|
|
611
|
-
placeholder?: string;
|
|
612
|
-
helpText?: string;
|
|
613
|
-
options?: readonly Readonly<{
|
|
614
|
-
value: string;
|
|
615
|
-
label: string;
|
|
616
|
-
}>[];
|
|
617
|
-
multiple?: boolean;
|
|
618
|
-
minLength?: number;
|
|
619
|
-
maxLength?: number;
|
|
620
|
-
pattern?: string;
|
|
621
|
-
min?: number;
|
|
622
|
-
max?: number;
|
|
623
|
-
}>[];
|
|
511
|
+
fields: readonly import("./booking-form.fields").BookingFormField[];
|
|
624
512
|
}>;
|
|
625
513
|
}> | null;
|
|
626
514
|
services: readonly Readonly<{
|
|
@@ -648,6 +536,12 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
648
536
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
649
537
|
reason: "online_payment_configured_before_launch";
|
|
650
538
|
}>;
|
|
539
|
+
consent?: Readonly<{
|
|
540
|
+
requirementId: string;
|
|
541
|
+
title: string;
|
|
542
|
+
agreement: import("../../../../../core/src/index").RichTextDoc;
|
|
543
|
+
checkboxLabel: string;
|
|
544
|
+
}>;
|
|
651
545
|
}>[];
|
|
652
546
|
spamProtectionEnabled?: boolean;
|
|
653
547
|
}>;
|
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
import type { BlockBookingPaymentTerms } from "../../blocks/shared/bookingPaymentTerms";
|
|
2
|
+
import { type BlockBookingConsent } from "../../blocks/shared/bookingConsent";
|
|
2
3
|
import type { AppointmentBookingStatusResponse } from "../api/types";
|
|
3
4
|
import type { BookingFormDataReservedKey } from "./booking-form.reserved-fields";
|
|
5
|
+
import type { BookingFormField } from "./booking-form.fields";
|
|
6
|
+
export type { BookingFormField, BookingFormFieldOption, StandardBookingFormField, } from "./booking-form.fields";
|
|
4
7
|
export { APPOINTMENT_BOOKING_BLOCK_ID, BOOKING_FORM_DATA_RESERVED_KEYS, BOOKING_FORM_DATA_RESERVED_KEY_VALUES, collectBookingReservedFieldCollisions, findBookingFormDataReservedFieldCollisions, formatBookingReservedFieldCollisionMessages, formatBookingFormDataReservedFieldMessage, isBookingFormDataReservedKey, type BookingFormDataReservedKey, type BookingReservedFieldCollision, } from "./booking-form.reserved-fields";
|
|
5
|
-
export type BookingFormFieldOption = Readonly<{
|
|
6
|
-
value: string;
|
|
7
|
-
label: string;
|
|
8
|
-
}>;
|
|
9
|
-
export type BookingFormField = Readonly<{
|
|
10
|
-
id: string;
|
|
11
|
-
label: string;
|
|
12
|
-
type: "text" | "email" | "textarea" | "select" | "radio" | "checkbox" | "booking_requirement_consent" | "tel" | "url" | "number" | "date" | "time";
|
|
13
|
-
required?: boolean;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
helpText?: string;
|
|
16
|
-
options?: readonly BookingFormFieldOption[];
|
|
17
|
-
multiple?: boolean;
|
|
18
|
-
minLength?: number;
|
|
19
|
-
maxLength?: number;
|
|
20
|
-
pattern?: string;
|
|
21
|
-
min?: number;
|
|
22
|
-
max?: number;
|
|
23
|
-
}>;
|
|
24
8
|
export type BookingFormSettings = Readonly<{
|
|
25
9
|
type: "booking";
|
|
26
10
|
serviceId?: string;
|
|
@@ -80,7 +64,9 @@ export type BookingFormService = Readonly<{
|
|
|
80
64
|
priceCurrency?: string | null;
|
|
81
65
|
paymentTerms?: BlockBookingPaymentTerms;
|
|
82
66
|
paymentTermsAvailability?: BlockBookingPaymentTermsAvailability;
|
|
67
|
+
consent?: BlockBookingConsent;
|
|
83
68
|
}>;
|
|
69
|
+
export { projectSelectedAppointmentConsentIntoForm, resolveSelectedAppointmentConsent, type SelectedAppointmentConsent, } from "./booking-form.consent";
|
|
84
70
|
export type BookingFormServicesSource = readonly BookingFormService[] | Readonly<{
|
|
85
71
|
services?: readonly BookingFormService[];
|
|
86
72
|
}> | Readonly<Record<string, BookingFormService>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { PublicEvent } from "../../blocks/events/shared/types";
|
|
3
|
-
import type {
|
|
3
|
+
import type { StandardBookingFormField, BookingFormService, BookingFormServicesSource, BookingFormSettings, BookingFormSourceRecord } from "./booking-form.state";
|
|
4
4
|
import type { EventRegistrationSourceProps } from "./event-registration.interactive";
|
|
5
5
|
export declare const APPOINTMENT_BOOKING_RUNTIME_FORM_ID = "booking-form";
|
|
6
6
|
export type BookingFormRebookContext = Readonly<{
|
|
@@ -26,7 +26,7 @@ export type BookingFormSourceProps = Readonly<{
|
|
|
26
26
|
spamProtectionEnabled?: boolean;
|
|
27
27
|
className?: string | null;
|
|
28
28
|
}>;
|
|
29
|
-
export declare const bookingFieldSchema: z.ZodType<
|
|
29
|
+
export declare const bookingFieldSchema: z.ZodType<StandardBookingFormField>;
|
|
30
30
|
export declare const bookingSettingsSchema: z.ZodType<BookingFormSettings>;
|
|
31
31
|
export declare const bookingSourceFormSchema: z.ZodType<BookingFormSourceRecord>;
|
|
32
32
|
export type AppointmentBookingRuntimeTarget = Readonly<{
|
|
@@ -96,6 +96,7 @@ export type AppointmentBookingServiceSourceInput = Readonly<{
|
|
|
96
96
|
priceCurrency?: string | null;
|
|
97
97
|
paymentTerms?: BookingFormService["paymentTerms"];
|
|
98
98
|
paymentTermsAvailability?: BookingFormService["paymentTermsAvailability"];
|
|
99
|
+
consent?: BookingFormService["consent"];
|
|
99
100
|
}>;
|
|
100
101
|
export type AppointmentBookingSourceProps = BookingFormSourceProps & Readonly<{
|
|
101
102
|
siteId: string;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ResolvedWholeSeriesPricingState } from '../../../blocks/events/whole-series';
|
|
3
|
+
type WholeSeriesPricingDisplayProps = {
|
|
4
|
+
pricing: ResolvedWholeSeriesPricingState;
|
|
5
|
+
acceptedItems: readonly string[];
|
|
6
|
+
};
|
|
7
|
+
export declare function WholeSeriesPricingDisplay({ pricing, acceptedItems, }: WholeSeriesPricingDisplayProps): React.JSX.Element;
|
|
8
|
+
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FormData, Guest, GuestErrors } from './types';
|
|
3
|
+
import type { BlockBookingConsent } from '../../../blocks/shared/bookingConsent';
|
|
3
4
|
type AttendeeDetailsStepProps = {
|
|
4
5
|
formData: FormData;
|
|
5
6
|
onChange: (data: FormData) => void;
|
|
@@ -22,6 +23,7 @@ type AttendeeDetailsStepProps = {
|
|
|
22
23
|
guestSectionShake?: boolean;
|
|
23
24
|
/** Callback when guest section shake animation ends */
|
|
24
25
|
onGuestShakeEnd?: () => void;
|
|
26
|
+
consent: BlockBookingConsent | null;
|
|
25
27
|
};
|
|
26
28
|
/**
|
|
27
29
|
* Attendee Details Step
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RegistrationTicketType } from './types';
|
|
3
|
+
export declare function EventRegistrationBookingLayer(props: Readonly<{
|
|
4
|
+
registrationRootClassName: string;
|
|
5
|
+
portalRoot: HTMLElement | null;
|
|
6
|
+
overlayOpen: boolean;
|
|
7
|
+
isWizardStep: boolean;
|
|
8
|
+
priceLabel: string | null;
|
|
9
|
+
availabilityLabel: string | null;
|
|
10
|
+
ticketTypes: readonly RegistrationTicketType[];
|
|
11
|
+
ticketCurrency: string | null;
|
|
12
|
+
buttonClass: string;
|
|
13
|
+
formatTicketPrice: (ticketType: RegistrationTicketType) => string;
|
|
14
|
+
onOpen: () => void;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
overlaySurface: React.ReactNode;
|
|
17
|
+
}>): React.JSX.Element;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UseEventRegistrationWizardResult } from './useEventRegistrationWizard';
|
|
3
|
+
export type EventPortalAuthCopy = Readonly<{
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
buttonText: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function EventRegistrationSurface(props: Readonly<{
|
|
9
|
+
variant: 'inline' | 'overlay';
|
|
10
|
+
wizard: UseEventRegistrationWizardResult;
|
|
11
|
+
isWizardStep: boolean;
|
|
12
|
+
currentStepNumber: number;
|
|
13
|
+
totalSteps: number;
|
|
14
|
+
stepLabels: string[];
|
|
15
|
+
showPortalAuthPrompt: boolean;
|
|
16
|
+
portalAuthCopy: EventPortalAuthCopy;
|
|
17
|
+
showVenue: boolean;
|
|
18
|
+
showCapacity: boolean;
|
|
19
|
+
showSpamProtection: boolean;
|
|
20
|
+
buttonText: string;
|
|
21
|
+
buttonClass: string;
|
|
22
|
+
supportEmail?: string;
|
|
23
|
+
successMessage: string;
|
|
24
|
+
}>): React.JSX.Element;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EligibilityData, PaymentStepState } from './types';
|
|
3
|
+
export declare function resolvePaymentStepStatus(input: Readonly<{
|
|
4
|
+
loading: boolean;
|
|
5
|
+
error: string | null;
|
|
6
|
+
eligibility: EligibilityData | null;
|
|
7
|
+
}>): PaymentStepState['status'];
|
|
8
|
+
export declare function shouldPromptForLogin(status: PaymentStepState['status'], isAuthenticated: boolean, eligibility: EligibilityData | null): boolean;
|
|
9
|
+
export declare function PaymentBlockingPanel(props: Readonly<{
|
|
10
|
+
eligibility: EligibilityData | null;
|
|
11
|
+
eligibilityLoading: boolean;
|
|
12
|
+
eligibilityError: string | null;
|
|
13
|
+
occurrenceId: string;
|
|
14
|
+
email: string;
|
|
15
|
+
ticketsCount: number;
|
|
16
|
+
isAuthenticated: boolean;
|
|
17
|
+
onRequestLogin?: () => void;
|
|
18
|
+
}>): React.JSX.Element | null;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EventTicketSelectionLine, OccurrenceContext, RegistrationAttendanceMode, RegistrationEvent } from './types';
|
|
3
3
|
import { getVisibleTicketTypes } from './utils';
|
|
4
|
+
export type TicketSelectionBookingUnit = Readonly<{
|
|
5
|
+
kind: 'ticket' | 'place';
|
|
6
|
+
includedSessionCount?: number;
|
|
7
|
+
}>;
|
|
4
8
|
type TicketSelectionStepProps = {
|
|
5
9
|
event: RegistrationEvent | null;
|
|
6
10
|
occurrenceContext?: OccurrenceContext | null;
|
|
@@ -20,6 +24,7 @@ type TicketSelectionStepProps = {
|
|
|
20
24
|
slidingScaleSelectionMessage?: string | null;
|
|
21
25
|
onSlidingAmountChange?: (amount: string) => void;
|
|
22
26
|
onTicketsChange: (count: number) => void;
|
|
27
|
+
bookingUnit?: TicketSelectionBookingUnit;
|
|
23
28
|
};
|
|
24
29
|
/**
|
|
25
30
|
* Ticket Selection Step
|
|
@@ -127,7 +127,7 @@ export type EventRegistrationPaymentSelection = Readonly<{
|
|
|
127
127
|
method: 'free';
|
|
128
128
|
}> | Readonly<{
|
|
129
129
|
method: 'stripe';
|
|
130
|
-
collectionOptionKind
|
|
130
|
+
collectionOptionKind: DirectCheckoutCollectionOptionKind;
|
|
131
131
|
}> | Readonly<{
|
|
132
132
|
method: 'pass';
|
|
133
133
|
passId: string;
|
|
@@ -239,7 +239,6 @@ export type EventRegistrationOverridePropsLike = Readonly<{
|
|
|
239
239
|
showVenue: boolean | null;
|
|
240
240
|
showCapacity: boolean | null;
|
|
241
241
|
successMessage: string | null;
|
|
242
|
-
waitlistMessage: string | null;
|
|
243
242
|
buttonVariant: BlockButtonRole | null;
|
|
244
243
|
buttonText: string | null;
|
|
245
244
|
spamProtectionEnabled: boolean | null;
|
|
@@ -268,7 +267,6 @@ export type EventRegistrationOverrideInput = Readonly<{
|
|
|
268
267
|
showVenue?: boolean;
|
|
269
268
|
showCapacity?: boolean;
|
|
270
269
|
successMessage?: string;
|
|
271
|
-
waitlistMessage?: string;
|
|
272
270
|
buttonText?: string | null;
|
|
273
271
|
buttonVariant?: BlockButtonRole;
|
|
274
272
|
spamProtectionEnabled?: boolean;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { DirectCheckoutCollectionOptionKind } from '../../api/types';
|
|
2
2
|
import type { BlockBookingPaymentCollectionOption, BlockBookingPaymentTerms } from '../../../blocks/shared/bookingPaymentTerms';
|
|
3
|
+
import type { EventRegistrationAvailablePaymentOption } from '../../../blocks/event-registration';
|
|
3
4
|
import { type BookingPaymentOptionViewModel } from '../../shared/bookingPaymentOptions';
|
|
4
5
|
import type { PaymentSelection } from './types';
|
|
5
|
-
type
|
|
6
|
-
kind: 'upfront' | 'flexible_balance';
|
|
6
|
+
type EventDirectPaymentOption = Extract<BlockBookingPaymentCollectionOption, {
|
|
7
|
+
kind: 'upfront' | 'deferred_manual' | 'instalment_plan' | 'flexible_balance';
|
|
7
8
|
}>;
|
|
9
|
+
export declare function getApprovedDirectPaymentCollectionOptionKinds(paymentOptions: readonly EventRegistrationAvailablePaymentOption[]): readonly DirectCheckoutCollectionOptionKind[];
|
|
8
10
|
export type EventRegistrationDirectPaymentOption = Omit<BookingPaymentOptionViewModel, 'kind' | 'title'> & Readonly<{
|
|
9
|
-
kind: Extract<DirectCheckoutCollectionOptionKind,
|
|
11
|
+
kind: Extract<DirectCheckoutCollectionOptionKind, EventDirectPaymentOption['kind']>;
|
|
10
12
|
label: string;
|
|
11
13
|
totalCents: number;
|
|
12
14
|
configuredPaymentDueNowCents: number;
|
|
@@ -33,7 +35,8 @@ export type EventRegistrationDirectPaymentSelectionState = Readonly<{
|
|
|
33
35
|
}>;
|
|
34
36
|
export declare function buildEventRegistrationPaymentOptionsViewModel(input: Readonly<{
|
|
35
37
|
eventTitle: string;
|
|
36
|
-
|
|
38
|
+
approvedPaymentOptions: readonly EventRegistrationAvailablePaymentOption[];
|
|
39
|
+
paymentTerms: BlockBookingPaymentTerms;
|
|
37
40
|
totalPriceCents: number;
|
|
38
41
|
currency: string;
|
|
39
42
|
startsAt?: string | null;
|
|
@@ -36,5 +36,4 @@ export declare const eventRegistrationPageSurfaceSubjectSchema: z.ZodType<EventR
|
|
|
36
36
|
export declare function parseEventRegistrationPageSurfaceSubject(value: unknown): Result<EventPageSurfaceSubject, EventRegistrationPageSurfaceSubjectParseError>;
|
|
37
37
|
export declare function normalizeEventRegistrationPageSurfaceSubject(value: unknown): EventRegistrationPageSurfaceSubject | null;
|
|
38
38
|
export declare function resolveEventRegistrationScope(context: EventRegistrationScopeContext): EventRegistrationScope;
|
|
39
|
-
export declare function applyEventRegistrationScope<TEvent extends EventRegistrationScopeableEvent>(events: readonly TEvent[], scope: EventRegistrationScope): TEvent[];
|
|
40
39
|
export declare function resolveEventRegistrationScopedEvents<TEvent extends EventRegistrationScopeableEvent>(events: readonly TEvent[], context: EventRegistrationScopeContext): TEvent[];
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { useBlockApi } from '../../api';
|
|
8
8
|
import type { PortalCredit } from '../../api';
|
|
9
|
-
import type { EventTicketSelectionLine } from './types';
|
|
9
|
+
import type { EventTicketSelectionLine, RegistrationSubject } from './types';
|
|
10
10
|
import { type EligibilityLookupState, type ExistingRegistrationLookupState } from './hooks.state';
|
|
11
11
|
export type PortalAuthState = 'checking' | 'authenticated' | 'unauthenticated';
|
|
12
12
|
export type PortalProfile = {
|
|
@@ -37,8 +37,6 @@ export type UsePortalAuthResult = {
|
|
|
37
37
|
isChecking: boolean;
|
|
38
38
|
/** Portal profile data (only available when authenticated) */
|
|
39
39
|
profile: PortalProfile | null;
|
|
40
|
-
/** Site credit loaded for the same authenticated portal identity. */
|
|
41
|
-
creditState: PortalCreditState;
|
|
42
40
|
/** Logout function */
|
|
43
41
|
logout: () => void;
|
|
44
42
|
};
|
|
@@ -58,22 +56,23 @@ export type UseEligibilityResult = {
|
|
|
58
56
|
eligibility: EligibilityLookupState['eligibility'];
|
|
59
57
|
isLoading: boolean;
|
|
60
58
|
error: EligibilityLookupState['error'];
|
|
59
|
+
creditState: PortalCreditState;
|
|
61
60
|
};
|
|
62
61
|
export declare function useEligibility(params: {
|
|
63
62
|
enabled: boolean;
|
|
64
|
-
|
|
63
|
+
subject: RegistrationSubject | null;
|
|
65
64
|
attendanceMode?: 'in_person' | 'online' | null;
|
|
66
65
|
ticketSelections: readonly EventTicketSelectionLine[];
|
|
67
66
|
selectedSlidingAmount?: number | null;
|
|
68
|
-
|
|
67
|
+
subjectEmail: string | null;
|
|
69
68
|
}): UseEligibilityResult;
|
|
70
69
|
export declare function useEligibilityWithDeps(params: {
|
|
71
70
|
enabled: boolean;
|
|
72
|
-
|
|
71
|
+
subject: RegistrationSubject | null;
|
|
73
72
|
attendanceMode?: 'in_person' | 'online' | null;
|
|
74
73
|
ticketSelections: readonly EventTicketSelectionLine[];
|
|
75
74
|
selectedSlidingAmount?: number | null;
|
|
76
|
-
|
|
75
|
+
subjectEmail: string | null;
|
|
77
76
|
}, deps: EventRegistrationHooksDeps): UseEligibilityResult;
|
|
78
77
|
export type UseExistingEventRegistrationResult = {
|
|
79
78
|
state: ExistingRegistrationLookupState;
|
|
@@ -85,5 +84,5 @@ type UseExistingEventRegistrationParams = {
|
|
|
85
84
|
occurrenceId: string;
|
|
86
85
|
};
|
|
87
86
|
export declare function useExistingEventRegistration({ isAuthenticated, occurrenceId, }: UseExistingEventRegistrationParams): UseExistingEventRegistrationResult;
|
|
88
|
-
export declare function useExistingEventRegistrationWithDeps({ isAuthenticated, occurrenceId
|
|
87
|
+
export declare function useExistingEventRegistrationWithDeps({ isAuthenticated, occurrenceId }: UseExistingEventRegistrationParams, deps: EventRegistrationHooksDeps): UseExistingEventRegistrationResult;
|
|
89
88
|
export {};
|
|
@@ -9,7 +9,7 @@ export { AttendeeDetailsStep } from './AttendeeDetailsStep';
|
|
|
9
9
|
export { MembershipHero } from './MembershipHero';
|
|
10
10
|
export { PaymentSelectionStep } from './PaymentSelectionStep';
|
|
11
11
|
export type { PaymentMethod } from './PaymentSelectionStep';
|
|
12
|
-
export type {
|
|
12
|
+
export type { EligiblePass, EligibleMembership, AvailablePass, AvailableMembership, } from '../../api/types';
|
|
13
13
|
export { SuccessStep } from './SuccessStep';
|
|
14
14
|
export { ErrorStep } from './ErrorStep';
|
|
15
15
|
export { VerifyingPaymentStep } from './VerifyingPaymentStep';
|