@riverbankcms/sdk 0.147.0 → 0.149.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 +16 -0
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DtpB3_sS.mjs → PreviewEditorSidebar-DBKln68M.mjs} +301 -205
- package/dist/{PreviewEditorUI-DxTLgaHo.mjs → PreviewEditorUI-DpRX4Mum.mjs} +68 -63
- package/dist/{PreviewQueryProvider-Dd4dxOiU.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DMMNCngt.mjs → SdkPreviewModeRuntime-DJPmPY-r.mjs} +1247 -541
- package/dist/{SiteChromeCustomizeContext-DQXZXiqS.mjs → SiteChromeCustomizeContext-JYA0cJ_Z.mjs} +209720 -204978
- package/dist/_dts/ai/src/contracts/proposals.d.ts +0 -33
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +0 -3
- package/dist/_dts/api/src/accessAdmin.d.ts +0 -4
- package/dist/_dts/api/src/accountApi.d.ts +1 -1
- 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 +33 -50
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/bookingOperations.d.ts +9 -11
- package/dist/_dts/api/src/bookingRecords.d.ts +16 -11
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/bookings.d.ts +7 -7
- package/dist/_dts/api/src/calendar.d.ts +9 -9
- package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -8
- package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
- 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/customerMembershipOutcomes.d.ts +1 -1
- 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 +135 -51
- package/dist/_dts/api/src/eventEmailTemplates.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +29 -7
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +0 -8
- 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 -7
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/navigation.d.ts +5 -5
- 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 +4 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +6 -29
- package/dist/_dts/api/src/redirects.d.ts +3 -3
- package/dist/_dts/api/src/request.d.ts +11 -2
- 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 +1 -2
- 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/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 +9 -2
- 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/siteManagementEndpoints.d.ts +15 -8
- package/dist/_dts/api/src/siteMembers.d.ts +10 -10
- package/dist/_dts/api/src/siteOnboarding.d.ts +14 -0
- package/dist/_dts/api/src/siteOperations.d.ts +6 -2
- 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/client/events.d.ts +3 -0
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +54 -14
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +4 -13
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +2 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +9 -8
- 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 +28 -28
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +7 -2
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +84 -160
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +31 -4
- package/dist/_dts/blocks/src/system/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 +4 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +6 -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 +72 -12
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +36 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +3 -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 +3 -1
- 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 +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.state.d.ts +17 -2
- 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 +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/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/PaymentSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +2 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +9 -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 +29 -29
- 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 +54 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
- 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/utils/demoBookingPassStorage.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoPortalMagicLink.d.ts +29 -0
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +54 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +58 -13
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +16 -21
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +23 -40
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -3
- package/dist/_dts/commerce/src/purchase/membershipOrderItemMetadata.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +9 -4
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +13 -1
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +5 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +3 -1
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +7 -1
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +2 -1
- 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/editLeaseHandover.d.ts +30 -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/lib/browserStorage.d.ts +5 -0
- 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/booking-flexible-balance.d.ts +2 -2
- package/dist/_dts/core/src/booking-instalment-deposit.d.ts +20 -0
- package/dist/_dts/core/src/booking-live-payment-terms.d.ts +72 -0
- package/dist/_dts/core/src/booking-payment-options.d.ts +24 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +522 -0
- package/dist/_dts/core/src/branded.d.ts +15 -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 +60 -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 +7 -0
- package/dist/_dts/core/src/uuid.d.ts +7 -5
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +456 -189
- 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/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/MediaPickerDialog.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerMiniDialog.d.ts +10 -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/index.d.ts +2 -0
- 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/composer/mergeDrafts.d.ts +8 -3
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +6 -3
- 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 +23 -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/preview-next/src/client/previewAuthStore.d.ts +7 -0
- package/dist/_dts/preview-next/src/constants.d.ts +4 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +1 -0
- package/dist/_dts/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 +1 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -12
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/palette/useHexDraft.d.ts +7 -0
- package/dist/client/{BookingMailingListNote-1n4Ch_u_.mjs → BookingMailingListNote-Cr3EeTP5.mjs} +504 -163
- package/dist/client/DemoBookingPortalAccess-BFGB1Fay.mjs +344 -0
- package/dist/client/{EventCombined.client-C0pgma9y.mjs → EventCombined.client-DKYV0_ft.mjs} +6 -6
- package/dist/client/{EventListing.client-4fhLOvHP.mjs → EventListing.client-B9UIcEYc.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DScC4F3w.mjs → LeafletStaticMap-CFLPkP0K.mjs} +1 -1
- package/dist/client/{TerminalPanel-B5ZUsYhe.mjs → TerminalPanel-JjmgxEsR.mjs} +1 -1
- package/dist/client/{ThemedButton-DoVIV1Ao.mjs → ThemedButton-CKV1Jh2m.mjs} +1 -1
- package/dist/client/{accordion-CoT5g7zo.mjs → accordion-DXWIfT3T.mjs} +1 -1
- package/dist/client/{bookingForm-BWxB46xD.mjs → bookingForm-CjZgHNvv.mjs} +216 -63
- package/dist/client/bookings.mjs +1187 -692
- package/dist/client/{carousel-DtNYWFd3.mjs → carousel-DSLikmvZ.mjs} +1 -1
- package/dist/client/{cart-z4qZih1Y.mjs → cart-HDjWReFt.mjs} +3 -3
- package/dist/client/{checkout-DpL7euFH.mjs → checkout-CUvRZA3W.mjs} +3 -3
- package/dist/client/{checkoutUrls-BEfR7kVu.mjs → checkoutUrls-CXhko2Rv.mjs} +1 -1
- package/dist/client/client.mjs +2711 -1684
- package/dist/client/{context-C8TinPJc.mjs → context-DFmaZa-Q.mjs} +4 -3
- package/dist/client/{dates-vwwxTeB0.mjs → dates-BBep1JnF.mjs} +56 -11
- package/dist/client/{eventCalendar-DIbHfJXO.mjs → eventCalendar-zEobhxo4.mjs} +9 -9
- package/dist/client/{eventCombined-DoGMJ6cg.mjs → eventCombined-Dp7bz5k-.mjs} +4 -4
- package/dist/client/{eventDetails-BjN9v6a1.mjs → eventDetails-FE-zqTt7.mjs} +4 -4
- package/dist/client/{eventListing-DajjWgOv.mjs → eventListing-BMt5snal.mjs} +4 -4
- package/dist/client/{eventRegistration-DMq9gMA-.mjs → eventRegistration-O6ZxHfOb.mjs} +422 -570
- package/dist/client/{form-Qf6qTbos.mjs → form-DFa1D8vt.mjs} +3 -3
- package/dist/client/{headerSection-D7qJrqFX.mjs → headerSection-CmjHLR-N.mjs} +3 -3
- package/dist/client/hooks.mjs +414 -182
- package/dist/client/{locationMap-CCF9-t_0.mjs → locationMap-BXKP_lGh.mjs} +3 -3
- package/dist/client/{media-CwBGetqC.mjs → media-Cl38iOMI.mjs} +10 -3
- package/dist/client/{newsletterForm-DzCLSP4S.mjs → newsletterForm-CU-HmxGx.mjs} +3 -3
- package/dist/client/{pricing-Cgxv2KLC.mjs → pricing-KEAEsibq.mjs} +1 -1
- package/dist/client/{productDetail-ru9w5GHx.mjs → productDetail-Ckp7MGnt.mjs} +3 -3
- package/dist/client/{productList-zaapKSl-.mjs → productList-D91V0sYa.mjs} +3 -3
- package/dist/client/{propsDecoder-CwvvNOHx.mjs → propsDecoder-DZd6RJeA.mjs} +244 -94
- package/dist/client/rendering/client.mjs +2656 -1705
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +3430 -2352
- package/dist/client/{routeIslandApiConfig-BwVFo0Y4.mjs → routeIslandApiConfig-E1EkhhYY.mjs} +1 -1
- package/dist/client/{shop-mktkXvbV.mjs → shop-4F2jLQPI.mjs} +131 -85
- package/dist/client/{shop-commerce-De7gEnkA.mjs → shop-commerce-BbfCJjB3.mjs} +25 -13
- package/dist/client/{shop-commerce-store-B3MCxIBW.mjs → shop-commerce-store-vicweP2K.mjs} +1 -1
- package/dist/client/{shopShared-TqExh235.mjs → shopShared-DlONJt0T.mjs} +4 -4
- package/dist/client/{useEventFilters-n_OjkIjX.mjs → useEventFilters-COYyL3m7.mjs} +32 -17
- package/dist/preview-next/before-render.mjs +207 -105
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/constants.mjs +5 -1
- package/dist/preview-next/index.mjs +5 -1
- package/dist/preview-next/keepAlive.mjs +341 -165
- package/dist/preview-next/middleware.mjs +207 -105
- package/dist/{previewAuthStore-C_EHQ5XA.mjs → previewAuthStore-BBmV7UsW.mjs} +243 -112
- package/dist/{sdk-runtime-BIkJg5y1.mjs → sdk-runtime-CwvFFjB-.mjs} +2 -2
- package/dist/{separator-C9qDP95Z.mjs → separator-ByL72zUT.mjs} +1 -1
- package/dist/server/components.mjs +1839 -1475
- package/dist/server/config-validation.mjs +381 -166
- package/dist/server/config.mjs +381 -166
- package/dist/server/data.mjs +381 -166
- package/dist/server/index.mjs +214 -110
- package/dist/server/next.mjs +663 -351
- package/dist/server/page-converter.mjs +198 -79
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1536 -1169
- package/dist/server/rendering.mjs +2432 -2068
- package/dist/server/routing.mjs +456 -173
- package/dist/server/server.mjs +447 -267
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- package/dist/_dts/billing/src/plans/display.d.ts +0 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-note.d.ts +0 -3
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +0 -10
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +0 -55
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +0 -24
- package/dist/_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/client/DiscountCodeDisclosure-CKJtz0mY.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;
|
|
@@ -1574,7 +1581,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1574
1581
|
siteName?: string;
|
|
1575
1582
|
}>) => Readonly<{
|
|
1576
1583
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1577
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1584
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1578
1585
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1579
1586
|
}>;
|
|
1580
1587
|
}>;
|
|
@@ -1582,6 +1589,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1582
1589
|
source: Readonly<{
|
|
1583
1590
|
encode: (value: Readonly<{
|
|
1584
1591
|
siteId?: string;
|
|
1592
|
+
demoEmailSuppressed?: boolean;
|
|
1585
1593
|
apiBaseUrl?: string;
|
|
1586
1594
|
portalToken?: string | null;
|
|
1587
1595
|
previewToken?: string | null;
|
|
@@ -1613,6 +1621,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1613
1621
|
}>) => unknown;
|
|
1614
1622
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
1615
1623
|
siteId?: string;
|
|
1624
|
+
demoEmailSuppressed?: boolean;
|
|
1616
1625
|
apiBaseUrl?: string;
|
|
1617
1626
|
portalToken?: string | null;
|
|
1618
1627
|
previewToken?: string | null;
|
|
@@ -1646,13 +1655,13 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1646
1655
|
render: Readonly<{
|
|
1647
1656
|
encode: (value: Readonly<{
|
|
1648
1657
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1649
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1658
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1650
1659
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1651
1660
|
}>;
|
|
1652
1661
|
}>) => unknown;
|
|
1653
1662
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
1654
1663
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1655
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1664
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1656
1665
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1657
1666
|
}>;
|
|
1658
1667
|
}>>;
|
|
@@ -1666,6 +1675,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1666
1675
|
kind: "client-owned";
|
|
1667
1676
|
buildRender: (source: Readonly<{
|
|
1668
1677
|
siteId?: string;
|
|
1678
|
+
demoEmailSuppressed?: boolean;
|
|
1669
1679
|
apiBaseUrl?: string;
|
|
1670
1680
|
portalToken?: string | null;
|
|
1671
1681
|
previewToken?: string | null;
|
|
@@ -1696,7 +1706,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1696
1706
|
siteName?: string;
|
|
1697
1707
|
}>) => Readonly<{
|
|
1698
1708
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1699
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1709
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1700
1710
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1701
1711
|
}>;
|
|
1702
1712
|
}>;
|
|
@@ -1704,6 +1714,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1704
1714
|
source: Readonly<{
|
|
1705
1715
|
encode: (value: Readonly<{
|
|
1706
1716
|
siteId?: string;
|
|
1717
|
+
demoEmailSuppressed?: boolean;
|
|
1707
1718
|
apiBaseUrl?: string;
|
|
1708
1719
|
portalToken?: string | null;
|
|
1709
1720
|
previewToken?: string | null;
|
|
@@ -1735,6 +1746,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1735
1746
|
}>) => unknown;
|
|
1736
1747
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
1737
1748
|
siteId?: string;
|
|
1749
|
+
demoEmailSuppressed?: boolean;
|
|
1738
1750
|
apiBaseUrl?: string;
|
|
1739
1751
|
portalToken?: string | null;
|
|
1740
1752
|
previewToken?: string | null;
|
|
@@ -1768,13 +1780,13 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1768
1780
|
render: Readonly<{
|
|
1769
1781
|
encode: (value: Readonly<{
|
|
1770
1782
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1771
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1783
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1772
1784
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1773
1785
|
}>;
|
|
1774
1786
|
}>) => unknown;
|
|
1775
1787
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
1776
1788
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
1777
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
1789
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
1778
1790
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1779
1791
|
}>;
|
|
1780
1792
|
}>>;
|
|
@@ -1822,13 +1834,21 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1822
1834
|
description: string | null;
|
|
1823
1835
|
priceLabel: string;
|
|
1824
1836
|
intervalLabel: string;
|
|
1825
|
-
|
|
1837
|
+
action: Readonly<{
|
|
1838
|
+
kind: "purchase";
|
|
1839
|
+
label: string;
|
|
1840
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
1841
|
+
}> | Readonly<{
|
|
1842
|
+
kind: "unavailable";
|
|
1843
|
+
label: string;
|
|
1844
|
+
}>;
|
|
1826
1845
|
}>[];
|
|
1827
1846
|
}>;
|
|
1828
1847
|
hydration: Readonly<{
|
|
1829
1848
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1830
1849
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1831
1850
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1851
|
+
demoEmailSuppressed?: boolean;
|
|
1832
1852
|
}>;
|
|
1833
1853
|
}>;
|
|
1834
1854
|
contracts: Readonly<{
|
|
@@ -1870,13 +1890,21 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1870
1890
|
description: string | null;
|
|
1871
1891
|
priceLabel: string;
|
|
1872
1892
|
intervalLabel: string;
|
|
1873
|
-
|
|
1893
|
+
action: Readonly<{
|
|
1894
|
+
kind: "purchase";
|
|
1895
|
+
label: string;
|
|
1896
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
1897
|
+
}> | Readonly<{
|
|
1898
|
+
kind: "unavailable";
|
|
1899
|
+
label: string;
|
|
1900
|
+
}>;
|
|
1874
1901
|
}>[];
|
|
1875
1902
|
}>;
|
|
1876
1903
|
hydration: Readonly<{
|
|
1877
1904
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1878
1905
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1879
1906
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1907
|
+
demoEmailSuppressed?: boolean;
|
|
1880
1908
|
}>;
|
|
1881
1909
|
}>) => unknown;
|
|
1882
1910
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
@@ -1912,13 +1940,21 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1912
1940
|
description: string | null;
|
|
1913
1941
|
priceLabel: string;
|
|
1914
1942
|
intervalLabel: string;
|
|
1915
|
-
|
|
1943
|
+
action: Readonly<{
|
|
1944
|
+
kind: "purchase";
|
|
1945
|
+
label: string;
|
|
1946
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
1947
|
+
}> | Readonly<{
|
|
1948
|
+
kind: "unavailable";
|
|
1949
|
+
label: string;
|
|
1950
|
+
}>;
|
|
1916
1951
|
}>[];
|
|
1917
1952
|
}>;
|
|
1918
1953
|
hydration: Readonly<{
|
|
1919
1954
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1920
1955
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1921
1956
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1957
|
+
demoEmailSuppressed?: boolean;
|
|
1922
1958
|
}>;
|
|
1923
1959
|
}>>;
|
|
1924
1960
|
}>;
|
|
@@ -1962,13 +1998,21 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1962
1998
|
description: string | null;
|
|
1963
1999
|
priceLabel: string;
|
|
1964
2000
|
intervalLabel: string;
|
|
1965
|
-
|
|
2001
|
+
action: Readonly<{
|
|
2002
|
+
kind: "purchase";
|
|
2003
|
+
label: string;
|
|
2004
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
2005
|
+
}> | Readonly<{
|
|
2006
|
+
kind: "unavailable";
|
|
2007
|
+
label: string;
|
|
2008
|
+
}>;
|
|
1966
2009
|
}>[];
|
|
1967
2010
|
}>;
|
|
1968
2011
|
hydration: Readonly<{
|
|
1969
2012
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1970
2013
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1971
2014
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
2015
|
+
demoEmailSuppressed?: boolean;
|
|
1972
2016
|
}>;
|
|
1973
2017
|
}>;
|
|
1974
2018
|
contracts: Readonly<{
|
|
@@ -2010,13 +2054,21 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2010
2054
|
description: string | null;
|
|
2011
2055
|
priceLabel: string;
|
|
2012
2056
|
intervalLabel: string;
|
|
2013
|
-
|
|
2057
|
+
action: Readonly<{
|
|
2058
|
+
kind: "purchase";
|
|
2059
|
+
label: string;
|
|
2060
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
2061
|
+
}> | Readonly<{
|
|
2062
|
+
kind: "unavailable";
|
|
2063
|
+
label: string;
|
|
2064
|
+
}>;
|
|
2014
2065
|
}>[];
|
|
2015
2066
|
}>;
|
|
2016
2067
|
hydration: Readonly<{
|
|
2017
2068
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
2018
2069
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
2019
2070
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
2071
|
+
demoEmailSuppressed?: boolean;
|
|
2020
2072
|
}>;
|
|
2021
2073
|
}>) => unknown;
|
|
2022
2074
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
@@ -2052,13 +2104,21 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2052
2104
|
description: string | null;
|
|
2053
2105
|
priceLabel: string;
|
|
2054
2106
|
intervalLabel: string;
|
|
2055
|
-
|
|
2107
|
+
action: Readonly<{
|
|
2108
|
+
kind: "purchase";
|
|
2109
|
+
label: string;
|
|
2110
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
2111
|
+
}> | Readonly<{
|
|
2112
|
+
kind: "unavailable";
|
|
2113
|
+
label: string;
|
|
2114
|
+
}>;
|
|
2056
2115
|
}>[];
|
|
2057
2116
|
}>;
|
|
2058
2117
|
hydration: Readonly<{
|
|
2059
2118
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
2060
2119
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
2061
2120
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
2121
|
+
demoEmailSuppressed?: boolean;
|
|
2062
2122
|
}>;
|
|
2063
2123
|
}>>;
|
|
2064
2124
|
}>;
|
|
@@ -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;
|
|
@@ -803,7 +807,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
803
807
|
siteName?: string;
|
|
804
808
|
}>) => Readonly<{
|
|
805
809
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
806
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
810
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
807
811
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
808
812
|
}>;
|
|
809
813
|
}>;
|
|
@@ -811,6 +815,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
811
815
|
source: Readonly<{
|
|
812
816
|
encode: (value: Readonly<{
|
|
813
817
|
siteId?: string;
|
|
818
|
+
demoEmailSuppressed?: boolean;
|
|
814
819
|
apiBaseUrl?: string;
|
|
815
820
|
portalToken?: string | null;
|
|
816
821
|
previewToken?: string | null;
|
|
@@ -842,6 +847,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
842
847
|
}>) => unknown;
|
|
843
848
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
844
849
|
siteId?: string;
|
|
850
|
+
demoEmailSuppressed?: boolean;
|
|
845
851
|
apiBaseUrl?: string;
|
|
846
852
|
portalToken?: string | null;
|
|
847
853
|
previewToken?: string | null;
|
|
@@ -875,13 +881,13 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
875
881
|
render: Readonly<{
|
|
876
882
|
encode: (value: Readonly<{
|
|
877
883
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
878
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
884
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
879
885
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
880
886
|
}>;
|
|
881
887
|
}>) => unknown;
|
|
882
888
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
883
889
|
display: import("../nodes/event-registration.interactive").EventRegistrationDisplay;
|
|
884
|
-
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "
|
|
890
|
+
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "stage" | "siteId" | "className" | "events" | "buttonText"> & {
|
|
885
891
|
eventSource: import("../nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
886
892
|
}>;
|
|
887
893
|
}>>;
|
|
@@ -927,13 +933,21 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
927
933
|
description: string | null;
|
|
928
934
|
priceLabel: string;
|
|
929
935
|
intervalLabel: string;
|
|
930
|
-
|
|
936
|
+
action: Readonly<{
|
|
937
|
+
kind: "purchase";
|
|
938
|
+
label: string;
|
|
939
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
940
|
+
}> | Readonly<{
|
|
941
|
+
kind: "unavailable";
|
|
942
|
+
label: string;
|
|
943
|
+
}>;
|
|
931
944
|
}>[];
|
|
932
945
|
}>;
|
|
933
946
|
hydration: Readonly<{
|
|
934
947
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
935
948
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
936
949
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
950
|
+
demoEmailSuppressed?: boolean;
|
|
937
951
|
}>;
|
|
938
952
|
}>;
|
|
939
953
|
contracts: Readonly<{
|
|
@@ -975,13 +989,21 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
975
989
|
description: string | null;
|
|
976
990
|
priceLabel: string;
|
|
977
991
|
intervalLabel: string;
|
|
978
|
-
|
|
992
|
+
action: Readonly<{
|
|
993
|
+
kind: "purchase";
|
|
994
|
+
label: string;
|
|
995
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
996
|
+
}> | Readonly<{
|
|
997
|
+
kind: "unavailable";
|
|
998
|
+
label: string;
|
|
999
|
+
}>;
|
|
979
1000
|
}>[];
|
|
980
1001
|
}>;
|
|
981
1002
|
hydration: Readonly<{
|
|
982
1003
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
983
1004
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
984
1005
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1006
|
+
demoEmailSuppressed?: boolean;
|
|
985
1007
|
}>;
|
|
986
1008
|
}>) => unknown;
|
|
987
1009
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
@@ -1017,13 +1039,21 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
1017
1039
|
description: string | null;
|
|
1018
1040
|
priceLabel: string;
|
|
1019
1041
|
intervalLabel: string;
|
|
1020
|
-
|
|
1042
|
+
action: Readonly<{
|
|
1043
|
+
kind: "purchase";
|
|
1044
|
+
label: string;
|
|
1045
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
1046
|
+
}> | Readonly<{
|
|
1047
|
+
kind: "unavailable";
|
|
1048
|
+
label: string;
|
|
1049
|
+
}>;
|
|
1021
1050
|
}>[];
|
|
1022
1051
|
}>;
|
|
1023
1052
|
hydration: Readonly<{
|
|
1024
1053
|
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1025
1054
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1026
1055
|
buttonVariant: import("../../..").BlockButtonRole;
|
|
1056
|
+
demoEmailSuppressed?: boolean;
|
|
1027
1057
|
}>;
|
|
1028
1058
|
}>>;
|
|
1029
1059
|
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The moment a booking or registration flow opened, as an ISO timestamp.
|
|
3
|
+
*
|
|
4
|
+
* Payment previews take this as their "now" so the pure view-model builders
|
|
5
|
+
* never read the clock themselves. It's captured once per mount, which keeps
|
|
6
|
+
* memoised previews stable across renders.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useBookingNowIso(): string;
|
|
@@ -3,6 +3,7 @@ import type { MailingListRuntimeContext } from "../../../../../core/src/index";
|
|
|
3
3
|
import { type BlockApiConfig } from "../api";
|
|
4
4
|
import type { AutoAppliedDiscountPreview } from "../api/types";
|
|
5
5
|
import type { BookingFormConfig, BookingFormData, BookingFormService, BookingFormServiceCategory, BookingSelectedCollectionOptionKind } from "../nodes/booking-form.state";
|
|
6
|
+
import { type BookingPaymentConfirmationSummary } from "../nodes/booking-form.payment-confirmation";
|
|
6
7
|
import { type BookingPaymentSelectionViewModel } from "../shared/bookingPaymentOptions";
|
|
7
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";
|
|
8
9
|
export type { BlockApiConfig };
|
|
@@ -76,6 +77,7 @@ export type BookingPaymentModel = Readonly<{
|
|
|
76
77
|
slidingScale: ReturnType<typeof getBookingServiceSlidingScale>;
|
|
77
78
|
appointmentPackages: BookingAppointmentPackagesModel;
|
|
78
79
|
errorMessage: string;
|
|
80
|
+
confirmationSummary: null;
|
|
79
81
|
}> | Readonly<{
|
|
80
82
|
kind: "ok";
|
|
81
83
|
mode: "hidden" | "disclosure_only" | "choice_required";
|
|
@@ -86,6 +88,7 @@ export type BookingPaymentModel = Readonly<{
|
|
|
86
88
|
selectedSlidingAmount: number | null;
|
|
87
89
|
slidingScale: ReturnType<typeof getBookingServiceSlidingScale>;
|
|
88
90
|
appointmentPackages: BookingAppointmentPackagesModel;
|
|
91
|
+
confirmationSummary: BookingPaymentConfirmationSummary | null;
|
|
89
92
|
}>;
|
|
90
93
|
export type BookingDiscountModel = Readonly<{
|
|
91
94
|
code: string;
|
|
@@ -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;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { BookingMailingListNote as BookingSignupNote } from '../../../../../core/src/index';
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { type BookingRedirectState } from "./booking-form.state";
|
|
4
|
-
export declare function BookingFormCompletion({ resourceName, successMessage, redirectState, localNote, }: Readonly<{
|
|
4
|
+
export declare function BookingFormCompletion({ resourceName, successMessage, redirectState, localNote, customerEmail, demoEmailSuppressed, }: Readonly<{
|
|
5
5
|
resourceName?: string | null;
|
|
6
6
|
successMessage?: string | null;
|
|
7
7
|
redirectState: BookingRedirectState;
|
|
8
8
|
localNote: BookingSignupNote | null;
|
|
9
|
+
customerEmail: string | null;
|
|
10
|
+
demoEmailSuppressed?: boolean;
|
|
9
11
|
}>): React.ReactElement;
|
|
@@ -137,6 +137,8 @@ export type BookingSubmitActionResult = Readonly<{
|
|
|
137
137
|
kind: "booked";
|
|
138
138
|
appointmentId: string;
|
|
139
139
|
resourceName: string | null;
|
|
140
|
+
customerEmail: string | null;
|
|
141
|
+
demoBookingPass?: string;
|
|
140
142
|
mailingListSignupNote?: BookingSignupNote;
|
|
141
143
|
};
|
|
142
144
|
}> | Readonly<{
|
|
@@ -145,6 +147,8 @@ export type BookingSubmitActionResult = Readonly<{
|
|
|
145
147
|
kind: "checkout_redirect";
|
|
146
148
|
checkoutUrl: string;
|
|
147
149
|
sessionId: string;
|
|
150
|
+
customerEmail: string | null;
|
|
151
|
+
demoBookingPass?: string;
|
|
148
152
|
mailingListSignupNote?: BookingSignupNote;
|
|
149
153
|
};
|
|
150
154
|
}> | Exclude<BookingFlowActionResult, Readonly<{
|
|
@@ -13,6 +13,7 @@ export type BookingFormDisplay = Readonly<{
|
|
|
13
13
|
message: string | null;
|
|
14
14
|
}>;
|
|
15
15
|
export type BookingFormHydration = Readonly<{
|
|
16
|
+
demoEmailSuppressed?: boolean;
|
|
16
17
|
mailingList?: MailingListRuntimeContext;
|
|
17
18
|
siteName?: string;
|
|
18
19
|
formId: string | null;
|
|
@@ -44,6 +45,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
44
45
|
kind: "client-owned";
|
|
45
46
|
buildRender: (source: Readonly<{
|
|
46
47
|
siteId?: string;
|
|
48
|
+
demoEmailSuppressed?: boolean;
|
|
47
49
|
apiBaseUrl?: string;
|
|
48
50
|
portalToken?: string | null;
|
|
49
51
|
mailingList?: MailingListRuntimeContext;
|
|
@@ -94,6 +96,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
94
96
|
message: string | null;
|
|
95
97
|
}>;
|
|
96
98
|
hydration: Readonly<{
|
|
99
|
+
demoEmailSuppressed?: boolean;
|
|
97
100
|
mailingList?: MailingListRuntimeContext;
|
|
98
101
|
siteName?: string;
|
|
99
102
|
formId: string | null;
|
|
@@ -173,6 +176,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
173
176
|
source: Readonly<{
|
|
174
177
|
encode: (value: Readonly<{
|
|
175
178
|
siteId?: string;
|
|
179
|
+
demoEmailSuppressed?: boolean;
|
|
176
180
|
apiBaseUrl?: string;
|
|
177
181
|
portalToken?: string | null;
|
|
178
182
|
mailingList?: MailingListRuntimeContext;
|
|
@@ -216,6 +220,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
216
220
|
}>) => unknown;
|
|
217
221
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
218
222
|
siteId?: string;
|
|
223
|
+
demoEmailSuppressed?: boolean;
|
|
219
224
|
apiBaseUrl?: string;
|
|
220
225
|
portalToken?: string | null;
|
|
221
226
|
mailingList?: MailingListRuntimeContext;
|
|
@@ -269,6 +274,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
269
274
|
message: string | null;
|
|
270
275
|
}>;
|
|
271
276
|
hydration: Readonly<{
|
|
277
|
+
demoEmailSuppressed?: boolean;
|
|
272
278
|
mailingList?: MailingListRuntimeContext;
|
|
273
279
|
siteName?: string;
|
|
274
280
|
formId: string | null;
|
|
@@ -354,6 +360,7 @@ export declare const bookingFormBlockRuntime: Readonly<{
|
|
|
354
360
|
message: string | null;
|
|
355
361
|
}>;
|
|
356
362
|
hydration: Readonly<{
|
|
363
|
+
demoEmailSuppressed?: boolean;
|
|
357
364
|
mailingList?: MailingListRuntimeContext;
|
|
358
365
|
siteName?: string;
|
|
359
366
|
formId: string | null;
|
|
@@ -451,6 +458,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
451
458
|
message: string | null;
|
|
452
459
|
}>;
|
|
453
460
|
hydration: Readonly<{
|
|
461
|
+
demoEmailSuppressed?: boolean;
|
|
454
462
|
mailingList?: MailingListRuntimeContext;
|
|
455
463
|
siteName?: string;
|
|
456
464
|
formId: string | null;
|
|
@@ -545,6 +553,7 @@ export declare const bookingFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
545
553
|
message: string | null;
|
|
546
554
|
}>;
|
|
547
555
|
hydration: Readonly<{
|
|
556
|
+
demoEmailSuppressed?: boolean;
|
|
548
557
|
mailingList?: MailingListRuntimeContext;
|
|
549
558
|
siteName?: string;
|
|
550
559
|
formId: string | null;
|