@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.
constructor UserInteractionService(): UserInteractionServiceproperty readonly symbol: symbolstaticmethod confirm(request: UserConfirmationRequest): Promise<boolean>Resolves true only when the user explicitly confirms.
method destroy(): voidCancels pending requests and releases host resources.
- classWebUserInteractionService
-
class WebUserInteractionService extends UserInteractionServiceBrowser dialog adapter for explicit user confirmations.
constructor WebUserInteractionService(documentRef?: Pick<Document, "body" | "createElement">): WebUserInteractionServicemethod confirm(request: UserConfirmationRequest): Promise<boolean>Resolves true only when the user explicitly confirms.
method destroy(): voidCancels pending requests and releases host resources.
- interfaceUserConfirmationRequest
-
A host-owned confirmation with explicit, localizable presentation text.
property readonly cancelLabel: stringproperty readonly confirmLabel: stringproperty readonly message: stringproperty readonly title: string
No matching API entries.