@riverbankcms/sdk 0.148.0 → 0.150.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/README.md +1 -1
- package/dist/EventEmbeddedCheckoutStep-D00Kc8Zj.mjs +285 -0
- package/dist/{PreviewEditorSidebar-DvEPG3Z2.mjs → PreviewEditorSidebar-7ZhmmnBB.mjs} +103 -66
- package/dist/{PreviewEditorUI-D6eb6fkx.mjs → PreviewEditorUI-BIJucTRd.mjs} +3 -6
- package/dist/{PreviewQueryProvider-5znTyJuz.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DJ6utQ_R.mjs → SdkPreviewModeRuntime-tj45gmCX.mjs} +96 -67
- package/dist/{SiteChromeCustomizeContext-CFJYh6vo.mjs → SiteChromeCustomizeContext-BFOt0ss-.mjs} +4804 -4161
- package/dist/_dts/ai/src/contracts/proposals.d.ts +660 -0
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +510 -0
- package/dist/_dts/api/src/billing.d.ts +2 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +33 -48
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/bookingOperations.d.ts +5 -7
- package/dist/_dts/api/src/bookingRecords.d.ts +15 -11
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +0 -2
- package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +5 -1
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +2 -10
- package/dist/_dts/api/src/eventManagementContracts.d.ts +4 -7
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +9 -0
- package/dist/_dts/api/src/footerSettings.d.ts +3 -3
- package/dist/_dts/api/src/index.d.ts +4 -4
- package/dist/_dts/api/src/navigation/bookingPortalLink.d.ts +13 -0
- package/dist/_dts/api/src/navigation.d.ts +1 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +2 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -29
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +9 -173
- package/dist/_dts/api/src/request.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkThemeWire.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
- package/dist/_dts/api/src/siteOperations.d.ts +6 -2
- package/dist/_dts/api/src/siteSettings.d.ts +2 -0
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -1
- package/dist/_dts/blocks/src/client.d.ts +2 -1
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +38 -10
- package/dist/_dts/blocks/src/portal/types.d.ts +9 -6
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +24 -24
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +84 -160
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +31 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +30 -3
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +10 -1
- 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 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +38 -18
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +48 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/FullyBookedStep.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +15 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentLocation.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentResponse.d.ts +72 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +66 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +13 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +11 -52
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +19 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -42
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +7 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +94 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useGuestRegistrationRecovery.d.ts +30 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +24 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts +6 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +24 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/shared/stripe/browserStripe.d.ts +8 -0
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +54 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +58 -13
- package/dist/_dts/commerce/src/purchase/checkoutCopy.d.ts +10 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +16 -21
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +23 -40
- package/dist/_dts/commerce/src/purchase/checkoutPresentation.d.ts +49 -0
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +6 -6
- package/dist/_dts/commerce/src/purchase/checkoutStripeFinalizationPlanning.d.ts +5 -1
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +9 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +3 -3
- package/dist/_dts/commerce/src/purchase/membershipOrderItemMetadata.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +9 -4
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +13 -1
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +5 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -1
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +7 -1
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/stripeCheckoutReturnUrl.d.ts +9 -2
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +7 -7
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +3 -2
- package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +6 -1
- package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -0
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +7 -0
- package/dist/_dts/core/src/booking-flexible-balance.d.ts +2 -2
- package/dist/_dts/core/src/booking-instalment-deposit.d.ts +20 -0
- package/dist/_dts/core/src/booking-live-payment-terms.d.ts +72 -0
- package/dist/_dts/core/src/booking-payment-options.d.ts +24 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +522 -0
- package/dist/_dts/core/src/branded.d.ts +3 -0
- package/dist/_dts/core/src/edit-lease.d.ts +5 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/patch/index.d.ts +30 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +326 -36
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerMiniDialog.d.ts +10 -0
- package/dist/_dts/media-editor/src/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +0 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/previewAuthStore.d.ts +7 -0
- package/dist/_dts/preview-next/src/constants.d.ts +4 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +1 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -1
- package/dist/_dts/sdk/src/bookings/types.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -12
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/blocks/opaquePanels.d.ts +147 -0
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +22 -0
- package/dist/_dts/theme-core/src/cards/roles.d.ts +12 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +198 -0
- package/dist/_dts/theme-core/src/palette/utils/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/palette/utils/scrimContrast.d.ts +22 -0
- package/dist/_dts/theme-core/src/runtime/bridgeColourTokens.d.ts +10 -0
- package/dist/_dts/theme-core/src/schema.d.ts +330 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +11 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +12 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +7 -4
- package/dist/_dts/theme-core/src/site-styles/sectionSurfaceBackgrounds.d.ts +65 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +17 -0
- package/dist/_dts/theme-core/src/surfaces/opaqueSurface.d.ts +43 -0
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/palette/useHexDraft.d.ts +7 -0
- package/dist/client/{BookingMailingListNote-CzRt2dF_.mjs → BookingMailingListNote-CYHOufsI.mjs} +33 -124
- package/dist/client/{CheckboxChoice-B33MqoUo.mjs → CheckboxChoice-M-3HycLw.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-mxqwap3f.mjs → DemoBookingPortalAccess-Cvr9O_ca.mjs} +2 -2
- package/dist/client/{EventCombined.client-CDb11igO.mjs → EventCombined.client-m5UZIobP.mjs} +7 -7
- package/dist/client/EventEmbeddedCheckoutStep-DL6zFAkA.mjs +289 -0
- package/dist/client/{EventListing.client-EgYhzKPa.mjs → EventListing.client-DeMfCM04.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-gtmtaA2b.mjs → LeafletStaticMap-CvZ3gOdD.mjs} +1 -1
- package/dist/client/{checkoutUrls-CXhko2Rv.mjs → RichText-BtfNvQV6.mjs} +2 -29
- package/dist/client/{TerminalPanel-DvNUP5ot.mjs → TerminalPanel-CUCNEwlH.mjs} +2 -18
- package/dist/client/{ThemedButton-C7CeUJjW.mjs → ThemedButton-C7WhXuRl.mjs} +2 -2
- package/dist/client/{accordion-kjvt49rA.mjs → accordion-cQm5mjqs.mjs} +1 -1
- package/dist/client/{bookingForm-pbRZordh.mjs → bookingForm-BVPJE5RQ.mjs} +15 -11
- package/dist/client/bookings.mjs +2860 -1222
- package/dist/client/{carousel-f4Zbmicv.mjs → carousel-3vgnY7LC.mjs} +2 -2
- package/dist/client/{carousel.client-A2lG-9od.mjs → carousel.client-CISsdZvg.mjs} +1 -1
- package/dist/client/{cart-DO20An50.mjs → cart-BGK4oOjm.mjs} +3 -3
- package/dist/client/{checkout-Du5amDR_.mjs → checkout-GsBLUNJD.mjs} +3 -3
- package/dist/client/checkoutUrls-ChxwaNtO.mjs +28 -0
- package/dist/client/client.mjs +3324 -2053
- package/dist/client/{colorStyles-j5U9v5JA.mjs → colorStyles-D-32xHZh.mjs} +2 -30
- package/dist/client/{context-eW97E945.mjs → context-D_8s12Fp.mjs} +1 -1
- package/dist/client/{dates-jPCirRea.mjs → dates-DeJQbQ9T.mjs} +2 -2
- package/dist/client/{eventCalendar-C2M-iE4j.mjs → eventCalendar-cmucD4NR.mjs} +10 -10
- package/dist/client/{eventCombined-W6ns3LHg.mjs → eventCombined-ku3E9FTl.mjs} +4 -4
- package/dist/client/{eventDetails-CR-GT0f0.mjs → eventDetails-CyKZ61sF.mjs} +5 -5
- package/dist/client/{eventListing-BK8AfYZz.mjs → eventListing-B7yxGIhX.mjs} +4 -4
- package/dist/client/{eventRegistration-BJSd4KUu.mjs → eventRegistration-BoXfSFgZ.mjs} +1455 -1184
- package/dist/client/{form-BvpfbQaT.mjs → form-CNQOWhJo.mjs} +5 -5
- package/dist/client/{headerSection-I5sUQ8x-.mjs → headerSection-DahaBJGQ.mjs} +3 -3
- package/dist/client/hooks.mjs +283 -193
- package/dist/client/{locationMap-BLvwf9_f.mjs → locationMap-BoDjqYlW.mjs} +4 -4
- package/dist/client/{media-Cl38iOMI.mjs → media-BFY0y2rb.mjs} +2 -1
- package/dist/client/{newsletterForm-DrQ2weE8.mjs → newsletterForm-DtzXDklw.mjs} +4 -4
- package/dist/client/{pricing-BES87mrR.mjs → pricing-DXEh2Lhh.mjs} +1 -1
- package/dist/client/{productDetail-Url9jcc5.mjs → productDetail-D7cPa-00.mjs} +3 -3
- package/dist/client/{productList-DE7ngEZJ.mjs → productList-D1XMap66.mjs} +3 -3
- package/dist/client/{propsDecoder-D1OtGXDV.mjs → propsDecoder-DiIeBopB.mjs} +913 -322
- package/dist/client/rendering/client.mjs +3913 -2260
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3302 -2013
- package/dist/client/result-DRW7JWXz.mjs +30 -0
- package/dist/client/{routeIslandApiConfig-BG9Y-SHg.mjs → routeIslandApiConfig-wzR4lKAY.mjs} +1 -1
- package/dist/client/scrollToBlock-C86BYkyV.mjs +17 -0
- package/dist/client/{shop-CJkuySJ3.mjs → shop-CYT5P-S5.mjs} +13 -14
- package/dist/client/{shop-commerce-store-Bxm75Pg6.mjs → shop-commerce-store-wKhsJQxI.mjs} +1 -1
- package/dist/client/{shop-commerce-4rKj5n9h.mjs → shop-commerce-ypBu_dx4.mjs} +9 -9
- package/dist/client/{shopShared-DpoQDWfz.mjs → shopShared-DFGhYrf2.mjs} +52 -6
- package/dist/client/{useEventFilters-D8HliSqR.mjs → useEventFilters-blSbN5o7.mjs} +8 -8
- package/dist/preview-next/before-render.mjs +15 -22
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/constants.mjs +5 -1
- package/dist/preview-next/index.mjs +5 -1
- package/dist/preview-next/keepAlive.mjs +149 -82
- package/dist/preview-next/middleware.mjs +15 -22
- package/dist/{previewAuthStore-BXXF3hhW.mjs → previewAuthStore-BBmV7UsW.mjs} +49 -29
- package/dist/{sdk-runtime-C2a05WjL.mjs → sdk-runtime-2p8uQk1V.mjs} +2 -2
- package/dist/{separator-CuNhBAhS.mjs → separator-Cvvzk0Oo.mjs} +1 -1
- package/dist/server/components.mjs +4041 -3704
- package/dist/server/config-validation.mjs +345 -255
- package/dist/server/config.mjs +345 -255
- package/dist/server/data.mjs +283 -193
- package/dist/server/index.mjs +20 -27
- package/dist/server/next.mjs +788 -469
- package/dist/server/page-converter.mjs +245 -121
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4018 -3690
- package/dist/server/rendering.mjs +4044 -3707
- package/dist/server/routing.mjs +314 -190
- package/dist/server/server.mjs +290 -218
- package/dist/server/theme-bridge.mjs +1122 -310
- package/dist/server/theme.mjs +126 -116
- package/dist/spinner-CDo6AkDz.mjs +658 -0
- package/dist/styles/index.css +75 -212
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- package/dist/_dts/billing/src/checkout/platform.d.ts +0 -77
- package/dist/_dts/billing/src/config/env.d.ts +0 -29
- package/dist/_dts/billing/src/stripe/client.d.ts +0 -29
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +0 -63
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +0 -9
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +0 -10
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +0 -55
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +0 -24
- package/dist/client/urlParams-D71VXFGx.mjs +0 -47
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type FooterCompositionV1, type FooterMembershipKey, type FooterModuleId, type FooterRichText, type FooterSection, type PublicProfile, type Result } from '../../../../core/src/index';
|
|
2
|
+
import type { Theme } from '../../../../theme-core/src/schema';
|
|
2
3
|
import type { FormSourceProps } from '../runtime/nodes/form.interactive';
|
|
3
4
|
import type { NewsletterFormSourceProps } from '../runtime/nodes/newsletter-form.interactive';
|
|
4
|
-
type FooterRuntimeModuleBase<TKind extends FooterSection['kind']> = Readonly<{
|
|
5
|
+
type FooterRuntimeModuleBase<TKind extends FooterSection['kind'] | 'attribution'> = Readonly<{
|
|
5
6
|
id: FooterModuleId;
|
|
6
7
|
kind: TKind;
|
|
7
8
|
heading: string | null;
|
|
@@ -43,7 +44,7 @@ type FooterRuntimeModuleVariant = (FooterRuntimeModuleBase<'brand'> & Readonly<{
|
|
|
43
44
|
content: FooterRichText;
|
|
44
45
|
}>) | (FooterRuntimeModuleBase<'engagement'> & Readonly<{
|
|
45
46
|
engagement: FooterRuntimeEngagement;
|
|
46
|
-
}>);
|
|
47
|
+
}>) | (FooterRuntimeModuleBase<'attribution'> & FooterAttribution);
|
|
47
48
|
export type FooterRuntimeModule = StrictUnion<FooterRuntimeModuleVariant>;
|
|
48
49
|
export type FooterRuntimeEngagement = Readonly<{
|
|
49
50
|
kind: 'standard-contact';
|
|
@@ -97,7 +98,7 @@ export type FooterRuntimeViewModel = Readonly<{
|
|
|
97
98
|
regions: readonly FooterRuntimeRegion[];
|
|
98
99
|
}>;
|
|
99
100
|
export type FooterRuntimeGroup = Readonly<{
|
|
100
|
-
kind: 'identity' | 'main-navigation' | 'visit' | 'engagement' | 'legal-ending';
|
|
101
|
+
kind: 'identity' | 'main-navigation' | 'visit' | 'engagement' | 'legal-ending' | 'attribution';
|
|
101
102
|
className: string;
|
|
102
103
|
modules: readonly FooterRuntimeModule[];
|
|
103
104
|
}>;
|
|
@@ -106,6 +107,26 @@ export type FooterRuntimeRegion = Readonly<{
|
|
|
106
107
|
className: string;
|
|
107
108
|
groups: readonly FooterRuntimeGroup[];
|
|
108
109
|
}>;
|
|
110
|
+
/**
|
|
111
|
+
* The platform's attribution line ("Made by Macadamia"). It is set by the
|
|
112
|
+
* site's plan, never by the owner, so it is not a footer composition section:
|
|
113
|
+
* it joins the runtime only, in the bottom bar, after the owner's modules.
|
|
114
|
+
*/
|
|
115
|
+
export type FooterAttribution = Readonly<{
|
|
116
|
+
/** The words before the link, e.g. "Booking by". */
|
|
117
|
+
lead: string;
|
|
118
|
+
link: Readonly<{
|
|
119
|
+
href: string;
|
|
120
|
+
label: string;
|
|
121
|
+
}>;
|
|
122
|
+
}>;
|
|
123
|
+
/** The footer arrangement's hints that come from the site style's footer. */
|
|
124
|
+
export type FooterLayoutHints = Readonly<{
|
|
125
|
+
legalRegion: 'integrated' | 'separate';
|
|
126
|
+
layoutVariant: Theme['footer']['variant'] | undefined;
|
|
127
|
+
navigationLayout: NonNullable<Theme['footer']['navLayout']>['layout'] | undefined;
|
|
128
|
+
}>;
|
|
129
|
+
export declare function resolveFooterLayoutHints(theme: Theme | null): FooterLayoutHints;
|
|
109
130
|
type FooterRuntimeViewModelInput = Readonly<{
|
|
110
131
|
composition: FooterCompositionV1;
|
|
111
132
|
publicProfile: PublicProfile;
|
|
@@ -130,4 +151,10 @@ export type FooterRuntimeSectionProjectionError = Readonly<{
|
|
|
130
151
|
}>;
|
|
131
152
|
export declare function projectFooterRuntimeSection(input: FooterRuntimeSectionProjectionInput): Result<FooterRuntimeModule, FooterRuntimeSectionProjectionError>;
|
|
132
153
|
export declare function buildFooterRuntimeViewModel(input: FooterRuntimeViewModelInput): FooterRuntimeViewModel;
|
|
154
|
+
/**
|
|
155
|
+
* Adds the platform attribution to a resolved footer: as the last group of the
|
|
156
|
+
* bottom bar, which it opens when the footer's arrangement has none, so every
|
|
157
|
+
* footer look shows it in the same place and styles it with its own tokens.
|
|
158
|
+
*/
|
|
159
|
+
export declare function withFooterAttribution(runtime: FooterRuntimeViewModel, attribution: FooterAttribution | null): FooterRuntimeViewModel;
|
|
133
160
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type BlockDesignCapability, type DesignedBlockDesignCapability, type DesignedBlockDesignCapabilityInput, type EyebrowTreatment, type BlockDesignCapabilityMap, type BlockDesignMetadataMap, type NonEmptyReadonlyArray, type NoExtraKeys, type UnsupportedBlockDesignCapabilityReason } from '../../../theme-core/src/site-styles/index';
|
|
1
|
+
import { type BlockDesignCapability, type DesignedBlockDesignCapability, type DesignedBlockDesignCapabilityInput, type EyebrowTreatment, type BlockDesignCapabilityMap, type BlockDesignMetadataMap, type NonEmptyReadonlyArray, type NoExtraKeys, type SectionBackgroundPaint, type UnsupportedBlockDesignCapabilityReason } from '../../../theme-core/src/site-styles/index';
|
|
2
2
|
import type { AnyBlockRuntimeDefinition } from '../contracts';
|
|
3
|
+
import type { FieldDefinition } from './manifest/schema';
|
|
3
4
|
import type { SystemBlockDefinition } from './registry';
|
|
4
5
|
export type NoBlockDesignCapabilityReason = UnsupportedBlockDesignCapabilityReason;
|
|
5
6
|
export type BlockDesignCapabilityDeclaration = Readonly<{
|
|
@@ -12,6 +13,14 @@ export type BlockDesignCapabilityDeclaration = Readonly<{
|
|
|
12
13
|
export declare function declareBlockDesignCapability<const TCapability extends DesignedBlockDesignCapabilityInput>(capability: NoExtraKeys<TCapability, DesignedBlockDesignCapabilityInput>): BlockDesignCapabilityDeclaration;
|
|
13
14
|
export declare function withEyebrowCapability(declaration: BlockDesignCapabilityDeclaration, eyebrowTreatments: NonEmptyReadonlyArray<EyebrowTreatment>): BlockDesignCapabilityDeclaration;
|
|
14
15
|
export declare function withLookCapability(declaration: BlockDesignCapabilityDeclaration): BlockDesignCapabilityDeclaration;
|
|
16
|
+
/**
|
|
17
|
+
* The section background paints a block's own `_sectionStyles.background`
|
|
18
|
+
* field admits, read from its manifest so the design capability cannot drift
|
|
19
|
+
* from what render admission accepts. A block without the field admits none.
|
|
20
|
+
*/
|
|
21
|
+
export declare function sectionBackgroundPaintsOfFields(fields: readonly FieldDefinition[]): readonly SectionBackgroundPaint[];
|
|
22
|
+
/** Pins a designed capability's section background paints to the block's manifest. */
|
|
23
|
+
export declare function withManifestSectionBackgroundPaints(declaration: BlockDesignCapabilityDeclaration, fields: readonly FieldDefinition[]): BlockDesignCapabilityDeclaration;
|
|
15
24
|
export declare function declareNoBlockDesignCapability(reason: NoBlockDesignCapabilityReason): BlockDesignCapabilityDeclaration;
|
|
16
25
|
export declare function resolveDeclaredBlockDesignCapability(declaration: BlockDesignCapabilityDeclaration | undefined): BlockDesignCapability | undefined;
|
|
17
26
|
export declare function blockDesignCapabilityMapFromDefinitions(definitions: readonly SystemBlockDefinition<unknown, AnyBlockRuntimeDefinition | undefined>[]): BlockDesignCapabilityMap;
|
|
@@ -44,7 +44,7 @@ export type { BlockApiClient, BoundBlockApiClient } from './client';
|
|
|
44
44
|
export { createHostedBlockApiConfig, getBlockApiReadStage } from './readAuthority';
|
|
45
45
|
export { BlockApiProvider, useBlockApi, useBlockApiOptional } from './context';
|
|
46
46
|
export type { BlockApiProviderProps } from './context';
|
|
47
|
-
export type { BlockApiConfig, BlockApiAuth, BrowserReadAuthority, ApiKeyAuth, BearerAuth, NoAuth, ApiResponse, ApiSuccessResponse, ApiErrorResponse, ApiFieldError, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, FormField, BookingSubmitRequest, BookingSubmitResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, TimeSlot, AvailableDatesRequest, AvailableDatesResponse, BookingService, BookingServicesRequest, BookingServicesResponse, BookingServiceResponse, BookingResource, BookingResourcesRequest, BookingResourcesResponse, PublicEvent, PublicEventsRequest, PublicEventsResponse, EventVenue, AccessRestriction, EventFilterCategory, EventFilterStaffMember, EventFilterVenue, EventFiltersResponse, EventRegisterRequest, EventRegisterResponse, EventCheckoutRequest, EventCheckoutResponse, EventCheckoutReturnRequest, EventCheckoutReturnResponse, PaymentMethod, EligiblePass, EligibleMembership, AvailablePass, AvailableMembership, DiscountContext, DiscountsAvailableRequest, DiscountsAvailableResponse, DiscountApplyLine, DiscountApplyRequest, DiscountApplyRejectedReason, DiscountApplyResponse, ShopCheckoutRequest, ShopCheckoutResponse, ShopDuplicateMembershipWarning, CustomerProfile, CustomerOrder, CustomerOrderFilter, CustomerOrderItem, CustomerOrderInstalmentPlan, CustomerOrderInstalmentPlanStatus, CustomerOrderInstalmentRow, CustomerOrderInstalmentStatus, CustomerOrderPaymentState, CustomerOrderRefund, EnabledModules, PortalMeResponse, PortalMeUpdateRequest, CustomerPass, CustomerPassCreditHistoryEntry, CustomerMembership, EventTicketBreakdownLine, CustomerEventRegistration, CustomerPortalWaitlistEntry, CustomerPortalWaitlistSubject, PortalEventTicket, CustomerAppointment, AppointmentBookingQuestionsTaskDetail, BookingQuestionsTaskDetail, BookingQuestionsAnswerValue, BookingQuestionsField, BookingQuestionsFieldOption, BookingQuestionsSection, BeforeYouComeTaskSummary, CustomerEventSeriesRegistration, EventGuest, PortalCredit, PortalCreditSummary, PortalCreditTransaction, PortalCreditResponse, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalDigitalProduct, PortalDigitalProductFile, PortalDigitalProductsResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalAppointmentBookingQuestionsResponse, PortalCreateAppointmentBookingQuestionsUploadUrlRequest, PortalCreateAppointmentBookingQuestionsUploadUrlResponse, PortalFinalizeAppointmentBookingQuestionsUploadRequest, PortalFinalizeAppointmentBookingQuestionsUploadResponse, PortalUpdateAppointmentBookingQuestionsRequest, PortalUpdateAppointmentBookingQuestionsResponse, PortalEventBookingQuestionsResponse, PortalCreateEventBookingQuestionsUploadUrlRequest, PortalCreateEventBookingQuestionsUploadUrlResponse, PortalFinalizeEventBookingQuestionsUploadRequest, PortalFinalizeEventBookingQuestionsUploadResponse, PortalUpdateEventBookingQuestionsRequest, PortalUpdateEventBookingQuestionsResponse, PortalWholeSeriesBookingQuestionsResponse, PortalCreateWholeSeriesBookingQuestionsUploadUrlRequest, PortalCreateWholeSeriesBookingQuestionsUploadUrlResponse, PortalFinalizeWholeSeriesBookingQuestionsUploadRequest, PortalFinalizeWholeSeriesBookingQuestionsUploadResponse, PortalUpdateWholeSeriesBookingQuestionsRequest, PortalUpdateWholeSeriesBookingQuestionsResponse, UpdateEventGuestsRequest, EventGuestsResponse, PortalCancelWholeSeriesRegistrationRequest, PortalCancelWholeSeriesRegistrationResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalCancelEventRegistrationRequest, PortalRefundInfo, PortalCancelEventRegistrationResult, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCancelMembershipAtPeriodEndResult, MagicLinkRequest, MagicLinkResponse, } from './types';
|
|
47
|
+
export type { BlockApiConfig, BlockApiAuth, BrowserReadAuthority, ApiKeyAuth, BearerAuth, NoAuth, ApiResponse, ApiSuccessResponse, ApiErrorResponse, ApiFieldError, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, FormField, BookingSubmitRequest, BookingSubmitResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, TimeSlot, AvailableDatesRequest, AvailableDatesResponse, BookingService, BookingServicesRequest, BookingServicesResponse, BookingServiceResponse, BookingResource, BookingResourcesRequest, BookingResourcesResponse, PublicEvent, PublicEventsRequest, PublicEventsResponse, EventVenue, AccessRestriction, EventFilterCategory, EventFilterStaffMember, EventFilterVenue, EventFiltersResponse, EventRegisterRequest, EventRegisterResponse, EventCheckoutRequest, EventCheckoutResponse, EventCheckoutReturnRequest, EventCheckoutReturnResponse, EventCheckoutStatusOutcome, PaymentMethod, EligiblePass, EligibleMembership, AvailablePass, AvailableMembership, DiscountContext, DiscountsAvailableRequest, DiscountsAvailableResponse, DiscountApplyLine, DiscountApplyRequest, DiscountApplyRejectedReason, DiscountApplyResponse, ShopCheckoutRequest, ShopCheckoutResponse, ShopDuplicateMembershipWarning, CustomerProfile, CustomerOrder, CustomerOrderFilter, CustomerOrderItem, CustomerOrderInstalmentPlan, CustomerOrderInstalmentPlanStatus, CustomerOrderInstalmentRow, CustomerOrderInstalmentStatus, CustomerOrderPaymentState, CustomerOrderRefund, EnabledModules, PortalMeResponse, PortalMeUpdateRequest, CustomerPass, CustomerPassCreditHistoryEntry, CustomerMembership, EventTicketBreakdownLine, CustomerEventRegistration, CustomerPortalWaitlistEntry, CustomerPortalWaitlistSubject, PortalEventTicket, CustomerAppointment, AppointmentBookingQuestionsTaskDetail, BookingQuestionsTaskDetail, BookingQuestionsAnswerValue, BookingQuestionsField, BookingQuestionsFieldOption, BookingQuestionsSection, BeforeYouComeTaskSummary, CustomerEventSeriesRegistration, EventGuest, PortalCredit, PortalCreditSummary, PortalCreditTransaction, PortalCreditResponse, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalDigitalProduct, PortalDigitalProductFile, PortalDigitalProductsResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalAppointmentBookingQuestionsResponse, PortalCreateAppointmentBookingQuestionsUploadUrlRequest, PortalCreateAppointmentBookingQuestionsUploadUrlResponse, PortalFinalizeAppointmentBookingQuestionsUploadRequest, PortalFinalizeAppointmentBookingQuestionsUploadResponse, PortalUpdateAppointmentBookingQuestionsRequest, PortalUpdateAppointmentBookingQuestionsResponse, PortalEventBookingQuestionsResponse, PortalCreateEventBookingQuestionsUploadUrlRequest, PortalCreateEventBookingQuestionsUploadUrlResponse, PortalFinalizeEventBookingQuestionsUploadRequest, PortalFinalizeEventBookingQuestionsUploadResponse, PortalUpdateEventBookingQuestionsRequest, PortalUpdateEventBookingQuestionsResponse, PortalWholeSeriesBookingQuestionsResponse, PortalCreateWholeSeriesBookingQuestionsUploadUrlRequest, PortalCreateWholeSeriesBookingQuestionsUploadUrlResponse, PortalFinalizeWholeSeriesBookingQuestionsUploadRequest, PortalFinalizeWholeSeriesBookingQuestionsUploadResponse, PortalUpdateWholeSeriesBookingQuestionsRequest, PortalUpdateWholeSeriesBookingQuestionsResponse, UpdateEventGuestsRequest, EventGuestsResponse, PortalCancelWholeSeriesRegistrationRequest, PortalCancelWholeSeriesRegistrationResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalCancelEventRegistrationRequest, PortalRefundInfo, PortalCancelEventRegistrationResult, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCancelMembershipAtPeriodEndResult, MagicLinkRequest, MagicLinkResponse, } from './types';
|
|
48
48
|
export { discountAvailabilityAllowsManualEntry, discountAvailabilityHasDiscounts, getAutoAppliedDiscountPreview, } from './types';
|
|
49
49
|
export type { BookingQuestionsDocumentAnswerValue } from '../../../portal/types';
|
|
50
50
|
export { deriveCreditProductLabels, getCreditProductCreditUnit, getCreditProductTypeLabel, getPortalCreditProductCreditNoun, } from './creditProducts';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BookingMailingListNote as BookingSignupNote } from '../../../../../../core/src/index';
|
|
1
|
+
import type { BookingMailingListNote as BookingSignupNote, BookingPaymentCollectionOptionKind } from '../../../../../../core/src/index';
|
|
2
2
|
/**
|
|
3
3
|
* Appointment booking, availability, service and resource types
|
|
4
4
|
*
|
|
@@ -17,7 +17,7 @@ export interface BookingSubmitRequest {
|
|
|
17
17
|
timezone: string;
|
|
18
18
|
discountCode?: string;
|
|
19
19
|
selectedSlidingAmount?: number;
|
|
20
|
-
selectedCollectionOptionKind?:
|
|
20
|
+
selectedCollectionOptionKind?: BookingPaymentCollectionOptionKind;
|
|
21
21
|
altchaSolution?: string | null;
|
|
22
22
|
successUrl?: string;
|
|
23
23
|
cancelUrl?: string;
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Part of the block API client type surface; re-exported from `../types`.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
import type { BookingPaymentCollectionOptionKind } from "../../../../../../core/src/index";
|
|
7
|
+
/** Every option kind can be requested at checkout. */
|
|
8
|
+
export type DirectCheckoutCollectionOptionKind = BookingPaymentCollectionOptionKind;
|
|
7
9
|
/** API key auth for SDK sites (bld_live_sk_*) */
|
|
8
10
|
export type ApiKeyAuth = {
|
|
9
11
|
type: "api-key";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CheckoutSessionHandle, EmbeddedCheckoutBrowserContext } from '../../../../../../commerce/src/purchase/index';
|
|
1
2
|
import type { BookingMailingListNote as BookingSignupNote } from '../../../../../../core/src/index';
|
|
2
3
|
/**
|
|
3
4
|
* Public event, registration, checkout and eligibility types
|
|
@@ -103,8 +104,7 @@ export interface EventRegisterRequest {
|
|
|
103
104
|
*/
|
|
104
105
|
registrationCommandId: string;
|
|
105
106
|
checkout?: {
|
|
106
|
-
|
|
107
|
-
cancelUrl: string;
|
|
107
|
+
returnUrl: string;
|
|
108
108
|
discountCode?: string;
|
|
109
109
|
collectionOptionKind?: DirectCheckoutCollectionOptionKind;
|
|
110
110
|
};
|
|
@@ -152,6 +152,10 @@ export type EventRegistrationSummary = {
|
|
|
152
152
|
passCreditsUsed?: number;
|
|
153
153
|
passCreditsRemaining?: number;
|
|
154
154
|
};
|
|
155
|
+
export type EventEmbeddedCheckout = CheckoutSessionHandle<'embedded'> & Readonly<{
|
|
156
|
+
browser: EmbeddedCheckoutBrowserContext;
|
|
157
|
+
expiresAt: string;
|
|
158
|
+
}>;
|
|
155
159
|
export type EventRegisterResponse = {
|
|
156
160
|
kind: 'bookingComplete';
|
|
157
161
|
reference: EventRegistrationStatusReference;
|
|
@@ -171,7 +175,7 @@ export type EventRegisterResponse = {
|
|
|
171
175
|
} | {
|
|
172
176
|
kind: 'checkoutRequired';
|
|
173
177
|
reference: EventRegistrationStatusReference;
|
|
174
|
-
|
|
178
|
+
checkout: EventEmbeddedCheckout;
|
|
175
179
|
submissionId: string;
|
|
176
180
|
mailingListSignupNote?: BookingSignupNote;
|
|
177
181
|
demoBookingPass?: string;
|
|
@@ -203,8 +207,7 @@ type EventCheckoutRequestCommon = {
|
|
|
203
207
|
siteId: string;
|
|
204
208
|
discountCode?: string;
|
|
205
209
|
collectionOptionKind?: DirectCheckoutCollectionOptionKind;
|
|
206
|
-
|
|
207
|
-
cancelUrl: string;
|
|
210
|
+
returnUrl: string;
|
|
208
211
|
};
|
|
209
212
|
export type EventCheckoutRequest = EventCheckoutRequestCommon & ({
|
|
210
213
|
subject: {
|
|
@@ -233,30 +236,35 @@ export type EventCheckoutRequest = EventCheckoutRequestCommon & ({
|
|
|
233
236
|
claimToken?: string;
|
|
234
237
|
waitlistEntryId?: string;
|
|
235
238
|
checkoutAttemptId: string;
|
|
239
|
+
collectionOptionKind: DirectCheckoutCollectionOptionKind;
|
|
236
240
|
});
|
|
237
|
-
type
|
|
241
|
+
type CheckoutOutcome = Readonly<{
|
|
242
|
+
kind: 'checkoutRequired';
|
|
243
|
+
checkout: EventEmbeddedCheckout;
|
|
244
|
+
}> | Readonly<{
|
|
245
|
+
kind: 'completed';
|
|
246
|
+
deferredBalance?: {
|
|
247
|
+
amountCents: number;
|
|
248
|
+
currency: string;
|
|
249
|
+
};
|
|
250
|
+
}>;
|
|
251
|
+
type OccurrenceCheckoutResponse = CheckoutOutcome & Readonly<{
|
|
238
252
|
scope: 'occurrence';
|
|
239
253
|
attendeeId: string;
|
|
240
|
-
checkoutUrl: string | null;
|
|
241
|
-
sessionId: string | null;
|
|
242
|
-
bypassed: boolean;
|
|
243
254
|
mailingListSignupNote?: BookingSignupNote;
|
|
244
255
|
}>;
|
|
245
|
-
type WholeSeriesCheckoutResponse = Readonly<{
|
|
256
|
+
type WholeSeriesCheckoutResponse = CheckoutOutcome & Readonly<{
|
|
246
257
|
scope: 'wholeSeries';
|
|
247
258
|
registrationId: string;
|
|
248
259
|
checkoutAttemptId: string;
|
|
249
260
|
recoverableUntil?: string;
|
|
250
|
-
checkoutUrl: string | null;
|
|
251
|
-
sessionId: string | null;
|
|
252
|
-
bypassed: boolean;
|
|
253
261
|
mailingListSignupNote?: BookingSignupNote;
|
|
254
262
|
}>;
|
|
255
263
|
type WholeSeriesPaymentStatusRequired = Readonly<{
|
|
256
264
|
scope: 'wholeSeries';
|
|
257
265
|
status: 'paymentStatusRequired';
|
|
258
266
|
checkoutAttemptId: string;
|
|
259
|
-
recoverableUntil
|
|
267
|
+
recoverableUntil?: string;
|
|
260
268
|
mailingListSignupNote?: BookingSignupNote;
|
|
261
269
|
}>;
|
|
262
270
|
type WholeSeriesWaitlistResponse = Readonly<{
|
|
@@ -333,17 +341,17 @@ export interface EventRegistrationStatusResponse {
|
|
|
333
341
|
waitlistPosition: number | null;
|
|
334
342
|
}
|
|
335
343
|
export type EventCheckoutReturnRequest = {
|
|
336
|
-
kind: '
|
|
344
|
+
kind: 'resolveSession';
|
|
337
345
|
checkoutAttemptId: string;
|
|
338
346
|
sessionId: string;
|
|
339
347
|
} | {
|
|
340
348
|
kind: 'abandon';
|
|
341
|
-
|
|
349
|
+
subject: EventRegistrationPaymentSubject;
|
|
342
350
|
} | {
|
|
343
351
|
kind: 'checkStatus';
|
|
344
352
|
subject: EventRegistrationPaymentSubject;
|
|
345
353
|
};
|
|
346
|
-
export type
|
|
354
|
+
export type EventCheckoutStatusOutcome = {
|
|
347
355
|
kind: 'resolved';
|
|
348
356
|
reference: EventRegistrationStatusReference;
|
|
349
357
|
deferredBalance?: {
|
|
@@ -361,7 +369,7 @@ export type EventCheckoutReturnResponse = {
|
|
|
361
369
|
recoverableUntil?: string;
|
|
362
370
|
} | {
|
|
363
371
|
kind: 'paymentAvailable';
|
|
364
|
-
|
|
372
|
+
checkout: EventEmbeddedCheckout;
|
|
365
373
|
recoverableUntil?: string;
|
|
366
374
|
} | {
|
|
367
375
|
kind: 'paymentRetryAvailable';
|
|
@@ -371,4 +379,16 @@ export type EventCheckoutReturnResponse = {
|
|
|
371
379
|
} | {
|
|
372
380
|
kind: 'paymentAssistanceRequired';
|
|
373
381
|
};
|
|
382
|
+
/** A subject is returned only after the server verifies the exact checkout binding. */
|
|
383
|
+
export type EventCheckoutReturnResponse = {
|
|
384
|
+
kind: 'checkout';
|
|
385
|
+
subject: EventRegistrationPaymentSubject;
|
|
386
|
+
outcome: Exclude<EventCheckoutStatusOutcome, {
|
|
387
|
+
kind: 'notFound';
|
|
388
|
+
}>;
|
|
389
|
+
} | {
|
|
390
|
+
kind: 'notFound';
|
|
391
|
+
} | {
|
|
392
|
+
kind: 'reconciliationRequired';
|
|
393
|
+
};
|
|
374
394
|
export {};
|
|
@@ -1834,7 +1834,14 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1834
1834
|
description: string | null;
|
|
1835
1835
|
priceLabel: string;
|
|
1836
1836
|
intervalLabel: string;
|
|
1837
|
-
|
|
1837
|
+
action: Readonly<{
|
|
1838
|
+
kind: "purchase";
|
|
1839
|
+
label: string;
|
|
1840
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
1841
|
+
}> | Readonly<{
|
|
1842
|
+
kind: "unavailable";
|
|
1843
|
+
label: string;
|
|
1844
|
+
}>;
|
|
1838
1845
|
}>[];
|
|
1839
1846
|
}>;
|
|
1840
1847
|
hydration: Readonly<{
|
|
@@ -1883,7 +1890,14 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1883
1890
|
description: string | null;
|
|
1884
1891
|
priceLabel: string;
|
|
1885
1892
|
intervalLabel: string;
|
|
1886
|
-
|
|
1893
|
+
action: Readonly<{
|
|
1894
|
+
kind: "purchase";
|
|
1895
|
+
label: string;
|
|
1896
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
1897
|
+
}> | Readonly<{
|
|
1898
|
+
kind: "unavailable";
|
|
1899
|
+
label: string;
|
|
1900
|
+
}>;
|
|
1887
1901
|
}>[];
|
|
1888
1902
|
}>;
|
|
1889
1903
|
hydration: Readonly<{
|
|
@@ -1926,7 +1940,14 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1926
1940
|
description: string | null;
|
|
1927
1941
|
priceLabel: string;
|
|
1928
1942
|
intervalLabel: string;
|
|
1929
|
-
|
|
1943
|
+
action: Readonly<{
|
|
1944
|
+
kind: "purchase";
|
|
1945
|
+
label: string;
|
|
1946
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
1947
|
+
}> | Readonly<{
|
|
1948
|
+
kind: "unavailable";
|
|
1949
|
+
label: string;
|
|
1950
|
+
}>;
|
|
1930
1951
|
}>[];
|
|
1931
1952
|
}>;
|
|
1932
1953
|
hydration: Readonly<{
|
|
@@ -1977,7 +1998,14 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1977
1998
|
description: string | null;
|
|
1978
1999
|
priceLabel: string;
|
|
1979
2000
|
intervalLabel: string;
|
|
1980
|
-
|
|
2001
|
+
action: Readonly<{
|
|
2002
|
+
kind: "purchase";
|
|
2003
|
+
label: string;
|
|
2004
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
2005
|
+
}> | Readonly<{
|
|
2006
|
+
kind: "unavailable";
|
|
2007
|
+
label: string;
|
|
2008
|
+
}>;
|
|
1981
2009
|
}>[];
|
|
1982
2010
|
}>;
|
|
1983
2011
|
hydration: Readonly<{
|
|
@@ -2026,7 +2054,14 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2026
2054
|
description: string | null;
|
|
2027
2055
|
priceLabel: string;
|
|
2028
2056
|
intervalLabel: string;
|
|
2029
|
-
|
|
2057
|
+
action: Readonly<{
|
|
2058
|
+
kind: "purchase";
|
|
2059
|
+
label: string;
|
|
2060
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
2061
|
+
}> | Readonly<{
|
|
2062
|
+
kind: "unavailable";
|
|
2063
|
+
label: string;
|
|
2064
|
+
}>;
|
|
2030
2065
|
}>[];
|
|
2031
2066
|
}>;
|
|
2032
2067
|
hydration: Readonly<{
|
|
@@ -2069,7 +2104,14 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2069
2104
|
description: string | null;
|
|
2070
2105
|
priceLabel: string;
|
|
2071
2106
|
intervalLabel: string;
|
|
2072
|
-
|
|
2107
|
+
action: Readonly<{
|
|
2108
|
+
kind: "purchase";
|
|
2109
|
+
label: string;
|
|
2110
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
2111
|
+
}> | Readonly<{
|
|
2112
|
+
kind: "unavailable";
|
|
2113
|
+
label: string;
|
|
2114
|
+
}>;
|
|
2073
2115
|
}>[];
|
|
2074
2116
|
}>;
|
|
2075
2117
|
hydration: Readonly<{
|
|
@@ -933,7 +933,14 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
933
933
|
description: string | null;
|
|
934
934
|
priceLabel: string;
|
|
935
935
|
intervalLabel: string;
|
|
936
|
-
|
|
936
|
+
action: Readonly<{
|
|
937
|
+
kind: "purchase";
|
|
938
|
+
label: string;
|
|
939
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
940
|
+
}> | Readonly<{
|
|
941
|
+
kind: "unavailable";
|
|
942
|
+
label: string;
|
|
943
|
+
}>;
|
|
937
944
|
}>[];
|
|
938
945
|
}>;
|
|
939
946
|
hydration: Readonly<{
|
|
@@ -982,7 +989,14 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
982
989
|
description: string | null;
|
|
983
990
|
priceLabel: string;
|
|
984
991
|
intervalLabel: string;
|
|
985
|
-
|
|
992
|
+
action: Readonly<{
|
|
993
|
+
kind: "purchase";
|
|
994
|
+
label: string;
|
|
995
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
996
|
+
}> | Readonly<{
|
|
997
|
+
kind: "unavailable";
|
|
998
|
+
label: string;
|
|
999
|
+
}>;
|
|
986
1000
|
}>[];
|
|
987
1001
|
}>;
|
|
988
1002
|
hydration: Readonly<{
|
|
@@ -1025,7 +1039,14 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
1025
1039
|
description: string | null;
|
|
1026
1040
|
priceLabel: string;
|
|
1027
1041
|
intervalLabel: string;
|
|
1028
|
-
|
|
1042
|
+
action: Readonly<{
|
|
1043
|
+
kind: "purchase";
|
|
1044
|
+
label: string;
|
|
1045
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
1046
|
+
}> | Readonly<{
|
|
1047
|
+
kind: "unavailable";
|
|
1048
|
+
label: string;
|
|
1049
|
+
}>;
|
|
1029
1050
|
}>[];
|
|
1030
1051
|
}>;
|
|
1031
1052
|
hydration: Readonly<{
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The moment a booking or registration flow opened, as an ISO timestamp.
|
|
3
|
+
*
|
|
4
|
+
* Payment previews take this as their "now" so the pure view-model builders
|
|
5
|
+
* never read the clock themselves. It's captured once per mount, which keeps
|
|
6
|
+
* memoised previews stable across renders.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useBookingNowIso(): string;
|
|
@@ -8,7 +8,7 @@ import { createEventRegistrationBlockApiConfig } from '../nodes/event-registrati
|
|
|
8
8
|
export type { BlockApiConfig };
|
|
9
9
|
export { createEventRegistrationBlockApiConfig };
|
|
10
10
|
export type { EventRegistrationAttendeeModel, EventRegistrationDiscountModel, EventRegistrationEventsModel, EventRegistrationFlowActionResult, EventRegistrationFlowActions, EventRegistrationFlowStatus, EventRegistrationFlowStep, EventRegistrationFlowStepId, EventRegistrationFlowView, EventRegistrationGuestsModel, EventRegistrationLoadState, EventRegistrationOverrideData, EventRegistrationOverrideInput, EventRegistrationOverrideInputResult, EventRegistrationOverridePropsLike, EventRegistrationPaymentModel, EventRegistrationPaymentSelection, EventRegistrationPortalAuthModel, EventRegistrationSpamProtectionModel, EventRegistrationTerminalModel, EventRegistrationTicketsModel, HeadlessEventRegistrationFlow, } from '../nodes/event-registration/event-registration.headless.state';
|
|
11
|
-
export type {
|
|
11
|
+
export type { EventRegistrationSubmitResult, } from '../nodes/event-registration/useEventRegistrationSubmit';
|
|
12
12
|
export type HeadlessEventRegistrationFlowOptions = Readonly<{
|
|
13
13
|
anchorId?: string;
|
|
14
14
|
occurrenceContext?: EventRegistrationClientProps['occurrenceContext'];
|
|
@@ -16,6 +16,12 @@ type BookingFormProps = BookingFormSourceProps & Readonly<{
|
|
|
16
16
|
* card drawn exactly once after hydration, because the client wizard renders its
|
|
17
17
|
* own `.rb-reg-surface`, and leaves no stale loading state on the mounted form.
|
|
18
18
|
* `event-registration.server.tsx` follows the same shape.
|
|
19
|
+
*
|
|
20
|
+
* The root also carries `data-block="appointment-booking"`, because the
|
|
21
|
+
* appointment-booking and registration-surface styles and the block's Tier 3
|
|
22
|
+
* vars are all scoped under that attribute. On a page the block wrapper
|
|
23
|
+
* already provides it, but the system service destination and /book render
|
|
24
|
+
* this form on its own, so without it those routes lose every booking style.
|
|
19
25
|
*/
|
|
20
26
|
export declare function BookingFormSSR({ blockId, children, ...sourceProps }: BookingFormProps): React.JSX.Element;
|
|
21
27
|
export default BookingFormSSR;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BookingPaymentCollectionOptionKind } from "../../../../../core/src/index";
|
|
1
2
|
import type { BlockBookingPaymentTerms } from "../../blocks/shared/bookingPaymentTerms";
|
|
2
3
|
import { type BlockBookingConsent } from "../../blocks/shared/bookingConsent";
|
|
3
4
|
import type { AppointmentBookingStatusResponse } from "../api/types";
|
|
@@ -70,7 +71,7 @@ export type BookingFormService = Readonly<{
|
|
|
70
71
|
categoryId?: string | null;
|
|
71
72
|
}>;
|
|
72
73
|
export { projectSelectedAppointmentConsentIntoForm, resolveSelectedAppointmentConsent, type SelectedAppointmentConsent, } from "./booking-form.consent";
|
|
73
|
-
export type BookingSelectedCollectionOptionKind =
|
|
74
|
+
export type BookingSelectedCollectionOptionKind = BookingPaymentCollectionOptionKind;
|
|
74
75
|
type BookingCustomFieldData<TCustomFieldId extends string> = Readonly<{
|
|
75
76
|
[K in TCustomFieldId as K extends BookingFormDataReservedKey ? never : K]?: unknown;
|
|
76
77
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PublicMembershipProduct, PublicPassProduct, PurchasablePublicPassProduct } from '../../../../blocks/shop';
|
|
1
|
+
import type { PublicMembershipProduct, PublicPassProduct, PurchasablePublicMembershipProduct, PurchasablePublicPassProduct } from '../../../../blocks/shop';
|
|
2
2
|
import type { PublicProduct } from '../../../../blocks/products/shared';
|
|
3
3
|
import type { CommerceCartItem, CommerceCheckoutState } from '../../shop-commerce.shared';
|
|
4
4
|
export declare function formatCommercePrice(cents: number, currency: string): string;
|
|
@@ -82,7 +82,14 @@ export type MembershipCardDisplay = Readonly<{
|
|
|
82
82
|
description: string | null;
|
|
83
83
|
priceLabel: string;
|
|
84
84
|
intervalLabel: string;
|
|
85
|
-
|
|
85
|
+
action: Readonly<{
|
|
86
|
+
kind: 'purchase';
|
|
87
|
+
label: string;
|
|
88
|
+
product: PurchasablePublicMembershipProduct;
|
|
89
|
+
}> | Readonly<{
|
|
90
|
+
kind: 'unavailable';
|
|
91
|
+
label: string;
|
|
92
|
+
}>;
|
|
86
93
|
}>;
|
|
87
94
|
export type PassesMembershipsDisplay = Readonly<{
|
|
88
95
|
kind: 'passes-memberships';
|
|
@@ -52,7 +52,8 @@ export declare function resolveEventDetailsPresentation(input: EventDetailsPrese
|
|
|
52
52
|
eligibleCategoryIds: string[];
|
|
53
53
|
eligibleCategoryNames: string[];
|
|
54
54
|
})[];
|
|
55
|
-
applicableMemberships: {
|
|
55
|
+
applicableMemberships: ({
|
|
56
|
+
purchaseAvailability: "purchasable";
|
|
56
57
|
id: string;
|
|
57
58
|
name: string;
|
|
58
59
|
description: string | null;
|
|
@@ -61,7 +62,18 @@ export declare function resolveEventDetailsPresentation(input: EventDetailsPrese
|
|
|
61
62
|
billingInterval: "month" | "year";
|
|
62
63
|
eligibleCategoryIds: string[];
|
|
63
64
|
eligibleCategoryNames: string[];
|
|
64
|
-
}
|
|
65
|
+
} | {
|
|
66
|
+
purchaseAvailability: "display_only";
|
|
67
|
+
unavailabilityReason: "online_payments_unavailable";
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
description: string | null;
|
|
71
|
+
price: number;
|
|
72
|
+
currency: string;
|
|
73
|
+
billingInterval: "month" | "year";
|
|
74
|
+
eligibleCategoryIds: string[];
|
|
75
|
+
eligibleCategoryNames: string[];
|
|
76
|
+
})[];
|
|
65
77
|
showVenue: boolean;
|
|
66
78
|
showMap: boolean;
|
|
67
79
|
showOtherDates: boolean;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EventEmbeddedCheckout } from '../../api/types';
|
|
2
|
+
import { loadBrowserStripe } from '../../shared/stripe/browserStripe';
|
|
3
|
+
type Props = Readonly<{
|
|
4
|
+
checkout: EventEmbeddedCheckout;
|
|
5
|
+
onComplete: () => void;
|
|
6
|
+
onRetry: () => void;
|
|
7
|
+
onBack: () => void;
|
|
8
|
+
}>;
|
|
9
|
+
export default function EventEmbeddedCheckoutStep(props: Props): import("react").JSX.Element;
|
|
10
|
+
export declare function EventEmbeddedCheckoutStepWithDeps(props: Props & Readonly<{
|
|
11
|
+
load: typeof loadBrowserStripe;
|
|
12
|
+
}>): import("react").JSX.Element;
|
|
13
|
+
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HeadlessEventRegistrationFlow } from './event-registration.headless.contract';
|
|
2
|
+
import type { EventPaymentState } from './types';
|
|
3
|
+
type PaymentMountProps = Readonly<{
|
|
4
|
+
state: EventPaymentState;
|
|
5
|
+
onComplete: () => void;
|
|
6
|
+
onRetry: () => void;
|
|
7
|
+
onBack: () => Promise<void>;
|
|
8
|
+
}>;
|
|
9
|
+
/** The one Stripe mount, shared by the standard wizard and headless arrangements. */
|
|
10
|
+
export declare function EventPaymentMount({ state, onComplete, onRetry, onBack }: PaymentMountProps): import("react").JSX.Element | null;
|
|
11
|
+
/** Mount the active checkout from the same headless registration controller. */
|
|
12
|
+
export declare function EventRegistrationPayment({ flow }: Readonly<{
|
|
13
|
+
flow: HeadlessEventRegistrationFlow;
|
|
14
|
+
}>): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -10,7 +10,6 @@ import type { ThemeButtonVariantId } from '../../../../../../theme-core/src/butt
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function resolveDetailsButtonText(input: Readonly<{
|
|
12
12
|
wizard: UseEventRegistrationWizardResult;
|
|
13
|
-
hasWaitlistClaim: boolean;
|
|
14
13
|
fallbackText: string;
|
|
15
14
|
}>): string;
|
|
16
15
|
type WizardActionsProps = Readonly<{
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UseEventRegistrationWizardResult } from './useEventRegistrationWizard';
|
|
3
|
+
export declare function FullyBookedStep(props: Readonly<{
|
|
4
|
+
wizard: UseEventRegistrationWizardResult;
|
|
5
|
+
showSpamProtection: boolean;
|
|
6
|
+
}>): React.JSX.Element;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EligibilityData, PaymentStepState } from './types';
|
|
3
|
+
import { type RegistrationAdmission } from './registrationCompletion';
|
|
3
4
|
export declare function resolvePaymentStepStatus(input: Readonly<{
|
|
4
5
|
loading: boolean;
|
|
5
6
|
error: string | null;
|
|
6
7
|
eligibility: EligibilityData | null;
|
|
8
|
+
admission: RegistrationAdmission;
|
|
7
9
|
}>): PaymentStepState['status'];
|
|
8
10
|
export declare function shouldPromptForLogin(status: PaymentStepState['status'], isAuthenticated: boolean, eligibility: EligibilityData | null): boolean;
|
|
9
11
|
export declare function PaymentBlockingPanel(props: Readonly<{
|
|
10
12
|
eligibility: EligibilityData | null;
|
|
13
|
+
admission: RegistrationAdmission;
|
|
11
14
|
eligibilityLoading: boolean;
|
|
12
15
|
eligibilityError: string | null;
|
|
13
16
|
occurrenceId: string;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RegistrationAdmission } from './registrationCompletion';
|
|
1
2
|
/**
|
|
2
3
|
* Payment Selection Step Component
|
|
3
4
|
*
|
|
@@ -27,12 +28,15 @@ type PaymentSelectionStepProps = {
|
|
|
27
28
|
/** Called whenever the user updates payment selection in this step */
|
|
28
29
|
onSelectionChange: (selection: PaymentSelection) => void;
|
|
29
30
|
eligibility: EligibilityData | null;
|
|
31
|
+
admission: RegistrationAdmission;
|
|
30
32
|
eligibilityLoading: boolean;
|
|
31
33
|
eligibilityError?: string | null;
|
|
32
34
|
/** Called when the user wants to request a login link (optional) */
|
|
33
35
|
onRequestLogin?: () => void;
|
|
34
36
|
/** Callback to report state to parent (for footer action rendering) */
|
|
35
37
|
onStateChange?: (state: PaymentStepState) => void;
|
|
38
|
+
/** The registration flow's "now"; payment schedules start from here. */
|
|
39
|
+
nowIso: string;
|
|
36
40
|
};
|
|
37
41
|
/**
|
|
38
42
|
* Payment Selection Step
|