@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
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type EditorBlockValues, type EditorBlockVersions, type EditorValueRecord } from '../../../core/src/index';
|
|
2
|
+
import type { OwnWriteSince, RefreshPolicy } from '../sync/valueSync';
|
|
3
|
+
import { type DraftBlockRefresh, type EditorHistorySnapshot } from './editorSnapshot';
|
|
4
|
+
/**
|
|
5
|
+
* A server read of one value, applied as a `refreshed` sync event (issue 1553). Every path
|
|
6
|
+
* that sets a baseline without a save response goes through here: the RSC reconciliation
|
|
7
|
+
* hooks, block seeding, both grant reads and discard draft. Responses to this tab's own
|
|
8
|
+
* writes are rebased instead (`OwnWrite`).
|
|
9
|
+
*
|
|
10
|
+
* A metadata or content refresh without a `revision` keeps the baseline's own: publish and
|
|
11
|
+
* discard-draft responses don't always carry one, and wiping it would make the next save
|
|
12
|
+
* fail. `published`, when present, moves the published baseline too.
|
|
13
|
+
*/
|
|
14
|
+
export type ValueRefresh = Readonly<{
|
|
15
|
+
kind: 'metadata' | 'content';
|
|
16
|
+
values: EditorValueRecord | null;
|
|
17
|
+
revision?: string | null;
|
|
18
|
+
published?: EditorValueRecord | null;
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
kind: 'linked-entry';
|
|
21
|
+
entryId: string;
|
|
22
|
+
values: EditorValueRecord | null;
|
|
23
|
+
revision: string | null;
|
|
24
|
+
}> | Readonly<{
|
|
25
|
+
kind: 'block';
|
|
26
|
+
block: DraftBlockRefresh;
|
|
27
|
+
versions?: EditorBlockVersions;
|
|
28
|
+
}>;
|
|
29
|
+
/** A metadata or content refresh, as the value's own facade takes it. */
|
|
30
|
+
export type DocumentValueRefreshInput = Omit<Extract<ValueRefresh, {
|
|
31
|
+
kind: 'metadata' | 'content';
|
|
32
|
+
}>, 'kind'>;
|
|
33
|
+
/** `discarded` asks for the "edited in another tab" notice: a take-back threw local edits away. */
|
|
34
|
+
export type RefreshTransition = Readonly<{
|
|
35
|
+
snapshot: EditorHistorySnapshot;
|
|
36
|
+
discarded: boolean;
|
|
37
|
+
}>;
|
|
38
|
+
export declare function refreshValuesSnapshot(snapshot: EditorHistorySnapshot, refreshes: readonly ValueRefresh[], policy: RefreshPolicy): RefreshTransition;
|
|
39
|
+
/**
|
|
40
|
+
* What this tab's own write (publish, schedule, cancel, discard draft) returned for one
|
|
41
|
+
* document value. It's rebased rather than refreshed (`rebaseOnOwnWrite`): an edit typed
|
|
42
|
+
* during the round trip survives on top of the new baseline (rows P6, R1–R11, X1–X4).
|
|
43
|
+
* `since` is what the edits are measured from: the baseline when the operation started,
|
|
44
|
+
* or for discard what was displayed when the person confirmed. A missing `revision`
|
|
45
|
+
* keeps the baseline's own, as a refresh does.
|
|
46
|
+
*/
|
|
47
|
+
export type OwnWrite = DocumentOwnWrite | Readonly<{
|
|
48
|
+
kind: 'block';
|
|
49
|
+
block: DraftBlockRefresh;
|
|
50
|
+
since: OwnWriteSince<EditorBlockValues | null>;
|
|
51
|
+
}>;
|
|
52
|
+
type DocumentOwnWrite = Readonly<{
|
|
53
|
+
kind: 'metadata' | 'content';
|
|
54
|
+
values: EditorValueRecord | null;
|
|
55
|
+
revision?: string | null;
|
|
56
|
+
published?: EditorValueRecord | null;
|
|
57
|
+
since: OwnWriteSince<EditorValueRecord | null>;
|
|
58
|
+
}>;
|
|
59
|
+
export declare function ownWritesSnapshot(snapshot: EditorHistorySnapshot, writes: readonly OwnWrite[]): EditorHistorySnapshot;
|
|
60
|
+
/**
|
|
61
|
+
* What a successful publish tells the editor. Metadata is the route the publish wrote.
|
|
62
|
+
* Content is what it wrote (`written`), or `unchanged` when it wrote none, in which case
|
|
63
|
+
* the content baseline and revision stay and only its published baseline moves (WR5b).
|
|
64
|
+
*/
|
|
65
|
+
export type PublishSuccessRefresh = Readonly<{
|
|
66
|
+
metadata: Omit<DocumentOwnWrite, 'kind'> & Readonly<{
|
|
67
|
+
published: EditorValueRecord | null;
|
|
68
|
+
}>;
|
|
69
|
+
content: Readonly<{
|
|
70
|
+
published: EditorValueRecord | null;
|
|
71
|
+
write: Readonly<{
|
|
72
|
+
kind: 'written';
|
|
73
|
+
values: EditorValueRecord;
|
|
74
|
+
revision: string;
|
|
75
|
+
since: OwnWriteSince<EditorValueRecord | null>;
|
|
76
|
+
}> | Readonly<{
|
|
77
|
+
kind: 'unchanged';
|
|
78
|
+
}>;
|
|
79
|
+
}>;
|
|
80
|
+
}>;
|
|
81
|
+
export declare function publishSuccessSnapshot(snapshot: EditorHistorySnapshot, publish: PublishSuccessRefresh): EditorHistorySnapshot;
|
|
82
|
+
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type EditorBlockVersions } from '../../../core/src/index';
|
|
2
|
+
import { type EditorBlockCollectionOwner, type EditorBlockCollectionReadBaseline, unsafeAsEditorBlockId, unsafeAsEditorBlockValues, unsafeAsEditorContentValues, unsafeAsEditorEntryId, unsafeAsEditorMetadataValues, unsafeAsEditorPageId, unsafeAsEditorSiteId, type EditorBlockBaselineInput, type EditorBlockId, type EditorDraftBlockBaselineUpdateMetaInput, type EditorDraftBlockInitMetaInput, type EditorBlockValues, type EditorContentValues, type EditorEntryId, type EditorMetadataValues, type EditorPageId, type EditorPersistedBlock, type EditorSiteId, type EditorStructuralCommand, type EditorStructuralDraftSnapshot, type EditorValueRecord, type BaselineRevision, type SendId, type ValueSync } from '../../../core/src/index';
|
|
2
3
|
import { type LinkedContentEntryId, type LinkedContentTypeKey } from '../linkedEntries/domain';
|
|
4
|
+
import { type EditorValueSnapshot } from './editorValueSnapshot';
|
|
5
|
+
import { type OwnWriteSince, type RefreshPolicy, type ValueSyncEvent, type ValueSyncOutcome } from '../sync/valueSync';
|
|
6
|
+
export type { EditorValueSnapshot } from './editorValueSnapshot';
|
|
3
7
|
export { unsafeAsEditorBlockId, unsafeAsEditorBlockValues, unsafeAsEditorContentValues, unsafeAsEditorEntryId, unsafeAsEditorMetadataValues, unsafeAsEditorPageId, unsafeAsEditorSiteId, type EditorBlockId, type EditorBlockValues, type EditorContentValues, type EditorEntryId, type EditorMetadataValues, type EditorPageId, type EditorSiteId, };
|
|
4
8
|
export type EditorCommand = {
|
|
5
9
|
type: 'set-metadata-value';
|
|
@@ -52,13 +56,6 @@ type PersistRemoveEffect = Readonly<{
|
|
|
52
56
|
blockId: EditorBlockId;
|
|
53
57
|
}>;
|
|
54
58
|
export type EditorEffect = PersistReorderEffect | PersistInsertEffect | PersistRemoveEffect;
|
|
55
|
-
export type EditorValueSnapshot<TValue extends EditorValueRecord | null> = Readonly<{
|
|
56
|
-
version: number;
|
|
57
|
-
baseline: TValue;
|
|
58
|
-
current: TValue;
|
|
59
|
-
publishedBaseline: TValue;
|
|
60
|
-
syncState: EditorSyncState;
|
|
61
|
-
}>;
|
|
62
59
|
export type EditorValuePublicationState<TValue extends EditorValueRecord | null> = Readonly<{
|
|
63
60
|
kind: 'empty';
|
|
64
61
|
hasUnpublishedChanges: false;
|
|
@@ -81,27 +78,15 @@ export type EditorValuePublicationState<TValue extends EditorValueRecord | null>
|
|
|
81
78
|
hasUnpublishedChanges: true;
|
|
82
79
|
}>;
|
|
83
80
|
export declare function deriveEditorValuePublicationState<TValue extends EditorValueRecord | null>(snapshot: EditorValueSnapshot<TValue>): EditorValuePublicationState<TValue>;
|
|
84
|
-
export type EditorPublishSuccessTransition = Readonly<{
|
|
85
|
-
metadata: Readonly<{
|
|
86
|
-
baseline: EditorMetadataValues | null;
|
|
87
|
-
current: EditorMetadataValues | null;
|
|
88
|
-
published: EditorMetadataValues | null;
|
|
89
|
-
}>;
|
|
90
|
-
content: Readonly<{
|
|
91
|
-
published: EditorContentValues | null;
|
|
92
|
-
versionAtPublishStart: number;
|
|
93
|
-
}>;
|
|
94
|
-
blockPublishedBaselines: readonly BlockPublishedBaselineInput[] | null;
|
|
95
|
-
}>;
|
|
96
81
|
type EditorMetadataSnapshot = EditorValueSnapshot<EditorMetadataValues | null>;
|
|
97
82
|
type EditorContentSnapshot = EditorValueSnapshot<EditorContentValues | null>;
|
|
83
|
+
/** The linked entry's baseline revision (its optimistic hash) lives in `sync`. */
|
|
98
84
|
export type EditorLinkedEntryMeta = Readonly<{
|
|
99
85
|
entryId: LinkedContentEntryId;
|
|
100
86
|
contentTypeKey: LinkedContentTypeKey;
|
|
101
87
|
contentTypeLabel: string;
|
|
102
88
|
title: string;
|
|
103
89
|
titleField: string | null;
|
|
104
|
-
optimisticHash: string | null;
|
|
105
90
|
fields: readonly EditorValueRecord[];
|
|
106
91
|
}>;
|
|
107
92
|
export type EditorLinkedEntrySnapshot = EditorValueSnapshot<EditorContentValues | null> & Readonly<{
|
|
@@ -111,31 +96,26 @@ export type EditorBlockMeta = Readonly<{
|
|
|
111
96
|
kind: string;
|
|
112
97
|
purpose: string | null;
|
|
113
98
|
orderIndex: number | null;
|
|
114
|
-
publishedContent: EditorBlockValues | null;
|
|
115
|
-
optimisticHash: string | null;
|
|
116
99
|
}>;
|
|
117
100
|
export type EditorDraftSnapshot = EditorStructuralDraftSnapshot;
|
|
118
101
|
export type DraftBlockInitMetaInput = EditorDraftBlockInitMetaInput;
|
|
119
102
|
export type DraftBlockBaselineUpdateMetaInput = EditorDraftBlockBaselineUpdateMetaInput;
|
|
120
103
|
export type DraftBlockBaselineInput = EditorBlockBaselineInput;
|
|
121
|
-
export type
|
|
122
|
-
export type EditorBlockItem = Partial<BlockContentIdentity> & Readonly<{
|
|
104
|
+
export type EditorBlockItem = Readonly<{
|
|
123
105
|
id?: string | null;
|
|
124
106
|
kind: string;
|
|
125
107
|
content?: EditorValueRecord | null;
|
|
126
108
|
orderIndex?: number | null;
|
|
127
109
|
draftContent?: EditorValueRecord | null;
|
|
128
|
-
publishedContent?: EditorValueRecord | null;
|
|
129
110
|
bindings?: EditorValueRecord | null;
|
|
130
111
|
purpose?: string | null;
|
|
131
112
|
optimisticHash?: string | null;
|
|
132
113
|
}>;
|
|
133
|
-
type NormalizedEditorBlockBase =
|
|
114
|
+
type NormalizedEditorBlockBase = Readonly<{
|
|
134
115
|
kind: string;
|
|
135
116
|
content: EditorBlockValues | null;
|
|
136
117
|
orderIndex: number | null;
|
|
137
118
|
draftContent: EditorBlockValues | null;
|
|
138
|
-
publishedContent: EditorBlockValues | null;
|
|
139
119
|
bindings: EditorBlockValues | null;
|
|
140
120
|
purpose: string | null;
|
|
141
121
|
optimisticHash: string | null;
|
|
@@ -153,10 +133,30 @@ export type EditorHistorySnapshot = Readonly<{
|
|
|
153
133
|
* Structural/history operations and baseline acknowledgements keep this list in sync,
|
|
154
134
|
* while draft-only validation/edit metadata continues to live in `drafts`.
|
|
155
135
|
*/
|
|
136
|
+
blockCollectionOwner: EditorBlockCollectionOwner | null;
|
|
137
|
+
collectionReadBaselines: Readonly<Record<string, EditorBlockCollectionReadBaseline>>;
|
|
156
138
|
blockList: readonly NormalizedEditorBlockItem[];
|
|
157
139
|
drafts: Readonly<Record<EditorBlockId, EditorDraftSnapshot>>;
|
|
158
140
|
linkedEntries: Readonly<Record<string, EditorLinkedEntrySnapshot>>;
|
|
159
141
|
}>;
|
|
142
|
+
/** Which value a sync event applies to. A linked entry that is the document itself routes to content. */
|
|
143
|
+
export type EditorValueKey = Readonly<{
|
|
144
|
+
kind: 'metadata';
|
|
145
|
+
}> | Readonly<{
|
|
146
|
+
kind: 'content';
|
|
147
|
+
}> | Readonly<{
|
|
148
|
+
kind: 'block';
|
|
149
|
+
blockId: EditorBlockId;
|
|
150
|
+
}> | Readonly<{
|
|
151
|
+
kind: 'linked-entry';
|
|
152
|
+
entryId: string;
|
|
153
|
+
}>;
|
|
154
|
+
/** Events arrive unbranded; each family brands (and clones) the values it stores. */
|
|
155
|
+
export type EditorValueSyncEvent = ValueSyncEvent<EditorValueRecord | null>;
|
|
156
|
+
export type EditorValueTransition = Readonly<{
|
|
157
|
+
snapshot: EditorHistorySnapshot;
|
|
158
|
+
outcome: ValueSyncOutcome;
|
|
159
|
+
}>;
|
|
160
160
|
export declare function requirePersistedEditorBlock(block: EditorBlockItem | NormalizedEditorBlockItem): PersistedEditorBlockItem;
|
|
161
161
|
export declare function createEditorDraftSnapshotFromBlock(block: PersistedEditorBlockItem): EditorDraftSnapshot;
|
|
162
162
|
export declare function createEditorHistorySnapshot(): EditorHistorySnapshot;
|
|
@@ -171,78 +171,24 @@ export type EditorUserOperation = {
|
|
|
171
171
|
type: 'user-command';
|
|
172
172
|
command: EditorCommand;
|
|
173
173
|
};
|
|
174
|
+
/**
|
|
175
|
+
* History-free operations. Save requests don't appear here: the store applies their
|
|
176
|
+
* sync events (`send-started`, `send-succeeded`, `send-failed`) through `applyValueEvent`.
|
|
177
|
+
*/
|
|
174
178
|
export type EditorSystemOperation = {
|
|
175
|
-
type: 'hydrate-metadata';
|
|
176
|
-
baseline: EditorMetadataValues | null;
|
|
177
|
-
current?: EditorMetadataValues | null;
|
|
178
|
-
published?: EditorMetadataValues | null;
|
|
179
|
-
} | {
|
|
180
|
-
type: 'hydrate-content';
|
|
181
|
-
baseline: EditorContentValues | null;
|
|
182
|
-
current?: EditorContentValues | null;
|
|
183
|
-
published?: EditorContentValues | null;
|
|
184
|
-
} | {
|
|
185
179
|
type: 'set-metadata-published-baseline';
|
|
186
180
|
published: EditorMetadataValues | null;
|
|
187
181
|
} | {
|
|
188
182
|
type: 'set-content-published-baseline';
|
|
189
183
|
published: EditorContentValues | null;
|
|
190
|
-
} | {
|
|
191
|
-
type: 'apply-publish-success';
|
|
192
|
-
transition: EditorPublishSuccessTransition;
|
|
193
|
-
} | {
|
|
194
|
-
type: 'autosave-metadata-succeeded';
|
|
195
|
-
savedValues: EditorMetadataValues | null;
|
|
196
|
-
acknowledgedVersion: number;
|
|
197
|
-
} | {
|
|
198
|
-
type: 'autosave-content-succeeded';
|
|
199
|
-
savedValues: EditorContentValues | null;
|
|
200
|
-
acknowledgedVersion: number;
|
|
201
|
-
} | {
|
|
202
|
-
type: 'autosave-metadata-failed';
|
|
203
|
-
message?: string;
|
|
204
|
-
} | {
|
|
205
|
-
type: 'autosave-content-failed';
|
|
206
|
-
message?: string;
|
|
207
|
-
} | {
|
|
208
|
-
type: 'clear-metadata-error';
|
|
209
|
-
} | {
|
|
210
|
-
type: 'clear-content-error';
|
|
211
184
|
} | {
|
|
212
185
|
type: 'init-new-draft-block';
|
|
213
186
|
blockId: EditorBlockId;
|
|
214
187
|
baseline: DraftBlockBaselineInput;
|
|
215
188
|
meta: DraftBlockInitMetaInput;
|
|
216
|
-
} | {
|
|
217
|
-
type: 'update-draft-block-baseline';
|
|
218
|
-
blockId: EditorBlockId;
|
|
219
|
-
baseline: DraftBlockBaselineInput;
|
|
220
|
-
meta?: DraftBlockBaselineUpdateMetaInput;
|
|
221
189
|
} | {
|
|
222
190
|
type: 'remove-draft-block';
|
|
223
191
|
blockId: EditorBlockId;
|
|
224
|
-
} | {
|
|
225
|
-
type: 'set-draft-published-baselines';
|
|
226
|
-
blocks: readonly BlockPublishedBaselineInput[];
|
|
227
|
-
} | {
|
|
228
|
-
type: 'autosave-draft-succeeded';
|
|
229
|
-
blockId: EditorBlockId;
|
|
230
|
-
savedValues: EditorBlockValues | null;
|
|
231
|
-
acknowledgedVersion: number;
|
|
232
|
-
optimisticHash: string | null;
|
|
233
|
-
} | {
|
|
234
|
-
type: 'autosave-draft-failed';
|
|
235
|
-
blockId: EditorBlockId;
|
|
236
|
-
message?: string;
|
|
237
|
-
} | {
|
|
238
|
-
type: 'clear-draft-error';
|
|
239
|
-
blockId: EditorBlockId;
|
|
240
|
-
} | {
|
|
241
|
-
type: 'set-draft-pending';
|
|
242
|
-
blockId: EditorBlockId;
|
|
243
|
-
} | {
|
|
244
|
-
type: 'clear-draft-pending';
|
|
245
|
-
blockId: EditorBlockId;
|
|
246
192
|
} | {
|
|
247
193
|
type: 'hydrate-linked-entry';
|
|
248
194
|
entryId: string;
|
|
@@ -253,23 +199,14 @@ export type EditorSystemOperation = {
|
|
|
253
199
|
optimisticHash?: string | null;
|
|
254
200
|
fields: readonly EditorValueRecord[];
|
|
255
201
|
baseline: EditorContentValues | null;
|
|
256
|
-
current?: EditorContentValues | null;
|
|
257
|
-
} | {
|
|
258
|
-
type: 'discard-linked-entry';
|
|
259
|
-
entryId: string;
|
|
260
202
|
} | {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
optimisticHash?: string | null;
|
|
203
|
+
/** An `edited` event outside history: a preview runtime showing values it drives. */
|
|
204
|
+
type: 'edit-without-history';
|
|
205
|
+
key: EditorValueKey;
|
|
206
|
+
values: EditorValueRecord | null;
|
|
266
207
|
} | {
|
|
267
|
-
type: '
|
|
268
|
-
|
|
269
|
-
message?: string;
|
|
270
|
-
} | {
|
|
271
|
-
type: 'clear-linked-entry-error';
|
|
272
|
-
entryId: string;
|
|
208
|
+
type: 'discard-local-edits';
|
|
209
|
+
contentOwnerEntryId?: string;
|
|
273
210
|
} | {
|
|
274
211
|
type: 'replace-block-list';
|
|
275
212
|
next: readonly EditorBlockItem[];
|
|
@@ -279,36 +216,73 @@ export declare function applyEditorCommand(snapshot: EditorHistorySnapshot, comm
|
|
|
279
216
|
export declare function applyUserOperation(snapshot: EditorHistorySnapshot, operation: EditorUserOperation): EditorHistorySnapshot;
|
|
280
217
|
export declare function applySystemOperation(snapshot: EditorHistorySnapshot, operation: EditorSystemOperation): EditorHistorySnapshot;
|
|
281
218
|
export declare function applyEditorOperation(snapshot: EditorHistorySnapshot, operation: EditorOperation): EditorHistorySnapshot;
|
|
282
|
-
|
|
283
|
-
export declare function
|
|
219
|
+
/** The sync state of one value, or `undefined` when that block or linked entry isn't loaded. */
|
|
220
|
+
export declare function valueSyncAt(snapshot: EditorHistorySnapshot, key: EditorValueKey): ValueSync<EditorValueRecord | null> | undefined;
|
|
221
|
+
/** Applies one sync event to one value; the single path every family's transitions take. */
|
|
222
|
+
export declare function applyValueEvent(snapshot: EditorHistorySnapshot, key: EditorValueKey, event: EditorValueSyncEvent): EditorValueTransition;
|
|
223
|
+
/** What one started request carries: the values sent and the revision they were based on. */
|
|
224
|
+
export type StartedSend = Readonly<{
|
|
225
|
+
key: EditorValueKey;
|
|
226
|
+
id: SendId;
|
|
227
|
+
values: EditorValueRecord | null;
|
|
228
|
+
basis: BaselineRevision;
|
|
229
|
+
}>;
|
|
230
|
+
export declare function startedSendAt(snapshot: EditorHistorySnapshot, key: EditorValueKey, id: SendId): StartedSend | null;
|
|
231
|
+
export declare function aggregateSyncState(snapshot: EditorHistorySnapshot): 'baseline' | 'pending' | 'failed';
|
|
284
232
|
export declare function setMetadataPublishedBaseline(snapshot: EditorHistorySnapshot, published: EditorMetadataValues | null): EditorHistorySnapshot;
|
|
285
233
|
export declare function setContentPublishedBaseline(snapshot: EditorHistorySnapshot, published: EditorContentValues | null): EditorHistorySnapshot;
|
|
286
|
-
export declare function applyPublishSuccessTransition(snapshot: EditorHistorySnapshot, transition: EditorPublishSuccessTransition): EditorHistorySnapshot;
|
|
287
|
-
export declare function autosaveMetadataSucceeded(snapshot: EditorHistorySnapshot, savedValues: EditorMetadataValues | null, acknowledgedVersion: number): EditorHistorySnapshot;
|
|
288
|
-
export declare function autosaveContentSucceeded(snapshot: EditorHistorySnapshot, savedValues: EditorContentValues | null, acknowledgedVersion: number): EditorHistorySnapshot;
|
|
289
|
-
export declare function autosaveMetadataFailed(snapshot: EditorHistorySnapshot, message?: string): EditorHistorySnapshot;
|
|
290
|
-
export declare function autosaveContentFailed(snapshot: EditorHistorySnapshot, message?: string): EditorHistorySnapshot;
|
|
291
|
-
export declare function clearMetadataError(snapshot: EditorHistorySnapshot): EditorHistorySnapshot;
|
|
292
|
-
export declare function clearContentError(snapshot: EditorHistorySnapshot): EditorHistorySnapshot;
|
|
293
234
|
export declare function getCurrentValues<TValue extends EditorValueRecord | null>(snapshot: EditorValueSnapshot<TValue>): TValue;
|
|
294
|
-
|
|
295
|
-
|
|
235
|
+
/**
|
|
236
|
+
* How a server block value arrives (issue 1553): a read is a refresh under its policy;
|
|
237
|
+
* a response to this tab's own write (discard draft's block result) is rebased against
|
|
238
|
+
* what the person's edits are measured from.
|
|
239
|
+
*/
|
|
240
|
+
export type DraftBlockArrival = Readonly<{
|
|
241
|
+
kind: 'refreshed';
|
|
242
|
+
policy: RefreshPolicy;
|
|
243
|
+
}> | Readonly<{
|
|
244
|
+
kind: 'own-write';
|
|
245
|
+
since: OwnWriteSince<EditorBlockValues | null>;
|
|
246
|
+
}>;
|
|
296
247
|
export declare function initNewDraftBlock(snapshot: EditorHistorySnapshot, blockId: EditorBlockId, baseline: DraftBlockBaselineInput, meta: DraftBlockInitMetaInput): EditorHistorySnapshot;
|
|
297
|
-
|
|
248
|
+
/** What a server block refresh carries; the shape of editor-blocks' baseline seed. */
|
|
249
|
+
export type DraftBlockRefresh = Readonly<{
|
|
250
|
+
blockId: EditorBlockId;
|
|
251
|
+
baseline: DraftBlockBaselineInput;
|
|
252
|
+
initMeta?: DraftBlockInitMetaInput;
|
|
253
|
+
refreshMeta?: DraftBlockBaselineUpdateMetaInput;
|
|
254
|
+
}>;
|
|
255
|
+
/**
|
|
256
|
+
* Refreshes one block from the server: an existing draft moves under the policy, a
|
|
257
|
+
* missing one is created pristine (when the refresh says how to create it).
|
|
258
|
+
*/
|
|
259
|
+
export declare function refreshDraftBlock(snapshot: EditorHistorySnapshot, refresh: DraftBlockRefresh, arrival: DraftBlockArrival): EditorValueTransition;
|
|
298
260
|
export declare function removeDraftBlock(snapshot: EditorHistorySnapshot, blockId: EditorBlockId): EditorHistorySnapshot;
|
|
299
|
-
|
|
300
|
-
export declare function autosaveDraftSucceeded(snapshot: EditorHistorySnapshot, blockId: EditorBlockId, savedValues: EditorBlockValues | null, acknowledgedVersion: number, optimisticHash: string | null): EditorHistorySnapshot;
|
|
301
|
-
export declare function autosaveDraftFailed(snapshot: EditorHistorySnapshot, blockId: EditorBlockId, message?: string): EditorHistorySnapshot;
|
|
302
|
-
export declare function clearDraftError(snapshot: EditorHistorySnapshot, blockId: EditorBlockId): EditorHistorySnapshot;
|
|
303
|
-
export declare function setDraftPending(snapshot: EditorHistorySnapshot, blockId: EditorBlockId): EditorHistorySnapshot;
|
|
304
|
-
export declare function clearDraftPending(snapshot: EditorHistorySnapshot, blockId: EditorBlockId): EditorHistorySnapshot;
|
|
305
|
-
export declare function hydrateLinkedEntrySnapshot(snapshot: EditorHistorySnapshot, input: Extract<EditorSystemOperation, {
|
|
261
|
+
type LinkedEntryHydration = Extract<EditorSystemOperation, {
|
|
306
262
|
type: 'hydrate-linked-entry';
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
263
|
+
}>;
|
|
264
|
+
/**
|
|
265
|
+
* Opening a linked entry from the rendered page is an ordinary keep-local refresh of its
|
|
266
|
+
* record. A render without a revision keeps the record's own rather than wiping it.
|
|
267
|
+
*/
|
|
268
|
+
export declare function hydrateLinkedEntrySnapshot(snapshot: EditorHistorySnapshot, input: LinkedEntryHydration): EditorHistorySnapshot;
|
|
269
|
+
/**
|
|
270
|
+
* Throw away every unsaved local edit, synchronously and locally: each value is
|
|
271
|
+
* `discarded`, so it shows its baseline and any request still outstanding becomes
|
|
272
|
+
* abandoned (issue 1553, D1–D3). Linked entries keep their record (D2); the document's
|
|
273
|
+
* own entry is routed through content. Nothing is read from the server, so it can't
|
|
274
|
+
* fail; newer server values arrive by the usual paths.
|
|
275
|
+
*/
|
|
276
|
+
export declare function discardLocalEditsSnapshot(snapshot: EditorHistorySnapshot, contentOwnerEntryId?: string): EditorHistorySnapshot;
|
|
277
|
+
/** The linked entries whose local edits a discard would throw away. */
|
|
278
|
+
export declare function editedLinkedEntryIds(snapshot: EditorHistorySnapshot): readonly string[];
|
|
279
|
+
/**
|
|
280
|
+
* Undo and redo restore what the person sees, never sync state (issue 1553, D4).
|
|
281
|
+
* Displayed values and structure come from the target; baselines, revisions, requests
|
|
282
|
+
* and published baselines come from the present. A block record brought back by
|
|
283
|
+
* structure has no request (U3); other records missing from the target keep the present's.
|
|
284
|
+
*/
|
|
285
|
+
export declare function restoreDisplay(present: EditorHistorySnapshot, target: EditorHistorySnapshot): EditorHistorySnapshot;
|
|
312
286
|
export declare function replaceEditorBlockList(snapshot: EditorHistorySnapshot, blockList: readonly EditorBlockItem[]): EditorHistorySnapshot;
|
|
313
287
|
export declare function getDraftSnapshot(snapshot: EditorHistorySnapshot, blockId: string): EditorDraftSnapshot | null;
|
|
314
288
|
export declare function inspectDrafts(snapshot: EditorHistorySnapshot): EditorDraftSnapshot[];
|
|
@@ -320,5 +294,6 @@ export type EditorDraftUnpublishedBlockChange = Readonly<{
|
|
|
320
294
|
currentContent: EditorBlockValues | null;
|
|
321
295
|
publishedContent: EditorBlockValues | null;
|
|
322
296
|
}>;
|
|
323
|
-
export declare function
|
|
324
|
-
export declare function
|
|
297
|
+
export declare function blockPublicationState(draft: EditorDraftSnapshot, versions: EditorBlockVersions): EditorValuePublicationState<EditorBlockValues | null>;
|
|
298
|
+
export declare function getFirstUnpublishedDraftChange(snapshot: EditorHistorySnapshot, versionsFor: (blockId: EditorBlockId) => EditorBlockVersions): EditorDraftUnpublishedBlockChange | null;
|
|
299
|
+
export declare function hasUnpublishedDraftChanges(snapshot: EditorHistorySnapshot, versionsFor: (blockId: EditorBlockId) => EditorBlockVersions): boolean;
|
|
@@ -87,7 +87,7 @@ export declare function confirmStagedSession<TSnapshot, THistoryEntry, TTargetKe
|
|
|
87
87
|
export declare function rejectStagedSession<TSnapshot, THistoryEntry, TTargetKey extends string = string>(state: EditorStagedSessionState<TSnapshot, THistoryEntry, TTargetKey>, failure: EditorTransactionFailure): EditorStagedSessionState<TSnapshot, THistoryEntry, TTargetKey>;
|
|
88
88
|
export declare function cancelStagedSession<TSnapshot, THistoryEntry, TTargetKey extends string = string>(state: EditorStagedSessionState<TSnapshot, THistoryEntry, TTargetKey>): EditorStagedSessionState<TSnapshot, THistoryEntry, TTargetKey>;
|
|
89
89
|
export declare function enqueueTransaction<TAction, THistoryEntry, TTargetKey extends string = string>(state: EditorTransactionQueueState<TAction, THistoryEntry, TTargetKey>, transaction: EditorTransaction<TAction, THistoryEntry, TTargetKey>): EditorTransactionQueueState<TAction, THistoryEntry, TTargetKey>;
|
|
90
|
-
export declare function beginAutosaveBatch<TAction, THistoryEntry, TTargetKey extends string = string>(state: EditorTransactionQueueState<TAction, THistoryEntry, TTargetKey>): EditorTransactionQueueState<TAction, THistoryEntry, TTargetKey>;
|
|
90
|
+
export declare function beginAutosaveBatch<TAction, THistoryEntry, TTargetKey extends string = string>(state: EditorTransactionQueueState<TAction, THistoryEntry, TTargetKey>, captured?: EditorSaveBatch<TAction, THistoryEntry, TTargetKey>): EditorTransactionQueueState<TAction, THistoryEntry, TTargetKey>;
|
|
91
91
|
export declare function confirmAutosaveBatch<TAction, THistoryEntry, TTargetKey extends string = string>(state: EditorTransactionQueueState<TAction, THistoryEntry, TTargetKey>): EditorTransactionQueueState<TAction, THistoryEntry, TTargetKey>;
|
|
92
92
|
export declare function rejectAutosaveBatch<TAction, THistoryEntry, TTargetKey extends string = string>(state: EditorTransactionQueueState<TAction, THistoryEntry, TTargetKey>, failure: EditorTransactionFailure): EditorTransactionQueueState<TAction, THistoryEntry, TTargetKey>;
|
|
93
93
|
export declare function coalesceQueuedTransactions<TAction, THistoryEntry, TTargetKey extends string = string>(queue: readonly EditorTransaction<TAction, THistoryEntry, TTargetKey>[], transaction: EditorTransaction<TAction, THistoryEntry, TTargetKey>): readonly EditorTransaction<TAction, THistoryEntry, TTargetKey>[];
|