Skip to content

Latest commit

 

History

History
225 lines (137 loc) · 13.7 KB

File metadata and controls

225 lines (137 loc) · 13.7 KB

Changelog

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)

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.

[0.1.0-rc.4]

Bug Fixes

[0.1.0-rc.3]

Bug Fixes

  • 742dfeb Fix matechat component exports.

[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.

[0.1.0-rc.1]

New Features

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

[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.

[0.1.0-beta.3]

Performance Improvements

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

[0.1.0-beta.2]

Bug Fixes

  • a11cb5d Enforce some styles for Sender component.

[0.1.0-beta.1]

Performance Improvements

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

[0.1.0-beta.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.

[0.1.0-alpha.8]

New Features

  • 6a494c2 (#47 by @xx-yoke) 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.

[0.1.0-alpha.7]

Performance Improvements

  • 36ca7eb Wrap all useChat hooks with useCallback to avoid re-rendering.

[0.1.0-alpha.6]

Bug Fixes

[0.1.0-alpha.5]

New Features

  • 31f4edf (#31) Add FileUpload component for file selections.
  • 4e2905b Optimize callback performance by using useCallback.
  • cd8ace0 Remove gap and margin between textarea and footer in Sender component.

[0.1.0-alpha.4]

New Features

  • a0b5fc8 (#26) Add List component in list.tsx to support grouped or normal lists.

Bug Fixes

  • d61b43c Fix the build issue in utils by adding utils/index.ts to vite build entries.

[0.1.0-alpha.3]

  • 3a19451 Fix the lint error on useEffect in sender.tsx.

  • 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.

[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

[0.1.0-alpha.1]

  • 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.
  • 577946c Bump dependencies.

[0.1.0-alpha.0]

  • 464fc05 Release first pre-release with alpha tag of @matechat/react.