LibreChat/client/src/hooks/Input
Danny Avila f307488dd4
✍️ refactor(Textarea): Optimize Text Input & Enhance UX (#2058)
* refactor(useDebouncedInput): make object as input arg and accept setter

* refactor(ChatForm/Textarea): consolidate textarea/form logic to one component, use react-hook-form, programmatically click send button instead of passing submitMessage, forwardRef and memoize SendButton

* refactor(Textarea): use Controller field value to avoid manual update of ref

* chore: remove forms provider

* chore: memoize AttachFile

* refactor(ChatForm/SendButton): only re-render SendButton when there is text input

* chore: make iconURL bigger

* chore: optimize Root/Nav

* refactor(SendButton): memoize disabled prop based on text

* chore: memoize Nav and ChatForm

* chore: remove textarea ref text on submission

* feat(EditMessage): Make Esc exit the edit mode and dismiss changes when editing a message

* style(MenuItem): Display the ☑️  icon only on the selected model
2024-03-11 09:18:10 -04:00
..
index.ts feat: Google Gemini ❇️ (#1355) 2023-12-15 02:18:07 -05:00
useDebounce.ts fix: Ensure Message Send Requires Key 🔑 (#1281) 2023-12-05 09:38:04 -05:00
useMultipleKeys.ts feat: Google Gemini ❇️ (#1355) 2023-12-15 02:18:07 -05:00
useRequiresKey.ts 🔧 fix: Improve Endpoint Handling and Address Edge Cases (#1486) 2024-01-04 10:17:15 -05:00
useTextarea.ts ✍️ refactor(Textarea): Optimize Text Input & Enhance UX (#2058) 2024-03-11 09:18:10 -04:00
useUserKey.ts 🔧 fix: Improve Endpoint Handling and Address Edge Cases (#1486) 2024-01-04 10:17:15 -05:00