diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c2ef6d2f..290a7c973 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,44 @@ # Changelog - v3 + +## [v3.15.14] (Feb 7 2025) + +### Features: +- Added custom hooks for each module replacing the previous context hook. The custom hook allows access to the provider's data, which are divided into `state` and `actions` properties. + * Added `useGroupChannelList`, replacing `useGroupChannelListContext` + * Added `useCreateChannel`, replacing `useCreateChannelContext` + * Added `useChannelSettings`, replacing `useChannelSettingsContext` + * Added `useGroupChannel`, replacing `useGroupChannelContext` + * Added `useMessageSearch`, replacing `useMessageSearchContext` + * Added `useThread`, replacing `useThreadContext` + - How to Use? + ```tsx + import { useGroupChannel } from '@sendbird/uikit-react/GroupChannel/context'; + + // Implement your code inside the react function component. + const Component = () => { + // const { currentChannel, scrollToBottom } = useGroupChannelContext(); + const { + state : { + currentChannel, + }, + actions : { + scrollToBottom + }, + } = useGroupChannel(); + + const onScrollDownButtonClick = () => { + scrollToBottom(); + }; + + // ... + } + ``` + +### Fixes: +- Fixed an issue where the pasting the formatted text to `MessageInput` did not shows properly. +- Fixed a bug with forwardRef Rules of Hooks violation. + ## [v3.15.13] (Jan 31 2025) ### Features: diff --git a/package.json b/package.json index cb59fedf3..4f77d5de4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sendbird/uikit-react", - "version": "3.15.13", + "version": "3.15.14", "description": "Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.", "keywords": [ "sendbird",