react-spectrum
042f4d54 - feat: Updates to AI components for additional chat prompt use cases (#10335)

Commit
103 days ago
feat: Updates to AI components for additional chat prompt use cases (#10335) * expose size on MessageFeedback for Coworker other changes like gettring rid of the ToggleButtonGroup are deffered in favor of wrapping the group in a Toolbar * localize scroll to bottom button, expose PromptFocusContext if users arent using our prompt field * add "failed" Response status and variant where the response doesnt have a panel to display * expose isDisabled/placeholder and add onKeydown * controlled prompt field input and attachements * have it auto tokenize urls from controlled value insertions and fix cursor positioning when token added via + menu also support escape /click on stop button to stop streaming in chat story * add plain text insertion menu item * add callback menu item this allows a callback (aka like "compact") command to clear the user partial filter text and close the autocomplete menu in the field * add voice input support to prompt field * add missing error messages * removing isDisabled support from the prompt field, need design feedback * localize stuff * add error variant for attachement list card * fix lint * make up/down arrow cycle through old prompts * fix lint? * missing events from spec * proper fix for NavigatorUAData lint issue * review comments update to Attachement/horizontal card to properly set aria-invalid and center the progress circle in the thumbnail. Also updates to PromptField to use useKeyboard, and voice input transcript state updates * more review comments * remove bad tokenization from constructor and make comment clearer * use english fallback for AI strings for now * lint and placeholders in tree docs textfields * clean up some comments based on what design mentioned * strings from cowoker and review comment --------- Co-authored-by: Robert Snow <rsnow@adobe.com>
Author
Parents
Loading