UNPKG

@assistant-ui/react

Version:

Open-source TypeScript/React library for building production-grade AI chat experiences

17 lines (16 loc) • 860 B
"use client"; import { useComposerRunStartFocusGuard } from "../primitives/composer/useComposerRunStartFocusGuard.js"; // src/unstable/useComposerRunStartFocusGuard.ts /** * The decision `ComposerPrimitive.Input` makes when a run starts: whether the * run may move focus into this composer. Alternative composer implementations * (`@assistant-ui/react-lexical`) have to make the same call, and can only make * it correctly with the thread root from context: a composer portaled outside * `ThreadPrimitive.Root` has no `data-aui-thread-root` ancestor. * * @deprecated Experimental since 2026-11-12. Not scheduled for removal; the API * may change in any release. */ const unstable_useComposerRunStartFocusGuard = () => useComposerRunStartFocusGuard(); export { unstable_useComposerRunStartFocusGuard }; //# sourceMappingURL=useComposerRunStartFocusGuard.js.map