@riverbankcms/sdk 0.147.0 → 0.148.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/{PreviewEditorSidebar-DtpB3_sS.mjs → PreviewEditorSidebar-DvEPG3Z2.mjs} +202 -143
- package/dist/{PreviewEditorUI-DxTLgaHo.mjs → PreviewEditorUI-D6eb6fkx.mjs} +68 -60
- package/dist/{PreviewQueryProvider-Dd4dxOiU.mjs → PreviewQueryProvider-5znTyJuz.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DMMNCngt.mjs → SdkPreviewModeRuntime-DJ6utQ_R.mjs} +1191 -513
- package/dist/{SiteChromeCustomizeContext-DQXZXiqS.mjs → SiteChromeCustomizeContext-CFJYh6vo.mjs} +201798 -197304
- 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 +0 -2
- package/dist/_dts/api/src/bookingOperations.d.ts +4 -4
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- 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/commercePortalEndpoints.d.ts +7 -6
- package/dist/_dts/api/src/common/envelope.d.ts +2 -2
- package/dist/_dts/api/src/content-editor.d.ts +2 -2
- package/dist/_dts/api/src/contentEntries.d.ts +17 -48
- package/dist/_dts/api/src/contentRuntime.d.ts +51 -37
- package/dist/_dts/api/src/contentTypes.d.ts +11 -11
- package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +6 -6
- package/dist/_dts/api/src/documentLifecycle.d.ts +67 -0
- package/dist/_dts/api/src/domains.d.ts +16 -16
- package/dist/_dts/api/src/editLeaseEndpoints.d.ts +72 -0
- package/dist/_dts/api/src/emailSettings.d.ts +4 -4
- package/dist/_dts/api/src/endpoints.d.ts +133 -41
- package/dist/_dts/api/src/eventEmailTemplates.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +25 -0
- 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 +6 -5
- 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 +2 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/redirects.d.ts +3 -3
- package/dist/_dts/api/src/request.d.ts +10 -1
- package/dist/_dts/api/src/resources.d.ts +4 -4
- package/dist/_dts/api/src/routes.d.ts +8 -3
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +0 -1
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +21 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +5 -28
- package/dist/_dts/api/src/sdkEventEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/sdkEventOccurrenceRequestContracts.d.ts +43 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +4 -2
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +8 -1
- package/dist/_dts/api/src/seo.d.ts +4 -4
- package/dist/_dts/api/src/services.d.ts +4 -4
- package/dist/_dts/api/src/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/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/proof-block-islands.d.ts +16 -4
- 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 +0 -2
- package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +3 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +6 -1
- package/dist/_dts/blocks/src/system/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 +2 -0
- 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 +24 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +12 -3
- 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 +15 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-actions.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-handler.d.ts +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/event-registration/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +4 -1
- 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.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 +5 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +1 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/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/event-registration-errors.d.ts +4 -0
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -7
- package/dist/_dts/content-editor/src/controller/EditLeaseController.d.ts +39 -0
- package/dist/_dts/content-editor/src/controller/EditorWriteGate.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +25 -61
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseBanner.d.ts +7 -0
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseControllers.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/deriveEditorUnpublishedState.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/documentValueBaseline.d.ts +25 -0
- package/dist/_dts/content-editor/src/controller/editLeaseLossSignal.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/editLeaseNotice.d.ts +28 -0
- package/dist/_dts/content-editor/src/controller/editorClientId.d.ts +2 -0
- package/dist/_dts/content-editor/src/controller/editorEditability.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/editorLeaseParticipation.d.ts +34 -0
- package/dist/_dts/content-editor/src/controller/normalizedMetadataBaseline.d.ts +29 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceDocumentBaselines.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceLifecycle.d.ts +11 -0
- package/dist/_dts/content-editor/src/controller/planDocumentBaselineRefresh.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/readDocumentLeaseBaselines.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/refreshDocumentLeaseBaseline.d.ts +12 -0
- package/dist/_dts/content-editor/src/controller/refreshLinkedEntry.d.ts +17 -0
- package/dist/_dts/content-editor/src/controller/replayRestoredEditorEffects.d.ts +2 -3
- package/dist/_dts/content-editor/src/controller/routeWrites.d.ts +26 -0
- package/dist/_dts/content-editor/src/controller/useAutosaveTriggers.d.ts +16 -17
- package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +6 -2
- package/dist/_dts/content-editor/src/controller/useBlocksList.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/useEntryValueAutosaves.d.ts +21 -0
- package/dist/_dts/content-editor/src/controller/useInitialEditorUiStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/controller/useServerBaselineReconciliation.d.ts +17 -0
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +5 -1
- package/dist/_dts/content-editor/src/hooks/blockDraftLifecycle.d.ts +8 -47
- package/dist/_dts/content-editor/src/hooks/editLeaseMachine.d.ts +120 -0
- package/dist/_dts/content-editor/src/hooks/publishability.d.ts +6 -10
- package/dist/_dts/content-editor/src/hooks/useAutosaveStatus.d.ts +3 -0
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +5 -15
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +7 -5
- package/dist/_dts/content-editor/src/hooks/useEditLease.d.ts +28 -0
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +25 -39
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +17 -19
- package/dist/_dts/content-editor/src/hooks/useLinkedEntryAutosave.d.ts +5 -8
- package/dist/_dts/content-editor/src/hooks/useValueAutosave.d.ts +64 -0
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +0 -7
- package/dist/_dts/content-editor/src/index.d.ts +26 -7
- package/dist/_dts/content-editor/src/linkedEntries/domain.d.ts +12 -0
- package/dist/_dts/content-editor/src/linkedEntries/owner.d.ts +9 -0
- package/dist/_dts/content-editor/src/liveDrafts/draftProjection.d.ts +66 -0
- package/dist/_dts/content-editor/src/liveDrafts/linkedSaveHandovers.d.ts +37 -0
- package/dist/_dts/content-editor/src/liveDrafts/remoteDraftOverlay.d.ts +113 -0
- package/dist/_dts/content-editor/src/liveDrafts/useLiveDrafts.d.ts +32 -0
- package/dist/_dts/content-editor/src/liveDrafts/useRetentionTicks.d.ts +7 -0
- package/dist/_dts/content-editor/src/primitives/shared/activePreviewField.d.ts +6 -0
- package/dist/_dts/content-editor/src/primitives/shared/storeBinding.d.ts +1 -0
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +96 -19
- package/dist/_dts/content-editor/src/services/editorApiClient.d.ts +13 -0
- package/dist/_dts/content-editor/src/services/index.d.ts +2 -0
- package/dist/_dts/content-editor/src/services/pageSurfaceEditorServices.d.ts +23 -0
- package/dist/_dts/content-editor/src/sync/flushValues.d.ts +13 -0
- package/dist/_dts/content-editor/src/sync/lifecycleFailure.d.ts +51 -0
- package/dist/_dts/content-editor/src/sync/runLifecycle.d.ts +64 -0
- package/dist/_dts/content-editor/src/sync/schedulerValues.d.ts +27 -0
- package/dist/_dts/content-editor/src/sync/sendPlanning.d.ts +104 -0
- package/dist/_dts/content-editor/src/sync/valueSync.d.ts +114 -0
- package/dist/_dts/content-editor/src/ui/blockCollection.d.ts +8 -0
- package/dist/_dts/content-editor/src/ui/documentLifecycle.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/editorLeaseUiState.d.ts +7 -0
- package/dist/_dts/content-editor/src/ui/editorRefresh.d.ts +82 -0
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +102 -127
- package/dist/_dts/content-editor/src/ui/editorTransactionState.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +126 -72
- package/dist/_dts/content-editor/src/ui/editorValueSnapshot.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/serverBlockAdmission.d.ts +26 -0
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +16 -27
- package/dist/_dts/content-editor/src/ui/stores/blockVersionsStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedEntryLeaseStore.d.ts +54 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedSaveHandoversStore.d.ts +11 -0
- package/dist/_dts/content-editor/src/ui/stores/remoteDraftsStore.d.ts +10 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +63 -3
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +2 -2
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +4 -4
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +4 -4
- package/dist/_dts/content-model/src/definitions/shared.d.ts +11 -2
- package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
- package/dist/_dts/content-model/src/entry-slots/serializeAllowedBlocks.d.ts +2 -0
- package/dist/_dts/content-model/src/metadataConfig.d.ts +10 -38
- package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -1
- package/dist/_dts/content-model/src/types.d.ts +0 -1
- package/dist/_dts/core/src/block-content-identity.d.ts +49 -1
- package/dist/_dts/core/src/branded.d.ts +12 -0
- package/dist/_dts/core/src/currency-format.d.ts +8 -2
- package/dist/_dts/core/src/demo-lifecycle-status.d.ts +2 -2
- package/dist/_dts/core/src/demo-warm-pool-target.d.ts +8 -0
- package/dist/_dts/core/src/edit-lease.d.ts +55 -0
- package/dist/_dts/core/src/editor-state.d.ts +38 -13
- package/dist/_dts/core/src/editor-value-sync.d.ts +79 -0
- package/dist/_dts/core/src/html-entities.d.ts +6 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/uuid.d.ts +7 -5
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +159 -153
- 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/context.d.ts +1 -1
- package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -2
- package/dist/_dts/media-editor/src/provider.d.ts +3 -2
- package/dist/_dts/media-react/src/hooks/internal/classification.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/blocks/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 +24 -14
- package/dist/_dts/preview-next/src/client/preview/PreviewLeaseEditingMode.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeAutosave.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +3 -4
- package/dist/_dts/preview-next/src/client/preview/sdkConfig.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/usePreviewCustomizeWorkflowState.d.ts +4 -0
- package/dist/_dts/realtime/src/client.d.ts +3 -0
- package/dist/_dts/realtime/src/draftChannel.d.ts +91 -0
- package/dist/_dts/realtime/src/drafts.d.ts +210 -0
- package/dist/_dts/realtime/src/index.d.ts +3 -0
- package/dist/_dts/realtime/src/leaseChangeSubscriptions.d.ts +8 -0
- package/dist/_dts/realtime/src/types.d.ts +113 -0
- package/dist/_dts/realtime/src/useDraftChannel.d.ts +34 -0
- package/dist/_dts/realtime/src/useSiteRealtimeReload.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -55
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +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/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/client/{BookingMailingListNote-1n4Ch_u_.mjs → BookingMailingListNote-CzRt2dF_.mjs} +98 -96
- package/dist/client/DemoBookingPortalAccess-mxqwap3f.mjs +344 -0
- package/dist/client/{EventCombined.client-C0pgma9y.mjs → EventCombined.client-CDb11igO.mjs} +6 -6
- package/dist/client/{EventListing.client-4fhLOvHP.mjs → EventListing.client-EgYhzKPa.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DScC4F3w.mjs → LeafletStaticMap-gtmtaA2b.mjs} +1 -1
- package/dist/client/{TerminalPanel-B5ZUsYhe.mjs → TerminalPanel-DvNUP5ot.mjs} +1 -1
- package/dist/client/{ThemedButton-DoVIV1Ao.mjs → ThemedButton-C7CeUJjW.mjs} +1 -1
- package/dist/client/{accordion-CoT5g7zo.mjs → accordion-kjvt49rA.mjs} +1 -1
- package/dist/client/{bookingForm-BWxB46xD.mjs → bookingForm-pbRZordh.mjs} +212 -62
- package/dist/client/bookings.mjs +616 -225
- package/dist/client/{carousel-DtNYWFd3.mjs → carousel-f4Zbmicv.mjs} +1 -1
- package/dist/client/{cart-z4qZih1Y.mjs → cart-DO20An50.mjs} +3 -3
- package/dist/client/{checkout-DpL7euFH.mjs → checkout-Du5amDR_.mjs} +3 -3
- package/dist/client/{checkoutUrls-BEfR7kVu.mjs → checkoutUrls-CXhko2Rv.mjs} +1 -1
- package/dist/client/client.mjs +1753 -823
- package/dist/client/{context-C8TinPJc.mjs → context-eW97E945.mjs} +4 -3
- package/dist/client/{dates-vwwxTeB0.mjs → dates-jPCirRea.mjs} +56 -11
- package/dist/client/{eventCalendar-DIbHfJXO.mjs → eventCalendar-C2M-iE4j.mjs} +9 -9
- package/dist/client/{eventCombined-DoGMJ6cg.mjs → eventCombined-W6ns3LHg.mjs} +4 -4
- package/dist/client/{eventDetails-BjN9v6a1.mjs → eventDetails-CR-GT0f0.mjs} +4 -4
- package/dist/client/{eventListing-DajjWgOv.mjs → eventListing-BK8AfYZz.mjs} +4 -4
- package/dist/client/{eventRegistration-DMq9gMA-.mjs → eventRegistration-BJSd4KUu.mjs} +369 -242
- package/dist/client/{form-Qf6qTbos.mjs → form-BvpfbQaT.mjs} +3 -3
- package/dist/client/{headerSection-D7qJrqFX.mjs → headerSection-I5sUQ8x-.mjs} +3 -3
- package/dist/client/hooks.mjs +254 -53
- package/dist/client/{locationMap-CCF9-t_0.mjs → locationMap-BLvwf9_f.mjs} +3 -3
- package/dist/client/{media-CwBGetqC.mjs → media-Cl38iOMI.mjs} +10 -3
- package/dist/client/{newsletterForm-DzCLSP4S.mjs → newsletterForm-DrQ2weE8.mjs} +3 -3
- package/dist/client/{pricing-Cgxv2KLC.mjs → pricing-BES87mrR.mjs} +1 -1
- package/dist/client/{productDetail-ru9w5GHx.mjs → productDetail-Url9jcc5.mjs} +3 -3
- package/dist/client/{productList-zaapKSl-.mjs → productList-DE7ngEZJ.mjs} +3 -3
- package/dist/client/{propsDecoder-CwvvNOHx.mjs → propsDecoder-D1OtGXDV.mjs} +89 -17
- package/dist/client/rendering/client.mjs +1445 -658
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +2478 -1515
- package/dist/client/{routeIslandApiConfig-BwVFo0Y4.mjs → routeIslandApiConfig-BG9Y-SHg.mjs} +1 -1
- package/dist/client/{shop-mktkXvbV.mjs → shop-CJkuySJ3.mjs} +126 -79
- package/dist/client/{shop-commerce-De7gEnkA.mjs → shop-commerce-4rKj5n9h.mjs} +25 -13
- package/dist/client/{shop-commerce-store-B3MCxIBW.mjs → shop-commerce-store-Bxm75Pg6.mjs} +1 -1
- package/dist/client/{shopShared-TqExh235.mjs → shopShared-DpoQDWfz.mjs} +4 -4
- package/dist/client/{useEventFilters-n_OjkIjX.mjs → useEventFilters-D8HliSqR.mjs} +32 -17
- package/dist/preview-next/before-render.mjs +192 -83
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +192 -83
- package/dist/preview-next/middleware.mjs +192 -83
- package/dist/{previewAuthStore-C_EHQ5XA.mjs → previewAuthStore-BXXF3hhW.mjs} +194 -83
- package/dist/{sdk-runtime-BIkJg5y1.mjs → sdk-runtime-C2a05WjL.mjs} +2 -2
- package/dist/{separator-C9qDP95Z.mjs → separator-CuNhBAhS.mjs} +1 -1
- package/dist/server/components.mjs +1720 -1392
- package/dist/server/config-validation.mjs +221 -37
- package/dist/server/config.mjs +221 -37
- package/dist/server/data.mjs +221 -37
- package/dist/server/index.mjs +195 -84
- package/dist/server/next.mjs +490 -196
- package/dist/server/page-converter.mjs +53 -14
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1427 -1098
- package/dist/server/rendering.mjs +2693 -2365
- package/dist/server/routing.mjs +291 -55
- package/dist/server/server.mjs +281 -114
- package/package.json +1 -1
- 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/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
|
@@ -161,18 +161,18 @@ export declare const BUILTIN_CONTENT_TYPE_SCHEMAS: {
|
|
|
161
161
|
readonly id: "summary";
|
|
162
162
|
readonly type: "textarea";
|
|
163
163
|
readonly label: "Short introduction";
|
|
164
|
-
readonly description: "
|
|
164
|
+
readonly description: "Shown in your listings and search results, and at the top of its page.";
|
|
165
165
|
readonly rows: 3;
|
|
166
166
|
}, {
|
|
167
167
|
readonly id: "image";
|
|
168
168
|
readonly type: "media";
|
|
169
169
|
readonly label: "Event image";
|
|
170
|
-
readonly description: "
|
|
170
|
+
readonly description: "At the top of its page and beside it in your listings.";
|
|
171
171
|
}, {
|
|
172
172
|
readonly id: "body";
|
|
173
173
|
readonly type: "richText";
|
|
174
|
-
readonly label: "
|
|
175
|
-
readonly description: "
|
|
174
|
+
readonly label: "Full description";
|
|
175
|
+
readonly description: "The main text on its page, under the introduction.";
|
|
176
176
|
}];
|
|
177
177
|
readonly routing: {
|
|
178
178
|
readonly enabled: true;
|
|
@@ -69,8 +69,6 @@ type EnsureRecord<T extends Record<string, unknown>> = T;
|
|
|
69
69
|
export type RoutableMetadataValues = EnsureRecord<{
|
|
70
70
|
draftTitle: string;
|
|
71
71
|
draftSlug: string;
|
|
72
|
-
draftStatus: string;
|
|
73
|
-
scheduledPublishAt: string | null;
|
|
74
72
|
draftMetaTitle: string | null;
|
|
75
73
|
draftMetaDescription: string | null;
|
|
76
74
|
ogImageId: string | null;
|
|
@@ -87,6 +85,17 @@ export declare function createMetadataStateFromSnapshot(snapshot: ContentEntrySn
|
|
|
87
85
|
values: RoutableMetadataValues | Record<string, never>;
|
|
88
86
|
baseline: RoutableMetadataValues | Record<string, never>;
|
|
89
87
|
};
|
|
88
|
+
/**
|
|
89
|
+
* The route's lifecycle fields as the editor reads them: from the entry snapshot, never
|
|
90
|
+
* from metadata values (issue 1553, FO2). Lifecycle operations (publish, schedule,
|
|
91
|
+
* cancel, discard) own them; forms get them read-only, e.g. slug auto-generation's
|
|
92
|
+
* `statusFieldId`. Non-routable content has none.
|
|
93
|
+
*/
|
|
94
|
+
export type RouteLifecycleContext = Readonly<{
|
|
95
|
+
draftStatus: string;
|
|
96
|
+
scheduledPublishAt: string | null;
|
|
97
|
+
}>;
|
|
98
|
+
export declare function routeLifecycleContext(snapshot: ContentEntrySnapshot): RouteLifecycleContext | null;
|
|
90
99
|
/**
|
|
91
100
|
* Extract published metadata values from a snapshot.
|
|
92
101
|
* Used to set the publishedBaseline for unpublished changes detection.
|
|
@@ -33,7 +33,7 @@ export type RouteMetadataPresentation = Readonly<{
|
|
|
33
33
|
manifest: RouteMetadataManifest;
|
|
34
34
|
typeKey: string | null;
|
|
35
35
|
}>;
|
|
36
|
-
export type RouteMetadataFieldId = "draftTitle" | "draftSlug" | "
|
|
36
|
+
export type RouteMetadataFieldId = "draftTitle" | "draftSlug" | "draftMetaTitle" | "draftMetaDescription" | "ogImageId";
|
|
37
37
|
type RouteMetadataTextField = {
|
|
38
38
|
id: "draftTitle" | "draftMetaTitle" | "draftMetaDescription" | "ogImageId";
|
|
39
39
|
type: "text";
|
|
@@ -54,39 +54,17 @@ type RouteMetadataSlugField = {
|
|
|
54
54
|
description: string;
|
|
55
55
|
required: true;
|
|
56
56
|
sourceFieldId?: "draftTitle";
|
|
57
|
+
/**
|
|
58
|
+
* Auto-generation runs only while this reads "draft". It isn't a metadata value: the
|
|
59
|
+
* form backend supplies it read-only from the entry snapshot (`routeLifecycleContext`).
|
|
60
|
+
*/
|
|
57
61
|
statusFieldId: "draftStatus";
|
|
58
62
|
maxLength: number;
|
|
59
63
|
ui: {
|
|
60
64
|
showSlugPreview: true;
|
|
61
65
|
};
|
|
62
66
|
};
|
|
63
|
-
type
|
|
64
|
-
id: "draftStatus";
|
|
65
|
-
type: "select";
|
|
66
|
-
label: string;
|
|
67
|
-
description: string;
|
|
68
|
-
required: true;
|
|
69
|
-
defaultValue: string;
|
|
70
|
-
options: Array<{
|
|
71
|
-
value: string;
|
|
72
|
-
label: string;
|
|
73
|
-
}>;
|
|
74
|
-
multiple: false;
|
|
75
|
-
};
|
|
76
|
-
type RouteMetadataDatetimeField = {
|
|
77
|
-
id: "scheduledPublishAt";
|
|
78
|
-
type: "datetime";
|
|
79
|
-
label: string;
|
|
80
|
-
description: string;
|
|
81
|
-
required: false;
|
|
82
|
-
ui: {
|
|
83
|
-
visibleWhen: {
|
|
84
|
-
field: "draftStatus";
|
|
85
|
-
equals: "scheduled";
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export type RouteMetadataField = RouteMetadataTextField | RouteMetadataSlugField | RouteMetadataSelectField | RouteMetadataDatetimeField;
|
|
67
|
+
export type RouteMetadataField = RouteMetadataTextField | RouteMetadataSlugField;
|
|
90
68
|
export type RouteMetadataManifest = {
|
|
91
69
|
name: string;
|
|
92
70
|
version: string;
|
|
@@ -97,22 +75,16 @@ export type RouteMetadataManifest = {
|
|
|
97
75
|
slots: [];
|
|
98
76
|
};
|
|
99
77
|
export declare const ROUTE_METADATA_MANIFEST: RouteMetadataManifest;
|
|
100
|
-
export declare const METADATA_WORKFLOW_FIELDS: {
|
|
101
|
-
readonly title: "draftTitle";
|
|
102
|
-
readonly slug: "draftSlug";
|
|
103
|
-
readonly status: "draftStatus";
|
|
104
|
-
readonly publishAt: "scheduledPublishAt";
|
|
105
|
-
};
|
|
106
78
|
export declare function pageRouteSlugFromEditorValue(value: string | null | undefined): PageRouteSlug;
|
|
107
79
|
export declare function pageRouteSlugToEditorValue(slug: PageRouteSlug): string;
|
|
108
80
|
export declare function pageRouteSlugToStoredValue(slug: PageRouteSlug): string | null;
|
|
109
81
|
export declare function isHomepagePageRouteSlug(slug: PageRouteSlug): boolean;
|
|
110
82
|
export declare function resolvePageRouteSlug(entry: ContentEntrySnapshot, currentSlug?: string | null): PageRouteSlug | null;
|
|
111
83
|
export declare const ROUTE_METADATA_MANAGED_FIELDS_BY_TYPE: {
|
|
112
|
-
readonly event: readonly ["draftTitle", "draftSlug"
|
|
113
|
-
readonly product: readonly ["draftTitle", "draftSlug"
|
|
114
|
-
readonly "product-category": readonly ["draftTitle", "draftSlug"
|
|
115
|
-
readonly "team-member": readonly ["draftTitle", "draftSlug"
|
|
84
|
+
readonly event: readonly ["draftTitle", "draftSlug"];
|
|
85
|
+
readonly product: readonly ["draftTitle", "draftSlug"];
|
|
86
|
+
readonly "product-category": readonly ["draftTitle", "draftSlug"];
|
|
87
|
+
readonly "team-member": readonly ["draftTitle", "draftSlug"];
|
|
116
88
|
};
|
|
117
89
|
export declare function getManagedRouteMetadataFieldIdsForType(typeKey: string | null | undefined): ReadonlyArray<RouteMetadataFieldId>;
|
|
118
90
|
export declare function isRouteMetadataFieldEditableForType(typeKey: string | null | undefined, fieldId: string): boolean;
|
|
@@ -154,7 +154,6 @@ export declare const DEFAULT_TEMPLATE_DEFINITIONS: {
|
|
|
154
154
|
readonly maxTickets: "5";
|
|
155
155
|
readonly showVenue: true;
|
|
156
156
|
readonly showCapacity: true;
|
|
157
|
-
readonly successMessage: "Thank you for registering! Check your email for confirmation details.";
|
|
158
157
|
readonly buttonText: "Complete Registration";
|
|
159
158
|
readonly buttonVariant: "primary";
|
|
160
159
|
};
|
|
@@ -74,7 +74,6 @@ export type ContentEntryDefinition<TEntry extends ContentEntrySnapshot, TValues
|
|
|
74
74
|
routing: RoutingHelpers;
|
|
75
75
|
hasRoute: boolean;
|
|
76
76
|
services: {
|
|
77
|
-
saveMetadata: (payload: TMetadataPayload) => Promise<TMetadataResponse>;
|
|
78
77
|
publish: (payload: TPublishPayload | undefined) => Promise<TEntry>;
|
|
79
78
|
discardDraft: () => Promise<TEntry>;
|
|
80
79
|
deleteEntry: () => Promise<void>;
|
|
@@ -1,5 +1,53 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ContentVersionId } from './branded';
|
|
2
|
+
/** A block version ID is meaningful only with its draft or published stage (wire shape). */
|
|
2
3
|
export type BlockContentIdentity = Readonly<{
|
|
3
4
|
draftContentId: string | null;
|
|
4
5
|
publishedContentId: string | null;
|
|
5
6
|
}>;
|
|
7
|
+
/** A published version paired with the content it authorises. */
|
|
8
|
+
export type PublishedBlockPlacement = Readonly<{
|
|
9
|
+
kind: 'published';
|
|
10
|
+
id: ContentVersionId;
|
|
11
|
+
content: Record<string, unknown>;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* A published pointer the server sent without its content, or with an id that
|
|
15
|
+
* isn't a content version id. It can't be cited as published.
|
|
16
|
+
*/
|
|
17
|
+
export type IncompleteBlockPlacement = Readonly<{
|
|
18
|
+
kind: 'incomplete';
|
|
19
|
+
id: string | null;
|
|
20
|
+
content: Record<string, unknown> | null;
|
|
21
|
+
}>;
|
|
22
|
+
/** What a read of a block's published version finds; `null` when it was never published. */
|
|
23
|
+
export type PublishedBlockPlacementRead = PublishedBlockPlacement | IncompleteBlockPlacement | null;
|
|
24
|
+
/** The one pairing of a published id with its content. */
|
|
25
|
+
export declare function readPublishedBlockPlacement(id: string | null | undefined, content: Record<string, unknown> | null | undefined): PublishedBlockPlacementRead;
|
|
26
|
+
/**
|
|
27
|
+
* The server's versions of one editor block. This is server-owned state: the
|
|
28
|
+
* editor keeps it outside undo history, so undo never restores a replaced id.
|
|
29
|
+
*/
|
|
30
|
+
export type EditorBlockVersions = Readonly<{
|
|
31
|
+
draftContentId: ContentVersionId | null;
|
|
32
|
+
publishedPlacement: PublishedBlockPlacementRead;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const NO_BLOCK_VERSIONS: EditorBlockVersions;
|
|
35
|
+
/** The one conversion from wire identity to editor identity. */
|
|
36
|
+
export declare function readEditorBlockVersions(wire: Partial<BlockContentIdentity> & Readonly<{
|
|
37
|
+
publishedContent?: Record<string, unknown> | null;
|
|
38
|
+
}>): EditorBlockVersions;
|
|
39
|
+
/** Editor identity from a render block, whose published placement is already paired. */
|
|
40
|
+
export declare function readEditorBlockVersionsFromPlacement(draftContentId: string | null | undefined, publishedPlacement: PublishedBlockPlacementRead): EditorBlockVersions;
|
|
41
|
+
/** The published version a block can cite, if it has a complete one. */
|
|
42
|
+
export declare function publishedVersionOf(versions: EditorBlockVersions | undefined): PublishedBlockPlacement | null;
|
|
43
|
+
/** The content version a block renders: its draft if it has one, else its published version. */
|
|
44
|
+
export declare function selectedContentVersionId(versions: EditorBlockVersions): ContentVersionId | null;
|
|
45
|
+
/** Published content the editor treats as its dirty-state baseline. */
|
|
46
|
+
export declare function publishedContentOf(versions: EditorBlockVersions | undefined): Record<string, unknown> | null;
|
|
47
|
+
export type SavedBlockContentVersion = Readonly<{
|
|
48
|
+
contentId: string;
|
|
49
|
+
stage: 'draft' | 'published';
|
|
50
|
+
data: unknown;
|
|
51
|
+
}>;
|
|
52
|
+
/** A block's versions after the server acknowledges one content save. */
|
|
53
|
+
export declare function applySavedBlockContentVersion(versions: EditorBlockVersions, saved: SavedBlockContentVersion): EditorBlockVersions;
|
|
@@ -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'>;
|
|
@@ -116,6 +118,10 @@ export type ContentBlockId = Brand<string, 'ContentBlockId'>;
|
|
|
116
118
|
export type ContentVersionId = Brand<string, 'ContentVersionId'>;
|
|
117
119
|
export type EntryContentHash = Brand<string, 'EntryContentHash'>;
|
|
118
120
|
export type StripeInvoiceId = Brand<string, 'StripeInvoiceId'>;
|
|
121
|
+
/** A platform (not Connect) Stripe customer id, `cus_…`. */
|
|
122
|
+
export type StripeCustomerId = Brand<string, 'StripeCustomerId'>;
|
|
123
|
+
/** A Stripe subscription id, `sub_…`. */
|
|
124
|
+
export type StripeSubscriptionId = Brand<string, 'StripeSubscriptionId'>;
|
|
119
125
|
export type NewsletterSubscriberId = Brand<string, 'NewsletterSubscriberId'>;
|
|
120
126
|
export type NavigationMenuId = Brand<string, 'NavigationMenuId'>;
|
|
121
127
|
export type NavigationItemId = Brand<string, 'NavigationItemId'>;
|
|
@@ -178,6 +184,8 @@ export declare const unsafeAsApiKeyId: (id: string) => ApiKeyId;
|
|
|
178
184
|
export declare const unsafeAsSiteRouteId: (id: string) => SiteRouteId;
|
|
179
185
|
export declare const unsafeAsPageId: (id: string) => PageId;
|
|
180
186
|
export declare const unsafeAsPageSurfaceId: (id: string) => PageSurfaceId;
|
|
187
|
+
export declare const unsafeAsEditLeaseToken: (id: string) => EditLeaseToken;
|
|
188
|
+
export declare const unsafeAsEditorClientId: (id: string) => EditorClientId;
|
|
181
189
|
export declare const unsafeAsOccurrenceId: (id: string) => OccurrenceId;
|
|
182
190
|
export declare const unsafeAsEventOfferingId: (id: string) => EventOfferingId;
|
|
183
191
|
export declare const unsafeAsEventSeriesId: (id: string) => EventSeriesId;
|
|
@@ -250,6 +258,8 @@ export declare const unsafeAsContentBlockId: (id: string) => ContentBlockId;
|
|
|
250
258
|
export declare const unsafeAsContentVersionId: (id: string) => ContentVersionId;
|
|
251
259
|
export declare const unsafeAsEntryContentHash: (value: string) => EntryContentHash;
|
|
252
260
|
export declare const unsafeAsStripeInvoiceId: (id: string) => StripeInvoiceId;
|
|
261
|
+
export declare const unsafeAsStripeCustomerId: (id: string) => StripeCustomerId;
|
|
262
|
+
export declare const unsafeAsStripeSubscriptionId: (id: string) => StripeSubscriptionId;
|
|
253
263
|
export declare const unsafeAsNewsletterSubscriberId: (id: string) => NewsletterSubscriberId;
|
|
254
264
|
export declare const unsafeAsNavigationMenuId: (id: string) => NavigationMenuId;
|
|
255
265
|
export declare const unsafeAsNavigationItemId: (id: string) => NavigationItemId;
|
|
@@ -286,6 +296,8 @@ export declare const parseApiKeyId: (value: unknown) => Result<ApiKeyId, Branded
|
|
|
286
296
|
export declare const parseSiteRouteId: (value: unknown) => Result<SiteRouteId, BrandedIdParseError>;
|
|
287
297
|
export declare const parsePageId: (value: unknown) => Result<PageId, BrandedIdParseError>;
|
|
288
298
|
export declare const parsePageSurfaceId: (value: unknown) => Result<PageSurfaceId, BrandedIdParseError>;
|
|
299
|
+
export declare const parseEditLeaseToken: (value: unknown) => Result<EditLeaseToken, BrandedIdParseError>;
|
|
300
|
+
export declare const parseEditorClientId: (value: unknown) => Result<EditorClientId, BrandedIdParseError>;
|
|
289
301
|
export declare const parseOccurrenceId: (value: unknown) => Result<OccurrenceId, BrandedIdParseError>;
|
|
290
302
|
export declare const parseEventOfferingId: (value: unknown) => Result<EventOfferingId, BrandedIdParseError>;
|
|
291
303
|
export declare const parseEventAttendeeTicketLineId: (value: unknown) => Result<EventAttendeeTicketLineId, 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,55 @@
|
|
|
1
|
+
import type { ContentEntryId, EditLeaseToken, EditorClientId, PageId, PageSurfaceId } from './branded';
|
|
2
|
+
export type EditLeaseScope = Readonly<{
|
|
3
|
+
nodeType: 'page';
|
|
4
|
+
nodeId: PageId;
|
|
5
|
+
}> | Readonly<{
|
|
6
|
+
nodeType: 'content_entry';
|
|
7
|
+
nodeId: ContentEntryId;
|
|
8
|
+
}> | Readonly<{
|
|
9
|
+
nodeType: 'page_surface';
|
|
10
|
+
nodeId: PageSurfaceId;
|
|
11
|
+
}>;
|
|
12
|
+
export type EditLeaseHolder = Readonly<{
|
|
13
|
+
kind: 'your-other-tab';
|
|
14
|
+
}> | Readonly<{
|
|
15
|
+
kind: 'another-user';
|
|
16
|
+
name: string | null;
|
|
17
|
+
}>;
|
|
18
|
+
export type EditLeaseView = Readonly<{
|
|
19
|
+
kind: 'free';
|
|
20
|
+
}> | Readonly<{
|
|
21
|
+
kind: 'mine';
|
|
22
|
+
expiresAt: string;
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
kind: 'held-elsewhere';
|
|
25
|
+
holder: EditLeaseHolder;
|
|
26
|
+
expiresAt: string;
|
|
27
|
+
}>;
|
|
28
|
+
export type EditLeaseAcquireResult = Readonly<{
|
|
29
|
+
kind: 'granted';
|
|
30
|
+
token: EditLeaseToken;
|
|
31
|
+
expiresAt: string;
|
|
32
|
+
}> | Extract<EditLeaseView, {
|
|
33
|
+
kind: 'held-elsewhere';
|
|
34
|
+
}>;
|
|
35
|
+
export type EditAuthority = Readonly<{
|
|
36
|
+
kind: 'edit-lease';
|
|
37
|
+
token: EditLeaseToken;
|
|
38
|
+
clientId: EditorClientId;
|
|
39
|
+
}> | Readonly<{
|
|
40
|
+
kind: 'exempt';
|
|
41
|
+
reason: 'team-member-profile' | 'sdk';
|
|
42
|
+
}>;
|
|
43
|
+
export type OwnerEditAuthority = EditAuthority | Readonly<{
|
|
44
|
+
kind: 'no-lease-headers';
|
|
45
|
+
}>;
|
|
46
|
+
export type EditLeaseTarget = Readonly<{
|
|
47
|
+
kind: 'leased';
|
|
48
|
+
scope: EditLeaseScope;
|
|
49
|
+
}> | Readonly<{
|
|
50
|
+
kind: 'unleased';
|
|
51
|
+
}>;
|
|
52
|
+
export declare function parseEditLeaseScope(input: Readonly<{
|
|
53
|
+
nodeType: EditLeaseScope['nodeType'];
|
|
54
|
+
nodeId: string;
|
|
55
|
+
}>): 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';
|
|
@@ -30,6 +32,8 @@ export { tryAsync } from './try-async';
|
|
|
30
32
|
export * from './narrow-result';
|
|
31
33
|
export * from './non-empty-array';
|
|
32
34
|
export * from './editor-state';
|
|
35
|
+
export * from './editor-value-sync';
|
|
36
|
+
export * from './edit-lease';
|
|
33
37
|
export * from './block-content-identity';
|
|
34
38
|
export * from './sensitive-collection';
|
|
35
39
|
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;
|