Releases: tjtanjin/react-chatbotify
v2.0.0-beta.1
Note:
v2.0.0-beta.1 is a major release with breaking changes. All details are available in the migration guide.
v1.7.0
Added:
- Added a new
language
property to thevoice
section for managing voice input language - Added a new
flowStartTrigger
property to thetheme
section for managing when flow starts
Fixed:
- Fixed an issue where embedded chatbot notifications are played while chatbot is visible
Note:
This release has a minor breaking change for developers who are using advance custom paths. If you are currently initializing paths with ["start"]
, note that specifying the start
block is no longer needed. This means you can simply use []
as shown in the updated custom paths example here.
v1.6.3
v1.6.2
Added:
- Added a new
allowNewline
property to thechatInput
section which determines if user input can contain newline (\n
) - The notifications feature is now properly supported for embedded chatbots and will chime only if the chatbot is scrolled out of view
Fixed:
- Fixed an issue where voice detection may not be properly disabled while the chatbot is still streaming messages
- Fixed an issue where shift + enter submits user input instead of attempting to add newline
- Fixed an issue where newline is automatically converted to whitespace in user and bot bubbles
v1.6.1
Added:
- Added a new
showCount
property to thenotification
section which allows showing/hiding of unread message count on the top right corner of chatbot button
Fixed:
- Improved performance for streaming messages
- Fixed an issue where streaming messages while
dangerouslySetInnerHtml
is set totrue
will pause briefly on encountering html tags - Fixed an issue where notification sound may occasionally chime when chatbot is embedded
- Fixed an issue where textarea styles may be inconsistent when disabled/focused
- Fixed an issue where the bot may crash on rare occasions when users spam the voice button
- Fixed an issue where embedded chatbot will force input focus on new messages even when scrolled out of page view
v1.6.0
Added:
- Added a new
sensitiveInput
configuration section to cater for sensitive information (refer to API documentation) - Added a new
autoLoad
property to thechatHistory
section which allows chat history messages to be automatically loaded on start - Added a new
dangerouslySetInnerHtml
property to bothuserBubble
andbotBubble
which allows setting of raw HTML content (use with caution)
Fixed:
- Fixed several type definitions within the library itself
- Fixed an issue where the load chat history button can appear distorted if given a long text string
- Fixed an issue where some chat history messages may not be saved when using real-time stream
- Fixed an issue where chat input textarea may resize when focused on some occasions
- Fixed selection of emoji causing textarea to lose focus
- Improved performance for saving chat history
- Further reduced assets file size
Note:
This update contains significant additions which have been documented on the API documentation. You will also find new live examples for Sensitive Input and Markup Message. This will be one of the last few (if not the last) release before v2.0.0 arrives. Feel free to join discord to stay up to date!
v1.5.2
v1.5.1
Fixed:
- Fixed an issue where library css file is not injected for commonjs users
- Fixed an issue where tooltip mode may not be respected
- Fixed an issue where option boxes do not stretch on much larger chatbot window width
- Fixed an issue where overflowing text are not hidden for checkboxes/option boxes
- Fixed an issue where if
header
section is used, thenshowAvatar
is a required property - Fixed usage of oversized images (improves default chatbot load time!)
v1.5.0
Added:
- Added a new
animate
option to bothuserBubble
andbotBubble
to easily toggle animations on and off for them
Fixed:
- Fixed an issue where empty chat bubbles from stream messages are being saved to chat history
Miscellaneous:
- As of this version (1.5.0), it is no longer necessary to import
react-chatbotify.css
file in your projects (injected implicitly). Keeping the import statement will not cause any issues currently but this will be a breaking change in version 2.0.0. It is recommended to remove the import statement as soon as possible and the documentation website has also been updated to reflect this change.
v1.4.0
Added:
- A new
chatWindow
section has been added into the Configurations category with the following default values:Explanations for what each property does can be found on the documentation website.chatWindow: { showScrollbar: false, autoJumpToBottom: false, showMessagePrompt: true, messagePromptText: "New Messages ↓", messagePromptOffset: 30, }
Fixed:
- Fixed an occasional issue where stream messages do not autoscroll when user is at the bottom of the chat
- Fixed an issue where users can interrupt the
start
block if it is streaming - Fixed a bug where users can pinch-zoom the chat window on mobile devices to cause it to be distorted
- Fixed a rare bug where the chat window could be scrolled out of view
- Fixed a longstanding issue where playing notification sounds on mobile devices causes media controls to appear in notifications tray
Note:
Initially planned for only bug fixes, I eventually added a whole new chatWindow
section simply because I felt there were many small areas that could use enhancements (hiding the scrollbar, showing new message prompts instead of forcing users to the bottom etc). This led to version 1.4.0 which was entirely focused on cleaning up the imperfections from the several changes that have been made in the last few releases.