Releases: tjtanjin/react-chatbotify
v.1.3.2
Fixed:
- Fixed an issue where chat window auto-scrolling does not work for streamed messages
- Fixed an issue where loading chat history caused current scroll position to shift
- Fixed an issue where extremely long words get abruptly cut-off at the tail end of the message bubble
v1.3.1
A minor patch to clean up the previous release.
Added:
- Added
simStream
andstreamSpeed
options for user bubble to be consistent with bot bubble
Fixed:
- Fixed an issue where users can quickly click on options or checkboxes in rapid succession resulting in multiple inputs
- Fixed an issue where simulating stream messages would ignore the
blockSpam
option
v1.3.0
This version brings about significant updates/changes, the details have laid out below:
Added:
- New
simStream
andstreamSpeed
options withinbotBubble
to simulate streaming of messages - New
params.streamMessage
parameter that allows real-time streaming of messages (great for integration with LLMs)
Modified:
- The
isUser
field within messages has been updated tosender
- Both
params.injectMessage
andparams.streamMessage
are now async functions (previously,params.injectMessage
was non-async) - Internally, logic for chat history, notifications and a few other minor areas have been updated to support stream messages
- Documentation website has been updated to reflect all the latest information
Note: A possible "breaking" change would be params.injectMessage
which is now async. Depending on your existing usage, there might not be a need to make any changes. However, if you are using multiple params.injectMessage
in quick succession, this could mean multiple messages are being sent at once without the use of await
.
v1.2.0
- Fixed chatbot window resizing on mobile devices (previously window is out of view on some devices/browsers)
- Fixed chatbot window orientation (previously chatbot would not re-orientate on phone rotation)
The above fixes are important for users who wish to properly support the chatbot on mobile devices. While there has been significantly more mobile view tests done for these fixes, it is near-impossible to exhaustively run through all devices/browsers. Should anyone still encounter issues with mobile view, please do not hesitate to reach out.
v1.1.0
-
Added support for enforcing & showing character count/limit via the following options:
chatInput.showCharacterCount: false
chatInput.characterLimit: -1
-
Added support for styling the above character limit display via the following styles:
characterLimitStyle
characterLimitReachedStyle
The above additions have been updated on the documentation website for reference.