@riverbankcms/sdk 0.154.0 → 0.155.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 +2 -0
- package/dist/{EventEmbeddedCheckoutStep-ba9npQtb.mjs → EventEmbeddedCheckoutStep-DALtAjqG.mjs} +1 -1
- package/dist/{PreviewEditorSidebar-C7FiaxlF.mjs → PreviewEditorSidebar-CbSbqmz3.mjs} +29 -20
- package/dist/{PreviewEditorUI-DFst50q1.mjs → PreviewEditorUI-CKKnAw11.mjs} +9 -17
- package/dist/{SdkPreviewModeRuntime-BUNV_YHZ.mjs → SdkPreviewModeRuntime-wLkXrWy9.mjs} +132 -56
- package/dist/{SiteChromeCustomizeContext-DEj7qppF.mjs → SiteChromeCustomizeContext-BQ8vvKb-.mjs} +6324 -3566
- package/dist/{ThemedButton-C8kzu0hY.mjs → ThemedButton-Bi0rgijy.mjs} +83 -5
- package/dist/_dts/ai/src/contracts/proposals.d.ts +42213 -16421
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +3322 -258
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -12
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +2 -2
- package/dist/_dts/api/src/bookingOperations.d.ts +4 -0
- package/dist/_dts/api/src/bookingPeople.d.ts +1 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/bookings.d.ts +8 -1
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/common/envelope.d.ts +2 -2
- package/dist/_dts/api/src/contentRuntime.d.ts +4 -3
- package/dist/_dts/api/src/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/eventManagementContracts.d.ts +20 -11
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/index.d.ts +5 -2
- package/dist/_dts/api/src/privacyPolicy.d.ts +20 -2
- package/dist/_dts/api/src/public/types.d.ts +1 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +1 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/sdk-event-management.d.ts +1 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +22 -7
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +5 -3
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +15 -4
- package/dist/_dts/api/src/sdkThemeWire.d.ts +10 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/siteTerms.d.ts +100 -0
- package/dist/_dts/api/src/types.d.ts +2 -1
- package/dist/_dts/api/src/webhooks.d.ts +9 -9
- package/dist/_dts/block-form/src/client/index.d.ts +2 -1
- package/dist/_dts/block-form/src/widgets/DateField/DateField.d.ts +3 -1
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +3 -1
- package/dist/_dts/block-form/src/widgets/DateTimeField/DateTimeField.d.ts +3 -1
- package/dist/_dts/blocks/src/client/carousel.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +12 -33
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +22 -22
- package/dist/_dts/blocks/src/index.d.ts +2 -2
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -1
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +1 -0
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +9 -5
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/catalogue.d.ts +7 -1
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +14 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/itemData.d.ts +12 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +56 -6
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/photoCount.d.ts +3 -12
- package/dist/_dts/blocks/src/system/blocks/shared/siteTerms.d.ts +17 -0
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +44 -0
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +3 -1
- package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +6 -0
- package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +22 -3
- package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +33 -0
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFlowController.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSubmission.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.state.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +6 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.d.ts +5 -30
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.server.d.ts +3 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.shared.d.ts +71 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/CalendarAction.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingCalendar.d.ts +16 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/finishedBooking.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CardListItem.d.ts +26 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventItem.d.ts +17 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardListContent.d.ts +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +20 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/gifting.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-catalogue.d.ts +5 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-content.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/CheckboxChoice.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/SiteTermsAgreementField.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/shared/siteTermsAgreement.d.ts +81 -0
- package/dist/_dts/blocks/src/system/runtime/shared/siteTermsCheckoutApi.d.ts +14 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +2 -0
- package/dist/_dts/blocks/src/system/types/link.d.ts +2 -0
- package/dist/_dts/calendar/src/icsRenderer.d.ts +23 -0
- package/dist/_dts/calendar/src/index.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/types.d.ts +5 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -1
- package/dist/_dts/content-editor/src/controller/publicationDate.d.ts +5 -0
- package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +6 -5
- package/dist/_dts/content-model/src/content-types/schema.d.ts +4 -0
- package/dist/_dts/content-model/src/contentManifest.d.ts +10 -2
- package/dist/_dts/content-model/src/definitions/shared.d.ts +2 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +5 -0
- package/dist/_dts/core/src/booking-refunds.d.ts +43 -2
- package/dist/_dts/core/src/branded.d.ts +6 -0
- package/dist/_dts/core/src/date-display.d.ts +7 -2
- package/dist/_dts/core/src/index.d.ts +3 -2
- package/dist/_dts/core/src/site-terms.d.ts +94 -0
- package/dist/_dts/core/src/whole-series-run-schedule.d.ts +2 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +306 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +16 -16
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +2 -2
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +3 -2
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/LinkContentList.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/link/draft.d.ts +6 -1
- package/dist/_dts/editor-blocks/src/widgets/link/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/arrangementControlsModel.d.ts +8 -1
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -0
- package/dist/_dts/sdk/src/config/typed-entry-links.test-d.d.ts +1 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +7 -4
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +3 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +12 -8
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -8
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +12 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/containerSchema.d.ts +1 -0
- package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +3 -0
- package/dist/_dts/theme-core/src/inputs/checkable.d.ts +6 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +15 -0
- package/dist/_dts/theme-core/src/schema.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +56 -1
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +13 -1
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleTypography.d.ts +46 -0
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +4 -1
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +2 -0
- package/dist/_dts/theme-core/src/typography/schema.d.ts +9 -0
- package/dist/_dts/ui/src/calendar.d.ts +6 -1
- package/dist/_dts/ui/src/index.d.ts +1 -1
- package/dist/client/{BookingMailingListNote-CNoSqFtf.mjs → BookingMailingListNote-CiW1dsz7.mjs} +3 -3
- package/dist/client/{CardListItem-BkTkqBkh.mjs → CardListItem-DVYTlYpS.mjs} +70 -13
- package/dist/client/CheckboxChoice-CUnPrBlC.mjs +44 -0
- package/dist/client/DemoBookingPortalAccess-DEsn5F2C.mjs +770 -0
- package/dist/client/{EventCombined.client-BgeYMjHJ.mjs → EventCombined.client-BdctbwnV.mjs} +5 -5
- package/dist/client/{EventEmbeddedCheckoutStep-BTc_lTkM.mjs → EventEmbeddedCheckoutStep-DAhQs6Jb.mjs} +2 -5
- package/dist/client/{EventListing.client-ChRs9Hl2.mjs → EventListing.client-BviZXfAE.mjs} +2 -2
- package/dist/client/{mailingListSignupCopy-DZSHZrm6.mjs → FieldValidationMessage-AYanWFb-.mjs} +1 -14
- package/dist/client/{LeafletStaticMap-C_dNQgd0.mjs → LeafletStaticMap-BLTECfjU.mjs} +1 -1
- package/dist/client/{RichText-BI9bzbjo.mjs → RichText-D3oE1_pw.mjs} +4 -4
- package/dist/client/ThemedButton-Ckj0Rfr_.mjs +1256 -0
- package/dist/client/{accordion-6Yz8Wd83.mjs → accordion-yBx6d4O2.mjs} +1 -1
- package/dist/client/{bookingForm-i_pKIGiY.mjs → bookingForm-CPDEsQci.mjs} +64 -35
- package/dist/client/bookings.mjs +6572 -3274
- package/dist/client/carousel-DCqjwd2s.mjs +71 -0
- package/dist/client/{carousel.client-BUgjPbb6.mjs → carousel.client-Bx7XMF8-.mjs} +114 -39
- package/dist/client/{cart-D8OBHuF4.mjs → cart-DWJXrQxs.mjs} +3 -3
- package/dist/client/{checkout-F3-9IGLU.mjs → checkout-CH4ypSLS.mjs} +3 -3
- package/dist/client/client.mjs +7379 -2504
- package/dist/client/{context-Dg4ZrxDD.mjs → context-BOs0m_iw.mjs} +16 -12
- package/dist/client/{eventCalendar-BUc7YIBM.mjs → eventCalendar-CRylMllc.mjs} +8 -319
- package/dist/client/{eventCombined-BwfShk2a.mjs → eventCombined-DohTS3kp.mjs} +4 -4
- package/dist/client/{eventDetails-BMOVC3go.mjs → eventDetails-qf-u9zcF.mjs} +108 -36
- package/dist/client/{eventListing-BwE9PM-t.mjs → eventListing-Cg__X2vy.mjs} +4 -4
- package/dist/client/{eventRegistration-CCWPYDc7.mjs → eventRegistration-CybWxswy.mjs} +215 -237
- package/dist/client/{form-CXFr0Gd5.mjs → form-C-SGk6nq.mjs} +4 -4
- package/dist/client/{headerSection-BX8qw8kH.mjs → headerSection-BdzPaHqo.mjs} +3 -3
- package/dist/client/hooks.mjs +1283 -213
- package/dist/client/{locationMap-B3La71m0.mjs → locationMap-CEwIKmMb.mjs} +3 -3
- package/dist/client/mailingListSignupCopy-DS-_ePzG.mjs +14 -0
- package/dist/client/{media-B1Cbv721.mjs → media-V_ShXXru.mjs} +3 -3
- package/dist/client/{mediaContext-CwbbimYB.mjs → mediaContext-D-0tNVxE.mjs} +1 -1
- package/dist/client/{newsletterForm-DnGyR0x7.mjs → newsletterForm-CmwTltoS.mjs} +5 -4
- package/dist/client/{productDetail-BVgTqvkb.mjs → productDetail-DjIzUwg3.mjs} +3 -3
- package/dist/client/{productList-CcO7kUQw.mjs → productList-D6JGFnMF.mjs} +3 -3
- package/dist/client/{propsDecoder-B1OeWavE.mjs → propsDecoder-BRKz13eg.mjs} +5110 -2504
- package/dist/client/{renderableMediaAssetAdmission-CHkXYDC_.mjs → renderableMediaAssetAdmission-Cd3JSw2H.mjs} +3 -1
- package/dist/client/rendering/client.mjs +6176 -2738
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +7656 -2726
- package/dist/client/{routeIslandApiConfig-Dl4vglJm.mjs → routeIslandApiConfig-slAAILQ5.mjs} +1 -1
- package/dist/client/{shop-P72nX5Fs.mjs → shop-C45K96_0.mjs} +178 -157
- package/dist/client/{shop-commerce-Bt7uraDx.mjs → shop-commerce-oGBiKT5d.mjs} +23 -10
- package/dist/client/{shop-commerce-store-C1-mxSye.mjs → shop-commerce-store-H_HFPFZ8.mjs} +1 -1
- package/dist/client/{shopShared-Db-cRGu3.mjs → shopShared-D54T_LAV.mjs} +5 -5
- package/dist/client/{useDiscountCodeUi-jvAiUoUX.mjs → useDiscountCodeUi-Dm2EUa03.mjs} +1 -1
- package/dist/client/{useEventPagination-BdWpCniq.mjs → useEventPagination-0l_A8CxG.mjs} +62 -24
- package/dist/preview-next/before-render.mjs +1 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/keepAlive.mjs +1 -0
- package/dist/preview-next/middleware.mjs +1 -0
- package/dist/{sdk-runtime-DLhjF2Nw.mjs → sdk-runtime-CjTM32Ah.mjs} +1 -1
- package/dist/server/components.mjs +4514 -1408
- package/dist/server/config-validation.mjs +1181 -179
- package/dist/server/config.mjs +1147 -177
- package/dist/server/data.mjs +1204 -180
- package/dist/server/date-time.mjs +18 -7
- package/dist/server/index.mjs +4 -1
- package/dist/server/next.mjs +4533 -1429
- package/dist/server/page-converter.mjs +1054 -173
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3775 -1015
- package/dist/server/rendering.mjs +4540 -1425
- package/dist/server/routing.mjs +1321 -247
- package/dist/server/server.mjs +1296 -215
- package/dist/server/theme-bridge.mjs +1864 -73
- package/dist/server/theme.mjs +74 -3
- package/dist/{spinner-MTooKfck.mjs → spinner-KVVZh8jd.mjs} +1 -1
- package/dist/src-BgmWy3P1.mjs +1667 -0
- package/dist/styles/index.css +942 -1
- package/package.json +1 -1
- package/dist/client/CheckboxChoice-CHJpsty4.mjs +0 -24
- package/dist/client/DemoBookingPortalAccess-C7KQKFNt.mjs +0 -344
- package/dist/client/ThemedButton-wl3Z3wkH.mjs +0 -411
- package/dist/client/carousel-DNqd_PjC.mjs +0 -38
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CarouselSlideContent } from '../nodes/carousel.shared';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import type { ComponentRegistry } from '../resolver';
|
|
3
4
|
import { BookingFormNodeClient } from '../nodes/booking-form.client';
|
|
@@ -21,6 +22,7 @@ type ExplicitAdapterClientEntry<TProps extends object = object> = Readonly<{
|
|
|
21
22
|
}>;
|
|
22
23
|
export type ClientComponentRegistryEntryByKind = Readonly<{
|
|
23
24
|
media: SourcePropsClientEntry<React.ComponentProps<typeof MediaNode>>;
|
|
25
|
+
carouselSlide: SourcePropsClientEntry<React.ComponentProps<typeof CarouselSlideContent>>;
|
|
24
26
|
carousel: SourcePropsClientEntry<React.ComponentProps<typeof CarouselNodeClient>>;
|
|
25
27
|
accordion: SourcePropsClientEntry<React.ComponentProps<typeof AccordionNode>>;
|
|
26
28
|
accordionItem: SourcePropsClientEntry<React.ComponentProps<typeof AccordionItemNode>>;
|
|
@@ -1030,6 +1032,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1030
1032
|
hydration: Readonly<{
|
|
1031
1033
|
emptyStateText: string;
|
|
1032
1034
|
submitButtonText: string;
|
|
1035
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1033
1036
|
demoEmailSuppressed?: boolean;
|
|
1034
1037
|
}>;
|
|
1035
1038
|
}>;
|
|
@@ -1051,6 +1054,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1051
1054
|
hydration: Readonly<{
|
|
1052
1055
|
emptyStateText: string;
|
|
1053
1056
|
submitButtonText: string;
|
|
1057
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1054
1058
|
demoEmailSuppressed?: boolean;
|
|
1055
1059
|
}>;
|
|
1056
1060
|
}>) => unknown;
|
|
@@ -1066,6 +1070,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1066
1070
|
hydration: Readonly<{
|
|
1067
1071
|
emptyStateText: string;
|
|
1068
1072
|
submitButtonText: string;
|
|
1073
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1069
1074
|
demoEmailSuppressed?: boolean;
|
|
1070
1075
|
}>;
|
|
1071
1076
|
}>>;
|
|
@@ -1089,6 +1094,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1089
1094
|
hydration: Readonly<{
|
|
1090
1095
|
emptyStateText: string;
|
|
1091
1096
|
submitButtonText: string;
|
|
1097
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1092
1098
|
demoEmailSuppressed?: boolean;
|
|
1093
1099
|
}>;
|
|
1094
1100
|
}>;
|
|
@@ -1110,6 +1116,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1110
1116
|
hydration: Readonly<{
|
|
1111
1117
|
emptyStateText: string;
|
|
1112
1118
|
submitButtonText: string;
|
|
1119
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1113
1120
|
demoEmailSuppressed?: boolean;
|
|
1114
1121
|
}>;
|
|
1115
1122
|
}>) => unknown;
|
|
@@ -1125,6 +1132,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1125
1132
|
hydration: Readonly<{
|
|
1126
1133
|
emptyStateText: string;
|
|
1127
1134
|
submitButtonText: string;
|
|
1135
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1128
1136
|
demoEmailSuppressed?: boolean;
|
|
1129
1137
|
}>;
|
|
1130
1138
|
}>>;
|
|
@@ -1151,6 +1159,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1151
1159
|
emptyStateText: string;
|
|
1152
1160
|
}>;
|
|
1153
1161
|
hydration: Readonly<{
|
|
1162
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1154
1163
|
offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
|
|
1155
1164
|
checkoutButtonText: string;
|
|
1156
1165
|
successMessage: string;
|
|
@@ -1174,6 +1183,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1174
1183
|
emptyStateText: string;
|
|
1175
1184
|
}>;
|
|
1176
1185
|
hydration: Readonly<{
|
|
1186
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1177
1187
|
offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
|
|
1178
1188
|
checkoutButtonText: string;
|
|
1179
1189
|
successMessage: string;
|
|
@@ -1191,6 +1201,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1191
1201
|
emptyStateText: string;
|
|
1192
1202
|
}>;
|
|
1193
1203
|
hydration: Readonly<{
|
|
1204
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1194
1205
|
offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
|
|
1195
1206
|
checkoutButtonText: string;
|
|
1196
1207
|
successMessage: string;
|
|
@@ -1216,6 +1227,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1216
1227
|
emptyStateText: string;
|
|
1217
1228
|
}>;
|
|
1218
1229
|
hydration: Readonly<{
|
|
1230
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1219
1231
|
offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
|
|
1220
1232
|
checkoutButtonText: string;
|
|
1221
1233
|
successMessage: string;
|
|
@@ -1239,6 +1251,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1239
1251
|
emptyStateText: string;
|
|
1240
1252
|
}>;
|
|
1241
1253
|
hydration: Readonly<{
|
|
1254
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1242
1255
|
offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
|
|
1243
1256
|
checkoutButtonText: string;
|
|
1244
1257
|
successMessage: string;
|
|
@@ -1256,6 +1269,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1256
1269
|
emptyStateText: string;
|
|
1257
1270
|
}>;
|
|
1258
1271
|
hydration: Readonly<{
|
|
1272
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1259
1273
|
offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
|
|
1260
1274
|
checkoutButtonText: string;
|
|
1261
1275
|
successMessage: string;
|
|
@@ -1302,6 +1316,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1302
1316
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1303
1317
|
}> | null;
|
|
1304
1318
|
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1319
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1305
1320
|
siteName?: string;
|
|
1306
1321
|
bookingOfferingPresets?: readonly Readonly<{
|
|
1307
1322
|
id: string;
|
|
@@ -1348,6 +1363,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1348
1363
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1349
1364
|
}> | null;
|
|
1350
1365
|
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1366
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1351
1367
|
siteName?: string;
|
|
1352
1368
|
bookingOfferingPresets?: readonly Readonly<{
|
|
1353
1369
|
id: string;
|
|
@@ -1387,6 +1403,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1387
1403
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1388
1404
|
}> | null;
|
|
1389
1405
|
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1406
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1390
1407
|
siteName?: string;
|
|
1391
1408
|
bookingOfferingPresets?: readonly Readonly<{
|
|
1392
1409
|
id: string;
|
|
@@ -1448,6 +1465,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1448
1465
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1449
1466
|
}> | null;
|
|
1450
1467
|
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1468
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1451
1469
|
siteName?: string;
|
|
1452
1470
|
bookingOfferingPresets?: readonly Readonly<{
|
|
1453
1471
|
id: string;
|
|
@@ -1494,6 +1512,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1494
1512
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1495
1513
|
}> | null;
|
|
1496
1514
|
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1515
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1497
1516
|
siteName?: string;
|
|
1498
1517
|
bookingOfferingPresets?: readonly Readonly<{
|
|
1499
1518
|
id: string;
|
|
@@ -1533,6 +1552,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1533
1552
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1534
1553
|
}> | null;
|
|
1535
1554
|
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1555
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1536
1556
|
siteName?: string;
|
|
1537
1557
|
bookingOfferingPresets?: readonly Readonly<{
|
|
1538
1558
|
id: string;
|
|
@@ -1614,6 +1634,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1614
1634
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1615
1635
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1616
1636
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1637
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1617
1638
|
demoEmailSuppressed?: boolean;
|
|
1618
1639
|
}>;
|
|
1619
1640
|
}>;
|
|
@@ -1670,6 +1691,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1670
1691
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1671
1692
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1672
1693
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1694
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1673
1695
|
demoEmailSuppressed?: boolean;
|
|
1674
1696
|
}>;
|
|
1675
1697
|
}>) => unknown;
|
|
@@ -1720,6 +1742,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1720
1742
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1721
1743
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1722
1744
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1745
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1723
1746
|
demoEmailSuppressed?: boolean;
|
|
1724
1747
|
}>;
|
|
1725
1748
|
}>>;
|
|
@@ -1778,6 +1801,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1778
1801
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1779
1802
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1780
1803
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1804
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1781
1805
|
demoEmailSuppressed?: boolean;
|
|
1782
1806
|
}>;
|
|
1783
1807
|
}>;
|
|
@@ -1834,6 +1858,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1834
1858
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1835
1859
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1836
1860
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1861
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1837
1862
|
demoEmailSuppressed?: boolean;
|
|
1838
1863
|
}>;
|
|
1839
1864
|
}>) => unknown;
|
|
@@ -1884,6 +1909,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1884
1909
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1885
1910
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1886
1911
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1912
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
1887
1913
|
demoEmailSuppressed?: boolean;
|
|
1888
1914
|
}>;
|
|
1889
1915
|
}>>;
|
|
@@ -1906,6 +1932,13 @@ export declare const clientComponentRegistryEntries: {
|
|
|
1906
1932
|
kind: "source-props";
|
|
1907
1933
|
component: React.ComponentType<import("../nodes/carousel.client").CarouselNodeClientProps>;
|
|
1908
1934
|
}>;
|
|
1935
|
+
readonly carouselSlide: Readonly<{
|
|
1936
|
+
kind: "source-props";
|
|
1937
|
+
component: React.ComponentType<Readonly<{
|
|
1938
|
+
title: string;
|
|
1939
|
+
children?: React.ReactNode;
|
|
1940
|
+
}>>;
|
|
1941
|
+
}>;
|
|
1909
1942
|
readonly accordion: Readonly<{
|
|
1910
1943
|
kind: "source-props";
|
|
1911
1944
|
component: React.ComponentType<import("../nodes/accordion").AccordionNodeProps>;
|
|
@@ -522,6 +522,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
522
522
|
hydration: Readonly<{
|
|
523
523
|
emptyStateText: string;
|
|
524
524
|
submitButtonText: string;
|
|
525
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
525
526
|
demoEmailSuppressed?: boolean;
|
|
526
527
|
}>;
|
|
527
528
|
}>;
|
|
@@ -543,6 +544,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
543
544
|
hydration: Readonly<{
|
|
544
545
|
emptyStateText: string;
|
|
545
546
|
submitButtonText: string;
|
|
547
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
546
548
|
demoEmailSuppressed?: boolean;
|
|
547
549
|
}>;
|
|
548
550
|
}>) => unknown;
|
|
@@ -558,6 +560,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
558
560
|
hydration: Readonly<{
|
|
559
561
|
emptyStateText: string;
|
|
560
562
|
submitButtonText: string;
|
|
563
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
561
564
|
demoEmailSuppressed?: boolean;
|
|
562
565
|
}>;
|
|
563
566
|
}>>;
|
|
@@ -582,6 +585,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
582
585
|
emptyStateText: string;
|
|
583
586
|
}>;
|
|
584
587
|
hydration: Readonly<{
|
|
588
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
585
589
|
offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
|
|
586
590
|
checkoutButtonText: string;
|
|
587
591
|
successMessage: string;
|
|
@@ -605,6 +609,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
605
609
|
emptyStateText: string;
|
|
606
610
|
}>;
|
|
607
611
|
hydration: Readonly<{
|
|
612
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
608
613
|
offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
|
|
609
614
|
checkoutButtonText: string;
|
|
610
615
|
successMessage: string;
|
|
@@ -622,6 +627,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
622
627
|
emptyStateText: string;
|
|
623
628
|
}>;
|
|
624
629
|
hydration: Readonly<{
|
|
630
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
625
631
|
offers: import("../nodes/gifting.interactive").PublicGiftingOffersResponse | null;
|
|
626
632
|
checkoutButtonText: string;
|
|
627
633
|
successMessage: string;
|
|
@@ -666,6 +672,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
666
672
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
667
673
|
}> | null;
|
|
668
674
|
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
675
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
669
676
|
siteName?: string;
|
|
670
677
|
bookingOfferingPresets?: readonly Readonly<{
|
|
671
678
|
id: string;
|
|
@@ -712,6 +719,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
712
719
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
713
720
|
}> | null;
|
|
714
721
|
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
722
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
715
723
|
siteName?: string;
|
|
716
724
|
bookingOfferingPresets?: readonly Readonly<{
|
|
717
725
|
id: string;
|
|
@@ -751,6 +759,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
751
759
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
752
760
|
}> | null;
|
|
753
761
|
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
762
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
754
763
|
siteName?: string;
|
|
755
764
|
bookingOfferingPresets?: readonly Readonly<{
|
|
756
765
|
id: string;
|
|
@@ -830,6 +839,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
830
839
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
831
840
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
832
841
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
842
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
833
843
|
demoEmailSuppressed?: boolean;
|
|
834
844
|
}>;
|
|
835
845
|
}>;
|
|
@@ -886,6 +896,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
886
896
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
887
897
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
888
898
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
899
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
889
900
|
demoEmailSuppressed?: boolean;
|
|
890
901
|
}>;
|
|
891
902
|
}>) => unknown;
|
|
@@ -936,6 +947,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
936
947
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
937
948
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
938
949
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
950
|
+
siteTerms?: import("../../blocks/shared/siteTerms").BlockSiteTerms;
|
|
939
951
|
demoEmailSuppressed?: boolean;
|
|
940
952
|
}>;
|
|
941
953
|
}>>;
|
|
@@ -5,6 +5,8 @@ type BookingControllerInput = Omit<Parameters<typeof buildBookingSubmitPlan>[0],
|
|
|
5
5
|
discountCode: string;
|
|
6
6
|
mailingListEligible: boolean;
|
|
7
7
|
submit: ReturnType<typeof useBookingSubmission>['submit'];
|
|
8
|
+
/** The site terms box's client-side required check; it shows its own error. */
|
|
9
|
+
requireSiteTerms: () => boolean;
|
|
8
10
|
clearFeedback: () => void;
|
|
9
11
|
setDiscountCode: (code: string) => void;
|
|
10
12
|
navigateToCheckout: (url: string) => void;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Must be used within a BlockApiProvider.
|
|
6
6
|
*/
|
|
7
7
|
import { type ActionResult, type FeedbackState } from '@riverbankcms/frontend-state';
|
|
8
|
+
import type { useSiteTermsAgreement } from './useSiteTermsAgreement';
|
|
8
9
|
import type { BookingSubmitResponse } from '../api/types';
|
|
9
10
|
import type { BookingSubmissionData } from '../nodes/booking-form.state';
|
|
10
11
|
type UseBookingSubmissionResult = {
|
|
@@ -25,7 +26,7 @@ type UseBookingSubmissionResult = {
|
|
|
25
26
|
* @example
|
|
26
27
|
* ```tsx
|
|
27
28
|
* function BookingForm({ siteId }) {
|
|
28
|
-
* const { submit, isSubmitting, feedback } = useBookingSubmission(siteId);
|
|
29
|
+
* const { submit, isSubmitting, feedback } = useBookingSubmission(siteId, terms);
|
|
29
30
|
*
|
|
30
31
|
* const handleSubmit = async () => {
|
|
31
32
|
* await submit({
|
|
@@ -40,5 +41,5 @@ type UseBookingSubmissionResult = {
|
|
|
40
41
|
* }
|
|
41
42
|
* ```
|
|
42
43
|
*/
|
|
43
|
-
export declare function useBookingSubmission(_siteId: string): UseBookingSubmissionResult;
|
|
44
|
+
export declare function useBookingSubmission(_siteId: string, terms: Pick<ReturnType<typeof useSiteTermsAgreement>, 'api'>): UseBookingSubmissionResult;
|
|
44
45
|
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { useSiteTermsAgreement } from './useSiteTermsAgreement';
|
|
2
|
+
import type { BlockSiteTerms } from '../../blocks/shared/siteTerms';
|
|
1
3
|
import React from "react";
|
|
2
4
|
import type { AppointmentBookingReview, MailingListRuntimeContext } from "../../../../../core/src/index";
|
|
3
5
|
import { type BlockApiConfig } from "../api";
|
|
@@ -11,6 +13,7 @@ export type { BookingAppointmentPackagesModel };
|
|
|
11
13
|
export { createBookingBlockApiConfig };
|
|
12
14
|
export type HeadlessBookingFlowOptions = Readonly<{
|
|
13
15
|
mailingList?: MailingListRuntimeContext;
|
|
16
|
+
siteTerms?: BlockSiteTerms;
|
|
14
17
|
siteName?: string;
|
|
15
18
|
siteId: string;
|
|
16
19
|
formId: string;
|
|
@@ -140,6 +143,7 @@ export type BookingFlowActions = Readonly<{
|
|
|
140
143
|
clearFeedback: () => void;
|
|
141
144
|
}>;
|
|
142
145
|
export type HeadlessBookingFlow = Readonly<{
|
|
146
|
+
siteTerms: ReturnType<typeof useSiteTermsAgreement>;
|
|
143
147
|
mailingList: Readonly<{
|
|
144
148
|
siteName: string;
|
|
145
149
|
}> | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BlockSiteTerms } from '../../blocks/shared/siteTerms';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { type BlockApiConfig } from '../api';
|
|
3
4
|
import type { EventRegistrationClientProps } from '../nodes/event-registration/types';
|
|
@@ -22,6 +23,7 @@ export type HeadlessEventRegistrationFlowOptions = Readonly<{
|
|
|
22
23
|
maxTickets?: string | number;
|
|
23
24
|
spamProtectionEnabled?: boolean;
|
|
24
25
|
mailingList?: EventRegistrationClientProps['mailingList'];
|
|
26
|
+
siteTerms?: BlockSiteTerms;
|
|
25
27
|
siteName?: string;
|
|
26
28
|
}>;
|
|
27
29
|
export type HeadlessEventRegistrationProviderProps = Readonly<{
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type BoundBlockApiClient } from '../api/client';
|
|
2
|
+
import { type BlockSiteTerms } from '../../blocks/shared/siteTerms';
|
|
3
|
+
import { type SiteTermsCheckoutContext, type SiteTermsAgreementView } from '../shared/siteTermsAgreement';
|
|
4
|
+
export declare function siteTermsFailureKind(error: unknown): 'changed' | 'missing' | null;
|
|
5
|
+
export declare function useSiteTermsAgreement(options: Readonly<{
|
|
6
|
+
terms: BlockSiteTerms | undefined;
|
|
7
|
+
context: SiteTermsCheckoutContext;
|
|
8
|
+
}>): {
|
|
9
|
+
api: BoundBlockApiClient;
|
|
10
|
+
view: SiteTermsAgreementView;
|
|
11
|
+
commerceView: SiteTermsAgreementView;
|
|
12
|
+
onChange: (checked: boolean) => void;
|
|
13
|
+
requireAgreement: (surface?: "primary" | "commerce") => boolean;
|
|
14
|
+
notice: string | null;
|
|
15
|
+
error: string | null;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { BlockSiteTerms, VerifiedSiteTermsAcceptance } from '../../blocks/shared/siteTerms';
|
|
2
|
+
import type { SiteTermsPresentationState } from '../shared/siteTermsAgreement';
|
|
3
|
+
export type SiteTermsAgreementState = SiteTermsPresentationState & Readonly<{
|
|
4
|
+
acceptanceRead: symbol | null;
|
|
5
|
+
error: string | null;
|
|
6
|
+
recovery: 'ready' | 'refreshing' | 'unavailable';
|
|
7
|
+
/** The terms changed under an in-progress checkout; shown as a banner, not a field error. */
|
|
8
|
+
changedNotice: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
export type SiteTermsAgreementEvent = Readonly<{
|
|
11
|
+
kind: 'ticked';
|
|
12
|
+
versionId: string | null;
|
|
13
|
+
}> | Readonly<{
|
|
14
|
+
kind: 'acceptance_loading';
|
|
15
|
+
identity: string | null;
|
|
16
|
+
requestId: symbol;
|
|
17
|
+
}> | Readonly<{
|
|
18
|
+
kind: 'acceptance';
|
|
19
|
+
requestId: symbol;
|
|
20
|
+
value: VerifiedSiteTermsAcceptance | null;
|
|
21
|
+
}> | Readonly<{
|
|
22
|
+
kind: 'missing';
|
|
23
|
+
message: string;
|
|
24
|
+
targetKey: string | null;
|
|
25
|
+
}> | Readonly<{
|
|
26
|
+
kind: 'changed';
|
|
27
|
+
targetKey: string | null;
|
|
28
|
+
}> | Readonly<{
|
|
29
|
+
kind: 'refreshed';
|
|
30
|
+
terms: BlockSiteTerms;
|
|
31
|
+
projectionKey: string;
|
|
32
|
+
identity: string | null;
|
|
33
|
+
acceptance: VerifiedSiteTermsAcceptance | null;
|
|
34
|
+
}> | Readonly<{
|
|
35
|
+
kind: 'refresh_failed';
|
|
36
|
+
}> | Readonly<{
|
|
37
|
+
kind: 'accepted';
|
|
38
|
+
acceptance: VerifiedSiteTermsAcceptance | null;
|
|
39
|
+
identity: string | null;
|
|
40
|
+
}>;
|
|
41
|
+
export declare const initialSiteTermsAgreementState: SiteTermsAgreementState;
|
|
42
|
+
export declare function siteTermsAgreementReducer(state: SiteTermsAgreementState, event: SiteTermsAgreementEvent): SiteTermsAgreementState;
|
|
@@ -84,6 +84,7 @@ export declare const lookListPresentationSchemaShape: {
|
|
|
84
84
|
items: "items";
|
|
85
85
|
item: "item";
|
|
86
86
|
places: "places";
|
|
87
|
+
background: "background";
|
|
87
88
|
eyebrow: "eyebrow";
|
|
88
89
|
mark: "mark";
|
|
89
90
|
controls: "controls";
|
|
@@ -101,6 +102,8 @@ export declare const lookListPresentationSchemaShape: {
|
|
|
101
102
|
sticker: "sticker";
|
|
102
103
|
list: "list";
|
|
103
104
|
frame: "frame";
|
|
105
|
+
"schedule-section": "schedule-section";
|
|
106
|
+
"shop-section": "shop-section";
|
|
104
107
|
headline: "headline";
|
|
105
108
|
lede: "lede";
|
|
106
109
|
actions: "actions";
|
|
@@ -162,6 +165,7 @@ export declare const lookListPresentationSchemaShape: {
|
|
|
162
165
|
items: "items";
|
|
163
166
|
item: "item";
|
|
164
167
|
places: "places";
|
|
168
|
+
background: "background";
|
|
165
169
|
eyebrow: "eyebrow";
|
|
166
170
|
mark: "mark";
|
|
167
171
|
controls: "controls";
|
|
@@ -179,6 +183,8 @@ export declare const lookListPresentationSchemaShape: {
|
|
|
179
183
|
sticker: "sticker";
|
|
180
184
|
list: "list";
|
|
181
185
|
frame: "frame";
|
|
186
|
+
"schedule-section": "schedule-section";
|
|
187
|
+
"shop-section": "shop-section";
|
|
182
188
|
headline: "headline";
|
|
183
189
|
lede: "lede";
|
|
184
190
|
actions: "actions";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CardListRuntime } from './events/shared/EventItem';
|
|
1
2
|
import { type CardListPresentation } from './events/shared/CardListItem';
|
|
2
3
|
import { type RuntimeMedia as Media } from '../../../../../media-core/src/index';
|
|
3
4
|
import React from 'react';
|
|
@@ -206,7 +207,7 @@ export type AppointmentServicesView = Readonly<{
|
|
|
206
207
|
kind: 'error';
|
|
207
208
|
message: string;
|
|
208
209
|
}>;
|
|
209
|
-
export type AppointmentServicesNodeProps = CardListPresentation & Readonly<{
|
|
210
|
+
export type AppointmentServicesNodeProps = CardListRuntime & CardListPresentation & Readonly<{
|
|
210
211
|
preparedView?: AppointmentServicesView;
|
|
211
212
|
sectionHeading?: unknown;
|
|
212
213
|
categoryId?: unknown;
|
|
@@ -221,9 +222,12 @@ export declare function formatAppointmentLocation(location: PublicAppointmentLoc
|
|
|
221
222
|
export declare function formatAppointmentPrice(service: Pick<PublicAppointmentService, 'pricing' | 'priceAmount' | 'priceCurrency'>): string | null;
|
|
222
223
|
export declare function buildAppointmentServicesView(input: Readonly<{
|
|
223
224
|
services: unknown;
|
|
225
|
+
arrangement?: import('./events/shared/CardListItem').CardListArrangement;
|
|
224
226
|
categoryId?: unknown;
|
|
225
227
|
pathname: string | undefined;
|
|
226
228
|
servicePathPrefix?: string | null;
|
|
227
229
|
}>): AppointmentServicesView;
|
|
228
|
-
export declare function AppointmentServicesNode({ preparedView, sectionHeading, categoryId, services, pathname, servicePathPrefix, blockId, className, ...presentation }: AppointmentServicesNodeProps): React.ReactElement;
|
|
230
|
+
export declare function AppointmentServicesNode({ Carousel, preparedView, sectionHeading, categoryId, services, pathname, servicePathPrefix, blockId, className, ...presentation }: AppointmentServicesNodeProps): React.ReactElement;
|
|
229
231
|
export default AppointmentServicesNode;
|
|
232
|
+
/** Undated services merge in category order for the same arrangements as offerings. */
|
|
233
|
+
export declare function appointmentServicesListing(view: AppointmentServicesView, arrangement?: import('./events/shared/CardListItem').CardListArrangement): AppointmentServicesView;
|
|
@@ -113,6 +113,10 @@ export type BookingFlowActionResult = Readonly<{
|
|
|
113
113
|
}> | Readonly<{
|
|
114
114
|
ok: false;
|
|
115
115
|
reason: "validation-failed";
|
|
116
|
+
/**
|
|
117
|
+
* Empty when only the site terms box is unticked: that message lives on
|
|
118
|
+
* `siteTerms.error`, beside the box.
|
|
119
|
+
*/
|
|
116
120
|
errors: BookingValidationErrors;
|
|
117
121
|
}> | Readonly<{
|
|
118
122
|
ok: false;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BlockSiteTerms } from '../../blocks/shared/siteTerms';
|
|
1
2
|
import { type MailingListRuntimeContext } from "../../../../../core/src/index";
|
|
2
3
|
import { type InteractiveIslandProps } from "../../../contracts/islands";
|
|
3
4
|
import { type BookingFormService, type BookingFormServiceCategory, type BookingFormConfig, type BookingFormServicesSource } from "./booking-form.state";
|
|
@@ -15,6 +16,7 @@ export type BookingFormDisplay = Readonly<{
|
|
|
15
16
|
export type BookingFormHydration = Readonly<{
|
|
16
17
|
demoEmailSuppressed?: boolean;
|
|
17
18
|
mailingList?: MailingListRuntimeContext;
|
|
19
|
+
siteTerms?: BlockSiteTerms;
|
|
18
20
|
siteName?: string;
|
|
19
21
|
formId: string | null;
|
|
20
22
|
serviceId: string | null;
|
|
@@ -49,6 +51,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
49
51
|
apiBaseUrl?: string;
|
|
50
52
|
portalToken?: string | null;
|
|
51
53
|
mailingList?: MailingListRuntimeContext;
|
|
54
|
+
siteTerms?: BlockSiteTerms;
|
|
52
55
|
siteName?: string;
|
|
53
56
|
formId?: string;
|
|
54
57
|
serviceId?: string | null;
|
|
@@ -98,6 +101,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
98
101
|
hydration: Readonly<{
|
|
99
102
|
demoEmailSuppressed?: boolean;
|
|
100
103
|
mailingList?: MailingListRuntimeContext;
|
|
104
|
+
siteTerms?: BlockSiteTerms;
|
|
101
105
|
siteName?: string;
|
|
102
106
|
formId: string | null;
|
|
103
107
|
serviceId: string | null;
|
|
@@ -152,6 +156,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
152
156
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
153
157
|
reason: "online_payment_configured_before_launch";
|
|
154
158
|
}>;
|
|
159
|
+
asksSiteTerms?: boolean;
|
|
155
160
|
consent?: Readonly<{
|
|
156
161
|
requirementId: string;
|
|
157
162
|
title: string;
|
|
@@ -180,6 +185,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
180
185
|
apiBaseUrl?: string;
|
|
181
186
|
portalToken?: string | null;
|
|
182
187
|
mailingList?: MailingListRuntimeContext;
|
|
188
|
+
siteTerms?: BlockSiteTerms;
|
|
183
189
|
siteName?: string;
|
|
184
190
|
formId?: string;
|
|
185
191
|
serviceId?: string | null;
|
|
@@ -224,6 +230,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
224
230
|
apiBaseUrl?: string;
|
|
225
231
|
portalToken?: string | null;
|
|
226
232
|
mailingList?: MailingListRuntimeContext;
|
|
233
|
+
siteTerms?: BlockSiteTerms;
|
|
227
234
|
siteName?: string;
|
|
228
235
|
formId?: string;
|
|
229
236
|
serviceId?: string | null;
|
|
@@ -276,6 +283,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
276
283
|
hydration: Readonly<{
|
|
277
284
|
demoEmailSuppressed?: boolean;
|
|
278
285
|
mailingList?: MailingListRuntimeContext;
|
|
286
|
+
siteTerms?: BlockSiteTerms;
|
|
279
287
|
siteName?: string;
|
|
280
288
|
formId: string | null;
|
|
281
289
|
serviceId: string | null;
|
|
@@ -330,6 +338,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
330
338
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
331
339
|
reason: "online_payment_configured_before_launch";
|
|
332
340
|
}>;
|
|
341
|
+
asksSiteTerms?: boolean;
|
|
333
342
|
consent?: Readonly<{
|
|
334
343
|
requirementId: string;
|
|
335
344
|
title: string;
|
|
@@ -362,6 +371,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
362
371
|
hydration: Readonly<{
|
|
363
372
|
demoEmailSuppressed?: boolean;
|
|
364
373
|
mailingList?: MailingListRuntimeContext;
|
|
374
|
+
siteTerms?: BlockSiteTerms;
|
|
365
375
|
siteName?: string;
|
|
366
376
|
formId: string | null;
|
|
367
377
|
serviceId: string | null;
|
|
@@ -416,6 +426,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
416
426
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
417
427
|
reason: "online_payment_configured_before_launch";
|
|
418
428
|
}>;
|
|
429
|
+
asksSiteTerms?: boolean;
|
|
419
430
|
consent?: Readonly<{
|
|
420
431
|
requirementId: string;
|
|
421
432
|
title: string;
|
|
@@ -460,6 +471,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
460
471
|
hydration: Readonly<{
|
|
461
472
|
demoEmailSuppressed?: boolean;
|
|
462
473
|
mailingList?: MailingListRuntimeContext;
|
|
474
|
+
siteTerms?: BlockSiteTerms;
|
|
463
475
|
siteName?: string;
|
|
464
476
|
formId: string | null;
|
|
465
477
|
serviceId: string | null;
|
|
@@ -514,6 +526,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
514
526
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
515
527
|
reason: "online_payment_configured_before_launch";
|
|
516
528
|
}>;
|
|
529
|
+
asksSiteTerms?: boolean;
|
|
517
530
|
consent?: Readonly<{
|
|
518
531
|
requirementId: string;
|
|
519
532
|
title: string;
|
|
@@ -555,6 +568,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
555
568
|
hydration: Readonly<{
|
|
556
569
|
demoEmailSuppressed?: boolean;
|
|
557
570
|
mailingList?: MailingListRuntimeContext;
|
|
571
|
+
siteTerms?: BlockSiteTerms;
|
|
558
572
|
siteName?: string;
|
|
559
573
|
formId: string | null;
|
|
560
574
|
serviceId: string | null;
|
|
@@ -609,6 +623,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
609
623
|
paymentTerms: import("../../blocks/shared/bookingPaymentTerms").BlockBookingPaymentTerms;
|
|
610
624
|
reason: "online_payment_configured_before_launch";
|
|
611
625
|
}>;
|
|
626
|
+
asksSiteTerms?: boolean;
|
|
612
627
|
consent?: Readonly<{
|
|
613
628
|
requirementId: string;
|
|
614
629
|
title: string;
|
|
@@ -68,6 +68,7 @@ export type BookingFormService = Readonly<{
|
|
|
68
68
|
priceCurrency?: string | null;
|
|
69
69
|
paymentTerms?: BlockBookingPaymentTerms;
|
|
70
70
|
paymentTermsAvailability?: BlockBookingPaymentTermsAvailability;
|
|
71
|
+
asksSiteTerms?: boolean;
|
|
71
72
|
consent?: BlockBookingConsent;
|
|
72
73
|
/** The service's category (issue 1403); null or absent is "Other". */
|
|
73
74
|
categoryId?: string | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BlockSiteTerms } from '../../blocks/shared/siteTerms';
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import type { MailingListRuntimeContext } from "../../../../../core/src/index";
|
|
3
4
|
import type { PublicEvent } from "../../blocks/events/shared/types";
|
|
@@ -13,6 +14,7 @@ export type BookingFormSourceProps = Readonly<{
|
|
|
13
14
|
apiBaseUrl?: string;
|
|
14
15
|
portalToken?: string | null;
|
|
15
16
|
mailingList?: MailingListRuntimeContext;
|
|
17
|
+
siteTerms?: BlockSiteTerms;
|
|
16
18
|
siteName?: string;
|
|
17
19
|
formId?: string;
|
|
18
20
|
serviceId?: string | null;
|
|
@@ -100,6 +102,7 @@ export type AppointmentBookingServiceSourceInput = Readonly<{
|
|
|
100
102
|
priceCurrency?: string | null;
|
|
101
103
|
paymentTerms?: BookingFormService["paymentTerms"];
|
|
102
104
|
paymentTermsAvailability?: BookingFormService["paymentTermsAvailability"];
|
|
105
|
+
asksSiteTerms?: boolean;
|
|
103
106
|
consent?: BookingFormService["consent"];
|
|
104
107
|
categoryId?: string | null;
|
|
105
108
|
}>;
|