Releases: tjtanjin/react-chatbotify
Releases · tjtanjin/react-chatbotify
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.
v2.0.0-beta.28
Fixed:
- Fixed an issue with redundant styles being applied
- Fixed an issue where specific static svg imports are missing in the final build
v2.0.0-beta.27
Fixed:
- Fixed an issue where
updateStyles
may not reflect updates for certain components - Fixed an issue where restart flow does not properly reset
isSensitive
attribute - Fixed an issue where restart flow does not sync live history messages with storage
Added:
- Added a new
blurTextArea
utility function to theuseTextArea
hook - Added a new
chatWindow.showTypingIndicator
setting to allow configuration for whether bot typing indicator is shown (defaults totrue
) - Extended the
voice.timeoutPeriod
setting which can now be disabled with a value of 0 (i.e. voice stays on until user turns it off manually)
v2.0.0-beta.26
Fixed:
- Fixed a bug introduced in v2.0.0-beta.25 that caused simulate streaming of messages to fail
v2.0.0-beta.25
Fixed:
- Fixed an issue with z-index causing display issues in embedded chatbots
- Fixed and improved stream logic for messages
Note:
The message sender
field now defaults to being fully capitalized (i.e. bot
-> BOT
). However, it is also no longer case sensitive so no action is required.
v2.0.0-beta.24
Fixed:
- Fixed an issue where toasts showed up incorrectly positioned in embedded chatbots
v2.0.0-beta.23
Minor Breaking Change:
- All functions in
params
are now async, with the addition of these functions in this version:params.showToast
params.dismissToast
params.goToPath
params.setTextAreaValue
params.openChat
- The following functions from hooks are now async:
showToast
dismissToast
toggleAudio
toggleNotifications
toggleVoice
toggleChatWindow
goToPath
setTextAreaValue
Fixed:
- Fixed stale values in toggle events
- Fixed an issue with toasts not being positioned properly
- Fixed an issue where new message prompts are not dismissed in embedded chatbots
- Fixed an issue with the chatbot potentially crashing in react native webview
- Fixed warning messages when loading chat history
Added:
- Added support for async event handlers (push promises into
event.promises
for them to be awaited till resolved) - Added
Plugin
type as an export - Improved logic for simulating stream messages
v2.0.0-beta.22
Fixed:
- Fixed a rare issue where the latest message sent may not be saved into chat history
- Fixed error messages in console when chat history loads options or checkboxes
Added:
- Added a new
storageType
property tosettings.chatHistory
that allows users to specifyLOCAL_STORAGE
orSESSION_STORAGE
for storing chat messages - Improved plugin experience by allowing plugin developers to include auto-setups
- Toasts styles are now handled independently, allowing different toasts to show up concurrently