@riverbankcms/sdk 0.146.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 +28 -0
- package/dist/{PreviewEditorSidebar-kg2r2Fyi.mjs → PreviewEditorSidebar-DvEPG3Z2.mjs} +249 -172
- package/dist/{PreviewEditorUI-sWMLp5dT.mjs → PreviewEditorUI-D6eb6fkx.mjs} +68 -60
- package/dist/{PreviewQueryProvider-Cg51xq1w.mjs → PreviewQueryProvider-5znTyJuz.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-h2ti3Hch.mjs → SdkPreviewModeRuntime-DJ6utQ_R.mjs} +1180 -475
- package/dist/{SiteChromeCustomizeContext-DEACFH9m.mjs → SiteChromeCustomizeContext-CFJYh6vo.mjs} +199078 -193767
- package/dist/_dts/ai/src/contracts/proposals.d.ts +198 -33
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +18 -3
- package/dist/_dts/api/src/accessAdmin.d.ts +0 -4
- package/dist/_dts/api/src/accountApi.d.ts +6 -6
- 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 +16 -2
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +4 -13
- package/dist/_dts/api/src/bookingOperations.d.ts +6 -48
- package/dist/_dts/api/src/bookingPeople.d.ts +92 -0
- package/dist/_dts/api/src/bookingPeopleEndpointDefinitions.d.ts +38 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +12 -49
- package/dist/_dts/api/src/bookingSettingsSections.d.ts +1 -1
- package/dist/_dts/api/src/bookings.d.ts +8 -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 +725 -607
- package/dist/_dts/api/src/eventEmailTemplates.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +48 -8
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +1 -9
- package/dist/_dts/api/src/eventPageWords.d.ts +7 -12
- package/dist/_dts/api/src/footerSettings.d.ts +6 -6
- package/dist/_dts/api/src/index.d.ts +8 -6
- package/dist/_dts/api/src/indexCoreTypes.d.ts +2 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +1 -6
- package/dist/_dts/api/src/mailingListIntegration.d.ts +6 -0
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +1 -1
- package/dist/_dts/api/src/navigation.d.ts +5 -5
- package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +15 -0
- package/dist/_dts/api/src/occurrenceScheduling.d.ts +19 -0
- 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 +50 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +7 -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 +15 -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/sdkCourseBooking.d.ts +4 -4
- 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/siteLifecycleEndpoints.d.ts +61 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +19 -25
- package/dist/_dts/api/src/siteMembers.d.ts +10 -10
- package/dist/_dts/api/src/siteOnboarding.d.ts +16 -14
- 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/PageRenderer.d.ts +3 -4
- package/dist/_dts/blocks/src/client/events.d.ts +3 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +24 -4
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +18 -9
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +4 -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/blocks/newsletter-signup.d.ts +4 -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 +6 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +18 -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 +36 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +18 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -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 +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +28 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-choice.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-state.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.reserved-fields.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +17 -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 +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-success.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +4 -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/AttendeeDetailsStep.d.ts +3 -0
- 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 +7 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +5 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +18 -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/newsletter-form.block-submission.d.ts +2 -4
- 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/resolver.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingMailingListNote.d.ts +6 -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/mailingListSignupCopy.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/shared/types.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/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -2
- package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +1 -3
- 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 +5 -1
- package/dist/_dts/core/src/mailing-list-runtime.d.ts +15 -0
- package/dist/_dts/core/src/mailing-list-setup.d.ts +2 -0
- package/dist/_dts/core/src/mailing-list-submission.d.ts +6 -0
- package/dist/_dts/core/src/navigation-portal-labels.d.ts +9 -0
- package/dist/_dts/core/src/participants.d.ts +0 -38
- package/dist/_dts/core/src/uuid.d.ts +7 -5
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +261 -175
- 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/actionPresentation.d.ts +1 -0
- 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/EditablePageRenderer.d.ts +7 -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 +10 -6
- 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 +2 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -2
- 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/buttons/effects/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/footer/effectiveNavLinkStyle.d.ts +13 -0
- package/dist/_dts/theme-core/src/footer/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/effectiveNavLinkStyle.d.ts +17 -0
- package/dist/_dts/theme-core/src/header/generateHeaderLogoStyles.d.ts +15 -0
- package/dist/_dts/theme-core/src/header/generateHeaderNavLinkStyles.d.ts +4 -0
- package/dist/_dts/theme-core/src/header/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/header/legacyNavLinkStyle.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/openingForegroundProjection.d.ts +7 -0
- package/dist/_dts/theme-core/src/header/rootPaint.d.ts +4 -0
- package/dist/_dts/theme-core/src/navigation/effectPolicy.d.ts +38 -0
- package/dist/_dts/theme-core/src/navigation/generateNavLinkCSS.d.ts +4 -0
- package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/surfaces/foregroundContract.d.ts +7 -0
- package/dist/_dts/theme-core/src/surfaces/foregroundInteraction.d.ts +29 -22
- package/dist/_dts/theme-core/src/surfaces/foregroundRoles.d.ts +10 -2
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +9 -0
- package/dist/_dts/theme-core/src/utils/cssDeclarations.d.ts +2 -0
- package/dist/_dts/ui/src/badge.d.ts +2 -1
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/combobox-keys.d.ts +23 -0
- package/dist/_dts/ui/src/combobox-rows.d.ts +34 -0
- package/dist/_dts/ui/src/combobox.d.ts +26 -1
- package/dist/_dts/ui/src/date-picker.d.ts +5 -8
- package/dist/_dts/ui/src/editor-item-card.d.ts +1 -0
- package/dist/_dts/ui/src/field-trigger.d.ts +39 -0
- package/dist/_dts/ui/src/fieldControl.d.ts +27 -0
- package/dist/_dts/ui/src/index.d.ts +4 -1
- package/dist/_dts/ui/src/native-select.d.ts +8 -0
- package/dist/_dts/ui/src/popover.d.ts +7 -1
- package/dist/_dts/ui/src/segmented-control.d.ts +4 -0
- package/dist/_dts/ui/src/surface.d.ts +1 -1
- package/dist/client/{BookingConsentAgreement-BQKL045f.mjs → BookingMailingListNote-CzRt2dF_.mjs} +110 -97
- package/dist/client/{CheckboxChoice--W2n6yKs.mjs → CheckboxChoice-B33MqoUo.mjs} +1 -1
- package/dist/client/DemoBookingPortalAccess-mxqwap3f.mjs +344 -0
- package/dist/client/{EventCombined.client-BdRjVbhH.mjs → EventCombined.client-CDb11igO.mjs} +7 -7
- package/dist/client/{EventListing.client-DBxC6xOU.mjs → EventListing.client-EgYhzKPa.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-mHEJKrTs.mjs → LeafletStaticMap-gtmtaA2b.mjs} +1 -1
- package/dist/client/{scrollToBlock-BNgaEUpo.mjs → TerminalPanel-DvNUP5ot.mjs} +77 -77
- package/dist/client/{ThemedButton-CE5KYT6z.mjs → ThemedButton-C7CeUJjW.mjs} +2 -2
- package/dist/client/{accordion-BEQNSptH.mjs → accordion-kjvt49rA.mjs} +1 -1
- package/dist/client/{bookingForm-AMr-s5vw.mjs → bookingForm-pbRZordh.mjs} +411 -141
- package/dist/client/bookings.mjs +966 -396
- package/dist/client/{carousel-Bbt_QgJy.mjs → carousel-f4Zbmicv.mjs} +2 -2
- package/dist/client/{carousel.client-jahpU9Vz.mjs → carousel.client-A2lG-9od.mjs} +1 -1
- package/dist/client/{cart-CnWi30zJ.mjs → cart-DO20An50.mjs} +3 -3
- package/dist/client/{checkout-f3nkWgd4.mjs → checkout-Du5amDR_.mjs} +3 -3
- package/dist/client/{checkoutUrls-CW3-78uu.mjs → checkoutUrls-CXhko2Rv.mjs} +1 -1
- package/dist/client/client.mjs +3837 -2202
- package/dist/client/{colorStyles-CuJBiS-1.mjs → colorStyles-j5U9v5JA.mjs} +5 -1
- package/dist/client/{context-Bc8T6pCe.mjs → context-eW97E945.mjs} +4 -3
- package/dist/client/{dates-DUsCEzLb.mjs → dates-jPCirRea.mjs} +56 -11
- package/dist/client/{eventCalendar-CKwgXui5.mjs → eventCalendar-C2M-iE4j.mjs} +10 -10
- package/dist/client/{eventCombined-CBAOSTGR.mjs → eventCombined-W6ns3LHg.mjs} +4 -4
- package/dist/client/{eventDetails-Dh-_WiBD.mjs → eventDetails-CR-GT0f0.mjs} +4 -4
- package/dist/client/{eventListing-CA3frIH5.mjs → eventListing-BK8AfYZz.mjs} +4 -4
- package/dist/client/{eventRegistration-BHtsgdcg.mjs → eventRegistration-BJSd4KUu.mjs} +461 -266
- package/dist/client/{form-C2h3YAcg.mjs → form-BvpfbQaT.mjs} +5 -5
- package/dist/client/{headerSection-lwMuMTH9.mjs → headerSection-I5sUQ8x-.mjs} +3 -3
- package/dist/client/hooks.mjs +909 -163
- package/dist/client/{locationMap-DJ2bLODV.mjs → locationMap-BLvwf9_f.mjs} +4 -4
- package/dist/client/{FieldValidationMessage-AYanWFb-.mjs → mailingListSignupCopy-DZSHZrm6.mjs} +14 -1
- package/dist/client/{media-BtJ37tzS.mjs → media-Cl38iOMI.mjs} +11 -4
- package/dist/client/{newsletterForm-8Pu5K32g.mjs → newsletterForm-DrQ2weE8.mjs} +6 -6
- package/dist/client/{pricing-HHx3IgBz.mjs → pricing-BES87mrR.mjs} +1 -1
- package/dist/client/{productDetail-C_1odnAf.mjs → productDetail-Url9jcc5.mjs} +3 -3
- package/dist/client/{productList-CtCv-Nmx.mjs → productList-DE7ngEZJ.mjs} +3 -3
- package/dist/client/{propsDecoder-Dcgsncxb.mjs → propsDecoder-D1OtGXDV.mjs} +140 -22
- package/dist/client/rendering/client.mjs +2366 -997
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +4607 -2884
- package/dist/client/{routeIslandApiConfig-CWLP7wu3.mjs → routeIslandApiConfig-BG9Y-SHg.mjs} +1 -1
- package/dist/client/{shop-DQXrQ8kJ.mjs → shop-CJkuySJ3.mjs} +126 -79
- package/dist/client/{shop-commerce-B88zmWWo.mjs → shop-commerce-4rKj5n9h.mjs} +26 -14
- package/dist/client/{shop-commerce-store-DtSfkKuX.mjs → shop-commerce-store-Bxm75Pg6.mjs} +1 -1
- package/dist/client/{shopShared-cuaONpkJ.mjs → shopShared-DpoQDWfz.mjs} +5 -5
- package/dist/client/{useEventFilters-Bukew6Gb.mjs → useEventFilters-D8HliSqR.mjs} +33 -18
- package/dist/preview-next/before-render.mjs +314 -133
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-base.css +53 -2
- package/dist/preview-next/editor-chrome.css +7 -4
- package/dist/preview-next/keepAlive.mjs +314 -133
- package/dist/preview-next/middleware.mjs +314 -133
- package/dist/{previewAuthStore-h5IgbSp4.mjs → previewAuthStore-BXXF3hhW.mjs} +316 -133
- package/dist/{sdk-runtime-DTc1uIXn.mjs → sdk-runtime-C2a05WjL.mjs} +2 -2
- package/dist/{separator-BpHS1KZK.mjs → separator-CuNhBAhS.mjs} +1 -1
- package/dist/server/components.mjs +6888 -6157
- package/dist/server/config-validation.mjs +931 -199
- package/dist/server/config.mjs +931 -199
- package/dist/server/data.mjs +929 -198
- package/dist/server/index.mjs +317 -134
- package/dist/server/navigation.mjs +13 -2
- package/dist/server/next.mjs +5003 -4340
- package/dist/server/page-converter.mjs +160 -78
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +6421 -5687
- package/dist/server/rendering.mjs +7683 -6933
- package/dist/server/routing.mjs +1035 -338
- package/dist/server/server.mjs +946 -256
- package/dist/server/theme-bridge.mjs +66 -17
- package/dist/server/theme.mjs +5 -1
- package/dist/styles/index.css +32 -4
- package/package.json +1 -1
- package/dist/_dts/billing/src/plans/display.d.ts +0 -15
- 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/_dts/core/src/participant-identity.d.ts +0 -135
- package/dist/client/DiscountCodeDisclosure-CsOtjFY7.mjs +0 -137
|
@@ -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,11 +32,12 @@ 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';
|
|
36
40
|
export * from './participants';
|
|
37
|
-
export * from './participant-identity';
|
|
38
41
|
export * from './public-url-validation';
|
|
39
42
|
export * from './public-profile';
|
|
40
43
|
export * from './public-experience';
|
|
@@ -76,5 +79,6 @@ export * from './public-read-cache-contract';
|
|
|
76
79
|
export * from './booking-verticals';
|
|
77
80
|
export * from './event-series-behaviour';
|
|
78
81
|
export * from './navigation-locations';
|
|
82
|
+
export * from './navigation-portal-labels';
|
|
79
83
|
export * from './event-preset-vocabulary';
|
|
80
84
|
export * from './event-catalogue';
|
|
@@ -6,6 +6,7 @@ export type MailingListRuntimeContext = Readonly<{
|
|
|
6
6
|
}> | Readonly<{
|
|
7
7
|
tag: 'configured';
|
|
8
8
|
revision: MailingListSetupRevision;
|
|
9
|
+
bookingSignup: BookingSignupOffer;
|
|
9
10
|
form: MailingListGlobalForm;
|
|
10
11
|
provider: MailingListRuntimeProvider;
|
|
11
12
|
}>;
|
|
@@ -40,3 +41,17 @@ export type MailingListRuntimeContextParseError = Readonly<{
|
|
|
40
41
|
tag: 'invalid_mailing_list_runtime_context';
|
|
41
42
|
}>;
|
|
42
43
|
export declare function parseMailingListRuntimeContext(value: unknown): Result<MailingListRuntimeContext, MailingListRuntimeContextParseError>;
|
|
44
|
+
export type BookingSignupOffer = Readonly<{
|
|
45
|
+
tag: 'offered';
|
|
46
|
+
}> | Readonly<{
|
|
47
|
+
tag: 'unavailable';
|
|
48
|
+
reason: 'disabled' | 'fields' | 'destination';
|
|
49
|
+
}>;
|
|
50
|
+
/** Destination facts are resolved once by the provider adapter, before projection. */
|
|
51
|
+
export declare function planBookingSignupOffer(setup: Readonly<{
|
|
52
|
+
bookingOptInEnabled: boolean;
|
|
53
|
+
form: MailingListGlobalForm;
|
|
54
|
+
}>, destination: 'available' | 'unavailable'): BookingSignupOffer;
|
|
55
|
+
export declare function resolveBookingSignupOffer(context: MailingListRuntimeContext | undefined, siteName: string | undefined): Readonly<{
|
|
56
|
+
siteName: string;
|
|
57
|
+
}> | null;
|
|
@@ -73,6 +73,7 @@ export type MailingListSiteSetup = Readonly<{
|
|
|
73
73
|
tag: 'configured';
|
|
74
74
|
siteId: SiteId;
|
|
75
75
|
revision: MailingListSetupRevision;
|
|
76
|
+
bookingOptInEnabled: boolean;
|
|
76
77
|
form: MailingListGlobalForm;
|
|
77
78
|
provider: ConfiguredMailingListProvider;
|
|
78
79
|
}>;
|
|
@@ -111,6 +112,7 @@ export declare function planMailingListFieldCompatibility(input: Readonly<{
|
|
|
111
112
|
form: MailingListGlobalForm;
|
|
112
113
|
destinations: readonly MailingListDestinationFieldRequirements[];
|
|
113
114
|
}>): MailingListFieldCompatibilityPlan;
|
|
115
|
+
export declare function resolveRequiredGlobalFields(fields: MailingListGlobalFields): readonly MailingListProfileField[];
|
|
114
116
|
export type MailingListSetupSwitchPlan = Readonly<{
|
|
115
117
|
tag: 'activate';
|
|
116
118
|
affectedPlacementCount: 0;
|
|
@@ -29,6 +29,10 @@ export type MailingListSignupSource = Readonly<{
|
|
|
29
29
|
tag: 'sdk_footer_block';
|
|
30
30
|
blockId: MailingListSdkFooterBlockId;
|
|
31
31
|
contentHash: MailingListSdkContentHash;
|
|
32
|
+
}> | Readonly<{
|
|
33
|
+
tag: 'booking';
|
|
34
|
+
kind: 'event' | 'appointment';
|
|
35
|
+
attemptId: string;
|
|
32
36
|
}>;
|
|
33
37
|
/** Public proof of which published placement owns a signup request. */
|
|
34
38
|
export type MailingListSignupSourceRef = Readonly<{
|
|
@@ -223,4 +227,6 @@ export type ExternalSignupConsentRecord = (ExternalSignupConsentRecordBase & Rea
|
|
|
223
227
|
}>;
|
|
224
228
|
confirmation: BrevoConfirmation;
|
|
225
229
|
}>);
|
|
230
|
+
/** Absence of a note means booking proceeds without a signup message. */
|
|
231
|
+
export type BookingMailingListNote = 'confirmation_required' | 'not_confirmed';
|
|
226
232
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a customer sign-in link in a site's menu says when the site hasn't set
|
|
3
|
+
* its own text. The site renderer falls back to these, and the dashboard's
|
|
4
|
+
* menu editor shows them, so what an editor sees is what visitors get.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PORTAL_NAV_DEFAULT_LABELS: {
|
|
7
|
+
readonly loggedOut: "Login";
|
|
8
|
+
readonly loggedIn: "My Account";
|
|
9
|
+
};
|
|
@@ -115,30 +115,6 @@ export type ParticipantRosterProjection = Readonly<{
|
|
|
115
115
|
slots: readonly ParticipantRosterSlot[];
|
|
116
116
|
issues: readonly ParticipantRosterReconciliationIssue[];
|
|
117
117
|
}>;
|
|
118
|
-
export type ExistingParticipantByEmail = Readonly<{
|
|
119
|
-
participantId: ParticipantId;
|
|
120
|
-
email: ParticipantEmail;
|
|
121
|
-
}>;
|
|
122
|
-
export type ParticipantSubjectResolution = {
|
|
123
|
-
kind: 'create_participant';
|
|
124
|
-
slotKey: ParticipantSlotKey;
|
|
125
|
-
email: ParticipantEmail;
|
|
126
|
-
displayName: string | null;
|
|
127
|
-
phone: string | null;
|
|
128
|
-
} | {
|
|
129
|
-
kind: 'reuse_participant_by_site_email';
|
|
130
|
-
slotKey: ParticipantSlotKey;
|
|
131
|
-
email: ParticipantEmail;
|
|
132
|
-
participantId: ParticipantId;
|
|
133
|
-
} | {
|
|
134
|
-
kind: 'staff_managed_slot';
|
|
135
|
-
slotKey: ParticipantSlotKey;
|
|
136
|
-
} | {
|
|
137
|
-
kind: 'blocked_duplicate_participant_in_booking';
|
|
138
|
-
slotKey: ParticipantSlotKey;
|
|
139
|
-
email: ParticipantEmail;
|
|
140
|
-
conflictingSlotKeys: readonly ParticipantSlotKey[];
|
|
141
|
-
};
|
|
142
118
|
type ParticipantContactInput = Readonly<{
|
|
143
119
|
name: string | null;
|
|
144
120
|
email: string | null;
|
|
@@ -166,13 +142,6 @@ export type EventSeriesRegistrationParticipantProjectionInput = Readonly<{
|
|
|
166
142
|
customerId: CustomerId;
|
|
167
143
|
};
|
|
168
144
|
}>;
|
|
169
|
-
export type EventSeriesSessionAttendanceParticipantProjectionInput = Readonly<{
|
|
170
|
-
attendeeId: AttendeeId;
|
|
171
|
-
registrationId: EventSeriesRegistrationId;
|
|
172
|
-
enrollmentSlot: ParticipantParticipationLinkSlot<Extract<ParticipantParticipation, {
|
|
173
|
-
kind: 'event_series_registration';
|
|
174
|
-
}>>;
|
|
175
|
-
}>;
|
|
176
145
|
export type SingleSubjectParticipantRosterTarget = Readonly<{
|
|
177
146
|
kind: 'appointment';
|
|
178
147
|
appointmentId: AppointmentId;
|
|
@@ -211,16 +180,9 @@ export declare function projectEventSeriesRegistrationParticipantSlot(input: Eve
|
|
|
211
180
|
}>>;
|
|
212
181
|
export declare function projectSingleSubjectParticipantRoster(input: SingleSubjectParticipantRosterProjectionInput): ParticipantRosterProjection;
|
|
213
182
|
export declare function buildSingleSubjectParticipantPersistenceIntent(input: SingleSubjectParticipantRosterProjectionInput): SingleSubjectParticipantPersistenceIntent;
|
|
214
|
-
export declare function projectEventSeriesSessionAttendanceParticipantSlot(input: EventSeriesSessionAttendanceParticipantProjectionInput): ParticipantParticipationLinkSlot<Extract<ParticipantParticipation, {
|
|
215
|
-
kind: 'event_series_session_attendance';
|
|
216
|
-
}>>;
|
|
217
183
|
export declare function projectEventRegistrationParticipantRoster(input: EventRegistrationParticipantProjectionInput): ParticipantRosterProjection;
|
|
218
184
|
export declare function reconcileParticipantRoster(input: {
|
|
219
185
|
expectedCount: ParticipantCount;
|
|
220
186
|
slots: readonly ParticipantRosterSlot[];
|
|
221
187
|
}): readonly ParticipantRosterReconciliationIssue[];
|
|
222
|
-
export declare function planParticipantSubjectResolution(input: {
|
|
223
|
-
projection: ParticipantRosterProjection;
|
|
224
|
-
existingParticipantsByEmail: readonly ExistingParticipantByEmail[];
|
|
225
|
-
}): readonly ParticipantSubjectResolution[];
|
|
226
188
|
export {};
|
|
@@ -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;
|