@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
package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts
CHANGED
|
@@ -198,7 +198,6 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
198
198
|
body: z.ZodOptional<z.ZodNullable<z.ZodType<import("../../../../../../../core/src/index").RichTextDoc, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").RichTextDoc, unknown>>>>;
|
|
199
199
|
}, z.core.$strip>>;
|
|
200
200
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
201
|
-
cardTitleOverride: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
202
201
|
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
202
|
image: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
204
203
|
purpose: z.ZodOptional<z.ZodString>;
|
|
@@ -547,15 +546,16 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
547
546
|
cancelled: "cancelled";
|
|
548
547
|
}>>;
|
|
549
548
|
timeZone: z.ZodString;
|
|
549
|
+
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
550
550
|
pricing: z.ZodType<import("../../../../../../../core/src/index").PublicEventPricing, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").PublicEventPricing, unknown>>;
|
|
551
551
|
paymentTerms: z.ZodObject<{
|
|
552
|
-
allowedOptions: z.ZodArray<z.
|
|
552
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
553
553
|
kind: z.ZodLiteral<"upfront">;
|
|
554
554
|
}, z.core.$strip>, z.ZodObject<{
|
|
555
555
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
556
556
|
}, z.core.$strip>, z.ZodObject<{
|
|
557
557
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
558
|
-
plan: z.
|
|
558
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
559
559
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
560
560
|
depositAmountCents: z.ZodNumber;
|
|
561
561
|
depositRefundability: z.ZodEnum<{
|
|
@@ -591,24 +591,24 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
591
591
|
week: "week";
|
|
592
592
|
month: "month";
|
|
593
593
|
}>;
|
|
594
|
-
}, z.core.$strip>]>;
|
|
594
|
+
}, z.core.$strip>], "kind">;
|
|
595
595
|
}, z.core.$strip>, z.ZodObject<{
|
|
596
596
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
597
597
|
config: z.ZodObject<{
|
|
598
598
|
upfrontAmountCents: z.ZodNumber;
|
|
599
|
-
dueDateRule: z.
|
|
599
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
600
600
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
601
601
|
daysBeforeStart: z.ZodNumber;
|
|
602
602
|
}, z.core.$strip>, z.ZodObject<{
|
|
603
603
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
604
604
|
dueAt: z.ZodString;
|
|
605
|
-
}, z.core.$strip>]>;
|
|
605
|
+
}, z.core.$strip>], "kind">;
|
|
606
606
|
depositRefundability: z.ZodEnum<{
|
|
607
607
|
refundable: "refundable";
|
|
608
608
|
non_refundable: "non_refundable";
|
|
609
609
|
}>;
|
|
610
610
|
}, z.core.$strip>;
|
|
611
|
-
}, z.core.$strip>]>>;
|
|
611
|
+
}, z.core.$strip>], "kind">>;
|
|
612
612
|
}, z.core.$strip>;
|
|
613
613
|
cancellationPolicy: z.ZodObject<{
|
|
614
614
|
refunds: z.ZodObject<{
|
|
@@ -687,7 +687,6 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
687
687
|
body: z.ZodOptional<z.ZodNullable<z.ZodType<import("../../../../../../../core/src/index").RichTextDoc, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").RichTextDoc, unknown>>>>;
|
|
688
688
|
}, z.core.$strip>>;
|
|
689
689
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
690
|
-
cardTitleOverride: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
691
690
|
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
692
691
|
image: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
693
692
|
purpose: z.ZodOptional<z.ZodString>;
|
|
@@ -1036,15 +1035,16 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1036
1035
|
cancelled: "cancelled";
|
|
1037
1036
|
}>>;
|
|
1038
1037
|
timeZone: z.ZodString;
|
|
1038
|
+
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
1039
1039
|
pricing: z.ZodType<import("../../../../../../../core/src/index").PublicEventPricing, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").PublicEventPricing, unknown>>;
|
|
1040
1040
|
paymentTerms: z.ZodObject<{
|
|
1041
|
-
allowedOptions: z.ZodArray<z.
|
|
1041
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1042
1042
|
kind: z.ZodLiteral<"upfront">;
|
|
1043
1043
|
}, z.core.$strip>, z.ZodObject<{
|
|
1044
1044
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
1045
1045
|
}, z.core.$strip>, z.ZodObject<{
|
|
1046
1046
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
1047
|
-
plan: z.
|
|
1047
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1048
1048
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
1049
1049
|
depositAmountCents: z.ZodNumber;
|
|
1050
1050
|
depositRefundability: z.ZodEnum<{
|
|
@@ -1080,24 +1080,24 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1080
1080
|
week: "week";
|
|
1081
1081
|
month: "month";
|
|
1082
1082
|
}>;
|
|
1083
|
-
}, z.core.$strip>]>;
|
|
1083
|
+
}, z.core.$strip>], "kind">;
|
|
1084
1084
|
}, z.core.$strip>, z.ZodObject<{
|
|
1085
1085
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
1086
1086
|
config: z.ZodObject<{
|
|
1087
1087
|
upfrontAmountCents: z.ZodNumber;
|
|
1088
|
-
dueDateRule: z.
|
|
1088
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1089
1089
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
1090
1090
|
daysBeforeStart: z.ZodNumber;
|
|
1091
1091
|
}, z.core.$strip>, z.ZodObject<{
|
|
1092
1092
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
1093
1093
|
dueAt: z.ZodString;
|
|
1094
|
-
}, z.core.$strip>]>;
|
|
1094
|
+
}, z.core.$strip>], "kind">;
|
|
1095
1095
|
depositRefundability: z.ZodEnum<{
|
|
1096
1096
|
refundable: "refundable";
|
|
1097
1097
|
non_refundable: "non_refundable";
|
|
1098
1098
|
}>;
|
|
1099
1099
|
}, z.core.$strip>;
|
|
1100
|
-
}, z.core.$strip>]>>;
|
|
1100
|
+
}, z.core.$strip>], "kind">>;
|
|
1101
1101
|
}, z.core.$strip>;
|
|
1102
1102
|
cancellationPolicy: z.ZodObject<{
|
|
1103
1103
|
refunds: z.ZodObject<{
|
|
@@ -1237,7 +1237,6 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1237
1237
|
body: z.ZodOptional<z.ZodNullable<z.ZodType<import("../../../../../../../core/src/index").RichTextDoc, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").RichTextDoc, unknown>>>>;
|
|
1238
1238
|
}, z.core.$strip>>;
|
|
1239
1239
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
1240
|
-
cardTitleOverride: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1241
1240
|
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1242
1241
|
image: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1243
1242
|
purpose: z.ZodOptional<z.ZodString>;
|
|
@@ -1586,15 +1585,16 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1586
1585
|
cancelled: "cancelled";
|
|
1587
1586
|
}>>;
|
|
1588
1587
|
timeZone: z.ZodString;
|
|
1588
|
+
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
1589
1589
|
pricing: z.ZodType<import("../../../../../../../core/src/index").PublicEventPricing, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").PublicEventPricing, unknown>>;
|
|
1590
1590
|
paymentTerms: z.ZodObject<{
|
|
1591
|
-
allowedOptions: z.ZodArray<z.
|
|
1591
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1592
1592
|
kind: z.ZodLiteral<"upfront">;
|
|
1593
1593
|
}, z.core.$strip>, z.ZodObject<{
|
|
1594
1594
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
1595
1595
|
}, z.core.$strip>, z.ZodObject<{
|
|
1596
1596
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
1597
|
-
plan: z.
|
|
1597
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1598
1598
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
1599
1599
|
depositAmountCents: z.ZodNumber;
|
|
1600
1600
|
depositRefundability: z.ZodEnum<{
|
|
@@ -1630,24 +1630,24 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1630
1630
|
week: "week";
|
|
1631
1631
|
month: "month";
|
|
1632
1632
|
}>;
|
|
1633
|
-
}, z.core.$strip>]>;
|
|
1633
|
+
}, z.core.$strip>], "kind">;
|
|
1634
1634
|
}, z.core.$strip>, z.ZodObject<{
|
|
1635
1635
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
1636
1636
|
config: z.ZodObject<{
|
|
1637
1637
|
upfrontAmountCents: z.ZodNumber;
|
|
1638
|
-
dueDateRule: z.
|
|
1638
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1639
1639
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
1640
1640
|
daysBeforeStart: z.ZodNumber;
|
|
1641
1641
|
}, z.core.$strip>, z.ZodObject<{
|
|
1642
1642
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
1643
1643
|
dueAt: z.ZodString;
|
|
1644
|
-
}, z.core.$strip>]>;
|
|
1644
|
+
}, z.core.$strip>], "kind">;
|
|
1645
1645
|
depositRefundability: z.ZodEnum<{
|
|
1646
1646
|
refundable: "refundable";
|
|
1647
1647
|
non_refundable: "non_refundable";
|
|
1648
1648
|
}>;
|
|
1649
1649
|
}, z.core.$strip>;
|
|
1650
|
-
}, z.core.$strip>]>>;
|
|
1650
|
+
}, z.core.$strip>], "kind">>;
|
|
1651
1651
|
}, z.core.$strip>;
|
|
1652
1652
|
cancellationPolicy: z.ZodObject<{
|
|
1653
1653
|
refunds: z.ZodObject<{
|
|
@@ -1726,7 +1726,6 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1726
1726
|
body: z.ZodOptional<z.ZodNullable<z.ZodType<import("../../../../../../../core/src/index").RichTextDoc, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").RichTextDoc, unknown>>>>;
|
|
1727
1727
|
}, z.core.$strip>>;
|
|
1728
1728
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
1729
|
-
cardTitleOverride: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1730
1729
|
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1731
1730
|
image: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1732
1731
|
purpose: z.ZodOptional<z.ZodString>;
|
|
@@ -2075,15 +2074,16 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2075
2074
|
cancelled: "cancelled";
|
|
2076
2075
|
}>>;
|
|
2077
2076
|
timeZone: z.ZodString;
|
|
2077
|
+
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
2078
2078
|
pricing: z.ZodType<import("../../../../../../../core/src/index").PublicEventPricing, unknown, z.core.$ZodTypeInternals<import("../../../../../../../core/src/index").PublicEventPricing, unknown>>;
|
|
2079
2079
|
paymentTerms: z.ZodObject<{
|
|
2080
|
-
allowedOptions: z.ZodArray<z.
|
|
2080
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2081
2081
|
kind: z.ZodLiteral<"upfront">;
|
|
2082
2082
|
}, z.core.$strip>, z.ZodObject<{
|
|
2083
2083
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
2084
2084
|
}, z.core.$strip>, z.ZodObject<{
|
|
2085
2085
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
2086
|
-
plan: z.
|
|
2086
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2087
2087
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
2088
2088
|
depositAmountCents: z.ZodNumber;
|
|
2089
2089
|
depositRefundability: z.ZodEnum<{
|
|
@@ -2119,24 +2119,24 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2119
2119
|
week: "week";
|
|
2120
2120
|
month: "month";
|
|
2121
2121
|
}>;
|
|
2122
|
-
}, z.core.$strip>]>;
|
|
2122
|
+
}, z.core.$strip>], "kind">;
|
|
2123
2123
|
}, z.core.$strip>, z.ZodObject<{
|
|
2124
2124
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
2125
2125
|
config: z.ZodObject<{
|
|
2126
2126
|
upfrontAmountCents: z.ZodNumber;
|
|
2127
|
-
dueDateRule: z.
|
|
2127
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2128
2128
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
2129
2129
|
daysBeforeStart: z.ZodNumber;
|
|
2130
2130
|
}, z.core.$strip>, z.ZodObject<{
|
|
2131
2131
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
2132
2132
|
dueAt: z.ZodString;
|
|
2133
|
-
}, z.core.$strip>]>;
|
|
2133
|
+
}, z.core.$strip>], "kind">;
|
|
2134
2134
|
depositRefundability: z.ZodEnum<{
|
|
2135
2135
|
refundable: "refundable";
|
|
2136
2136
|
non_refundable: "non_refundable";
|
|
2137
2137
|
}>;
|
|
2138
2138
|
}, z.core.$strip>;
|
|
2139
|
-
}, z.core.$strip>]>>;
|
|
2139
|
+
}, z.core.$strip>], "kind">>;
|
|
2140
2140
|
}, z.core.$strip>;
|
|
2141
2141
|
cancellationPolicy: z.ZodObject<{
|
|
2142
2142
|
refunds: z.ZodObject<{
|
|
@@ -2205,7 +2205,7 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2205
2205
|
3: "3";
|
|
2206
2206
|
4: "4";
|
|
2207
2207
|
}>;
|
|
2208
|
-
readonly eventsPerPage: z.ZodType<24 | 3 | 6 |
|
|
2208
|
+
readonly eventsPerPage: z.ZodType<10 | 24 | 3 | 6 | 20 | 12 | 30, unknown, z.core.$ZodTypeInternals<10 | 24 | 3 | 6 | 20 | 12 | 30, unknown>>;
|
|
2209
2209
|
readonly paginationAction: z.ZodType<EventListPaginationAction, unknown, z.core.$ZodTypeInternals<EventListPaginationAction, unknown>>;
|
|
2210
2210
|
readonly startOfWeek: z.ZodEnum<{
|
|
2211
2211
|
monday: "monday";
|
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type MagicLinkFormProps = {
|
|
3
|
-
/** Initial email to pre-populate the form */
|
|
4
3
|
initialEmail?: string;
|
|
5
|
-
/** Title shown above the form */
|
|
6
4
|
title?: string;
|
|
7
|
-
/** Subtitle/description shown below the title */
|
|
8
5
|
subtitle?: string;
|
|
9
|
-
/** Text for the submit button */
|
|
10
6
|
buttonText?: string;
|
|
11
|
-
/** Success message shown after email is sent */
|
|
12
7
|
successMessage?: string;
|
|
13
|
-
/** Called when successfully sent (optional) */
|
|
14
8
|
onSuccess?: () => void;
|
|
15
|
-
/** CSS class prefix for styling (e.g., 'cp' for customer portal, 'er' for event registration, 'cr' for course registration) */
|
|
16
9
|
classPrefix?: 'cp' | 'er' | 'cr' | 'er-whole-series';
|
|
17
|
-
/** Whether to show compact/inline styling */
|
|
18
10
|
compact?: boolean;
|
|
19
11
|
};
|
|
20
|
-
|
|
21
|
-
* Reusable magic link login form.
|
|
22
|
-
* Used by Customer Portal and Event Registration blocks.
|
|
23
|
-
*/
|
|
24
|
-
export declare function MagicLinkForm({ initialEmail, title, subtitle, buttonText, successMessage, onSuccess, classPrefix, compact, }: MagicLinkFormProps): React.JSX.Element;
|
|
25
|
-
export default MagicLinkForm;
|
|
12
|
+
export declare function MagicLinkForm(props: MagicLinkFormProps): React.JSX.Element;
|
|
@@ -4,6 +4,12 @@ export type MagicLinkSubmissionState = Readonly<{
|
|
|
4
4
|
tag: 'submitting';
|
|
5
5
|
}> | Readonly<{
|
|
6
6
|
tag: 'success';
|
|
7
|
+
}> | Readonly<{
|
|
8
|
+
tag: 'demo_link';
|
|
9
|
+
url: string;
|
|
10
|
+
}> | Readonly<{
|
|
11
|
+
tag: 'demo_refused';
|
|
12
|
+
message: string;
|
|
7
13
|
}> | Readonly<{
|
|
8
14
|
tag: 'error';
|
|
9
15
|
message: string;
|
|
@@ -12,6 +18,12 @@ export type MagicLinkSubmissionAction = Readonly<{
|
|
|
12
18
|
type: 'submit-started';
|
|
13
19
|
}> | Readonly<{
|
|
14
20
|
type: 'submit-succeeded';
|
|
21
|
+
}> | Readonly<{
|
|
22
|
+
type: 'submit-demo-link';
|
|
23
|
+
url: string;
|
|
24
|
+
}> | Readonly<{
|
|
25
|
+
type: 'submit-demo-refused';
|
|
26
|
+
message: string;
|
|
15
27
|
}> | Readonly<{
|
|
16
28
|
type: 'submit-failed';
|
|
17
29
|
message: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BlockButtonRole } from '../../constants/buttonRoles';
|
|
2
|
-
import type
|
|
2
|
+
import { type PublicMembershipProduct } from '../../blocks/shop.shared';
|
|
3
3
|
import type { PublicProduct } from '../../blocks/products/shared';
|
|
4
4
|
import { type CartDisplay, type CheckoutDisplay, type PassesMembershipsDisplay, type ProductDetailDisplay, type ProductListDisplay } from './commerce/shared/display';
|
|
5
5
|
import type { CommerceCartItem } from './shop-commerce.shared';
|
|
@@ -8,6 +8,7 @@ import { type InteractiveIslandProps } from '../../../contracts/islands';
|
|
|
8
8
|
import type { BrowserReadAuthority } from '../api/types';
|
|
9
9
|
type ShopSourceProps = ShopDisplayConfig & Readonly<{
|
|
10
10
|
siteId?: string;
|
|
11
|
+
demoEmailSuppressed?: boolean;
|
|
11
12
|
apiBaseUrl?: string;
|
|
12
13
|
readAuthority?: BrowserReadAuthority;
|
|
13
14
|
stage?: 'preview' | 'published';
|
|
@@ -17,6 +18,7 @@ export type PassesMembershipsHydration = Readonly<{
|
|
|
17
18
|
memberships: readonly PublicMembershipProduct[];
|
|
18
19
|
passPurchaseMode: 'add_to_cart' | 'buy_now';
|
|
19
20
|
buttonVariant: BlockButtonRole;
|
|
21
|
+
demoEmailSuppressed?: boolean;
|
|
20
22
|
}>;
|
|
21
23
|
export type ProductListHydration = Readonly<{
|
|
22
24
|
products: readonly PublicProduct[];
|
|
@@ -39,6 +41,7 @@ export type CartHydration = Readonly<{
|
|
|
39
41
|
export type CheckoutHydration = Readonly<{
|
|
40
42
|
emptyStateText: string;
|
|
41
43
|
submitButtonText: string;
|
|
44
|
+
demoEmailSuppressed?: boolean;
|
|
42
45
|
}>;
|
|
43
46
|
type ShopIslandMeta = Readonly<{
|
|
44
47
|
siteId?: string;
|
|
@@ -109,13 +112,21 @@ export declare const shopBlockRuntime: Readonly<{
|
|
|
109
112
|
description: string | null;
|
|
110
113
|
priceLabel: string;
|
|
111
114
|
intervalLabel: string;
|
|
112
|
-
|
|
115
|
+
action: Readonly<{
|
|
116
|
+
kind: "purchase";
|
|
117
|
+
label: string;
|
|
118
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
119
|
+
}> | Readonly<{
|
|
120
|
+
kind: "unavailable";
|
|
121
|
+
label: string;
|
|
122
|
+
}>;
|
|
113
123
|
}>[];
|
|
114
124
|
}>;
|
|
115
125
|
hydration: Readonly<{
|
|
116
126
|
memberships: readonly PublicMembershipProduct[];
|
|
117
127
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
118
128
|
buttonVariant: BlockButtonRole;
|
|
129
|
+
demoEmailSuppressed?: boolean;
|
|
119
130
|
}>;
|
|
120
131
|
}>;
|
|
121
132
|
contracts: Readonly<{
|
|
@@ -157,13 +168,21 @@ export declare const shopBlockRuntime: Readonly<{
|
|
|
157
168
|
description: string | null;
|
|
158
169
|
priceLabel: string;
|
|
159
170
|
intervalLabel: string;
|
|
160
|
-
|
|
171
|
+
action: Readonly<{
|
|
172
|
+
kind: "purchase";
|
|
173
|
+
label: string;
|
|
174
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
175
|
+
}> | Readonly<{
|
|
176
|
+
kind: "unavailable";
|
|
177
|
+
label: string;
|
|
178
|
+
}>;
|
|
161
179
|
}>[];
|
|
162
180
|
}>;
|
|
163
181
|
hydration: Readonly<{
|
|
164
182
|
memberships: readonly PublicMembershipProduct[];
|
|
165
183
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
166
184
|
buttonVariant: BlockButtonRole;
|
|
185
|
+
demoEmailSuppressed?: boolean;
|
|
167
186
|
}>;
|
|
168
187
|
}>) => unknown;
|
|
169
188
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
@@ -199,13 +218,21 @@ export declare const shopBlockRuntime: Readonly<{
|
|
|
199
218
|
description: string | null;
|
|
200
219
|
priceLabel: string;
|
|
201
220
|
intervalLabel: string;
|
|
202
|
-
|
|
221
|
+
action: Readonly<{
|
|
222
|
+
kind: "purchase";
|
|
223
|
+
label: string;
|
|
224
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
225
|
+
}> | Readonly<{
|
|
226
|
+
kind: "unavailable";
|
|
227
|
+
label: string;
|
|
228
|
+
}>;
|
|
203
229
|
}>[];
|
|
204
230
|
}>;
|
|
205
231
|
hydration: Readonly<{
|
|
206
232
|
memberships: readonly PublicMembershipProduct[];
|
|
207
233
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
208
234
|
buttonVariant: BlockButtonRole;
|
|
235
|
+
demoEmailSuppressed?: boolean;
|
|
209
236
|
}>;
|
|
210
237
|
}>>;
|
|
211
238
|
}>;
|
|
@@ -474,6 +501,7 @@ export declare const checkoutBlockRuntime: Readonly<{
|
|
|
474
501
|
hydration: Readonly<{
|
|
475
502
|
emptyStateText: string;
|
|
476
503
|
submitButtonText: string;
|
|
504
|
+
demoEmailSuppressed?: boolean;
|
|
477
505
|
}>;
|
|
478
506
|
}>;
|
|
479
507
|
contracts: Readonly<{
|
|
@@ -494,6 +522,7 @@ export declare const checkoutBlockRuntime: Readonly<{
|
|
|
494
522
|
hydration: Readonly<{
|
|
495
523
|
emptyStateText: string;
|
|
496
524
|
submitButtonText: string;
|
|
525
|
+
demoEmailSuppressed?: boolean;
|
|
497
526
|
}>;
|
|
498
527
|
}>) => unknown;
|
|
499
528
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
@@ -508,6 +537,7 @@ export declare const checkoutBlockRuntime: Readonly<{
|
|
|
508
537
|
hydration: Readonly<{
|
|
509
538
|
emptyStateText: string;
|
|
510
539
|
submitButtonText: string;
|
|
540
|
+
demoEmailSuppressed?: boolean;
|
|
511
541
|
}>;
|
|
512
542
|
}>>;
|
|
513
543
|
}>;
|
|
@@ -556,13 +586,21 @@ export declare const shopInteractiveIslandPropsCodec: Readonly<{
|
|
|
556
586
|
description: string | null;
|
|
557
587
|
priceLabel: string;
|
|
558
588
|
intervalLabel: string;
|
|
559
|
-
|
|
589
|
+
action: Readonly<{
|
|
590
|
+
kind: "purchase";
|
|
591
|
+
label: string;
|
|
592
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
593
|
+
}> | Readonly<{
|
|
594
|
+
kind: "unavailable";
|
|
595
|
+
label: string;
|
|
596
|
+
}>;
|
|
560
597
|
}>[];
|
|
561
598
|
}>;
|
|
562
599
|
hydration: Readonly<{
|
|
563
600
|
memberships: readonly PublicMembershipProduct[];
|
|
564
601
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
565
602
|
buttonVariant: BlockButtonRole;
|
|
603
|
+
demoEmailSuppressed?: boolean;
|
|
566
604
|
}>;
|
|
567
605
|
}>>;
|
|
568
606
|
}>) => unknown;
|
|
@@ -608,13 +646,21 @@ export declare const shopInteractiveIslandPropsCodec: Readonly<{
|
|
|
608
646
|
description: string | null;
|
|
609
647
|
priceLabel: string;
|
|
610
648
|
intervalLabel: string;
|
|
611
|
-
|
|
649
|
+
action: Readonly<{
|
|
650
|
+
kind: "purchase";
|
|
651
|
+
label: string;
|
|
652
|
+
product: import("../..").PurchasablePublicMembershipProduct;
|
|
653
|
+
}> | Readonly<{
|
|
654
|
+
kind: "unavailable";
|
|
655
|
+
label: string;
|
|
656
|
+
}>;
|
|
612
657
|
}>[];
|
|
613
658
|
}>;
|
|
614
659
|
hydration: Readonly<{
|
|
615
660
|
memberships: readonly PublicMembershipProduct[];
|
|
616
661
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
617
662
|
buttonVariant: BlockButtonRole;
|
|
663
|
+
demoEmailSuppressed?: boolean;
|
|
618
664
|
}>;
|
|
619
665
|
}>>;
|
|
620
666
|
}>>;
|
|
@@ -851,6 +897,7 @@ export declare const checkoutInteractiveIslandPropsCodec: Readonly<{
|
|
|
851
897
|
hydration: Readonly<{
|
|
852
898
|
emptyStateText: string;
|
|
853
899
|
submitButtonText: string;
|
|
900
|
+
demoEmailSuppressed?: boolean;
|
|
854
901
|
}>;
|
|
855
902
|
}>>;
|
|
856
903
|
}>) => unknown;
|
|
@@ -875,6 +922,7 @@ export declare const checkoutInteractiveIslandPropsCodec: Readonly<{
|
|
|
875
922
|
hydration: Readonly<{
|
|
876
923
|
emptyStateText: string;
|
|
877
924
|
submitButtonText: string;
|
|
925
|
+
demoEmailSuppressed?: boolean;
|
|
878
926
|
}>;
|
|
879
927
|
}>>;
|
|
880
928
|
}>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type BookingPaymentCollectionOptionKind } from '../../../../../core/src/index';
|
|
1
2
|
import type { BlockBookingPaymentCollectionOption, BlockBookingPaymentTerms } from '../../blocks/shared/bookingPaymentTerms';
|
|
2
|
-
export type BookingPaymentSelectionKind =
|
|
3
|
+
export type BookingPaymentSelectionKind = BookingPaymentCollectionOptionKind;
|
|
3
4
|
export type BookingPaymentOptionSummaryRow = Readonly<{
|
|
4
5
|
label: string;
|
|
5
6
|
value: string;
|
|
@@ -21,7 +22,6 @@ export type BookingPaymentSelectionViewModel = Readonly<{
|
|
|
21
22
|
export declare function resolveBookingPaymentDueNowCents(input: Readonly<{
|
|
22
23
|
option: BlockBookingPaymentCollectionOption;
|
|
23
24
|
totalCents: number;
|
|
24
|
-
bookingStartAt?: string | null;
|
|
25
25
|
}>): number;
|
|
26
26
|
export declare function buildBookingPaymentSelectionViewModel(input: Readonly<{
|
|
27
27
|
serviceTitle: string;
|
|
@@ -29,5 +29,10 @@ export declare function buildBookingPaymentSelectionViewModel(input: Readonly<{
|
|
|
29
29
|
priceAmount?: number | null;
|
|
30
30
|
priceCurrency?: string | null;
|
|
31
31
|
bookingStartAt?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* When the booking is being made, as an ISO timestamp. Instalment schedules
|
|
34
|
+
* start from here, the same anchor the server uses (the order's creation).
|
|
35
|
+
*/
|
|
36
|
+
nowIso: string;
|
|
32
37
|
locale?: string;
|
|
33
38
|
}>): BookingPaymentSelectionViewModel;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BookingSuccessCopy } from '../../nodes/booking-form.state';
|
|
3
|
+
export declare function BookingConfirmation(props: Readonly<{
|
|
4
|
+
demoEmailSuppressed?: boolean;
|
|
5
|
+
email: string | null;
|
|
6
|
+
copy: BookingSuccessCopy;
|
|
7
|
+
messagePresentation: BookingConfirmationMessagePresentation;
|
|
8
|
+
noteClassName?: string;
|
|
9
|
+
showConfirmationNote?: boolean;
|
|
10
|
+
}>): React.ReactNode;
|
|
11
|
+
export declare function DemoBookingPortalAccess(props: Readonly<{
|
|
12
|
+
email: string | null;
|
|
13
|
+
noteClassName?: string;
|
|
14
|
+
showConfirmationNote?: boolean;
|
|
15
|
+
}>): React.ReactElement;
|
|
16
|
+
type BookingConfirmationMessagePresentation = Readonly<{
|
|
17
|
+
kind: 'paragraph';
|
|
18
|
+
className?: string;
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
kind: 'plain';
|
|
21
|
+
}>;
|
|
22
|
+
export {};
|
|
@@ -12,6 +12,7 @@ export type { ActionRowProps } from './ActionRow';
|
|
|
12
12
|
export { FieldValidationMessage, getFieldValidationControlProps, } from './FieldValidationMessage';
|
|
13
13
|
export type { FieldValidationControlInput, FieldValidationControlProps, FieldValidationMessageProps, } from './FieldValidationMessage';
|
|
14
14
|
export { FeedbackMessage } from './FeedbackMessage';
|
|
15
|
+
export { DemoPortalSignInLink } from './DemoPortalSignInLink';
|
|
15
16
|
export type { FeedbackLiveMode, FeedbackMessageProps, FeedbackTone, FeedbackTreatment, } from './FeedbackMessage';
|
|
16
17
|
export { LoggedInAsUser } from './LoggedInAsUser';
|
|
17
18
|
export { StateIcon } from './StateIcon';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type StoredDemoBookingPass = Readonly<{
|
|
2
|
+
email: string;
|
|
3
|
+
pass: string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function normalizeDemoBookingEmail(email: string): string;
|
|
6
|
+
export declare function storeDemoBookingPass(email: string, pass: string): void;
|
|
7
|
+
export declare function storeDemoBookingPassIfAvailable(email: string | null | undefined, pass: string | null | undefined): void;
|
|
8
|
+
export declare function getDemoBookingPass(email: string): string | null;
|
|
9
|
+
export declare function storeDemoBookingCheckoutReturn(email: string, pass: string | null | undefined): void;
|
|
10
|
+
export declare function readDemoBookingCheckoutReturnEmail(): string | null;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const CUSTOMER_PORTAL_PATH = "/portal";
|
|
2
|
+
export declare function buildPortalCallbackUrl(origin: string, redirectTo: string): string;
|
|
3
|
+
export type DemoPortalMagicLinkRequest = Readonly<{
|
|
4
|
+
email: string;
|
|
5
|
+
redirectUrl: string;
|
|
6
|
+
demoBookingPass?: string;
|
|
7
|
+
}>;
|
|
8
|
+
export type DemoPortalMagicLinkResponse = Readonly<{
|
|
9
|
+
message: string;
|
|
10
|
+
}> | Readonly<{
|
|
11
|
+
demoSignInUrl: string;
|
|
12
|
+
}> | Readonly<{
|
|
13
|
+
kind: 'demo_email_not_booked_here';
|
|
14
|
+
message: string;
|
|
15
|
+
}>;
|
|
16
|
+
export type DemoPortalMagicLinkOutcome = Readonly<{
|
|
17
|
+
kind: 'email_sent';
|
|
18
|
+
}> | Readonly<{
|
|
19
|
+
kind: 'demo_sign_in';
|
|
20
|
+
url: string;
|
|
21
|
+
}> | Readonly<{
|
|
22
|
+
kind: 'refused';
|
|
23
|
+
message: string;
|
|
24
|
+
}>;
|
|
25
|
+
export declare function requestDemoPortalMagicLink(input: Readonly<{
|
|
26
|
+
email: string;
|
|
27
|
+
redirectUrl: string;
|
|
28
|
+
send: (request: DemoPortalMagicLinkRequest) => Promise<DemoPortalMagicLinkResponse>;
|
|
29
|
+
}>): Promise<DemoPortalMagicLinkOutcome>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { AttendeeId, CheckoutLineId, BookingFlexibleBalanceConfig, BookingInstalmentPlanConfig, EventSeriesId, OccurrenceId } from '../../../core/src/index';
|
|
2
|
+
/** Identity within one checkout; a cart line is a booking command before persistence. */
|
|
3
|
+
export type BookingPaymentAttendeeReference = Readonly<{
|
|
4
|
+
kind: 'persisted';
|
|
5
|
+
attendeeId: AttendeeId;
|
|
6
|
+
}> | Readonly<{
|
|
7
|
+
kind: 'checkout_command';
|
|
8
|
+
checkoutLineId: CheckoutLineId;
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* The booking a payment plan or flexible-balance contract collects for. A plan
|
|
12
|
+
* or contract may only cover checkout lines that belong to this booking.
|
|
13
|
+
*/
|
|
14
|
+
export type BookingPaymentBookingReference = Readonly<{
|
|
15
|
+
kind: 'appointment';
|
|
16
|
+
serviceId: string;
|
|
17
|
+
resourceId: string;
|
|
18
|
+
startAt: string;
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
kind: 'event_ticket';
|
|
21
|
+
occurrenceId: OccurrenceId;
|
|
22
|
+
attendee: BookingPaymentAttendeeReference;
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
kind: 'event_series_registration';
|
|
25
|
+
eventSeriesId: EventSeriesId;
|
|
26
|
+
attendee: BookingPaymentAttendeeReference;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* How one booking is paid for, resolved from its payment terms and the
|
|
30
|
+
* customer's choice. Appointments and attendee bookings share this shape.
|
|
31
|
+
*
|
|
32
|
+
* `not_required` is the £0 path: nothing is due, so no option was chosen.
|
|
33
|
+
* Plans and contracts carry the booking they collect for and when it starts.
|
|
34
|
+
*/
|
|
35
|
+
export type BookingPaymentSelection = Readonly<{
|
|
36
|
+
kind: 'not_required';
|
|
37
|
+
}> | Readonly<{
|
|
38
|
+
kind: 'upfront' | 'deferred_manual';
|
|
39
|
+
}> | Readonly<{
|
|
40
|
+
kind: 'instalment_plan';
|
|
41
|
+
plan: BookingInstalmentPlanConfig;
|
|
42
|
+
booking: BookingPaymentBookingReference;
|
|
43
|
+
bookingStartAt: string;
|
|
44
|
+
}> | Readonly<{
|
|
45
|
+
kind: 'flexible_balance';
|
|
46
|
+
config: BookingFlexibleBalanceConfig;
|
|
47
|
+
booking: BookingPaymentBookingReference;
|
|
48
|
+
bookingStartAt: string;
|
|
49
|
+
}>;
|
|
50
|
+
export type BookingPlanOrContractSelection = Extract<BookingPaymentSelection, {
|
|
51
|
+
kind: 'instalment_plan' | 'flexible_balance';
|
|
52
|
+
}>;
|
|
53
|
+
export declare function isBookingPlanOrContractSelection(selection: BookingPaymentSelection): selection is BookingPlanOrContractSelection;
|
|
54
|
+
export declare function isSameBookingPaymentReference(left: BookingPaymentBookingReference, right: BookingPaymentBookingReference): boolean;
|