Skip to content

Releases: react-chatbotify/react-chatbotify

v2.0.0-beta.38

22 May 17:52
Compare
Choose a tag to compare

Fixed:

  • Fixed an issue where dimensions provided in strings to styles were not handled correctly for internal calculations

v2.0.0-beta.37

20 May 15:28
Compare
Choose a tag to compare

Added:

  • Added a new export RcbEvent that is an enum for all React ChatBotify events
  • Added a new useOnRcbEvent that accepts RcbEvent as the first parameter and an event handler as the second parameter

v2.0.0-beta.36

15 May 16:59
Compare
Choose a tag to compare

Fixed:

  • Fixed an issue with restartFlow not triggering the start block again
  • Fixed an issue where an interruptable transition is not respected in restartFlow
  • Fixed an issue where events emitted may be missed during the initial loading of the chatbot
  • Fixed an issue with file uploads not resetting properly (note that the files type was updated from FileList to Array<File>)

v2.0.0-beta.35

13 May 14:52
Compare
Choose a tag to compare

Fixed:

  • Fixed an issue where messages removed are still persisted in chat history storage
  • Fixed an issue where params.userInput is not updated when user messages are added through utility functions
  • Fixed an issue where notifications count for unread messages may be inaccurate

v2.0.0-beta.34

12 May 17:32
Compare
Choose a tag to compare

Important:

  • This version introduces integration with the LLM Connector Plugin and with that, successfully provides out-of-the-box integration with LLMs! The LLM Connector plugin is ready and will be made available on NPM soon.

Breaking Changes:

  • Renamed params.openChat to params.toggleChatWindow for consistency with the useChatWindow hook
  • The injectMessage, streamMessage, simulateStreamMessage and removeMessage functions now return the entire Message object instead of just the id

Fixed:

  • Fixed an issue where streamMessage prevents users from scrolling away
  • Fixed an issue where message processing may fail due to a missing type check
  • Fixed an issue where rendering messages in code blocks can occasionally cause contents to be cut-off
  • Fixed an issue where endStreamMessage did not properly emit the message data in its event
  • Fixed an issue with audio not playing in simulate message stream due to changes in the previous version
  • Optimized all toggle states (resolves rare scenarios where toggles don't work correctly)

Added:

  • Added scrollToBottom and toggleIsBotTyping utility functions to the useChatWindow hook
  • Enhanced all toggle functions (toggleAudio, toggleVoice, toggleNotifications, toggleChatWindow, toggleTextAreaDisabled, toggleTextAreaSensitiveMode) to allow an optional active parameter which basically specifies desired end state (if no parameter is passed in, it continues to function just as a simple toggle)
  • Added rcb-pre-process-block and rcb-post-process-block events

v2.0.0-beta.33

22 Apr 17:47
Compare
Choose a tag to compare

Breaking Change:

  • The botBubble.simStream and userBubble.simStream settings have been renamed to botBubble.simulateStream and userBubble.simulateStream for greater clarity
  • The botBubble.simulateStream and userBubble.simulateStream settings are no longer applied to params.injectMessage, and are only applied to the message attribute within a block (you should now defer to the newly added params.simulateStreamMessage for simulating streaming via utility function)
  • The simStreamChunker data field has been renamed to simulateStreamChunker and moved from rcb-pre-inject-message event to the newly added rcb-start-simulate-stream-message event

Added:

  • Added a new speakAudio utility function to the useAudio hook
  • Added a new params.simulateStreamMessage for users to simulate stream message
  • Added new rcb-start-simulate-stream-message and rcb-stop-simulate-stream-message events

Note:
A couple of breaking changes have been introduced this patch to be more consistent with how messages are handled. This consistency is aimed at simplifying future development work both on the core library and for plugins. If you are using the Markdown Renderer Plugin or HTML Renderer Plugin, you should update both plugins to version 0.2.0 or higher which adds support for listening to the new simulate stream message events.

v2.0.0-beta.32

16 Mar 03:55
3aeb3b6
Compare
Choose a tag to compare

Fixed:

  • Fixed an occasional issue where loading plugins can cause infinite re-renders
  • Fixed an issue where stale messages may be used within the useMessages hook

v2.0.0-beta.31

25 Feb 17:29
Compare
Choose a tag to compare

Deprecated:

  • Removed botBubble.dangerouslySetInnerHtml and userBubble.dangerouslySetInnerHtml properties, whose logic has now been shifted to the newly published HTML Renderer plugin

Added:

  • Added a new rcb-start-audio-speak event
  • Added a new optional tags property to Message component, targeted at plugins looking to add identifiers to messages (for example, to know when a message was processed by a plugin)
  • Added a new simStreamChunker data field to rcb-pre-inject-message event, which allows custom parsing of simulated stream
  • Added a new hasChatHistoryLoaded state to the useChatHistory hook to determine if chat history has been loaded

v2.0.0-beta.30

19 Feb 00:54
Compare
Choose a tag to compare

v2.0.0-beta.30 (19-02-2025)

Fixed:

  • Fixed an issue introduced in the previous version where custom components are wrapped in chat bubbles

v2.0.0-beta.29

18 Feb 17:52
Compare
Choose a tag to compare

Fixed:

  • Fixed issues with stream message events

Added:

  • Added a new optional contentWrapper property to Message component, targeting niche use cases where additional parsing/rendering of strings for a message are required before it is wrapped in a chat message bubble

Note:
The addition of the niche property contentWrapper is not typical - in general, we avoid niche implementations in the core library. In this case however, it provides an elegant solution for supporting plugins that need to render messages in specific formats. For example, the newly published Markdown Renderer uses this new property.