f735a6b: AddSuggestioncomponent to provide trigger-based autocomplete in textareas. This component supports multiple trigger characters and grouped options. (#62 by @moeyue23)
-
5019927: Rewrite auto scroll logic ofBubbleListcomponent: -
Use
ResizeObserverto detect content size changes and scroll accordingly. -
Add
scrollContainermethod to scroll to bottom when content size changes. -
Introduce
pauseScrollto prevent unnecessary scrolls during updates. -
162bad9: Extract all markdown components and resolve code lints.
b5e4cb8: Optimize theSenderButtoncomponent insender.tsx.
This optimization includes:
-
Add
iconandisSendingoption toSenderButtoncomponent. -
Add doc-string for
SenderButtonandSenderprops. -
421dc74: Optimize markdown component inBubble, customize link, heading and code. Support copy button for code blocks. -
cd8ace0: Remove gap and margin between textarea and footer inSendercomponent. -
6a494c2: AddInputCountcomponent. -
Remove the input count div container and wrap it into a new component, allowing users to customize the input limit.
-
Remove the justify-center style from the div container and add ml-auto to the SenderButton to ensure button remains on the right side. (#47 by @xx-yoke)
-
4e2905b: Optimize callback performance by usinguseCallback. -
f35b6e9: RefactorListcomponent inlist.tsxto improve code structure and maintainability. (#65 by @TMZZ031130) -
17b60e7: Add loading animation during AI request wait states. -
Updated
BubbleListPropsandBubbleinbubble.tsxto support pending states -
Modified
useChatinchat.tsto setpending = truebefore API requests (#23 by @Raven-Book) -
577946c: Optimizebackgroundoption ofBubbleListcomponent.
BREAKING CHANGES:
-
Use
left-solid,right-solid,transparentandsolidas the value ofbackgroundoption. -
Default to use
right-solidas the value ofbackgroundoption inBubblecomponent. -
Remove
left-onlyandright-onlyvalue inBubblecomponent. -
a0b5fc8: AddListcomponent inlist.tsxto support grouped or normal lists. (#26 by @TMZZ031130) -
31f4edf: AddFileUploadcomponent for file selections. (#31 by @xx-yoke) -
3869f95: Optimize behavior ofuseChat: -
Add
throwOnEmptyBackendoption touseChatfunction. -
Throw an error when
backendis nullish andthrowOnEmptyBackendistrue. -
Rename
isPendingtopendinginuseChatreturn value. -
Allow empty
backendinuseChatfunction.
a11cb5d: Enforce some styles forSendercomponent.b31f68b: Fix max height of sender and optimize scrollbar style. (#73 by @xx-yoke)d61b43c: Fix the build issue inutilsby addingutils/index.tsto vite build entries.9f3c6a9: Fixed the issue that normal list mode cannot be selected.
Other optimizations:
- Remove the
classNameattribute from thelist. - Add an id attribute to the li option of the list component. (#67 by @TMZZ031130)
8044b1e: adjust title/description font-size to match the prompt component (#30 by @Raven-Book)3a19451: Fix the lint error onuseEffectinsender.tsx.742dfeb: Fix matechat component exports.
b07439f: Default wrapBubbleListwithReact.memoto avoid extra rerender.57077a8: Optimize performance ofBubbleListcomponent, avoid extra rerender overheads.36ca7eb: Wrap alluseChathooks withuseCallbackto avoid re-rendering.
742dfebFix matechat component exports.
-
9f3c6a9(#67 by @TMZZ031130) Fixed the issue that normal list mode cannot be selected.Other optimizations:
- Remove the
classNameattribute from thelist. - Add an id attribute to the li option of the list component.
- Remove the
f35b6e9(#65 by @TMZZ031130) RefactorListcomponent inlist.tsxto improve code structure and maintainability.
-
421dc74Optimize markdown component inBubble, customize link, heading and code. Support copy button for code blocks. -
3869f95Optimize behavior ofuseChat:- Add
throwOnEmptyBackendoption touseChatfunction. - Throw an error when
backendis nullish andthrowOnEmptyBackendistrue. - Rename
isPendingtopendinginuseChatreturn value. - Allow empty
backendinuseChatfunction.
- Add
162bad9Extract all markdown components and resolve code lints.
b07439fDefault wrapBubbleListwithReact.memoto avoid extra rerender.
a11cb5dEnforce some styles forSendercomponent.
57077a8Optimize performance ofBubbleListcomponent, avoid extra rerender overheads.
-
5019927Rewrite auto scroll logic ofBubbleListcomponent:- Use
ResizeObserverto detect content size changes and scroll accordingly. - Add
scrollContainermethod to scroll to bottom when content size changes. - Introduce
pauseScrollto prevent unnecessary scrolls during updates.
- Use
-
6a494c2(#47 by @xx-yoke) AddInputCountcomponent.- Remove the input count div container and wrap it into a new component, allowing users to customize the input limit.
- Remove the justify-center style from the div container and add ml-auto to the SenderButton to ensure button remains on the right side.
36ca7ebWrap alluseChathooks withuseCallbackto avoid re-rendering.
8044b1e(#30 by @Raven-Book) adjust title/description font-size to match the prompt component
31f4edf(#31) AddFileUploadcomponent for file selections.4e2905bOptimize callback performance by usinguseCallback.cd8ace0Remove gap and margin between textarea and footer inSendercomponent.
d61b43cFix the build issue inutilsby addingutils/index.tsto vite build entries.
-
3a19451Fix the lint error onuseEffectinsender.tsx. -
b5e4cb8Optimize theSenderButtoncomponent insender.tsx.This optimization includes:
- Add
iconandisSendingoption toSenderButtoncomponent. - Add doc-string for
SenderButtonandSenderprops.
- Add
-
17b60e7(#23 by @Raven-Book) Add loading animation during AI request wait states.- Updated
BubbleListPropsandBubbleinbubble.tsxto support pending states - Modified
useChatinchat.tsto setpending = truebefore API requests
- Updated
-
577946cOptimizebackgroundoption ofBubbleListcomponent.BREAKING CHANGES:
- Use
left-solid,right-solid,transparentandsolidas the value ofbackgroundoption. - Default to use
right-solidas the value ofbackgroundoption inBubblecomponent. - Remove
left-onlyandright-onlyvalue inBubblecomponent.
- Use
-
577946cBump dependencies.
464fc05Release first pre-release with alpha tag of@matechat/react.