mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-23 17:33:51 +02:00
The MutationObserver for mention decoration fired decorateProjectMentions synchronously on every character change, querying all links and writing to the DOM on each keystroke. The selectionchange listener similarly ran checkMention (which calls getBoundingClientRect) on every cursor move. Coalesce both into single requestAnimationFrame callbacks so multiple rapid mutations/selections batch into one decoration pass per frame. Co-Authored-By: Paperclip <noreply@paperclip.ing>
@paperclipai/ui
Published static assets for the Paperclip board UI.
What gets published
The npm package contains the production build under dist/. It does not ship the UI source tree or workspace-only dependencies.
Typical use
Install the package, then serve or copy the built files from node_modules/@paperclipai/ui/dist.