Follows an inline :query and closes the picker once the caret leaves it.
The caller calls it on every change with open set, and on every caret
move without, since only typing may open the picker. It leaves a browse
picker alone.
Type
(
value: string,
cursor: number,
open: boolean
) => void
Usage
import { type UseEmojiTriggerResult } from "src/hooks/editor/useEmojiTrigger.ts";