@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
|
@@ -26,11 +26,7 @@ export type EventRegistrationSourceProps = Readonly<{
|
|
|
26
26
|
maxTickets?: string | null;
|
|
27
27
|
showVenue?: boolean;
|
|
28
28
|
showCapacity?: boolean;
|
|
29
|
-
showSessions?: boolean;
|
|
30
|
-
showPrice?: boolean;
|
|
31
29
|
successMessage?: string;
|
|
32
|
-
waitlistMessage?: string;
|
|
33
|
-
membershipMessage?: string;
|
|
34
30
|
buttonVariant?: BlockButtonRole;
|
|
35
31
|
overlayEnabled?: boolean;
|
|
36
32
|
spamProtectionEnabled?: boolean;
|
|
@@ -54,7 +50,7 @@ export type EventRegistrationDisplay = Readonly<{
|
|
|
54
50
|
titleText: string;
|
|
55
51
|
bodyText: string;
|
|
56
52
|
}>;
|
|
57
|
-
export type EventRegistrationHydration = Readonly<Omit<InternalEventRegistrationClientProps, 'siteId' | 'stage' | '
|
|
53
|
+
export type EventRegistrationHydration = Readonly<Omit<InternalEventRegistrationClientProps, 'siteId' | 'stage' | 'buttonText' | 'className'>>;
|
|
58
54
|
type EventRegistrationIslandMeta = Readonly<{
|
|
59
55
|
siteId?: string;
|
|
60
56
|
apiBaseUrl?: string;
|
|
@@ -82,11 +78,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
82
78
|
maxTickets?: string | null;
|
|
83
79
|
showVenue?: boolean;
|
|
84
80
|
showCapacity?: boolean;
|
|
85
|
-
showSessions?: boolean;
|
|
86
|
-
showPrice?: boolean;
|
|
87
81
|
successMessage?: string;
|
|
88
|
-
waitlistMessage?: string;
|
|
89
|
-
membershipMessage?: string;
|
|
90
82
|
buttonVariant?: BlockButtonRole;
|
|
91
83
|
overlayEnabled?: boolean;
|
|
92
84
|
spamProtectionEnabled?: boolean;
|
|
@@ -100,7 +92,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
100
92
|
}> | null;
|
|
101
93
|
}>) => Readonly<{
|
|
102
94
|
display: EventRegistrationDisplay;
|
|
103
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
95
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
|
|
104
96
|
}>;
|
|
105
97
|
contracts: Readonly<{
|
|
106
98
|
source: Readonly<{
|
|
@@ -120,11 +112,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
120
112
|
maxTickets?: string | null;
|
|
121
113
|
showVenue?: boolean;
|
|
122
114
|
showCapacity?: boolean;
|
|
123
|
-
showSessions?: boolean;
|
|
124
|
-
showPrice?: boolean;
|
|
125
115
|
successMessage?: string;
|
|
126
|
-
waitlistMessage?: string;
|
|
127
|
-
membershipMessage?: string;
|
|
128
116
|
buttonVariant?: BlockButtonRole;
|
|
129
117
|
overlayEnabled?: boolean;
|
|
130
118
|
spamProtectionEnabled?: boolean;
|
|
@@ -153,11 +141,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
153
141
|
maxTickets?: string | null;
|
|
154
142
|
showVenue?: boolean;
|
|
155
143
|
showCapacity?: boolean;
|
|
156
|
-
showSessions?: boolean;
|
|
157
|
-
showPrice?: boolean;
|
|
158
144
|
successMessage?: string;
|
|
159
|
-
waitlistMessage?: string;
|
|
160
|
-
membershipMessage?: string;
|
|
161
145
|
buttonVariant?: BlockButtonRole;
|
|
162
146
|
overlayEnabled?: boolean;
|
|
163
147
|
spamProtectionEnabled?: boolean;
|
|
@@ -174,11 +158,11 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
174
158
|
render: Readonly<{
|
|
175
159
|
encode: (value: Readonly<{
|
|
176
160
|
display: EventRegistrationDisplay;
|
|
177
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
161
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
|
|
178
162
|
}>) => unknown;
|
|
179
163
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
180
164
|
display: EventRegistrationDisplay;
|
|
181
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
165
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
|
|
182
166
|
}>>;
|
|
183
167
|
}>;
|
|
184
168
|
}>;
|
|
@@ -196,7 +180,7 @@ export declare const eventRegistrationInteractiveIslandPropsCodec: Readonly<{
|
|
|
196
180
|
mode: "event-registration";
|
|
197
181
|
} & Readonly<{
|
|
198
182
|
display: EventRegistrationDisplay;
|
|
199
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
183
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
|
|
200
184
|
}>>;
|
|
201
185
|
}>) => unknown;
|
|
202
186
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<Readonly<{
|
|
@@ -211,7 +195,7 @@ export declare const eventRegistrationInteractiveIslandPropsCodec: Readonly<{
|
|
|
211
195
|
mode: "event-registration";
|
|
212
196
|
} & Readonly<{
|
|
213
197
|
display: EventRegistrationDisplay;
|
|
214
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
198
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
|
|
215
199
|
}>>;
|
|
216
200
|
}>>;
|
|
217
201
|
}>;
|
|
@@ -6,6 +6,6 @@ export type DateTimeTileProps = {
|
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
8
|
* Shared tile content for displaying date and time range.
|
|
9
|
-
* Used by event-details "Other dates"
|
|
9
|
+
* Used by event-details "Other dates".
|
|
10
10
|
*/
|
|
11
11
|
export declare function DateTimeTile({ startsAt, endsAt, timeZone }: DateTimeTileProps): React.JSX.Element;
|
package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts
CHANGED
|
@@ -102,8 +102,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
102
102
|
readonly showCapacity: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
103
103
|
readonly cardRole: z.ZodOptional<z.ZodEnum<{
|
|
104
104
|
open: "open";
|
|
105
|
-
default: "default";
|
|
106
105
|
none: "none";
|
|
106
|
+
default: "default";
|
|
107
107
|
alternative: "alternative";
|
|
108
108
|
}>>;
|
|
109
109
|
readonly buttonVariant: z.ZodOptional<z.ZodEnum<{
|
|
@@ -141,8 +141,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
141
141
|
readonly filterVenueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
142
|
readonly events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
143
143
|
bookingScope: z.ZodEnum<{
|
|
144
|
-
single_occurrence: "single_occurrence";
|
|
145
144
|
whole_series: "whole_series";
|
|
145
|
+
single_occurrence: "single_occurrence";
|
|
146
146
|
}>;
|
|
147
147
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
148
148
|
course: "course";
|
|
@@ -481,14 +481,14 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
481
481
|
}>;
|
|
482
482
|
}, z.core.$strip>], "kind">;
|
|
483
483
|
deliveryMode: z.ZodEnum<{
|
|
484
|
+
online: "online";
|
|
484
485
|
in_person: "in_person";
|
|
485
486
|
hybrid: "hybrid";
|
|
486
|
-
online: "online";
|
|
487
487
|
}>;
|
|
488
488
|
attendanceModes: z.ZodArray<z.ZodObject<{
|
|
489
489
|
mode: z.ZodEnum<{
|
|
490
|
-
in_person: "in_person";
|
|
491
490
|
online: "online";
|
|
491
|
+
in_person: "in_person";
|
|
492
492
|
}>;
|
|
493
493
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
494
494
|
registeredCount: z.ZodNumber;
|
|
@@ -571,9 +571,9 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
571
571
|
}>;
|
|
572
572
|
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
573
573
|
attendanceScope: z.ZodOptional<z.ZodEnum<{
|
|
574
|
-
in_person: "in_person";
|
|
575
574
|
both: "both";
|
|
576
575
|
online: "online";
|
|
576
|
+
in_person: "in_person";
|
|
577
577
|
}>>;
|
|
578
578
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
579
579
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
@@ -632,9 +632,9 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
632
632
|
currency: z.ZodString;
|
|
633
633
|
}, z.core.$strip>;
|
|
634
634
|
}, z.core.$strip>, z.ZodObject<{
|
|
635
|
-
kind: z.ZodLiteral<"
|
|
635
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
636
636
|
display: z.ZodObject<{
|
|
637
|
-
kind: z.ZodLiteral<"
|
|
637
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
638
638
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
639
639
|
kind: z.ZodLiteral<"free">;
|
|
640
640
|
currency: z.ZodString;
|
|
@@ -720,6 +720,17 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
720
720
|
}, z.core.$strip>;
|
|
721
721
|
}, z.core.$strip>]>>;
|
|
722
722
|
}, z.core.$strip>;
|
|
723
|
+
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
724
|
+
requirementId: string;
|
|
725
|
+
title: string;
|
|
726
|
+
agreement: import("../../../../../../../core/src/index").RichTextDoc;
|
|
727
|
+
checkboxLabel: string;
|
|
728
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
729
|
+
requirementId: string;
|
|
730
|
+
title: string;
|
|
731
|
+
agreement: import("../../../../../../../core/src/index").RichTextDoc;
|
|
732
|
+
checkboxLabel: string;
|
|
733
|
+
}>, unknown>>>;
|
|
723
734
|
accessRestriction: z.ZodEnum<{
|
|
724
735
|
none: "none";
|
|
725
736
|
category: "category";
|
|
@@ -732,8 +743,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
732
743
|
eventSeriesId: z.ZodString;
|
|
733
744
|
pricing: z.ZodObject<{
|
|
734
745
|
bookingRequirement: z.ZodEnum<{
|
|
735
|
-
required: "required";
|
|
736
746
|
none: "none";
|
|
747
|
+
required: "required";
|
|
737
748
|
}>;
|
|
738
749
|
pricingStrategy: z.ZodEnum<{
|
|
739
750
|
single: "single";
|
|
@@ -819,9 +830,9 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
819
830
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
820
831
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
821
832
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
822
|
-
in_person: "in_person";
|
|
823
833
|
both: "both";
|
|
824
834
|
online: "online";
|
|
835
|
+
in_person: "in_person";
|
|
825
836
|
}>>>;
|
|
826
837
|
}, z.core.$strip>>;
|
|
827
838
|
}, z.core.$strip>;
|
|
@@ -869,8 +880,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
869
880
|
export declare const eventCollectionDisplaySchemaShape: {
|
|
870
881
|
readonly events: z.ZodArray<z.ZodObject<{
|
|
871
882
|
bookingScope: z.ZodEnum<{
|
|
872
|
-
single_occurrence: "single_occurrence";
|
|
873
883
|
whole_series: "whole_series";
|
|
884
|
+
single_occurrence: "single_occurrence";
|
|
874
885
|
}>;
|
|
875
886
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
876
887
|
course: "course";
|
|
@@ -1209,14 +1220,14 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1209
1220
|
}>;
|
|
1210
1221
|
}, z.core.$strip>], "kind">;
|
|
1211
1222
|
deliveryMode: z.ZodEnum<{
|
|
1223
|
+
online: "online";
|
|
1212
1224
|
in_person: "in_person";
|
|
1213
1225
|
hybrid: "hybrid";
|
|
1214
|
-
online: "online";
|
|
1215
1226
|
}>;
|
|
1216
1227
|
attendanceModes: z.ZodArray<z.ZodObject<{
|
|
1217
1228
|
mode: z.ZodEnum<{
|
|
1218
|
-
in_person: "in_person";
|
|
1219
1229
|
online: "online";
|
|
1230
|
+
in_person: "in_person";
|
|
1220
1231
|
}>;
|
|
1221
1232
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
1222
1233
|
registeredCount: z.ZodNumber;
|
|
@@ -1299,9 +1310,9 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1299
1310
|
}>;
|
|
1300
1311
|
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
1301
1312
|
attendanceScope: z.ZodOptional<z.ZodEnum<{
|
|
1302
|
-
in_person: "in_person";
|
|
1303
1313
|
both: "both";
|
|
1304
1314
|
online: "online";
|
|
1315
|
+
in_person: "in_person";
|
|
1305
1316
|
}>>;
|
|
1306
1317
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
1307
1318
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1360,9 +1371,9 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1360
1371
|
currency: z.ZodString;
|
|
1361
1372
|
}, z.core.$strip>;
|
|
1362
1373
|
}, z.core.$strip>, z.ZodObject<{
|
|
1363
|
-
kind: z.ZodLiteral<"
|
|
1374
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
1364
1375
|
display: z.ZodObject<{
|
|
1365
|
-
kind: z.ZodLiteral<"
|
|
1376
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
1366
1377
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1367
1378
|
kind: z.ZodLiteral<"free">;
|
|
1368
1379
|
currency: z.ZodString;
|
|
@@ -1448,6 +1459,17 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1448
1459
|
}, z.core.$strip>;
|
|
1449
1460
|
}, z.core.$strip>]>>;
|
|
1450
1461
|
}, z.core.$strip>;
|
|
1462
|
+
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
1463
|
+
requirementId: string;
|
|
1464
|
+
title: string;
|
|
1465
|
+
agreement: import("../../../../../../../core/src/index").RichTextDoc;
|
|
1466
|
+
checkboxLabel: string;
|
|
1467
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
1468
|
+
requirementId: string;
|
|
1469
|
+
title: string;
|
|
1470
|
+
agreement: import("../../../../../../../core/src/index").RichTextDoc;
|
|
1471
|
+
checkboxLabel: string;
|
|
1472
|
+
}>, unknown>>>;
|
|
1451
1473
|
accessRestriction: z.ZodEnum<{
|
|
1452
1474
|
none: "none";
|
|
1453
1475
|
category: "category";
|
|
@@ -1460,8 +1482,8 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1460
1482
|
eventSeriesId: z.ZodString;
|
|
1461
1483
|
pricing: z.ZodObject<{
|
|
1462
1484
|
bookingRequirement: z.ZodEnum<{
|
|
1463
|
-
required: "required";
|
|
1464
1485
|
none: "none";
|
|
1486
|
+
required: "required";
|
|
1465
1487
|
}>;
|
|
1466
1488
|
pricingStrategy: z.ZodEnum<{
|
|
1467
1489
|
single: "single";
|
|
@@ -1547,9 +1569,9 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1547
1569
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
1548
1570
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
1549
1571
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1550
|
-
in_person: "in_person";
|
|
1551
1572
|
both: "both";
|
|
1552
1573
|
online: "online";
|
|
1574
|
+
in_person: "in_person";
|
|
1553
1575
|
}>>>;
|
|
1554
1576
|
}, z.core.$strip>>;
|
|
1555
1577
|
}, z.core.$strip>;
|
|
@@ -1610,8 +1632,8 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1610
1632
|
readonly showCapacity: z.ZodBoolean;
|
|
1611
1633
|
readonly cardRole: z.ZodEnum<{
|
|
1612
1634
|
open: "open";
|
|
1613
|
-
default: "default";
|
|
1614
1635
|
none: "none";
|
|
1636
|
+
default: "default";
|
|
1615
1637
|
alternative: "alternative";
|
|
1616
1638
|
}>;
|
|
1617
1639
|
readonly buttonVariant: z.ZodEnum<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PublicWholeSeriesOffering } from '../../blocks/events/whole-series/types';
|
|
3
3
|
import type { ButtonVariant, PublicEvent } from '../../blocks/events/shared/types';
|
|
4
4
|
import type { CardStylesContent } from '../../fields/boxStyles';
|
|
5
5
|
import { type BookingOfferingPresetSummary, type OfferingsPreviewEventDataKey, type OfferingsPreviewGroupOrder, type OfferingsPreviewGroupOverride, type OfferingsPreviewRouteCandidate } from '../../blocks/offerings-preview/model';
|
|
@@ -17,7 +17,7 @@ type OfferingsPreviewProps = Readonly<{
|
|
|
17
17
|
routeCandidates?: Readonly<{
|
|
18
18
|
routes?: readonly OfferingsPreviewRouteCandidate[] | null;
|
|
19
19
|
}> | null;
|
|
20
|
-
|
|
20
|
+
wholeSeriesOfferings?: readonly PublicWholeSeriesOffering[] | null;
|
|
21
21
|
}> & Partial<Record<OfferingsPreviewEventDataKey, readonly PublicEvent[] | null>>;
|
|
22
22
|
export declare function OfferingsPreviewNode(props: OfferingsPreviewProps): React.JSX.Element | null;
|
|
23
23
|
export default OfferingsPreviewNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BlockBookingPaymentTerms } from '../../blocks/shared/bookingPaymentTerms';
|
|
1
|
+
import type { BlockBookingPaymentCollectionOption, BlockBookingPaymentTerms } from '../../blocks/shared/bookingPaymentTerms';
|
|
2
2
|
export type BookingPaymentSelectionKind = 'upfront' | 'deferred_manual' | 'instalment_plan' | 'flexible_balance';
|
|
3
3
|
export type BookingPaymentOptionSummaryRow = Readonly<{
|
|
4
4
|
label: string;
|
|
@@ -18,6 +18,11 @@ export type BookingPaymentSelectionViewModel = Readonly<{
|
|
|
18
18
|
serviceTitle: string;
|
|
19
19
|
options: readonly BookingPaymentOptionViewModel[];
|
|
20
20
|
}>;
|
|
21
|
+
export declare function resolveBookingPaymentDueNowCents(input: Readonly<{
|
|
22
|
+
option: BlockBookingPaymentCollectionOption;
|
|
23
|
+
totalCents: number;
|
|
24
|
+
bookingStartAt?: string | null;
|
|
25
|
+
}>): number;
|
|
21
26
|
export declare function buildBookingPaymentSelectionViewModel(input: Readonly<{
|
|
22
27
|
serviceTitle: string;
|
|
23
28
|
paymentTerms?: BlockBookingPaymentTerms;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RichTextDoc } from "../../../../../../core/src/index";
|
|
2
|
+
export declare function BookingConsentAgreement({ agreement, showTitle, title, titleId, }: Readonly<{
|
|
3
|
+
agreement: RichTextDoc;
|
|
4
|
+
showTitle?: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
titleId: string;
|
|
7
|
+
}>): React.ReactElement;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
type BlockDiscountCodeSurface = 'event-registration'
|
|
2
|
+
type BlockDiscountCodeSurface = 'event-registration';
|
|
3
3
|
export type DiscountCodeDisclosureSurface = BlockDiscountCodeSurface | 'theme-form';
|
|
4
4
|
export declare const BLOCK_DISCOUNT_CODE_DISCLOSURE_CLASSES: {
|
|
5
|
-
readonly 'whole-series-registration': {
|
|
6
|
-
readonly root: "er-whole-series-discount";
|
|
7
|
-
readonly toggle: "er-whole-series-discount__toggle";
|
|
8
|
-
readonly form: "er-whole-series-discount__form";
|
|
9
|
-
readonly label: "er-whole-series-discount__label";
|
|
10
|
-
readonly row: "er-whole-series-discount__row";
|
|
11
|
-
readonly input: "er-whole-series-discount__input";
|
|
12
|
-
readonly apply: "er-whole-series-discount__apply";
|
|
13
|
-
readonly remove: "er-whole-series-discount__remove";
|
|
14
|
-
readonly hint: "er-whole-series-discount__hint";
|
|
15
|
-
readonly feedback: "er-whole-series-discount__feedback";
|
|
16
|
-
};
|
|
17
5
|
readonly 'event-registration': {
|
|
18
6
|
readonly root: "er-discount";
|
|
19
7
|
readonly toggle: "er-discount__toggle";
|
|
@@ -4,7 +4,7 @@ export type LoggedInAsUserProps = {
|
|
|
4
4
|
email: string;
|
|
5
5
|
/** Optional logout handler. If provided, shows "Not you? Log out" link. */
|
|
6
6
|
onLogout?: () => void;
|
|
7
|
-
/** CSS class prefix for
|
|
7
|
+
/** CSS class prefix for the owning registration surface. */
|
|
8
8
|
classPrefix: string;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Celebratory UI shown when user's membership covers the course/event.
|
|
3
3
|
* Displays confirmation that no payment is required.
|
|
4
4
|
*
|
|
5
|
-
* Supports
|
|
5
|
+
* Supports registration surfaces with a caller-provided class prefix.
|
|
6
6
|
*/
|
|
7
7
|
type MembershipHeroProps = {
|
|
8
8
|
/** Name of the membership that covers this item */
|
|
@@ -8,7 +8,7 @@ type StateIconProps = {
|
|
|
8
8
|
* Circular icon wrapper for terminal state screens (success, error, waitlist, etc.).
|
|
9
9
|
*
|
|
10
10
|
* Layout is provided by shared `rb-state-icon` CSS; color variants are
|
|
11
|
-
* block-scoped
|
|
11
|
+
* block-scoped by the owning registration surface.
|
|
12
12
|
*/
|
|
13
13
|
export declare function StateIcon({ variant, children }: StateIconProps): import("react").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared Registration Components and Utilities
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Shared registration components and utilities.
|
|
5
5
|
*/
|
|
6
6
|
export type { FormData, ButtonVariant } from './types';
|
|
7
7
|
export { DEFAULT_CURRENCY } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared Registration Types
|
|
3
3
|
*
|
|
4
|
-
* Common types used by
|
|
4
|
+
* Common types used by public registration blocks.
|
|
5
5
|
*/
|
|
6
6
|
import type { BlockButtonRole } from '../../constants/buttonRoles';
|
|
7
7
|
/**
|
|
@@ -12,6 +12,7 @@ export type FormData = {
|
|
|
12
12
|
email: string;
|
|
13
13
|
phone: string;
|
|
14
14
|
notes: string;
|
|
15
|
+
consentAccepted?: boolean;
|
|
15
16
|
};
|
|
16
17
|
/**
|
|
17
18
|
* Button style variants.
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* and include the block anchor hash for post-redirect scroll targeting.
|
|
6
6
|
*
|
|
7
7
|
* @param paramName - Query parameter name to add (e.g., 'enrollment', 'registration')
|
|
8
|
-
* @param anchorId - Block anchor ID for hash fragment
|
|
8
|
+
* @param anchorId - Block anchor ID for the return URL hash fragment.
|
|
9
9
|
* @returns Object with success and cancel URLs
|
|
10
10
|
*/
|
|
11
|
-
export declare function buildCheckoutReturnUrls(paramName: string, anchorId: string): {
|
|
11
|
+
export declare function buildCheckoutReturnUrls(paramName: string, anchorId: string, returnParams?: Readonly<Record<string, string>>): {
|
|
12
12
|
successUrl: string;
|
|
13
13
|
cancelUrl: string;
|
|
14
14
|
};
|
|
@@ -3,11 +3,14 @@ export type InternalRouteOnlyLinkValue = {
|
|
|
3
3
|
kind: 'internal';
|
|
4
4
|
routeId: string;
|
|
5
5
|
};
|
|
6
|
+
export declare const RESOLVED_INTERNAL_LINK_ENTITY_TYPES: readonly ["page", "content", "pageSurface"];
|
|
7
|
+
export type ResolvedInternalLinkEntityType = (typeof RESOLVED_INTERNAL_LINK_ENTITY_TYPES)[number];
|
|
8
|
+
export declare function isResolvedInternalLinkEntityType(value: unknown): value is ResolvedInternalLinkEntityType;
|
|
6
9
|
export type InternalResolvedLinkValue = {
|
|
7
10
|
kind: 'internal';
|
|
8
11
|
routeId: string;
|
|
9
12
|
entityId: string;
|
|
10
|
-
entityType:
|
|
13
|
+
entityType: ResolvedInternalLinkEntityType;
|
|
11
14
|
href: string;
|
|
12
15
|
title: string;
|
|
13
16
|
typeLabel: string;
|
|
@@ -70,6 +73,7 @@ export declare const internalResolvedLinkSchema: z.ZodObject<{
|
|
|
70
73
|
entityType: z.ZodEnum<{
|
|
71
74
|
content: "content";
|
|
72
75
|
page: "page";
|
|
76
|
+
pageSurface: "pageSurface";
|
|
73
77
|
}>;
|
|
74
78
|
href: z.ZodString;
|
|
75
79
|
title: z.ZodString;
|
|
@@ -85,6 +89,7 @@ export declare const internalLinkSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
85
89
|
entityType: z.ZodEnum<{
|
|
86
90
|
content: "content";
|
|
87
91
|
page: "page";
|
|
92
|
+
pageSurface: "pageSurface";
|
|
88
93
|
}>;
|
|
89
94
|
href: z.ZodString;
|
|
90
95
|
title: z.ZodString;
|
|
@@ -120,6 +125,7 @@ export declare const linkSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zod
|
|
|
120
125
|
entityType: z.ZodEnum<{
|
|
121
126
|
content: "content";
|
|
122
127
|
page: "page";
|
|
128
|
+
pageSurface: "pageSurface";
|
|
123
129
|
}>;
|
|
124
130
|
href: z.ZodString;
|
|
125
131
|
title: z.ZodString;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { assertNever } from './utils/assertNever';
|
|
2
|
+
export type { Json } from './types/json';
|
|
3
|
+
export * from './money';
|
|
4
|
+
export * from './moneyContracts';
|
|
5
|
+
export * from './moneyDateUtils';
|
|
6
|
+
export * from './moneyPayments';
|
|
7
|
+
export * from './moneyReceiptReadModel';
|
|
8
|
+
export * from './moneyPlanningTime';
|
|
9
|
+
export * from './moneyReport';
|
|
10
|
+
export * from './moneyReportPage';
|
|
11
|
+
export * from './waitlists';
|
|
12
|
+
export * from './shop/digitalFulfillment';
|
|
13
|
+
export * from './shop/fulfillmentStatus';
|
|
14
|
+
export * from './shop/shipmentEligibility';
|
|
15
|
+
export * from './shop/shippingAddress';
|
|
16
|
+
export * from './shop/inventoryRestore';
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { type Result, type EventCategoryId, type EventSeriesId, type MembershipId, type MoneyDateString, type PassId, type ProductId, type VenueId } from '../../core/src/index';
|
|
2
|
+
import { type MoneyPlanningTimeInput } from './moneyPlanningTime';
|
|
3
|
+
export declare const MONEY_PERIOD_PRESETS: readonly ["1d", "7d", "30d", "90d", "365d"];
|
|
4
|
+
export type MoneyPeriodPreset = (typeof MONEY_PERIOD_PRESETS)[number];
|
|
5
|
+
export declare const MONEY_ITEM_KINDS: readonly ["event", "event_series_registration", "pass", "membership", "product"];
|
|
6
|
+
export type MoneyItemKind = (typeof MONEY_ITEM_KINDS)[number];
|
|
7
|
+
export type MoneyPeriod = Readonly<{
|
|
8
|
+
kind: 'preset';
|
|
9
|
+
preset: MoneyPeriodPreset;
|
|
10
|
+
from?: never;
|
|
11
|
+
to?: never;
|
|
12
|
+
}> | Readonly<{
|
|
13
|
+
kind: 'custom';
|
|
14
|
+
from: MoneyDateString;
|
|
15
|
+
to: MoneyDateString;
|
|
16
|
+
preset?: never;
|
|
17
|
+
}>;
|
|
18
|
+
export type MoneyDateRange = Readonly<{
|
|
19
|
+
from: MoneyDateString;
|
|
20
|
+
to: MoneyDateString;
|
|
21
|
+
}>;
|
|
22
|
+
export type MoneyEntityFilters = Readonly<{
|
|
23
|
+
eventSeriesIds: readonly EventSeriesId[];
|
|
24
|
+
eventCategoryIds: readonly EventCategoryId[];
|
|
25
|
+
venueIds: readonly VenueId[];
|
|
26
|
+
passIds: readonly PassId[];
|
|
27
|
+
membershipIds: readonly MembershipId[];
|
|
28
|
+
productIds: readonly ProductId[];
|
|
29
|
+
discountCodes: readonly string[];
|
|
30
|
+
}>;
|
|
31
|
+
export type MoneyFilterState = Readonly<{
|
|
32
|
+
period: MoneyPeriod;
|
|
33
|
+
itemKinds: readonly MoneyItemKind[];
|
|
34
|
+
entities: MoneyEntityFilters;
|
|
35
|
+
}>;
|
|
36
|
+
export type MoneyFilterSelection = Readonly<{
|
|
37
|
+
itemKinds: readonly MoneyItemKind[];
|
|
38
|
+
entities: MoneyEntityFilters;
|
|
39
|
+
}>;
|
|
40
|
+
export type MoneyQueryRange = Readonly<{
|
|
41
|
+
kind: 'all';
|
|
42
|
+
}> | MoneyPeriod;
|
|
43
|
+
export type MoneyQueryParamKey = 'period' | 'from' | 'to' | 'kind' | 'event' | 'category' | 'venue' | 'pass' | 'membership' | 'product' | 'discount';
|
|
44
|
+
export type MoneyFilterQuery = Readonly<{
|
|
45
|
+
period?: MoneyPeriodPreset;
|
|
46
|
+
from?: string;
|
|
47
|
+
to?: string;
|
|
48
|
+
kind?: MoneyItemKind[];
|
|
49
|
+
event?: string[];
|
|
50
|
+
category?: string[];
|
|
51
|
+
venue?: string[];
|
|
52
|
+
pass?: string[];
|
|
53
|
+
membership?: string[];
|
|
54
|
+
product?: string[];
|
|
55
|
+
discount?: string[];
|
|
56
|
+
}>;
|
|
57
|
+
type MoneyQueryRangeInput = Readonly<{
|
|
58
|
+
period?: string;
|
|
59
|
+
from?: string;
|
|
60
|
+
to?: string;
|
|
61
|
+
}>;
|
|
62
|
+
export type MoneyFilterParseIssue = Readonly<{
|
|
63
|
+
kind: 'invalid_period_preset';
|
|
64
|
+
value: string;
|
|
65
|
+
}> | Readonly<{
|
|
66
|
+
kind: 'invalid_date';
|
|
67
|
+
field: 'from' | 'to';
|
|
68
|
+
value: string;
|
|
69
|
+
}> | Readonly<{
|
|
70
|
+
kind: 'invalid_date_range';
|
|
71
|
+
from: string;
|
|
72
|
+
to: string;
|
|
73
|
+
}> | Readonly<{
|
|
74
|
+
kind: 'partial_custom_range';
|
|
75
|
+
from: string | null;
|
|
76
|
+
to: string | null;
|
|
77
|
+
}> | Readonly<{
|
|
78
|
+
kind: 'invalid_item_kind';
|
|
79
|
+
value: string;
|
|
80
|
+
}> | Readonly<{
|
|
81
|
+
kind: 'empty_filter_value';
|
|
82
|
+
field: Exclude<MoneyQueryParamKey, 'period' | 'from' | 'to' | 'kind'>;
|
|
83
|
+
}>;
|
|
84
|
+
export type MoneyFilterParseResult = Readonly<{
|
|
85
|
+
value: MoneyFilterState;
|
|
86
|
+
issues: readonly MoneyFilterParseIssue[];
|
|
87
|
+
}>;
|
|
88
|
+
export type MoneyQueryRangeError = Readonly<{
|
|
89
|
+
kind: 'invalid_period';
|
|
90
|
+
value: string;
|
|
91
|
+
}> | Readonly<{
|
|
92
|
+
kind: 'invalid_date';
|
|
93
|
+
field: 'from' | 'to';
|
|
94
|
+
value: string;
|
|
95
|
+
}> | Readonly<{
|
|
96
|
+
kind: 'invalid_date_range';
|
|
97
|
+
from: string;
|
|
98
|
+
to: string;
|
|
99
|
+
}> | Readonly<{
|
|
100
|
+
kind: 'partial_custom_range';
|
|
101
|
+
from: string | null;
|
|
102
|
+
to: string | null;
|
|
103
|
+
}>;
|
|
104
|
+
export declare const DEFAULT_MONEY_FILTER_STATE: MoneyFilterState;
|
|
105
|
+
export declare function isMoneyDateString(value: string): value is MoneyDateString;
|
|
106
|
+
export declare function parseMoneyDateString(value: string): MoneyDateString | null;
|
|
107
|
+
export declare function isMoneyPeriodPreset(value: unknown): value is MoneyPeriodPreset;
|
|
108
|
+
export declare function isMoneyItemKind(value: unknown): value is MoneyItemKind;
|
|
109
|
+
export declare function createDefaultMoneyFilterState(): MoneyFilterState;
|
|
110
|
+
export declare function createDefaultMoneyFilterSelection(): MoneyFilterSelection;
|
|
111
|
+
export declare function resolveMoneyDateRange(period: MoneyPeriod, options?: MoneyPlanningTimeInput): MoneyDateRange;
|
|
112
|
+
export declare function parseMoneyFilterState(searchParams: URLSearchParams): MoneyFilterParseResult;
|
|
113
|
+
export declare function serializeMoneyFilterState(filters: MoneyFilterState): URLSearchParams;
|
|
114
|
+
export declare function moneyFilterStateToQuery(filters: MoneyFilterState, options?: Readonly<{
|
|
115
|
+
includePeriod?: boolean;
|
|
116
|
+
}>): MoneyFilterQuery;
|
|
117
|
+
export declare function moneyFilterStateToSelection(filters: MoneyFilterState): MoneyFilterSelection;
|
|
118
|
+
export declare function moneyFilterSelectionFromQuery(query: Pick<MoneyFilterQuery, 'kind' | 'event' | 'category' | 'venue' | 'pass' | 'membership' | 'product' | 'discount'>): MoneyFilterSelection;
|
|
119
|
+
export declare function resolveMoneyQueryRange(query: MoneyQueryRangeInput, options?: Readonly<{
|
|
120
|
+
defaultPreset?: MoneyPeriodPreset;
|
|
121
|
+
}>): Result<MoneyQueryRange, MoneyQueryRangeError>;
|
|
122
|
+
export {};
|