Skip to content

Interface: SelectionWatcher

Defined in: aiui-intent-runtime/src/selection.ts:62

Handle over a running selection watcher.

Methods

addIgnored()

addIgnored(node): void

Defined in: aiui-intent-runtime/src/selection.ts:72

Add a node whose selections to ignore, after the fact — for UI surfaces created later than the watcher (the host's page-level layers: selecting in the transcript preview must never become the "app selection").

Parameters

node

Node

Returns

void


clear()

clear(): void

Defined in: aiui-intent-runtime/src/selection.ts:66

Drop the current snapshot (explicit dismiss, or after a submission consumes it).

Returns

void


dispose()

dispose(): void

Defined in: aiui-intent-runtime/src/selection.ts:74

Stop listening and release everything. Idempotent.

Returns

void


snapshot()

snapshot(): SelectionSnapshot | undefined

Defined in: aiui-intent-runtime/src/selection.ts:64

The current snapshot, or undefined when there is none / it has expired.

Returns

SelectionSnapshot | undefined