Releases: react-chatbotify/react-chatbotify
v2.0.0-beta.38
Fixed:
- Fixed an issue where dimensions provided in strings to styles were not handled correctly for internal calculations
v2.0.0-beta.37
Added:
- Added a new export
RcbEvent
that is an enum for all React ChatBotify events - Added a new
useOnRcbEvent
that acceptsRcbEvent
as the first parameter and an event handler as the second parameter
v2.0.0-beta.36
Fixed:
- Fixed an issue with
restartFlow
not triggering thestart
block again - Fixed an issue where an interruptable
transition
is not respected inrestartFlow
- 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
toArray<File>
)
v2.0.0-beta.35
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
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
toparams.toggleChatWindow
for consistency with theuseChatWindow
hook - The
injectMessage
,streamMessage
,simulateStreamMessage
andremoveMessage
functions now return the entireMessage
object instead of just theid
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
andtoggleIsBotTyping
utility functions to theuseChatWindow
hook - Enhanced all toggle functions (
toggleAudio
,toggleVoice
,toggleNotifications
,toggleChatWindow
,toggleTextAreaDisabled
,toggleTextAreaSensitiveMode
) to allow an optionalactive
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
andrcb-post-process-block
events
v2.0.0-beta.33
Breaking Change:
- The
botBubble.simStream
anduserBubble.simStream
settings have been renamed tobotBubble.simulateStream
anduserBubble.simulateStream
for greater clarity - The
botBubble.simulateStream
anduserBubble.simulateStream
settings are no longer applied toparams.injectMessage
, and are only applied to themessage
attribute within a block (you should now defer to the newly addedparams.simulateStreamMessage
for simulating streaming via utility function) - The
simStreamChunker
data field has been renamed tosimulateStreamChunker
and moved fromrcb-pre-inject-message
event to the newly addedrcb-start-simulate-stream-message
event
Added:
- Added a new
speakAudio
utility function to theuseAudio
hook - Added a new
params.simulateStreamMessage
for users to simulate stream message - Added new
rcb-start-simulate-stream-message
andrcb-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
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
Deprecated:
- Removed
botBubble.dangerouslySetInnerHtml
anduserBubble.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 toMessage
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 torcb-pre-inject-message
event, which allows custom parsing of simulated stream - Added a new
hasChatHistoryLoaded
state to theuseChatHistory
hook to determine if chat history has been loaded
v2.0.0-beta.30
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
Fixed:
- Fixed issues with stream message events
Added:
- Added a new optional
contentWrapper
property toMessage
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.