API reference
@searsuite/sear-foundation-user-interaction
Portable interaction-state contracts for host input and editor behavior.
3 exportsderived from source
- classUserInteractionServicesource ↗
-
class UserInteractionServiceHost-provided, editor-local requests for a user's decision.
constructorconstructor UserInteractionService(): UserInteractionServicepropertysymbolstatic readonly symbol: symbolmethodconfirm confirm(request: UserConfirmationRequest): Promise<boolean>Resolves true only when the user explicitly confirms.
request: UserConfirmationRequest
methoddestroy destroy(): voidCancels pending requests and releases host resources.
- classWebUserInteractionServicesource ↗
-
class WebUserInteractionService extends UserInteractionServiceBrowser dialog adapter for explicit user confirmations.
constructorconstructor WebUserInteractionService(documentRef?: Pick<Document, "body" | "createElement">): WebUserInteractionServicedocumentRef: Pick<Document, "body" | "createElement">
methodconfirm confirm(request: UserConfirmationRequest): Promise<boolean>Resolves true only when the user explicitly confirms.
request: UserConfirmationRequest
methoddestroy destroy(): voidCancels pending requests and releases host resources.
- interfaceUserConfirmationRequestsource ↗
-
interface UserConfirmationRequestA host-owned confirmation with explicit, localizable presentation text.
propertycancelLabel readonly cancelLabel: stringpropertyconfirmLabel readonly confirmLabel: stringpropertymessage readonly message: stringpropertytitle readonly title: string
No public exports match that search.