← All packages

@searsuite/sear-foundation-user-interaction

Portable interaction-state contracts for host input and editor behavior.

classUserInteractionService

Host-provided, editor-local requests for a user's decision.

constructorUserInteractionService(): UserInteractionService
propertyreadonly symbol: symbolstatic
methodconfirm(request: UserConfirmationRequest): Promise<boolean>

Resolves true only when the user explicitly confirms.

methoddestroy(): void

Cancels pending requests and releases host resources.

classWebUserInteractionService
class WebUserInteractionService extends UserInteractionService

Browser dialog adapter for explicit user confirmations.

constructorWebUserInteractionService(documentRef?: Pick<Document, "body" | "createElement">): WebUserInteractionService
methodconfirm(request: UserConfirmationRequest): Promise<boolean>

Resolves true only when the user explicitly confirms.

methoddestroy(): void

Cancels pending requests and releases host resources.

Inherited members 1

Inherited from UserInteractionService.

interfaceUserConfirmationRequest

A host-owned confirmation with explicit, localizable presentation text.