Releases: DevCloudFE/matechat-react
@matechat/react v0.1.1
@matechat/react v0.1.0
v0.1.0
Refactors
-
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.
New Features
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.
Chores
Bug Fixes
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.
Performance Improvements
@matechat/react v0.1.0-rc.4
@matechat/react v0.1.0-rc.3
@matechat/react v0.1.0-rc.2
[0.1.0-rc.2]
Bug Fixes
-
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
@matechat/react v0.1.0-rc.1
[0.1.0-rc.1]
New Features
f35b6e9(#65 by @TMZZ031130) RefactorListcomponent inlist.tsxto improve code structure and maintainability.
@matechat/react v0.1.0-rc.0
[0.1.0-rc.0]
New Features
-
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
Refactors
162bad9Extract all markdown components and resolve code lints.
@matechat/react v0.1.0-beta.3
[0.1.0-beta.3]
Performance Improvements
b07439fDefault wrapBubbleListwithReact.memoto avoid extra rerender.
@matechat/react v0.1.0-beta.2
@matechat/react v0.1.0-beta.1
[0.1.0-beta.1]
Performance Improvements
57077a8Optimize performance ofBubbleListcomponent, avoid extra rerender overheads.