nova-betterchat/src/components
Łukasz Komorowski 8f2b6dfdb8
Added Role Selector close functionality when clicking outside of it (#211)
* Added dropdown close functionality when clicking
outside.

Added an event listener to the document that checks if the user clicks
outside the dropdown and closes it if so. This behavior is implemented
using a useRef hook and a mousedown event. The cleanup function is also
added to remove the event listener when the component unmounts.

* Optimized event listener in RoleSelector component
for improved performance.
Updated event listener for RoleSelector component
to only be added when the dropdown is opened and removed
when the dropdown is closed.

* Removed package-lock.json and yarn.lock

* Revert "Removed package-lock.json and yarn.lock"

This reverts commit f9dbf056b6003377d5bcf4f3a731afe7324f000b.

* Remove yarn.lock, package-lock.json from PR

* revert yarn.lock

* optimisation

* change React.useRef to useRef

---------

Co-authored-by: Jing Hua <tohjinghua123@gmail.com>
2023-04-07 17:42:47 +08:00
..
AboutMenu reorder about popup 2023-03-31 22:04:50 +08:00
ApiMenu remove custom api placeholder 2023-04-02 00:25:32 +08:00
ApiPopup support environment variables 2023-04-02 20:43:54 +08:00
Chat Added Role Selector close functionality when clicking outside of it (#211) 2023-04-07 17:42:47 +08:00
ChatConfigMenu feat: customise default model parameters and system message 2023-03-20 16:06:46 +08:00
ConfigMenu feat: customise default model parameters and system message 2023-03-20 16:06:46 +08:00
ImportExportChat Refactor folder (#188) 2023-04-02 16:27:19 +08:00
LanguageSelector minor fix of language dropdown 2023-04-05 13:09:28 +08:00
Menu style: padding 2023-04-06 02:54:22 +08:00
MobileBar style: limit chat title height on mobile 2023-04-01 12:08:05 +08:00
PopupModal feat: i18n language support, settings menu, loading screen 2023-03-12 01:40:26 +08:00
PromptLibraryMenu add csv label 2023-04-02 19:56:00 +08:00
SearchBar feat: search chats / folders 2023-04-01 22:45:57 +08:00
SettingsMenu feat: option for enterToSubmit / shiftEnterToSubmit 2023-03-30 16:01:01 +08:00
ShareGPT fix: ShareGPT bug 2023-03-23 01:25:32 +08:00
StopGeneratingButton feat: StopGeneratingButton 2023-03-05 23:26:52 +08:00
Toggle feat: auto generate title setting 2023-03-13 13:22:48 +08:00
TokenCount feat: add price of tokens 2023-03-26 10:23:09 +08:00