feat(CommandTextArea): add component - #1222
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 8a2c322 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📦 NPM canary releaseDeployed canary version 0.0.0-canary-7ffd929. |
🧪 Storybook is successfully deployed!
|
🏋️ Size limit report
Click here if you want to find out what is changed in this build |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8a2c322. Configure here.

Note
Medium Risk
Refactors ComboBox popover/filtering shared with a new field component; keyboard commit and filtering semantics changed in ways covered by tests but worth regression-testing ComboBox consumers.
Overview
Introduces
CommandTextArea, a multiline field that keeps focus in the textarea while showing a virtual-focus list popover for configurable triggers (default line-start/commands or@-style tokens). Options insert theirtextValue, fireonCommand, and can match/highlight acrosstextValue, plain-textchildren, anddescription; the popover is positioned at the caret via a mirror-measurement hook.ComboBoxno longer owns its inline overlay: sharedListBoxPopover(plususeCompositeFocus, list navigation, andfilterCollectionNodes) drives the popover for both components. Filtering defaults totextValueonly again forComboBox;CommandTextAreaopts into extra fields withmatchExtraFields.ListBox/ItemgainoptionHighlight/ description highlighting for search matches.Follow-up fixes in the same change: virtual focus and Enter/Tab commit stay aligned with the visible filtered list; stable
listStateRefhooks; caret resync anddefaultValuefor uncontrolled mode; docs, stories, tests, and a small bundle size-limit bump.Reviewed by Cursor Bugbot for commit 8a2c322. Bugbot is set up for automated code reviews on this repo. Configure here.