Releases: tjtanjin/react-chatbotify
v2.0.0-beta.6
Fixed:
- Fixed an issue where chat icon will not fit in the button correctly
- Fixed an issue where
baseUrl
was wrongly namedbase_url
Added:
- Added caching of themes locally to improve performance
- Added optional
cacheDuration
field when specifying themes which specifies in seconds the duration to cache the theme for (defaults to 30 days)
v2.0.0-beta.5
Fixed:
- Fixed an issue where cursor disabled icon was not showing up on mac devices
Added:
- Added a bunch of new style props for buttons and icons to improve convenience in styling:
// new button styles
audioButtonStyle?: React.CSSProperties;
audioButtonDisabledStyle?: React.CSSProperties;
closeChatButtonStyle?: React.CSSProperties;
emojiButtonStyle?: React.CSSProperties;
emojiButtonDisabledStyle?: React.CSSProperties;
fileAttachmentButtonStyle?: React.CSSProperties;
fileAttachmentButtonDisabledStyle?: React.CSSProperties;
notificationButtonStyle?: React.CSSProperties;
notificationButtonDisabledStyle?: React.CSSProperties;
voiceButtonStyle?: React.CSSProperties;
voiceButtonDisabledStyle?: React.CSSProperties;
// new icon styles
chatIconStyle?: React.CSSProperties;
audioIconStyle?: React.CSSProperties;
audioIconDisabledStyle?: React.CSSProperties;
closeChatIconStyle?: React.CSSProperties;
emojiIconStyle?: React.CSSProperties;
emojiIconDisabledStyle?: React.CSSProperties;
fileAttachmentIconStyle?: React.CSSProperties;
fileAttachmentIconDisabledStyle?: React.CSSProperties;
notificationIconStyle?: React.CSSProperties;
notificationIconDisabledStyle?: React.CSSProperties;
voiceIconStyle?: React.CSSProperties;
voiceIconDisabledStyle?: React.CSSProperties;
sendIconStyle?: React.CSSProperties;
Note:
There were minor shifting of a few classes to better separate buttons and icons. This should not be an issue for the vast majority of users, but if you've done very specific changes to button/icon styles by targeting the CSS classes, it is advisable to visually check the appearance of said buttons/icons.
v2.0.0-beta.4
Fixed:
- Fixed an issue where disabling
chatInput
globally cannot be overriden by block-levelchatDisabled
attribute
v2.0.0-beta.3
Fixed:
- Fixed an issue where themes will override the current
isOpen
value insettings
, causing it to open/close unexpectedly
v2.0.0-beta.2
Fixed:
- Fixed an issue where theme conflicts are not properly resolved
- Fixed an issue where invalid sections are not caught in themes
- Fixed an issue where sensitive inputs permanently mask the remaining conversations
- Fixed an issue where chatbot loses focus in text area when transitioning from a previously disabled state
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