@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
|
@@ -29,6 +29,8 @@ export type ApiKeyId = Brand<string, 'ApiKeyId'>;
|
|
|
29
29
|
export type SiteRouteId = Brand<string, 'SiteRouteId'>;
|
|
30
30
|
export type PageId = Brand<string, 'PageId'>;
|
|
31
31
|
export type PageSurfaceId = Brand<string, 'PageSurfaceId'>;
|
|
32
|
+
export type EditLeaseToken = Brand<string, 'EditLeaseToken'>;
|
|
33
|
+
export type EditorClientId = Brand<string, 'EditorClientId'>;
|
|
32
34
|
export type OccurrenceId = Brand<string, 'OccurrenceId'>;
|
|
33
35
|
export type EventOfferingId = Brand<string, 'EventOfferingId'>;
|
|
34
36
|
export type EventSeriesId = Brand<string, 'EventSeriesId'>;
|
|
@@ -78,6 +80,7 @@ export type MembershipId = Brand<string, 'MembershipId'>;
|
|
|
78
80
|
export type RetiredCourseId = Brand<string, 'RetiredCourseId'>;
|
|
79
81
|
export type CustomerId = Brand<string, 'CustomerId'>;
|
|
80
82
|
export type OrderId = Brand<string, 'OrderId'>;
|
|
83
|
+
export type OrderRetirementOperationId = Brand<string, 'OrderRetirementOperationId'>;
|
|
81
84
|
export type OrderItemId = Brand<string, 'OrderItemId'>;
|
|
82
85
|
export type OrderRefundId = Brand<string, 'OrderRefundId'>;
|
|
83
86
|
export type OrderPaymentReceiptId = Brand<string, 'OrderPaymentReceiptId'>;
|
|
@@ -116,6 +119,10 @@ export type ContentBlockId = Brand<string, 'ContentBlockId'>;
|
|
|
116
119
|
export type ContentVersionId = Brand<string, 'ContentVersionId'>;
|
|
117
120
|
export type EntryContentHash = Brand<string, 'EntryContentHash'>;
|
|
118
121
|
export type StripeInvoiceId = Brand<string, 'StripeInvoiceId'>;
|
|
122
|
+
/** A platform (not Connect) Stripe customer id, `cus_…`. */
|
|
123
|
+
export type StripeCustomerId = Brand<string, 'StripeCustomerId'>;
|
|
124
|
+
/** A Stripe subscription id, `sub_…`. */
|
|
125
|
+
export type StripeSubscriptionId = Brand<string, 'StripeSubscriptionId'>;
|
|
119
126
|
export type NewsletterSubscriberId = Brand<string, 'NewsletterSubscriberId'>;
|
|
120
127
|
export type NavigationMenuId = Brand<string, 'NavigationMenuId'>;
|
|
121
128
|
export type NavigationItemId = Brand<string, 'NavigationItemId'>;
|
|
@@ -178,6 +185,8 @@ export declare const unsafeAsApiKeyId: (id: string) => ApiKeyId;
|
|
|
178
185
|
export declare const unsafeAsSiteRouteId: (id: string) => SiteRouteId;
|
|
179
186
|
export declare const unsafeAsPageId: (id: string) => PageId;
|
|
180
187
|
export declare const unsafeAsPageSurfaceId: (id: string) => PageSurfaceId;
|
|
188
|
+
export declare const unsafeAsEditLeaseToken: (id: string) => EditLeaseToken;
|
|
189
|
+
export declare const unsafeAsEditorClientId: (id: string) => EditorClientId;
|
|
181
190
|
export declare const unsafeAsOccurrenceId: (id: string) => OccurrenceId;
|
|
182
191
|
export declare const unsafeAsEventOfferingId: (id: string) => EventOfferingId;
|
|
183
192
|
export declare const unsafeAsEventSeriesId: (id: string) => EventSeriesId;
|
|
@@ -220,6 +229,7 @@ export declare const unsafeAsFormSubmissionId: (id: string) => FormSubmissionId;
|
|
|
220
229
|
export declare const unsafeAsPassId: (id: string) => PassId;
|
|
221
230
|
export declare const unsafeAsMembershipId: (id: string) => MembershipId;
|
|
222
231
|
export declare const unsafeAsCustomerId: (id: string) => CustomerId;
|
|
232
|
+
export declare const unsafeAsOrderRetirementOperationId: (id: string) => OrderRetirementOperationId;
|
|
223
233
|
export declare const unsafeAsOrderId: (id: string) => OrderId;
|
|
224
234
|
export declare const unsafeAsOrderItemId: (id: string) => OrderItemId;
|
|
225
235
|
export declare const unsafeAsOrderRefundId: (id: string) => OrderRefundId;
|
|
@@ -250,6 +260,8 @@ export declare const unsafeAsContentBlockId: (id: string) => ContentBlockId;
|
|
|
250
260
|
export declare const unsafeAsContentVersionId: (id: string) => ContentVersionId;
|
|
251
261
|
export declare const unsafeAsEntryContentHash: (value: string) => EntryContentHash;
|
|
252
262
|
export declare const unsafeAsStripeInvoiceId: (id: string) => StripeInvoiceId;
|
|
263
|
+
export declare const unsafeAsStripeCustomerId: (id: string) => StripeCustomerId;
|
|
264
|
+
export declare const unsafeAsStripeSubscriptionId: (id: string) => StripeSubscriptionId;
|
|
253
265
|
export declare const unsafeAsNewsletterSubscriberId: (id: string) => NewsletterSubscriberId;
|
|
254
266
|
export declare const unsafeAsNavigationMenuId: (id: string) => NavigationMenuId;
|
|
255
267
|
export declare const unsafeAsNavigationItemId: (id: string) => NavigationItemId;
|
|
@@ -286,6 +298,8 @@ export declare const parseApiKeyId: (value: unknown) => Result<ApiKeyId, Branded
|
|
|
286
298
|
export declare const parseSiteRouteId: (value: unknown) => Result<SiteRouteId, BrandedIdParseError>;
|
|
287
299
|
export declare const parsePageId: (value: unknown) => Result<PageId, BrandedIdParseError>;
|
|
288
300
|
export declare const parsePageSurfaceId: (value: unknown) => Result<PageSurfaceId, BrandedIdParseError>;
|
|
301
|
+
export declare const parseEditLeaseToken: (value: unknown) => Result<EditLeaseToken, BrandedIdParseError>;
|
|
302
|
+
export declare const parseEditorClientId: (value: unknown) => Result<EditorClientId, BrandedIdParseError>;
|
|
289
303
|
export declare const parseOccurrenceId: (value: unknown) => Result<OccurrenceId, BrandedIdParseError>;
|
|
290
304
|
export declare const parseEventOfferingId: (value: unknown) => Result<EventOfferingId, BrandedIdParseError>;
|
|
291
305
|
export declare const parseEventAttendeeTicketLineId: (value: unknown) => Result<EventAttendeeTicketLineId, BrandedIdParseError>;
|
|
@@ -326,6 +340,7 @@ export declare const parseEventSeriesRegistrationId: (value: unknown) => Result<
|
|
|
326
340
|
export declare const parseParticipantId: (value: unknown) => Result<ParticipantId, BrandedIdParseError>;
|
|
327
341
|
export declare const parseParticipantParticipationId: (value: unknown) => Result<ParticipantParticipationId, BrandedIdParseError>;
|
|
328
342
|
export declare const parseOrderItemId: (value: unknown) => Result<OrderItemId, BrandedIdParseError>;
|
|
343
|
+
export declare const parseOrderRetirementOperationId: (value: unknown) => Result<OrderRetirementOperationId, BrandedIdParseError>;
|
|
329
344
|
export declare const parseOrderId: (value: unknown) => Result<OrderId, BrandedIdParseError>;
|
|
330
345
|
export declare const parseOrderRefundId: (value: unknown) => Result<OrderRefundId, BrandedIdParseError>;
|
|
331
346
|
export declare const parseOrderPaymentReceiptId: (value: unknown) => Result<OrderPaymentReceiptId, BrandedIdParseError>;
|
|
@@ -17,9 +17,10 @@ export declare function unsafeCurrencyCode(value: string): CurrencyCode;
|
|
|
17
17
|
/**
|
|
18
18
|
* Trailing-decimal policy for a formatted amount:
|
|
19
19
|
* - 'exact' : the currency's natural precision (usually 2) — "£25.00"
|
|
20
|
-
* - 'auto' : drop trailing zeros within the currency's natural precision — "£25", "£25.
|
|
20
|
+
* - 'auto' : drop trailing zeros within the currency's natural precision — "£25", "£25.5"
|
|
21
|
+
* - 'whole' : round to whole major units — "£25"
|
|
21
22
|
*/
|
|
22
|
-
export type CurrencyDecimals = 'exact' | 'auto';
|
|
23
|
+
export type CurrencyDecimals = 'exact' | 'auto' | 'whole';
|
|
23
24
|
export type FormatCurrencyOptions = Readonly<{
|
|
24
25
|
/** Defaults to 'exact'. */
|
|
25
26
|
decimals?: CurrencyDecimals;
|
|
@@ -36,4 +37,9 @@ export type FormatCurrencyOptions = Readonly<{
|
|
|
36
37
|
* own `Intl.NumberFormat`.
|
|
37
38
|
*/
|
|
38
39
|
export declare function formatCurrencyAmount(amountCents: number, currency: string, options?: FormatCurrencyOptions): string;
|
|
40
|
+
/**
|
|
41
|
+
* `formatCurrencyAmount` for an amount already in MAJOR units (29.99 = £29.99),
|
|
42
|
+
* such as a registrar price. Prefer minor units everywhere else.
|
|
43
|
+
*/
|
|
44
|
+
export declare function formatCurrencyMajorUnits(amount: number, currency: string, options?: FormatCurrencyOptions): string;
|
|
39
45
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const demoBlueprintStatusValues: readonly ["draft", "published", "archived"];
|
|
2
2
|
export type DemoBlueprintStatus = (typeof demoBlueprintStatusValues)[number];
|
|
3
|
-
export declare const demoInstanceStatusValues: readonly ["warming", "available", "claimed", "expired", "
|
|
3
|
+
export declare const demoInstanceStatusValues: readonly ["warming", "available", "claimed", "expired", "showcase", "failed"];
|
|
4
4
|
export type DemoInstanceStatus = (typeof demoInstanceStatusValues)[number];
|
|
5
5
|
export declare const demoClaimStatusValues: readonly ["active", "expired", "released"];
|
|
6
6
|
export type DemoClaimStatus = (typeof demoClaimStatusValues)[number];
|
|
7
|
-
export declare const demoBlueprintArtifactKindValues: readonly ["
|
|
7
|
+
export declare const demoBlueprintArtifactKindValues: readonly ["recipe"];
|
|
8
8
|
export type DemoBlueprintArtifactKind = (typeof demoBlueprintArtifactKindValues)[number];
|
|
9
9
|
export declare function narrowDemoInstanceStatus(value: string): DemoInstanceStatus;
|
|
10
10
|
export declare function narrowDemoClaimStatus(value: string): DemoClaimStatus;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Result } from './result';
|
|
2
|
+
export declare const DEFAULT_DEMO_WARM_POOL_TARGET = 0;
|
|
3
|
+
export declare const MAX_DEMO_WARM_POOL_TARGET = 20;
|
|
4
|
+
export type DemoWarmPoolTargetError = Readonly<{
|
|
5
|
+
kind: 'invalid_demo_warm_pool_target';
|
|
6
|
+
message: 'DEMO_WARM_POOL_TARGET must be a whole number from 0 to 20.';
|
|
7
|
+
}>;
|
|
8
|
+
export declare function parseDemoWarmPoolTarget(value: string | null | undefined): Result<number, DemoWarmPoolTargetError>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { ContentEntryId, EditLeaseToken, EditorClientId, PageId, PageSurfaceId } from './branded';
|
|
2
|
+
/**
|
|
3
|
+
* How long a lease lasts without a heartbeat. The server grants for this long, and a
|
|
4
|
+
* reload handover is only worth presenting within it (issue 1570).
|
|
5
|
+
*/
|
|
6
|
+
export declare const EDIT_LEASE_TTL_SECONDS = 60;
|
|
7
|
+
export type EditLeaseScope = Readonly<{
|
|
8
|
+
nodeType: 'page';
|
|
9
|
+
nodeId: PageId;
|
|
10
|
+
}> | Readonly<{
|
|
11
|
+
nodeType: 'content_entry';
|
|
12
|
+
nodeId: ContentEntryId;
|
|
13
|
+
}> | Readonly<{
|
|
14
|
+
nodeType: 'page_surface';
|
|
15
|
+
nodeId: PageSurfaceId;
|
|
16
|
+
}>;
|
|
17
|
+
export type EditLeaseHolder = Readonly<{
|
|
18
|
+
kind: 'your-other-tab';
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
kind: 'another-user';
|
|
21
|
+
name: string | null;
|
|
22
|
+
}>;
|
|
23
|
+
export type EditLeaseView = Readonly<{
|
|
24
|
+
kind: 'free';
|
|
25
|
+
}> | Readonly<{
|
|
26
|
+
kind: 'mine';
|
|
27
|
+
expiresAt: string;
|
|
28
|
+
}> | Readonly<{
|
|
29
|
+
kind: 'held-elsewhere';
|
|
30
|
+
holder: EditLeaseHolder;
|
|
31
|
+
expiresAt: string;
|
|
32
|
+
}>;
|
|
33
|
+
export type EditLeaseAcquireResult = Readonly<{
|
|
34
|
+
kind: 'granted';
|
|
35
|
+
token: EditLeaseToken;
|
|
36
|
+
expiresAt: string;
|
|
37
|
+
}> | Extract<EditLeaseView, {
|
|
38
|
+
kind: 'held-elsewhere';
|
|
39
|
+
}>;
|
|
40
|
+
export type EditAuthority = Readonly<{
|
|
41
|
+
kind: 'edit-lease';
|
|
42
|
+
token: EditLeaseToken;
|
|
43
|
+
clientId: EditorClientId;
|
|
44
|
+
}> | Readonly<{
|
|
45
|
+
kind: 'exempt';
|
|
46
|
+
reason: 'team-member-profile' | 'sdk';
|
|
47
|
+
}>;
|
|
48
|
+
export type OwnerEditAuthority = EditAuthority | Readonly<{
|
|
49
|
+
kind: 'no-lease-headers';
|
|
50
|
+
}>;
|
|
51
|
+
export type EditLeaseTarget = Readonly<{
|
|
52
|
+
kind: 'leased';
|
|
53
|
+
scope: EditLeaseScope;
|
|
54
|
+
}> | Readonly<{
|
|
55
|
+
kind: 'unleased';
|
|
56
|
+
}>;
|
|
57
|
+
export declare function parseEditLeaseScope(input: Readonly<{
|
|
58
|
+
nodeType: EditLeaseScope['nodeType'];
|
|
59
|
+
nodeId: string;
|
|
60
|
+
}>): EditLeaseScope | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { EditorBlockVersions } from './block-content-identity';
|
|
1
2
|
import type { Brand } from './branded';
|
|
2
|
-
import type {
|
|
3
|
+
import type { ValueSync } from './editor-value-sync';
|
|
3
4
|
export type EditorSiteId = Brand<string, 'EditorSiteId'>;
|
|
4
5
|
export type EditorPageId = Brand<string, 'EditorPageId'>;
|
|
5
6
|
export type EditorEntryId = Brand<string, 'EditorEntryId'>;
|
|
@@ -8,6 +9,31 @@ export declare const unsafeAsEditorSiteId: (value: string) => EditorSiteId;
|
|
|
8
9
|
export declare const unsafeAsEditorPageId: (value: string) => EditorPageId;
|
|
9
10
|
export declare const unsafeAsEditorEntryId: (value: string) => EditorEntryId;
|
|
10
11
|
export declare const unsafeAsEditorBlockId: (value: string) => EditorBlockId;
|
|
12
|
+
/** Identity of the ordered block collection currently mounted in the editor. */
|
|
13
|
+
export type EditorBlockCollectionOwner = Readonly<{
|
|
14
|
+
kind: 'page';
|
|
15
|
+
pageId: string;
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
kind: 'entry-slot';
|
|
18
|
+
type: string;
|
|
19
|
+
entryId: string;
|
|
20
|
+
slotKey: string;
|
|
21
|
+
}> | Readonly<{
|
|
22
|
+
kind: 'surface-slot';
|
|
23
|
+
pageSurfaceId: string;
|
|
24
|
+
slotKey: string;
|
|
25
|
+
}> | Readonly<{
|
|
26
|
+
kind: 'site-footer';
|
|
27
|
+
siteId: string;
|
|
28
|
+
}>;
|
|
29
|
+
/** Server membership facts for a loaded collection, independent of selected local edits. */
|
|
30
|
+
export type EditorBlockCollectionReadBaseline = Readonly<{
|
|
31
|
+
owner: EditorBlockCollectionOwner;
|
|
32
|
+
currentBlockIds: readonly string[];
|
|
33
|
+
publishedBlockIds: readonly string[];
|
|
34
|
+
}>;
|
|
35
|
+
export declare function editorBlockCollectionOwnerKey(owner: EditorBlockCollectionOwner): string;
|
|
36
|
+
export declare function editorBlockCollectionOwnersEqual(left: EditorBlockCollectionOwner | null, right: EditorBlockCollectionOwner | null): boolean;
|
|
11
37
|
export type EditorValueRecord = Readonly<Record<string, unknown>>;
|
|
12
38
|
export type EditorMetadataValues = Brand<EditorValueRecord, 'EditorMetadataValues'>;
|
|
13
39
|
export type EditorContentValues = Brand<EditorValueRecord, 'EditorContentValues'>;
|
|
@@ -15,6 +41,7 @@ export type EditorBlockValues = Brand<EditorValueRecord, 'EditorBlockValues'>;
|
|
|
15
41
|
export declare const unsafeAsEditorMetadataValues: (value: EditorValueRecord) => EditorMetadataValues;
|
|
16
42
|
export declare const unsafeAsEditorContentValues: (value: EditorValueRecord) => EditorContentValues;
|
|
17
43
|
export declare const unsafeAsEditorBlockValues: (value: EditorValueRecord) => EditorBlockValues;
|
|
44
|
+
/** Presentation of a value's sync state, derived from its `ValueSync` (`syncStateOf`). */
|
|
18
45
|
export type EditorSyncState = {
|
|
19
46
|
kind: 'baseline';
|
|
20
47
|
} | {
|
|
@@ -28,15 +55,12 @@ export type EditorStructuralDraftMeta = Readonly<{
|
|
|
28
55
|
kind: string;
|
|
29
56
|
purpose: string | null;
|
|
30
57
|
orderIndex: number | null;
|
|
31
|
-
publishedContent: EditorBlockValues | null;
|
|
32
|
-
optimisticHash: string | null;
|
|
33
58
|
}>;
|
|
59
|
+
/** The baseline revision is the block's optimistic hash. */
|
|
34
60
|
export type EditorStructuralDraftSnapshot = Readonly<{
|
|
35
61
|
id: EditorBlockId;
|
|
36
62
|
version: number;
|
|
37
|
-
|
|
38
|
-
current: EditorBlockValues | null;
|
|
39
|
-
syncState: EditorDraftSyncState;
|
|
63
|
+
sync: ValueSync<EditorBlockValues | null>;
|
|
40
64
|
meta: EditorStructuralDraftMeta;
|
|
41
65
|
}>;
|
|
42
66
|
export type EditorBlockDataRowInput = Readonly<{
|
|
@@ -47,28 +71,29 @@ export type EditorDraftBlockInitMetaInput = Readonly<{
|
|
|
47
71
|
kind: string;
|
|
48
72
|
purpose?: string | null;
|
|
49
73
|
orderIndex?: number | null;
|
|
50
|
-
publishedContent?: EditorBlockBaselineInput;
|
|
51
74
|
optimisticHash?: string | null;
|
|
52
75
|
}>;
|
|
53
76
|
export type EditorDraftBlockBaselineUpdateMetaInput = Readonly<{
|
|
54
77
|
kind?: string;
|
|
55
78
|
purpose?: string | null;
|
|
56
79
|
orderIndex?: number | null;
|
|
57
|
-
publishedContent?: EditorBlockBaselineInput;
|
|
58
80
|
optimisticHash?: string | null;
|
|
59
81
|
}>;
|
|
60
|
-
|
|
82
|
+
/** One block's server versions, as recorded into the editor's block-versions state. */
|
|
83
|
+
export type EditorBlockVersionsEntry = Readonly<{
|
|
61
84
|
id: EditorBlockId;
|
|
62
|
-
|
|
63
|
-
publishedContent?: EditorBlockBaselineInput;
|
|
85
|
+
versions: EditorBlockVersions;
|
|
64
86
|
}>;
|
|
65
|
-
|
|
87
|
+
/**
|
|
88
|
+
* A block as undo history records it. Server version identity is deliberately
|
|
89
|
+
* absent: it lives in the editor's block-versions state, outside history.
|
|
90
|
+
*/
|
|
91
|
+
export type EditorPersistedBlock = Readonly<{
|
|
66
92
|
id: EditorBlockId;
|
|
67
93
|
kind: string;
|
|
68
94
|
content: EditorBlockValues | null;
|
|
69
95
|
orderIndex: number | null;
|
|
70
96
|
draftContent: EditorBlockValues | null;
|
|
71
|
-
publishedContent: EditorBlockValues | null;
|
|
72
97
|
bindings: EditorBlockValues | null;
|
|
73
98
|
purpose: string | null;
|
|
74
99
|
optimisticHash: string | null;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { Brand } from './branded';
|
|
2
|
+
import type { EditorSyncState } from './editor-state';
|
|
3
|
+
/**
|
|
4
|
+
* One editor value's sync state: the server baseline it was loaded from, and what the
|
|
5
|
+
* person intends locally. The request slot nests under local intent, so a pristine value
|
|
6
|
+
* can never hold a send in flight or a failure (issue 1553, D1).
|
|
7
|
+
*
|
|
8
|
+
* The transitions live in `@riverbankcms/content-editor`'s `sync/valueSync.ts`. The
|
|
9
|
+
* read-only selectors below live here because block-form and editor-blocks read them
|
|
10
|
+
* and can't depend on content-editor.
|
|
11
|
+
*/
|
|
12
|
+
/** Identifies one save request; a response for any other id is ignored. Allocated by the store. */
|
|
13
|
+
export type SendId = Brand<number, 'SendId'>;
|
|
14
|
+
export declare const unsafeAsSendId: (value: number) => SendId;
|
|
15
|
+
/** The server's compare-and-set token for a baseline. Compared by equality only. */
|
|
16
|
+
export type BaselineRevision = Readonly<{
|
|
17
|
+
kind: 'known';
|
|
18
|
+
value: string | null;
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
kind: 'unknown';
|
|
21
|
+
}>;
|
|
22
|
+
export type ValueBaseline<V> = Readonly<{
|
|
23
|
+
values: V;
|
|
24
|
+
revision: BaselineRevision;
|
|
25
|
+
}>;
|
|
26
|
+
export type IdleRequest = Readonly<{
|
|
27
|
+
kind: 'idle';
|
|
28
|
+
}>;
|
|
29
|
+
export type InFlightRequest<V> = Readonly<{
|
|
30
|
+
kind: 'in-flight';
|
|
31
|
+
id: SendId;
|
|
32
|
+
sent: V;
|
|
33
|
+
basis: BaselineRevision;
|
|
34
|
+
}>;
|
|
35
|
+
export type FailedRequest<V> = Readonly<{
|
|
36
|
+
kind: 'failed';
|
|
37
|
+
id: SendId;
|
|
38
|
+
sent: V;
|
|
39
|
+
error: string;
|
|
40
|
+
reason: 'rejected' | 'conflict';
|
|
41
|
+
}>;
|
|
42
|
+
/** A request still outstanding whose edits the person discarded. It presents as saved. */
|
|
43
|
+
export type AbandonedRequest = Readonly<{
|
|
44
|
+
kind: 'abandoned';
|
|
45
|
+
id: SendId;
|
|
46
|
+
basis: BaselineRevision;
|
|
47
|
+
}>;
|
|
48
|
+
export type PristineRequest = IdleRequest | AbandonedRequest;
|
|
49
|
+
export type EditedRequest<V> = IdleRequest | InFlightRequest<V> | FailedRequest<V> | AbandonedRequest;
|
|
50
|
+
export type LocalIntent<V> = Readonly<{
|
|
51
|
+
kind: 'pristine';
|
|
52
|
+
request: PristineRequest;
|
|
53
|
+
}> | Readonly<{
|
|
54
|
+
kind: 'edited';
|
|
55
|
+
values: V;
|
|
56
|
+
request: EditedRequest<V>;
|
|
57
|
+
}>;
|
|
58
|
+
export type ValueSync<V> = Readonly<{
|
|
59
|
+
baseline: ValueBaseline<V>;
|
|
60
|
+
local: LocalIntent<V>;
|
|
61
|
+
}>;
|
|
62
|
+
/** Lease loss isn't an error: the edits stay unsaved and send again once the tab can write. */
|
|
63
|
+
export type SaveFailure = Readonly<{
|
|
64
|
+
kind: 'rejected' | 'conflict';
|
|
65
|
+
message: string;
|
|
66
|
+
}> | Readonly<{
|
|
67
|
+
kind: 'lease-lost';
|
|
68
|
+
}>;
|
|
69
|
+
export declare const UNKNOWN_REVISION: BaselineRevision;
|
|
70
|
+
export declare function knownRevision(value: string | null): BaselineRevision;
|
|
71
|
+
/** A pristine value at the given baseline. */
|
|
72
|
+
export declare function pristineValueSync<V>(values: V, revision: BaselineRevision): ValueSync<V>;
|
|
73
|
+
export type ValueStatus = 'saved' | 'unsaved' | 'saving' | 'failed';
|
|
74
|
+
/** What the person sees: their edits, or the baseline when there are none. */
|
|
75
|
+
export declare function displayedValues<V>(sync: ValueSync<V>): V;
|
|
76
|
+
/** Pristine counts as saved even with an abandoned request: nothing the person wants is unsaved. */
|
|
77
|
+
export declare function valueStatus<V>(sync: ValueSync<V>): ValueStatus;
|
|
78
|
+
/** Projects the model onto the presentation sync state: unsaved and saving are both `pending`. */
|
|
79
|
+
export declare function syncStateOf<V>(sync: ValueSync<V>): EditorSyncState;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decodes the HTML entities rendered pages commonly contain (the basic named
|
|
3
|
+
* set plus decimal and hex numeric references), leaving anything else as is.
|
|
4
|
+
* For reading text back out of server-rendered HTML, not for sanitising input.
|
|
5
|
+
*/
|
|
6
|
+
export declare function decodeHtmlEntities(text: string): string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './branded';
|
|
2
2
|
export * from './date-math';
|
|
3
|
+
export * from './html-entities';
|
|
3
4
|
export * from './duration';
|
|
4
5
|
export * from './demo-capability-policy';
|
|
5
6
|
export * from './demo-claim-access';
|
|
6
7
|
export * from './demo-lifecycle-status';
|
|
8
|
+
export * from './demo-warm-pool-target';
|
|
7
9
|
export * from './demo-runtime';
|
|
8
10
|
export * from './collections';
|
|
9
11
|
export * from './event-booking-offer';
|
|
@@ -16,6 +18,9 @@ export * from './money-input';
|
|
|
16
18
|
export * from './booking-flexible-balance';
|
|
17
19
|
export * from './booking-refunds';
|
|
18
20
|
export * from './booking-instalments';
|
|
21
|
+
export * from './booking-instalment-deposit';
|
|
22
|
+
export * from './booking-live-payment-terms';
|
|
23
|
+
export * from './booking-payment-options';
|
|
19
24
|
export * from './booking-date-time';
|
|
20
25
|
export * from './booking-consent';
|
|
21
26
|
export * from './appointment-service-categories';
|
|
@@ -30,6 +35,8 @@ export { tryAsync } from './try-async';
|
|
|
30
35
|
export * from './narrow-result';
|
|
31
36
|
export * from './non-empty-array';
|
|
32
37
|
export * from './editor-state';
|
|
38
|
+
export * from './editor-value-sync';
|
|
39
|
+
export * from './edit-lease';
|
|
33
40
|
export * from './block-content-identity';
|
|
34
41
|
export * from './sensitive-collection';
|
|
35
42
|
export * from './assertNever';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Validates whether a string matches UUID v4 format
|
|
3
|
-
* Format: 8-4-4-4-12 hexadecimal digits
|
|
4
|
-
* Example: 550e8400-e29b-41d4-a716-446655440000
|
|
5
|
-
*/
|
|
1
|
+
/** Validate a UUID in the existing 8-4-4-4-12 hexadecimal format. */
|
|
6
2
|
export declare function isValidUuid(str: string): boolean;
|
|
3
|
+
/** UUID v4 generation in both secure and local HTTP browser contexts. */
|
|
4
|
+
export type UuidCryptoSource = Readonly<{
|
|
5
|
+
randomUUID?: () => string;
|
|
6
|
+
getRandomValues: (array: Uint8Array<ArrayBuffer>) => Uint8Array<ArrayBuffer>;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function generateUuidV4(cryptoSource?: UuidCryptoSource): string;
|