Skip to content

Releases: DevCloudFE/matechat-react

@matechat/react v0.1.1

16 Nov 18:35
8b8a5f8

Choose a tag to compare

v0.1.1

New Features

  • f735a6b: Add Suggestion component to provide trigger-based autocomplete in textareas.
    This component supports multiple trigger characters and grouped options. (#62 by @moeyue23)

@matechat/react v0.1.0

07 Nov 06:47
5e1eb44

Choose a tag to compare

v0.1.0

Refactors

  • 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: Extract all markdown components and resolve code lints.

New Features

  • 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: Optimize markdown component in Bubble, customize link, heading and code. Support copy button for code blocks.

  • cd8ace0: Remove gap and margin between textarea and footer in Sender component.

  • 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 by @xx-yoke)

  • 4e2905b: Optimize callback performance by using useCallback.

  • f35b6e9: Refactor List component in list.tsx to improve code structure and maintainability. (#65 by @TMZZ031130)

  • 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 by @Raven-Book)

  • 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: Add List component in list.tsx to support grouped or normal lists. (#26 by @TMZZ031130)

  • 31f4edf: Add FileUpload component for file selections. (#31 by @xx-yoke)

  • 3869f95: Optimize behavior of useChat:

  • Add throwOnEmptyBackend option to useChat function.

  • Throw an error when backend is nullish and throwOnEmptyBackend is true.

  • Rename isPendingtopending in useChat return value.

  • Allow empty backend in useChat function.

Chores

  • 577946c: Bump dependencies.
  • 8bbf2ca: Release @matechat/react stable.

Bug Fixes

  • a11cb5d: Enforce some styles for Sender component.
  • b31f68b: Fix max height of sender and optimize scrollbar style. (#73 by @xx-yoke)
  • d61b43c: Fix the build issue in utils by adding utils/index.ts to vite build entries.
  • 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 by @TMZZ031130)
  • 8044b1e: adjust title/description font-size to match the prompt component (#30 by @Raven-Book)
  • 3a19451: Fix the lint error on useEffect in sender.tsx.
  • 742dfeb: Fix matechat component exports.

Performance Improvements

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

@matechat/react v0.1.0-rc.4

01 Oct 10:50
a69399f

Choose a tag to compare

[0.1.0-rc.4]

Bug Fixes

@matechat/react v0.1.0-rc.3

27 Sep 09:26
ff6bd26

Choose a tag to compare

[0.1.0-rc.3]

Bug Fixes

  • 742dfeb Fix matechat component exports.

@matechat/react v0.1.0-rc.2

10 Sep 06:49
b9b94fd

Choose a tag to compare

[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 className attribute from the list.
    • Add an id attribute to the li option of the list component.

@matechat/react v0.1.0-rc.1

22 Aug 13:21
481b687

Choose a tag to compare

[0.1.0-rc.1]

New Features

  • f35b6e9 (#65 by @TMZZ031130) Refactor List component in list.tsx to improve code structure and maintainability.

@matechat/react v0.1.0-rc.0

10 Aug 10:55
53244a8

Choose a tag to compare

[0.1.0-rc.0]

New Features

  • 421dc74 Optimize markdown component in Bubble, customize link, heading and code. Support copy button for code blocks.

  • 3869f95 Optimize behavior of useChat:

    • Add throwOnEmptyBackend option to useChat function.
    • Throw an error when backend is nullish and throwOnEmptyBackend is true.
    • Rename isPendingtopending in useChat return value.
    • Allow empty backend in useChat function.

Refactors

  • 162bad9 Extract all markdown components and resolve code lints.

@matechat/react v0.1.0-beta.3

05 Aug 10:30
1c97ef9

Choose a tag to compare

[0.1.0-beta.3]

Performance Improvements

  • b07439f Default wrap BubbleList with React.memo to avoid extra rerender.

@matechat/react v0.1.0-beta.2

05 Aug 04:16
480c9b2

Choose a tag to compare

[0.1.0-beta.2]

Bug Fixes

  • a11cb5d Enforce some styles for Sender component.

@matechat/react v0.1.0-beta.1

04 Aug 13:04
7d3658c

Choose a tag to compare

[0.1.0-beta.1]

Performance Improvements

  • 57077a8 Optimize performance of BubbleList component, avoid extra rerender overheads.