@riverbankcms/sdk 0.146.0 → 0.148.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/{PreviewEditorSidebar-kg2r2Fyi.mjs → PreviewEditorSidebar-DvEPG3Z2.mjs} +249 -172
- package/dist/{PreviewEditorUI-sWMLp5dT.mjs → PreviewEditorUI-D6eb6fkx.mjs} +68 -60
- package/dist/{PreviewQueryProvider-Cg51xq1w.mjs → PreviewQueryProvider-5znTyJuz.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-h2ti3Hch.mjs → SdkPreviewModeRuntime-DJ6utQ_R.mjs} +1180 -475
- package/dist/{SiteChromeCustomizeContext-DEACFH9m.mjs → SiteChromeCustomizeContext-CFJYh6vo.mjs} +199078 -193767
- package/dist/_dts/ai/src/contracts/proposals.d.ts +198 -33
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +18 -3
- package/dist/_dts/api/src/accessAdmin.d.ts +0 -4
- package/dist/_dts/api/src/accountApi.d.ts +6 -6
- package/dist/_dts/api/src/admin.d.ts +22 -22
- package/dist/_dts/api/src/aiPatch.d.ts +2 -2
- package/dist/_dts/api/src/aiPlayground.d.ts +1 -0
- package/dist/_dts/api/src/analytics.d.ts +2 -2
- package/dist/_dts/api/src/apiEndpointTypes.d.ts +2 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +2 -2
- package/dist/_dts/api/src/auth.d.ts +10 -10
- package/dist/_dts/api/src/availability.d.ts +6 -6
- package/dist/_dts/api/src/billing.d.ts +42 -15
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +15 -6
- package/dist/_dts/api/src/blocks.d.ts +15 -14
- package/dist/_dts/api/src/blocksKeys.d.ts +2 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +16 -2
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +4 -13
- package/dist/_dts/api/src/bookingOperations.d.ts +6 -48
- package/dist/_dts/api/src/bookingPeople.d.ts +92 -0
- package/dist/_dts/api/src/bookingPeopleEndpointDefinitions.d.ts +38 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +12 -49
- package/dist/_dts/api/src/bookingSettingsSections.d.ts +1 -1
- package/dist/_dts/api/src/bookings.d.ts +8 -7
- package/dist/_dts/api/src/calendar.d.ts +9 -9
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -6
- package/dist/_dts/api/src/common/envelope.d.ts +2 -2
- package/dist/_dts/api/src/content-editor.d.ts +2 -2
- package/dist/_dts/api/src/contentEntries.d.ts +17 -48
- package/dist/_dts/api/src/contentRuntime.d.ts +51 -37
- package/dist/_dts/api/src/contentTypes.d.ts +11 -11
- package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +6 -6
- package/dist/_dts/api/src/documentLifecycle.d.ts +67 -0
- package/dist/_dts/api/src/domains.d.ts +16 -16
- package/dist/_dts/api/src/editLeaseEndpoints.d.ts +72 -0
- package/dist/_dts/api/src/emailSettings.d.ts +4 -4
- package/dist/_dts/api/src/endpoints.d.ts +725 -607
- package/dist/_dts/api/src/eventEmailTemplates.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +48 -8
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +1 -9
- package/dist/_dts/api/src/eventPageWords.d.ts +7 -12
- package/dist/_dts/api/src/footerSettings.d.ts +6 -6
- package/dist/_dts/api/src/index.d.ts +8 -6
- package/dist/_dts/api/src/indexCoreTypes.d.ts +2 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +1 -6
- package/dist/_dts/api/src/mailingListIntegration.d.ts +6 -0
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +1 -1
- package/dist/_dts/api/src/navigation.d.ts +5 -5
- package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +15 -0
- package/dist/_dts/api/src/occurrenceScheduling.d.ts +19 -0
- package/dist/_dts/api/src/pageSurfaceEditorEndpoints.d.ts +55 -0
- package/dist/_dts/api/src/pageSurfaceEndpoints.d.ts +28 -7
- package/dist/_dts/api/src/pages.d.ts +7 -7
- package/dist/_dts/api/src/performance.d.ts +1 -1
- package/dist/_dts/api/src/public/index.d.ts +1 -1
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +50 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +7 -0
- package/dist/_dts/api/src/redirects.d.ts +3 -3
- package/dist/_dts/api/src/request.d.ts +10 -1
- package/dist/_dts/api/src/resources.d.ts +4 -4
- package/dist/_dts/api/src/routes.d.ts +8 -3
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +15 -1
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +21 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +5 -28
- package/dist/_dts/api/src/sdkCourseBooking.d.ts +4 -4
- package/dist/_dts/api/src/sdkEventEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/sdkEventOccurrenceRequestContracts.d.ts +43 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +4 -2
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +8 -1
- package/dist/_dts/api/src/seo.d.ts +4 -4
- package/dist/_dts/api/src/services.d.ts +4 -4
- package/dist/_dts/api/src/siteLifecycleEndpoints.d.ts +61 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +19 -25
- package/dist/_dts/api/src/siteMembers.d.ts +10 -10
- package/dist/_dts/api/src/siteOnboarding.d.ts +16 -14
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -3
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +5 -12
- package/dist/_dts/api/src/siteRuntimeEntry.d.ts +31 -0
- package/dist/_dts/billing/src/checkout/platform.d.ts +77 -0
- package/dist/_dts/billing/src/components/index.d.ts +25 -40
- package/dist/_dts/billing/src/membership/index.d.ts +1 -3
- package/dist/_dts/billing/src/plans/entitlements.d.ts +80 -0
- package/dist/_dts/billing/src/plans/registry.d.ts +16 -16
- package/dist/_dts/billing/src/plans/standing.d.ts +9 -2
- package/dist/_dts/billing/src/plans/types.d.ts +5 -15
- package/dist/_dts/billing/src/site-arrangements.d.ts +2 -2
- package/dist/_dts/billing/src/subscriptions/standingEvidence.d.ts +2 -4
- package/dist/_dts/billing/src/subscriptions/store.d.ts +17 -11
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +6 -7
- package/dist/_dts/block-form/src/backend/types.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/FieldFrame.d.ts +3 -1
- package/dist/_dts/blocks/src/PageRenderer.d.ts +3 -4
- package/dist/_dts/blocks/src/client/events.d.ts +3 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +24 -4
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +18 -9
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +4 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +3 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +6 -1
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -2
- 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 +6 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/components/booking/SuccessMessage.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +36 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +18 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/usePolling.d.ts +7 -48
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.checkout-return-context.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.completion.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +28 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-choice.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-state.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.payment-confirmation.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.reserved-fields.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +17 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-actions.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-handler.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-success.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +2 -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/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +7 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +5 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +18 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +37 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +16 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardPresentations.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +5 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.block-submission.d.ts +2 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +1 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingMailingListNote.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/DemoBookingPortalAccess.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/DemoPortalSignInLink.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/mailingListSignupCopy.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoBookingPassStorage.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoPortalMagicLink.d.ts +29 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -2
- package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +1 -3
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -7
- package/dist/_dts/content-editor/src/controller/EditLeaseController.d.ts +39 -0
- package/dist/_dts/content-editor/src/controller/EditorWriteGate.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +25 -61
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseBanner.d.ts +7 -0
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseControllers.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/deriveEditorUnpublishedState.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/documentValueBaseline.d.ts +25 -0
- package/dist/_dts/content-editor/src/controller/editLeaseLossSignal.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/editLeaseNotice.d.ts +28 -0
- package/dist/_dts/content-editor/src/controller/editorClientId.d.ts +2 -0
- package/dist/_dts/content-editor/src/controller/editorEditability.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/editorLeaseParticipation.d.ts +34 -0
- package/dist/_dts/content-editor/src/controller/normalizedMetadataBaseline.d.ts +29 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceDocumentBaselines.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceLifecycle.d.ts +11 -0
- package/dist/_dts/content-editor/src/controller/planDocumentBaselineRefresh.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/readDocumentLeaseBaselines.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/refreshDocumentLeaseBaseline.d.ts +12 -0
- package/dist/_dts/content-editor/src/controller/refreshLinkedEntry.d.ts +17 -0
- package/dist/_dts/content-editor/src/controller/replayRestoredEditorEffects.d.ts +2 -3
- package/dist/_dts/content-editor/src/controller/routeWrites.d.ts +26 -0
- package/dist/_dts/content-editor/src/controller/useAutosaveTriggers.d.ts +16 -17
- package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +6 -2
- package/dist/_dts/content-editor/src/controller/useBlocksList.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/useEntryValueAutosaves.d.ts +21 -0
- package/dist/_dts/content-editor/src/controller/useInitialEditorUiStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/controller/useServerBaselineReconciliation.d.ts +17 -0
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +5 -1
- package/dist/_dts/content-editor/src/hooks/blockDraftLifecycle.d.ts +8 -47
- package/dist/_dts/content-editor/src/hooks/editLeaseMachine.d.ts +120 -0
- package/dist/_dts/content-editor/src/hooks/publishability.d.ts +6 -10
- package/dist/_dts/content-editor/src/hooks/useAutosaveStatus.d.ts +3 -0
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +5 -15
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +7 -5
- package/dist/_dts/content-editor/src/hooks/useEditLease.d.ts +28 -0
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +25 -39
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +17 -19
- package/dist/_dts/content-editor/src/hooks/useLinkedEntryAutosave.d.ts +5 -8
- package/dist/_dts/content-editor/src/hooks/useValueAutosave.d.ts +64 -0
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +0 -7
- package/dist/_dts/content-editor/src/index.d.ts +26 -7
- package/dist/_dts/content-editor/src/linkedEntries/domain.d.ts +12 -0
- package/dist/_dts/content-editor/src/linkedEntries/owner.d.ts +9 -0
- package/dist/_dts/content-editor/src/liveDrafts/draftProjection.d.ts +66 -0
- package/dist/_dts/content-editor/src/liveDrafts/linkedSaveHandovers.d.ts +37 -0
- package/dist/_dts/content-editor/src/liveDrafts/remoteDraftOverlay.d.ts +113 -0
- package/dist/_dts/content-editor/src/liveDrafts/useLiveDrafts.d.ts +32 -0
- package/dist/_dts/content-editor/src/liveDrafts/useRetentionTicks.d.ts +7 -0
- package/dist/_dts/content-editor/src/primitives/shared/activePreviewField.d.ts +6 -0
- package/dist/_dts/content-editor/src/primitives/shared/storeBinding.d.ts +1 -0
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +96 -19
- package/dist/_dts/content-editor/src/services/editorApiClient.d.ts +13 -0
- package/dist/_dts/content-editor/src/services/index.d.ts +2 -0
- package/dist/_dts/content-editor/src/services/pageSurfaceEditorServices.d.ts +23 -0
- package/dist/_dts/content-editor/src/sync/flushValues.d.ts +13 -0
- package/dist/_dts/content-editor/src/sync/lifecycleFailure.d.ts +51 -0
- package/dist/_dts/content-editor/src/sync/runLifecycle.d.ts +64 -0
- package/dist/_dts/content-editor/src/sync/schedulerValues.d.ts +27 -0
- package/dist/_dts/content-editor/src/sync/sendPlanning.d.ts +104 -0
- package/dist/_dts/content-editor/src/sync/valueSync.d.ts +114 -0
- package/dist/_dts/content-editor/src/ui/blockCollection.d.ts +8 -0
- package/dist/_dts/content-editor/src/ui/documentLifecycle.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/editorLeaseUiState.d.ts +7 -0
- package/dist/_dts/content-editor/src/ui/editorRefresh.d.ts +82 -0
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +102 -127
- package/dist/_dts/content-editor/src/ui/editorTransactionState.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +126 -72
- package/dist/_dts/content-editor/src/ui/editorValueSnapshot.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/serverBlockAdmission.d.ts +26 -0
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +16 -27
- package/dist/_dts/content-editor/src/ui/stores/blockVersionsStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedEntryLeaseStore.d.ts +54 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedSaveHandoversStore.d.ts +11 -0
- package/dist/_dts/content-editor/src/ui/stores/remoteDraftsStore.d.ts +10 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +63 -3
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +2 -2
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +4 -4
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +4 -4
- package/dist/_dts/content-model/src/definitions/shared.d.ts +11 -2
- package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
- package/dist/_dts/content-model/src/entry-slots/serializeAllowedBlocks.d.ts +2 -0
- package/dist/_dts/content-model/src/metadataConfig.d.ts +10 -38
- package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -1
- package/dist/_dts/content-model/src/types.d.ts +0 -1
- package/dist/_dts/core/src/block-content-identity.d.ts +49 -1
- package/dist/_dts/core/src/branded.d.ts +12 -0
- package/dist/_dts/core/src/currency-format.d.ts +8 -2
- package/dist/_dts/core/src/demo-lifecycle-status.d.ts +2 -2
- package/dist/_dts/core/src/demo-warm-pool-target.d.ts +8 -0
- package/dist/_dts/core/src/edit-lease.d.ts +55 -0
- package/dist/_dts/core/src/editor-state.d.ts +38 -13
- package/dist/_dts/core/src/editor-value-sync.d.ts +79 -0
- package/dist/_dts/core/src/html-entities.d.ts +6 -0
- package/dist/_dts/core/src/index.d.ts +5 -1
- package/dist/_dts/core/src/mailing-list-runtime.d.ts +15 -0
- package/dist/_dts/core/src/mailing-list-setup.d.ts +2 -0
- package/dist/_dts/core/src/mailing-list-submission.d.ts +6 -0
- package/dist/_dts/core/src/navigation-portal-labels.d.ts +9 -0
- package/dist/_dts/core/src/participants.d.ts +0 -38
- package/dist/_dts/core/src/uuid.d.ts +7 -5
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +261 -175
- package/dist/_dts/editor/src/EditorProvider.d.ts +5 -0
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +14 -0
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +1 -0
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +0 -1
- package/dist/_dts/editor/src/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +10 -9
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardFrame.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/actionPresentation.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/block-editor/applyExtendedFieldDefaults.d.ts +3 -4
- package/dist/_dts/editor-blocks/src/block-editor/blockDraftBaselineSeed.d.ts +4 -8
- package/dist/_dts/editor-blocks/src/block-editor/editorBlockItem.d.ts +23 -0
- package/dist/_dts/editor-blocks/src/block-editor/generatedIconApplyCoordination.d.ts +2 -7
- package/dist/_dts/editor-blocks/src/block-editor/hooks/applyBlockStructureChange.d.ts +4 -0
- package/dist/_dts/editor-blocks/src/block-editor/hooks/buildInsertBlockHistoryCommand.d.ts +14 -5
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +21 -19
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -10
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +8 -16
- package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +6 -16
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +37 -9
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +3 -2
- package/dist/_dts/media-core/src/fileStorage.d.ts +4 -0
- package/dist/_dts/media-editor/src/context.d.ts +1 -1
- package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -2
- package/dist/_dts/media-editor/src/provider.d.ts +3 -2
- package/dist/_dts/media-react/src/hooks/internal/classification.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +7 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +8 -3
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +10 -6
- package/dist/_dts/preview-next/src/client/blocks/linkedEntryRenderOverlay.d.ts +22 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/entryFieldRebinding.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +11 -1
- package/dist/_dts/preview-next/src/client/blocks/renderPrecedence.d.ts +17 -0
- package/dist/_dts/preview-next/src/client/blocks/useLinkedSaveHandoverRetention.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewAccessBanners.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +24 -14
- package/dist/_dts/preview-next/src/client/preview/PreviewLeaseEditingMode.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeAutosave.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +3 -4
- package/dist/_dts/preview-next/src/client/preview/sdkConfig.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/usePreviewCustomizeWorkflowState.d.ts +4 -0
- package/dist/_dts/realtime/src/client.d.ts +3 -0
- package/dist/_dts/realtime/src/draftChannel.d.ts +91 -0
- package/dist/_dts/realtime/src/drafts.d.ts +210 -0
- package/dist/_dts/realtime/src/index.d.ts +3 -0
- package/dist/_dts/realtime/src/leaseChangeSubscriptions.d.ts +8 -0
- package/dist/_dts/realtime/src/types.d.ts +113 -0
- package/dist/_dts/realtime/src/useDraftChannel.d.ts +34 -0
- package/dist/_dts/realtime/src/useSiteRealtimeReload.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -55
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/footer/effectiveNavLinkStyle.d.ts +13 -0
- package/dist/_dts/theme-core/src/footer/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/effectiveNavLinkStyle.d.ts +17 -0
- package/dist/_dts/theme-core/src/header/generateHeaderLogoStyles.d.ts +15 -0
- package/dist/_dts/theme-core/src/header/generateHeaderNavLinkStyles.d.ts +4 -0
- package/dist/_dts/theme-core/src/header/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/header/legacyNavLinkStyle.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/openingForegroundProjection.d.ts +7 -0
- package/dist/_dts/theme-core/src/header/rootPaint.d.ts +4 -0
- package/dist/_dts/theme-core/src/navigation/effectPolicy.d.ts +38 -0
- package/dist/_dts/theme-core/src/navigation/generateNavLinkCSS.d.ts +4 -0
- package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/surfaces/foregroundContract.d.ts +7 -0
- package/dist/_dts/theme-core/src/surfaces/foregroundInteraction.d.ts +29 -22
- package/dist/_dts/theme-core/src/surfaces/foregroundRoles.d.ts +10 -2
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +9 -0
- package/dist/_dts/theme-core/src/utils/cssDeclarations.d.ts +2 -0
- package/dist/_dts/ui/src/badge.d.ts +2 -1
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/combobox-keys.d.ts +23 -0
- package/dist/_dts/ui/src/combobox-rows.d.ts +34 -0
- package/dist/_dts/ui/src/combobox.d.ts +26 -1
- package/dist/_dts/ui/src/date-picker.d.ts +5 -8
- package/dist/_dts/ui/src/editor-item-card.d.ts +1 -0
- package/dist/_dts/ui/src/field-trigger.d.ts +39 -0
- package/dist/_dts/ui/src/fieldControl.d.ts +27 -0
- package/dist/_dts/ui/src/index.d.ts +4 -1
- package/dist/_dts/ui/src/native-select.d.ts +8 -0
- package/dist/_dts/ui/src/popover.d.ts +7 -1
- package/dist/_dts/ui/src/segmented-control.d.ts +4 -0
- package/dist/_dts/ui/src/surface.d.ts +1 -1
- package/dist/client/{BookingConsentAgreement-BQKL045f.mjs → BookingMailingListNote-CzRt2dF_.mjs} +110 -97
- package/dist/client/{CheckboxChoice--W2n6yKs.mjs → CheckboxChoice-B33MqoUo.mjs} +1 -1
- package/dist/client/DemoBookingPortalAccess-mxqwap3f.mjs +344 -0
- package/dist/client/{EventCombined.client-BdRjVbhH.mjs → EventCombined.client-CDb11igO.mjs} +7 -7
- package/dist/client/{EventListing.client-DBxC6xOU.mjs → EventListing.client-EgYhzKPa.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-mHEJKrTs.mjs → LeafletStaticMap-gtmtaA2b.mjs} +1 -1
- package/dist/client/{scrollToBlock-BNgaEUpo.mjs → TerminalPanel-DvNUP5ot.mjs} +77 -77
- package/dist/client/{ThemedButton-CE5KYT6z.mjs → ThemedButton-C7CeUJjW.mjs} +2 -2
- package/dist/client/{accordion-BEQNSptH.mjs → accordion-kjvt49rA.mjs} +1 -1
- package/dist/client/{bookingForm-AMr-s5vw.mjs → bookingForm-pbRZordh.mjs} +411 -141
- package/dist/client/bookings.mjs +966 -396
- package/dist/client/{carousel-Bbt_QgJy.mjs → carousel-f4Zbmicv.mjs} +2 -2
- package/dist/client/{carousel.client-jahpU9Vz.mjs → carousel.client-A2lG-9od.mjs} +1 -1
- package/dist/client/{cart-CnWi30zJ.mjs → cart-DO20An50.mjs} +3 -3
- package/dist/client/{checkout-f3nkWgd4.mjs → checkout-Du5amDR_.mjs} +3 -3
- package/dist/client/{checkoutUrls-CW3-78uu.mjs → checkoutUrls-CXhko2Rv.mjs} +1 -1
- package/dist/client/client.mjs +3837 -2202
- package/dist/client/{colorStyles-CuJBiS-1.mjs → colorStyles-j5U9v5JA.mjs} +5 -1
- package/dist/client/{context-Bc8T6pCe.mjs → context-eW97E945.mjs} +4 -3
- package/dist/client/{dates-DUsCEzLb.mjs → dates-jPCirRea.mjs} +56 -11
- package/dist/client/{eventCalendar-CKwgXui5.mjs → eventCalendar-C2M-iE4j.mjs} +10 -10
- package/dist/client/{eventCombined-CBAOSTGR.mjs → eventCombined-W6ns3LHg.mjs} +4 -4
- package/dist/client/{eventDetails-Dh-_WiBD.mjs → eventDetails-CR-GT0f0.mjs} +4 -4
- package/dist/client/{eventListing-CA3frIH5.mjs → eventListing-BK8AfYZz.mjs} +4 -4
- package/dist/client/{eventRegistration-BHtsgdcg.mjs → eventRegistration-BJSd4KUu.mjs} +461 -266
- package/dist/client/{form-C2h3YAcg.mjs → form-BvpfbQaT.mjs} +5 -5
- package/dist/client/{headerSection-lwMuMTH9.mjs → headerSection-I5sUQ8x-.mjs} +3 -3
- package/dist/client/hooks.mjs +909 -163
- package/dist/client/{locationMap-DJ2bLODV.mjs → locationMap-BLvwf9_f.mjs} +4 -4
- package/dist/client/{FieldValidationMessage-AYanWFb-.mjs → mailingListSignupCopy-DZSHZrm6.mjs} +14 -1
- package/dist/client/{media-BtJ37tzS.mjs → media-Cl38iOMI.mjs} +11 -4
- package/dist/client/{newsletterForm-8Pu5K32g.mjs → newsletterForm-DrQ2weE8.mjs} +6 -6
- package/dist/client/{pricing-HHx3IgBz.mjs → pricing-BES87mrR.mjs} +1 -1
- package/dist/client/{productDetail-C_1odnAf.mjs → productDetail-Url9jcc5.mjs} +3 -3
- package/dist/client/{productList-CtCv-Nmx.mjs → productList-DE7ngEZJ.mjs} +3 -3
- package/dist/client/{propsDecoder-Dcgsncxb.mjs → propsDecoder-D1OtGXDV.mjs} +140 -22
- package/dist/client/rendering/client.mjs +2366 -997
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +4607 -2884
- package/dist/client/{routeIslandApiConfig-CWLP7wu3.mjs → routeIslandApiConfig-BG9Y-SHg.mjs} +1 -1
- package/dist/client/{shop-DQXrQ8kJ.mjs → shop-CJkuySJ3.mjs} +126 -79
- package/dist/client/{shop-commerce-B88zmWWo.mjs → shop-commerce-4rKj5n9h.mjs} +26 -14
- package/dist/client/{shop-commerce-store-DtSfkKuX.mjs → shop-commerce-store-Bxm75Pg6.mjs} +1 -1
- package/dist/client/{shopShared-cuaONpkJ.mjs → shopShared-DpoQDWfz.mjs} +5 -5
- package/dist/client/{useEventFilters-Bukew6Gb.mjs → useEventFilters-D8HliSqR.mjs} +33 -18
- package/dist/preview-next/before-render.mjs +314 -133
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-base.css +53 -2
- package/dist/preview-next/editor-chrome.css +7 -4
- package/dist/preview-next/keepAlive.mjs +314 -133
- package/dist/preview-next/middleware.mjs +314 -133
- package/dist/{previewAuthStore-h5IgbSp4.mjs → previewAuthStore-BXXF3hhW.mjs} +316 -133
- package/dist/{sdk-runtime-DTc1uIXn.mjs → sdk-runtime-C2a05WjL.mjs} +2 -2
- package/dist/{separator-BpHS1KZK.mjs → separator-CuNhBAhS.mjs} +1 -1
- package/dist/server/components.mjs +6888 -6157
- package/dist/server/config-validation.mjs +931 -199
- package/dist/server/config.mjs +931 -199
- package/dist/server/data.mjs +929 -198
- package/dist/server/index.mjs +317 -134
- package/dist/server/navigation.mjs +13 -2
- package/dist/server/next.mjs +5003 -4340
- package/dist/server/page-converter.mjs +160 -78
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +6421 -5687
- package/dist/server/rendering.mjs +7683 -6933
- package/dist/server/routing.mjs +1035 -338
- package/dist/server/server.mjs +946 -256
- package/dist/server/theme-bridge.mjs +66 -17
- package/dist/server/theme.mjs +5 -1
- package/dist/styles/index.css +32 -4
- package/package.json +1 -1
- package/dist/_dts/billing/src/plans/display.d.ts +0 -15
- package/dist/_dts/content-editor/src/controller/buildBlockPublishedBaselines.d.ts +0 -4
- package/dist/_dts/content-editor/src/controller/buildPublishSuccessTransition.d.ts +0 -16
- package/dist/_dts/content-editor/src/controller/driver.d.ts +0 -14
- package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +0 -7
- package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +0 -29
- package/dist/_dts/content-editor/src/hooks/autosaveScopePlanning.d.ts +0 -26
- package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +0 -64
- package/dist/_dts/content-editor/src/hooks/useStoreAutosave.d.ts +0 -48
- package/dist/_dts/content-editor/src/types.d.ts +0 -44
- package/dist/_dts/core/src/participant-identity.d.ts +0 -135
- package/dist/client/DiscountCodeDisclosure-CsOtjFY7.mjs +0 -137
|
@@ -1306,6 +1306,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1306
1306
|
hydration: Readonly<{
|
|
1307
1307
|
emptyStateText: string;
|
|
1308
1308
|
submitButtonText: string;
|
|
1309
|
+
demoEmailSuppressed?: boolean;
|
|
1309
1310
|
}>;
|
|
1310
1311
|
}>;
|
|
1311
1312
|
contracts: Readonly<{
|
|
@@ -1326,6 +1327,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1326
1327
|
hydration: Readonly<{
|
|
1327
1328
|
emptyStateText: string;
|
|
1328
1329
|
submitButtonText: string;
|
|
1330
|
+
demoEmailSuppressed?: boolean;
|
|
1329
1331
|
}>;
|
|
1330
1332
|
}>) => unknown;
|
|
1331
1333
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
@@ -1340,6 +1342,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1340
1342
|
hydration: Readonly<{
|
|
1341
1343
|
emptyStateText: string;
|
|
1342
1344
|
submitButtonText: string;
|
|
1345
|
+
demoEmailSuppressed?: boolean;
|
|
1343
1346
|
}>;
|
|
1344
1347
|
}>>;
|
|
1345
1348
|
}>;
|
|
@@ -1362,6 +1365,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1362
1365
|
hydration: Readonly<{
|
|
1363
1366
|
emptyStateText: string;
|
|
1364
1367
|
submitButtonText: string;
|
|
1368
|
+
demoEmailSuppressed?: boolean;
|
|
1365
1369
|
}>;
|
|
1366
1370
|
}>;
|
|
1367
1371
|
contracts: Readonly<{
|
|
@@ -1382,6 +1386,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1382
1386
|
hydration: Readonly<{
|
|
1383
1387
|
emptyStateText: string;
|
|
1384
1388
|
submitButtonText: string;
|
|
1389
|
+
demoEmailSuppressed?: boolean;
|
|
1385
1390
|
}>;
|
|
1386
1391
|
}>) => unknown;
|
|
1387
1392
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
@@ -1396,6 +1401,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1396
1401
|
hydration: Readonly<{
|
|
1397
1402
|
emptyStateText: string;
|
|
1398
1403
|
submitButtonText: string;
|
|
1404
|
+
demoEmailSuppressed?: boolean;
|
|
1399
1405
|
}>;
|
|
1400
1406
|
}>>;
|
|
1401
1407
|
}>;
|
|
@@ -1544,6 +1550,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1544
1550
|
kind: "client-owned";
|
|
1545
1551
|
buildRender: (source: Readonly<{
|
|
1546
1552
|
siteId?: string;
|
|
1553
|
+
demoEmailSuppressed?: boolean;
|
|
1547
1554
|
apiBaseUrl?: string;
|
|
1548
1555
|
portalToken?: string | null;
|
|
1549
1556
|
previewToken?: string | null;
|
|
@@ -1570,9 +1577,11 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1570
1577
|
siteMemberships?: Readonly<{
|
|
1571
1578
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1572
1579
|
}> | null;
|
|
1580
|
+
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1581
|
+
siteName?: string;
|
|
1573
1582
|
}>) => Readonly<{
|
|
1574
1583
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1575
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1584
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1576
1585
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1577
1586
|
}>;
|
|
1578
1587
|
}>;
|
|
@@ -1580,6 +1589,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1580
1589
|
source: Readonly<{
|
|
1581
1590
|
encode: (value: Readonly<{
|
|
1582
1591
|
siteId?: string;
|
|
1592
|
+
demoEmailSuppressed?: boolean;
|
|
1583
1593
|
apiBaseUrl?: string;
|
|
1584
1594
|
portalToken?: string | null;
|
|
1585
1595
|
previewToken?: string | null;
|
|
@@ -1606,9 +1616,12 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1606
1616
|
siteMemberships?: Readonly<{
|
|
1607
1617
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1608
1618
|
}> | null;
|
|
1619
|
+
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1620
|
+
siteName?: string;
|
|
1609
1621
|
}>) => unknown;
|
|
1610
1622
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
1611
1623
|
siteId?: string;
|
|
1624
|
+
demoEmailSuppressed?: boolean;
|
|
1612
1625
|
apiBaseUrl?: string;
|
|
1613
1626
|
portalToken?: string | null;
|
|
1614
1627
|
previewToken?: string | null;
|
|
@@ -1635,18 +1648,20 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1635
1648
|
siteMemberships?: Readonly<{
|
|
1636
1649
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1637
1650
|
}> | null;
|
|
1651
|
+
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1652
|
+
siteName?: string;
|
|
1638
1653
|
}>>;
|
|
1639
1654
|
}>;
|
|
1640
1655
|
render: Readonly<{
|
|
1641
1656
|
encode: (value: Readonly<{
|
|
1642
1657
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1643
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1658
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1644
1659
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1645
1660
|
}>;
|
|
1646
1661
|
}>) => unknown;
|
|
1647
1662
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
1648
1663
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1649
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1664
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1650
1665
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1651
1666
|
}>;
|
|
1652
1667
|
}>>;
|
|
@@ -1660,6 +1675,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1660
1675
|
kind: "client-owned";
|
|
1661
1676
|
buildRender: (source: Readonly<{
|
|
1662
1677
|
siteId?: string;
|
|
1678
|
+
demoEmailSuppressed?: boolean;
|
|
1663
1679
|
apiBaseUrl?: string;
|
|
1664
1680
|
portalToken?: string | null;
|
|
1665
1681
|
previewToken?: string | null;
|
|
@@ -1686,9 +1702,11 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1686
1702
|
siteMemberships?: Readonly<{
|
|
1687
1703
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1688
1704
|
}> | null;
|
|
1705
|
+
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1706
|
+
siteName?: string;
|
|
1689
1707
|
}>) => Readonly<{
|
|
1690
1708
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1691
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1709
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1692
1710
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1693
1711
|
}>;
|
|
1694
1712
|
}>;
|
|
@@ -1696,6 +1714,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1696
1714
|
source: Readonly<{
|
|
1697
1715
|
encode: (value: Readonly<{
|
|
1698
1716
|
siteId?: string;
|
|
1717
|
+
demoEmailSuppressed?: boolean;
|
|
1699
1718
|
apiBaseUrl?: string;
|
|
1700
1719
|
portalToken?: string | null;
|
|
1701
1720
|
previewToken?: string | null;
|
|
@@ -1722,9 +1741,12 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1722
1741
|
siteMemberships?: Readonly<{
|
|
1723
1742
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1724
1743
|
}> | null;
|
|
1744
|
+
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1745
|
+
siteName?: string;
|
|
1725
1746
|
}>) => unknown;
|
|
1726
1747
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
1727
1748
|
siteId?: string;
|
|
1749
|
+
demoEmailSuppressed?: boolean;
|
|
1728
1750
|
apiBaseUrl?: string;
|
|
1729
1751
|
portalToken?: string | null;
|
|
1730
1752
|
previewToken?: string | null;
|
|
@@ -1751,18 +1773,20 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1751
1773
|
siteMemberships?: Readonly<{
|
|
1752
1774
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1753
1775
|
}> | null;
|
|
1776
|
+
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
1777
|
+
siteName?: string;
|
|
1754
1778
|
}>>;
|
|
1755
1779
|
}>;
|
|
1756
1780
|
render: Readonly<{
|
|
1757
1781
|
encode: (value: Readonly<{
|
|
1758
1782
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1759
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1783
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1760
1784
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1761
1785
|
}>;
|
|
1762
1786
|
}>) => unknown;
|
|
1763
1787
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
1764
1788
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1765
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1789
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1766
1790
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1767
1791
|
}>;
|
|
1768
1792
|
}>>;
|
|
@@ -1817,6 +1841,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1817
1841
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1818
1842
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1819
1843
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1844
|
+
demoEmailSuppressed?: boolean;
|
|
1820
1845
|
}>;
|
|
1821
1846
|
}>;
|
|
1822
1847
|
contracts: Readonly<{
|
|
@@ -1865,6 +1890,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1865
1890
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1866
1891
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1867
1892
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1893
|
+
demoEmailSuppressed?: boolean;
|
|
1868
1894
|
}>;
|
|
1869
1895
|
}>) => unknown;
|
|
1870
1896
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
@@ -1907,6 +1933,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1907
1933
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1908
1934
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1909
1935
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1936
|
+
demoEmailSuppressed?: boolean;
|
|
1910
1937
|
}>;
|
|
1911
1938
|
}>>;
|
|
1912
1939
|
}>;
|
|
@@ -1957,6 +1984,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1957
1984
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1958
1985
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1959
1986
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1987
|
+
demoEmailSuppressed?: boolean;
|
|
1960
1988
|
}>;
|
|
1961
1989
|
}>;
|
|
1962
1990
|
contracts: Readonly<{
|
|
@@ -2005,6 +2033,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2005
2033
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
2006
2034
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
2007
2035
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
2036
|
+
demoEmailSuppressed?: boolean;
|
|
2008
2037
|
}>;
|
|
2009
2038
|
}>) => unknown;
|
|
2010
2039
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
@@ -2047,6 +2076,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2047
2076
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
2048
2077
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
2049
2078
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
2079
|
+
demoEmailSuppressed?: boolean;
|
|
2050
2080
|
}>;
|
|
2051
2081
|
}>>;
|
|
2052
2082
|
}>;
|
|
@@ -660,6 +660,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
660
660
|
hydration: Readonly<{
|
|
661
661
|
emptyStateText: string;
|
|
662
662
|
submitButtonText: string;
|
|
663
|
+
demoEmailSuppressed?: boolean;
|
|
663
664
|
}>;
|
|
664
665
|
}>;
|
|
665
666
|
contracts: Readonly<{
|
|
@@ -680,6 +681,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
680
681
|
hydration: Readonly<{
|
|
681
682
|
emptyStateText: string;
|
|
682
683
|
submitButtonText: string;
|
|
684
|
+
demoEmailSuppressed?: boolean;
|
|
683
685
|
}>;
|
|
684
686
|
}>) => unknown;
|
|
685
687
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
@@ -694,6 +696,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
694
696
|
hydration: Readonly<{
|
|
695
697
|
emptyStateText: string;
|
|
696
698
|
submitButtonText: string;
|
|
699
|
+
demoEmailSuppressed?: boolean;
|
|
697
700
|
}>;
|
|
698
701
|
}>>;
|
|
699
702
|
}>;
|
|
@@ -773,6 +776,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
773
776
|
kind: "client-owned";
|
|
774
777
|
buildRender: (source: Readonly<{
|
|
775
778
|
siteId?: string;
|
|
779
|
+
demoEmailSuppressed?: boolean;
|
|
776
780
|
apiBaseUrl?: string;
|
|
777
781
|
portalToken?: string | null;
|
|
778
782
|
previewToken?: string | null;
|
|
@@ -799,9 +803,11 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
799
803
|
siteMemberships?: Readonly<{
|
|
800
804
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
801
805
|
}> | null;
|
|
806
|
+
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
807
|
+
siteName?: string;
|
|
802
808
|
}>) => Readonly<{
|
|
803
809
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
804
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
810
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
805
811
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
806
812
|
}>;
|
|
807
813
|
}>;
|
|
@@ -809,6 +815,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
809
815
|
source: Readonly<{
|
|
810
816
|
encode: (value: Readonly<{
|
|
811
817
|
siteId?: string;
|
|
818
|
+
demoEmailSuppressed?: boolean;
|
|
812
819
|
apiBaseUrl?: string;
|
|
813
820
|
portalToken?: string | null;
|
|
814
821
|
previewToken?: string | null;
|
|
@@ -835,9 +842,12 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
835
842
|
siteMemberships?: Readonly<{
|
|
836
843
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
837
844
|
}> | null;
|
|
845
|
+
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
846
|
+
siteName?: string;
|
|
838
847
|
}>) => unknown;
|
|
839
848
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
840
849
|
siteId?: string;
|
|
850
|
+
demoEmailSuppressed?: boolean;
|
|
841
851
|
apiBaseUrl?: string;
|
|
842
852
|
portalToken?: string | null;
|
|
843
853
|
previewToken?: string | null;
|
|
@@ -864,18 +874,20 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
864
874
|
siteMemberships?: Readonly<{
|
|
865
875
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
866
876
|
}> | null;
|
|
877
|
+
mailingList?: import("../../../../../core/src/index").MailingListRuntimeContext;
|
|
878
|
+
siteName?: string;
|
|
867
879
|
}>>;
|
|
868
880
|
}>;
|
|
869
881
|
render: Readonly<{
|
|
870
882
|
encode: (value: Readonly<{
|
|
871
883
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
872
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
884
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
873
885
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
874
886
|
}>;
|
|
875
887
|
}>) => unknown;
|
|
876
888
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
877
889
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
878
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
890
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
879
891
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
880
892
|
}>;
|
|
881
893
|
}>>;
|
|
@@ -928,6 +940,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
928
940
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
929
941
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
930
942
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
943
|
+
demoEmailSuppressed?: boolean;
|
|
931
944
|
}>;
|
|
932
945
|
}>;
|
|
933
946
|
contracts: Readonly<{
|
|
@@ -976,6 +989,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
976
989
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
977
990
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
978
991
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
992
|
+
demoEmailSuppressed?: boolean;
|
|
979
993
|
}>;
|
|
980
994
|
}>) => unknown;
|
|
981
995
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
@@ -1018,6 +1032,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
1018
1032
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1019
1033
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1020
1034
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1035
|
+
demoEmailSuppressed?: boolean;
|
|
1021
1036
|
}>;
|
|
1022
1037
|
}>>;
|
|
1023
1038
|
}>;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import type { MailingListRuntimeContext } from "../../../../../core/src/index";
|
|
2
3
|
import { type BlockApiConfig } from "../api";
|
|
3
4
|
import type { AutoAppliedDiscountPreview } from "../api/types";
|
|
4
5
|
import type { BookingFormConfig, BookingFormData, BookingFormService, BookingFormServiceCategory, BookingSelectedCollectionOptionKind } from "../nodes/booking-form.state";
|
|
6
|
+
import { type BookingPaymentConfirmationSummary } from "../nodes/booking-form.payment-confirmation";
|
|
5
7
|
import { type BookingPaymentSelectionViewModel } from "../shared/bookingPaymentOptions";
|
|
6
8
|
import { createBookingBlockApiConfig, type BookingAppointmentPackagesModel, type BookingFieldValue, type BookingFieldView, type BookingFlowActionResult, type BookingFlowFeedback, type BookingFlowStatus, type BookingFlowView, type BookingResourceView, type BookingFlowStep, type BookingFlowStepId, type BookingSlotSelection, type BookingSlotView, type BookingSubmitActionResult, type BookingSubmitOptions, getBookingServiceSlidingScale, type LoadState } from "./useHeadlessBookingFlow.state";
|
|
7
9
|
export type { BlockApiConfig };
|
|
8
10
|
export type { BookingAppointmentPackagesModel };
|
|
9
11
|
export { createBookingBlockApiConfig };
|
|
10
12
|
export type HeadlessBookingFlowOptions = Readonly<{
|
|
13
|
+
mailingList?: MailingListRuntimeContext;
|
|
14
|
+
siteName?: string;
|
|
11
15
|
siteId: string;
|
|
12
16
|
formId: string;
|
|
13
17
|
form: BookingFormConfig | null;
|
|
@@ -73,6 +77,7 @@ export type BookingPaymentModel = Readonly<{
|
|
|
73
77
|
slidingScale: ReturnType<typeof getBookingServiceSlidingScale>;
|
|
74
78
|
appointmentPackages: BookingAppointmentPackagesModel;
|
|
75
79
|
errorMessage: string;
|
|
80
|
+
confirmationSummary: null;
|
|
76
81
|
}> | Readonly<{
|
|
77
82
|
kind: "ok";
|
|
78
83
|
mode: "hidden" | "disclosure_only" | "choice_required";
|
|
@@ -83,6 +88,7 @@ export type BookingPaymentModel = Readonly<{
|
|
|
83
88
|
selectedSlidingAmount: number | null;
|
|
84
89
|
slidingScale: ReturnType<typeof getBookingServiceSlidingScale>;
|
|
85
90
|
appointmentPackages: BookingAppointmentPackagesModel;
|
|
91
|
+
confirmationSummary: BookingPaymentConfirmationSummary | null;
|
|
86
92
|
}>;
|
|
87
93
|
export type BookingDiscountModel = Readonly<{
|
|
88
94
|
code: string;
|
|
@@ -111,6 +117,7 @@ export type BookingFlowActions = Readonly<{
|
|
|
111
117
|
selectDate: (date: string | null) => void;
|
|
112
118
|
selectSlot: (slot: BookingSlotSelection | null) => void;
|
|
113
119
|
updateField: (fieldId: string, value: BookingFieldValue) => void;
|
|
120
|
+
setMailingListOptIn: (checked: boolean) => void;
|
|
114
121
|
markFieldTouched: (fieldId: string) => void;
|
|
115
122
|
selectPaymentOption: (kind: BookingSelectedCollectionOptionKind | null) => void;
|
|
116
123
|
selectAppointmentPackage: (packageId: string | null) => void;
|
|
@@ -131,6 +138,10 @@ export type BookingFlowActions = Readonly<{
|
|
|
131
138
|
clearFeedback: () => void;
|
|
132
139
|
}>;
|
|
133
140
|
export type HeadlessBookingFlow = Readonly<{
|
|
141
|
+
mailingList: Readonly<{
|
|
142
|
+
siteName: string;
|
|
143
|
+
}> | null;
|
|
144
|
+
mailingListOptIn: boolean;
|
|
134
145
|
status: BookingFlowStatus;
|
|
135
146
|
view: BookingFlowView;
|
|
136
147
|
steps: readonly BookingFlowStep[];
|
|
@@ -21,6 +21,8 @@ export type HeadlessEventRegistrationFlowOptions = Readonly<{
|
|
|
21
21
|
events?: readonly NonNullable<EventRegistrationClientProps['events']>[number][];
|
|
22
22
|
maxTickets?: string | number;
|
|
23
23
|
spamProtectionEnabled?: boolean;
|
|
24
|
+
mailingList?: EventRegistrationClientProps['mailingList'];
|
|
25
|
+
siteName?: string;
|
|
24
26
|
}>;
|
|
25
27
|
export type HeadlessEventRegistrationProviderProps = Readonly<{
|
|
26
28
|
config: BlockApiConfig;
|
|
@@ -53,7 +53,8 @@ export type PaymentVerificationDeps = Readonly<{
|
|
|
53
53
|
* Hook for polling payment status after Stripe redirects.
|
|
54
54
|
*
|
|
55
55
|
* Pass config to start polling, or null to stop/idle.
|
|
56
|
-
* The hook handles cleanup on unmount and
|
|
56
|
+
* The hook handles cleanup on unmount and starts a new cycle when the status
|
|
57
|
+
* reference changes.
|
|
57
58
|
*
|
|
58
59
|
* @param config - Configuration for polling, or null to stop
|
|
59
60
|
* @returns Verification result with status, data, and retry function
|
|
@@ -4,22 +4,10 @@
|
|
|
4
4
|
* Provides a reusable polling mechanism with configurable intervals,
|
|
5
5
|
* max attempts, and completion detection. Used by usePaymentVerification
|
|
6
6
|
* and other hooks that need to poll for status changes.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* const polling = usePolling(shouldPoll ? {
|
|
11
|
-
* pollFn: () => api.getStatus(id),
|
|
12
|
-
* isComplete: (result) => result.status === 'done',
|
|
13
|
-
* } : null);
|
|
14
|
-
*
|
|
15
|
-
* useEffect(() => {
|
|
16
|
-
* if (polling.status === 'completed') {
|
|
17
|
-
* handleSuccess(polling.result);
|
|
18
|
-
* }
|
|
19
|
-
* }, [polling.status]);
|
|
20
|
-
* ```
|
|
21
7
|
*/
|
|
22
8
|
export type UsePollingConfig<T> = {
|
|
9
|
+
/** Stable identifier for the operation being polled. Changing it starts a new cycle. */
|
|
10
|
+
restartKey: string;
|
|
23
11
|
/** Function to call on each poll - should return the data to check */
|
|
24
12
|
pollFn: () => Promise<T>;
|
|
25
13
|
/** Returns true when polling should stop (success condition) */
|
|
@@ -28,8 +16,8 @@ export type UsePollingConfig<T> = {
|
|
|
28
16
|
isFailed?: (result: T) => boolean;
|
|
29
17
|
/** Max attempts before timeout (default: 10) */
|
|
30
18
|
maxAttempts?: number;
|
|
31
|
-
/**
|
|
32
|
-
interval?: number;
|
|
19
|
+
/** Fixed interval or delay selector receiving the one-based attempt number. */
|
|
20
|
+
interval?: number | ((attempt: number) => number);
|
|
33
21
|
};
|
|
34
22
|
export type UsePollingResult<T> = {
|
|
35
23
|
/** Current polling status */
|
|
@@ -42,37 +30,8 @@ export type UsePollingResult<T> = {
|
|
|
42
30
|
retry: () => void;
|
|
43
31
|
};
|
|
44
32
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* The hook handles cleanup on unmount and config changes.
|
|
49
|
-
*
|
|
50
|
-
* **IMPORTANT: Config identity stability**
|
|
51
|
-
*
|
|
52
|
-
* The config object is used as an effect dependency. If config identity
|
|
53
|
-
* changes on every render (e.g., inline objects), polling will restart
|
|
54
|
-
* continuously, causing infinite request loops.
|
|
55
|
-
*
|
|
56
|
-
* Always memoize the config object:
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```tsx
|
|
60
|
-
* // BAD - inline object creates new identity every render
|
|
61
|
-
* usePolling({
|
|
62
|
-
* pollFn: () => api.getStatus(id),
|
|
63
|
-
* isComplete: (result) => result.status === 'done',
|
|
64
|
-
* });
|
|
65
|
-
*
|
|
66
|
-
* // GOOD - memoized config, stable identity
|
|
67
|
-
* const pollConfig = useMemo(() => shouldPoll ? {
|
|
68
|
-
* pollFn: () => api.getStatus(id),
|
|
69
|
-
* isComplete: (result) => result.status === 'done',
|
|
70
|
-
* } : null, [shouldPoll, api, id]);
|
|
71
|
-
*
|
|
72
|
-
* usePolling(pollConfig);
|
|
73
|
-
* ```
|
|
74
|
-
*
|
|
75
|
-
* @param config - Configuration for polling, or null to stop
|
|
76
|
-
* @returns Polling result with status, data, and retry function
|
|
33
|
+
* Polls until the operation completes, fails, times out, or becomes disabled.
|
|
34
|
+
* Config objects may be rebuilt across renders; change restartKey to begin a
|
|
35
|
+
* new operation and reset its attempt budget.
|
|
77
36
|
*/
|
|
78
37
|
export declare function usePolling<T>(config: UsePollingConfig<T> | null): UsePollingResult<T>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BookingMailingListNote } from '../../../../../core/src/index';
|
|
2
|
+
export type AppointmentCheckoutReturnContext = Readonly<{
|
|
3
|
+
customerEmail: string | null;
|
|
4
|
+
mailingListNote: BookingMailingListNote | null;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function saveAppointmentCheckoutReturnContext(sessionId: string, context: AppointmentCheckoutReturnContext): void;
|
|
7
|
+
export declare function readAppointmentCheckoutReturnContext(sessionId: string): AppointmentCheckoutReturnContext | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BookingMailingListNote as BookingSignupNote } from '../../../../../core/src/index';
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { type BookingRedirectState } from "./booking-form.state";
|
|
4
|
+
export declare function BookingFormCompletion({ resourceName, successMessage, redirectState, localNote, customerEmail, demoEmailSuppressed, }: Readonly<{
|
|
5
|
+
resourceName?: string | null;
|
|
6
|
+
successMessage?: string | null;
|
|
7
|
+
redirectState: BookingRedirectState;
|
|
8
|
+
localNote: BookingSignupNote | null;
|
|
9
|
+
customerEmail: string | null;
|
|
10
|
+
demoEmailSuppressed?: boolean;
|
|
11
|
+
}>): React.ReactElement;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BookingMailingListNote as BookingSignupNote } from '../../../../../core/src/index';
|
|
1
2
|
import type { AppointmentResourceId, AppointmentServiceId, Brand, CustomerPassId, FormId, PassId, SiteId } from "../../../../../core/src/index";
|
|
2
3
|
import type { BlockApiConfig, EligibleAppointmentPackage } from "../api/types";
|
|
3
4
|
import type { TimeSlot } from "../api/types";
|
|
@@ -136,12 +137,19 @@ export type BookingSubmitActionResult = Readonly<{
|
|
|
136
137
|
kind: "booked";
|
|
137
138
|
appointmentId: string;
|
|
138
139
|
resourceName: string | null;
|
|
140
|
+
customerEmail: string | null;
|
|
141
|
+
demoBookingPass?: string;
|
|
142
|
+
mailingListSignupNote?: BookingSignupNote;
|
|
139
143
|
};
|
|
140
144
|
}> | Readonly<{
|
|
141
145
|
ok: true;
|
|
142
146
|
outcome: {
|
|
143
147
|
kind: "checkout_redirect";
|
|
144
148
|
checkoutUrl: string;
|
|
149
|
+
sessionId: string;
|
|
150
|
+
customerEmail: string | null;
|
|
151
|
+
demoBookingPass?: string;
|
|
152
|
+
mailingListSignupNote?: BookingSignupNote;
|
|
145
153
|
};
|
|
146
154
|
}> | Exclude<BookingFlowActionResult, Readonly<{
|
|
147
155
|
ok: true;
|
|
@@ -170,6 +178,7 @@ export type BookingFlowReducerState = Readonly<{
|
|
|
170
178
|
selectedDate?: string;
|
|
171
179
|
selectedSlot: BookingSlotView | null;
|
|
172
180
|
fieldValues: Readonly<Record<string, BookingFieldValue>>;
|
|
181
|
+
mailingListOptIn: boolean;
|
|
173
182
|
touchedFields: Readonly<Record<string, boolean>>;
|
|
174
183
|
/**
|
|
175
184
|
* Steps the user has tried to advance past. Step validation is derived
|
|
@@ -205,6 +214,9 @@ export type BookingFlowEvent = Readonly<{
|
|
|
205
214
|
}> | Readonly<{
|
|
206
215
|
type: "field-touched";
|
|
207
216
|
fieldId: BookingFieldId;
|
|
217
|
+
}> | Readonly<{
|
|
218
|
+
type: "mailing-list-opt-in-set";
|
|
219
|
+
checked: boolean;
|
|
208
220
|
}> | Readonly<{
|
|
209
221
|
type: "step-advance-attempted";
|
|
210
222
|
stepId: BookingFlowStepId;
|
|
@@ -504,6 +516,7 @@ export declare function buildBookingSubmitPlan(input: Readonly<{
|
|
|
504
516
|
redirect: BookingSubmitRedirectMode;
|
|
505
517
|
successUrl?: string;
|
|
506
518
|
cancelUrl?: string;
|
|
519
|
+
mailingListEligible?: boolean;
|
|
507
520
|
}>): BookingSubmitPlan;
|
|
508
521
|
export declare function getAppointmentBookingOverrideInput(props: AppointmentBookingOverridePropsLike): AppointmentBookingOverrideInputResult;
|
|
509
522
|
export declare function createBookingBlockApiConfig(input: Readonly<{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MailingListRuntimeContext } from "../../../../../core/src/index";
|
|
1
2
|
import { type InteractiveIslandProps } from "../../../contracts/islands";
|
|
2
3
|
import { type BookingFormService, type BookingFormServiceCategory, type BookingFormConfig, type BookingFormServicesSource } from "./booking-form.state";
|
|
3
4
|
import { type BookingFormRebookContext, type BookingFormSourceProps } from "./booking-runtime-sources";
|
|
@@ -12,6 +13,9 @@ export type BookingFormDisplay = Readonly<{
|
|
|
12
13
|
message: string | null;
|
|
13
14
|
}>;
|
|
14
15
|
export type BookingFormHydration = Readonly<{
|
|
16
|
+
demoEmailSuppressed?: boolean;
|
|
17
|
+
mailingList?: MailingListRuntimeContext;
|
|
18
|
+
siteName?: string;
|
|
15
19
|
formId: string | null;
|
|
16
20
|
serviceId: string | null;
|
|
17
21
|
resourceId: string | null;
|
|
@@ -41,8 +45,11 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
41
45
|
kind: "client-owned";
|
|
42
46
|
buildRender: (source: Readonly<{
|
|
43
47
|
siteId?: string;
|
|
48
|
+
demoEmailSuppressed?: boolean;
|
|
44
49
|
apiBaseUrl?: string;
|
|
45
50
|
portalToken?: string | null;
|
|
51
|
+
mailingList?: MailingListRuntimeContext;
|
|
52
|
+
siteName?: string;
|
|
46
53
|
formId?: string;
|
|
47
54
|
serviceId?: string | null;
|
|
48
55
|
resourceId?: string | null;
|
|
@@ -89,6 +96,9 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
89
96
|
message: string | null;
|
|
90
97
|
}>;
|
|
91
98
|
hydration: Readonly<{
|
|
99
|
+
demoEmailSuppressed?: boolean;
|
|
100
|
+
mailingList?: MailingListRuntimeContext;
|
|
101
|
+
siteName?: string;
|
|
92
102
|
formId: string | null;
|
|
93
103
|
serviceId: string | null;
|
|
94
104
|
resourceId: string | null;
|
|
@@ -166,8 +176,11 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
166
176
|
source: Readonly<{
|
|
167
177
|
encode: (value: Readonly<{
|
|
168
178
|
siteId?: string;
|
|
179
|
+
demoEmailSuppressed?: boolean;
|
|
169
180
|
apiBaseUrl?: string;
|
|
170
181
|
portalToken?: string | null;
|
|
182
|
+
mailingList?: MailingListRuntimeContext;
|
|
183
|
+
siteName?: string;
|
|
171
184
|
formId?: string;
|
|
172
185
|
serviceId?: string | null;
|
|
173
186
|
resourceId?: string | null;
|
|
@@ -207,8 +220,11 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
207
220
|
}>) => unknown;
|
|
208
221
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
209
222
|
siteId?: string;
|
|
223
|
+
demoEmailSuppressed?: boolean;
|
|
210
224
|
apiBaseUrl?: string;
|
|
211
225
|
portalToken?: string | null;
|
|
226
|
+
mailingList?: MailingListRuntimeContext;
|
|
227
|
+
siteName?: string;
|
|
212
228
|
formId?: string;
|
|
213
229
|
serviceId?: string | null;
|
|
214
230
|
resourceId?: string | null;
|
|
@@ -258,6 +274,9 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
258
274
|
message: string | null;
|
|
259
275
|
}>;
|
|
260
276
|
hydration: Readonly<{
|
|
277
|
+
demoEmailSuppressed?: boolean;
|
|
278
|
+
mailingList?: MailingListRuntimeContext;
|
|
279
|
+
siteName?: string;
|
|
261
280
|
formId: string | null;
|
|
262
281
|
serviceId: string | null;
|
|
263
282
|
resourceId: string | null;
|
|
@@ -341,6 +360,9 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
341
360
|
message: string | null;
|
|
342
361
|
}>;
|
|
343
362
|
hydration: Readonly<{
|
|
363
|
+
demoEmailSuppressed?: boolean;
|
|
364
|
+
mailingList?: MailingListRuntimeContext;
|
|
365
|
+
siteName?: string;
|
|
344
366
|
formId: string | null;
|
|
345
367
|
serviceId: string | null;
|
|
346
368
|
resourceId: string | null;
|
|
@@ -436,6 +458,9 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
436
458
|
message: string | null;
|
|
437
459
|
}>;
|
|
438
460
|
hydration: Readonly<{
|
|
461
|
+
demoEmailSuppressed?: boolean;
|
|
462
|
+
mailingList?: MailingListRuntimeContext;
|
|
463
|
+
siteName?: string;
|
|
439
464
|
formId: string | null;
|
|
440
465
|
serviceId: string | null;
|
|
441
466
|
resourceId: string | null;
|
|
@@ -528,6 +553,9 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
528
553
|
message: string | null;
|
|
529
554
|
}>;
|
|
530
555
|
hydration: Readonly<{
|
|
556
|
+
demoEmailSuppressed?: boolean;
|
|
557
|
+
mailingList?: MailingListRuntimeContext;
|
|
558
|
+
siteName?: string;
|
|
531
559
|
formId: string | null;
|
|
532
560
|
serviceId: string | null;
|
|
533
561
|
resourceId: string | null;
|