Skip to content

Conversation

@Raven-Book
Copy link
Collaborator

@Raven-Book Raven-Book commented Jun 18, 2025

Add version bump of #20

@fu050409 fu050409 changed the title docs(bubble): add notes for recent changes chore(bubble): add version bump Jun 19, 2025
@fu050409 fu050409 merged commit 17b60e7 into DevCloudFE:main Jun 19, 2025
2 checks passed
fu050409 added a commit that referenced this pull request Jun 19, 2025
# Version Updates

Merging this PR will release new versions of the following packages
based on your change files.




# @matechat/react

## [0.1.0-alpha.2]
- 17b60e7 (#23 by @Raven-Book) Add loading animation during AI request
wait states.
    
- Updated `BubbleListProps` and `Bubble` in `bubble.tsx` to support
pending states
- Modified `useChat` in `chat.ts` to set `pending = true` before API
requests

Co-authored-by: fu050409 <[email protected]>
fu050409 pushed a commit that referenced this pull request Nov 7, 2025
# Releases

## @matechat/react

## v0.1.0

### Refactors

-
[`5019927`](5019927):
Rewrite auto scroll logic of `BubbleList` component:

- Use `ResizeObserver` to detect content size changes and scroll
accordingly.
- Add `scrollContainer` method to scroll to bottom when content size
changes.
- Introduce `pauseScroll` to prevent unnecessary scrolls during updates.
-
[`162bad9`](162bad9):
Extract all markdown components and resolve code lints.

### New Features

-
[`b5e4cb8`](b5e4cb8):
Optimize the `SenderButton` component in `sender.tsx`.

This optimization includes:

- Add `icon` and `isSending` option to `SenderButton` component.
- Add doc-string for `SenderButton` and `Sender` props.
-
[`421dc74`](421dc74):
Optimize markdown component in `Bubble`, customize link, heading and
code. Support copy button for code blocks.
-
[`cd8ace0`](cd8ace0):
Remove gap and margin between textarea and footer in `Sender` component.
-
[`6a494c2`](6a494c2):
Add `InputCount` component.

- 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](#47) by
@xx-yoke)
-
[`4e2905b`](4e2905b):
Optimize callback performance by using `useCallback`.
-
[`f35b6e9`](f35b6e9):
Refactor `List` component in `list.tsx` to improve code structure and
maintainability.
([#65](#65) by
@TMZZ031130)
-
[`17b60e7`](17b60e7):
Add loading animation during AI request wait states.

- Updated `BubbleListProps` and `Bubble` in `bubble.tsx` to support
pending states
- Modified `useChat` in `chat.ts` to set `pending = true` before API
requests ([#23](#23) by
@Raven-Book)
-
[`577946c`](577946c):
Optimize `background` option of `BubbleList` component.

BREAKING CHANGES:

- Use `left-solid`, `right-solid`, `transparent` and `solid` as the
value of `background` option.
- Default to use `right-solid` as the value of `background` option in
`Bubble` component.
- Remove `left-only` and `right-only` value in `Bubble` component.
-
[`a0b5fc8`](a0b5fc8):
Add `List` component in `list.tsx` to support grouped or normal lists.
([#26](#26) by
@TMZZ031130)
-
[`31f4edf`](31f4edf):
Add `FileUpload` component for file selections.
([#31](#31) by
@xx-yoke)
-
[`3869f95`](3869f95):
Optimize behavior of `useChat`:

- Add `throwOnEmptyBackend` option to `useChat` function.
- Throw an error when `backend` is nullish and `throwOnEmptyBackend` is
`true`.
- Rename `isPending`to`pending` in `useChat` return value.
- Allow empty `backend` in `useChat` function.

### Chores

-
[`577946c`](577946c):
Bump dependencies.
-
[`8bbf2ca`](8bbf2ca):
Release `@matechat/react` stable.

### Bug Fixes

-
[`a11cb5d`](a11cb5d):
Enforce some styles for `Sender` component.
-
[`b31f68b`](b31f68b):
Fix max height of sender and optimize scrollbar style.
([#73](#73) by
@xx-yoke)
-
[`d61b43c`](d61b43c):
Fix the build issue in `utils` by adding `utils/index.ts` to vite build
entries.
-
[`9f3c6a9`](9f3c6a9):
Fixed the issue that normal list mode cannot be selected.

Other optimizations:
- Remove the `className` attribute from the `list`.
- Add an id attribute to the li option of the list component.
([#67](#67) by
@TMZZ031130)
-
[`8044b1e`](8044b1e):
adjust title/description font-size to match the prompt component
([#30](#30) by
@Raven-Book)
-
[`3a19451`](3a19451):
Fix the lint error on `useEffect` in `sender.tsx`.
-
[`742dfeb`](742dfeb):
Fix matechat component exports.

### Performance Improvements

-
[`b07439f`](b07439f):
Default wrap `BubbleList` with `React.memo` to avoid extra rerender.
-
[`57077a8`](57077a8):
Optimize performance of `BubbleList` component, avoid extra rerender
overheads.
-
[`36ca7eb`](36ca7eb):
Wrap all `useChat` hooks with `useCallback` to avoid re-rendering.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants