Releases: tjtanjin/react-chatbotify
Releases · tjtanjin/react-chatbotify
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
v2.0.0-beta.21
Minor Breaking Change:
- The
desktopEnabled
andmobileEnabled
properties previously found undersettings.general
have been moved to a newsettings.device
section
Fixed:
- Fixed an issue with notification sound spams when streaming messages
Added:
- Added a new
sendIconHoveredStyle
to allow users to define send icon styles on hover - Added a new
device
section (which thedesktopEnabled
andmobileEnabled
properties are moved to) - Added a new
applyMobileOptimizations
property to the newly addedsettings.device
section
v2.0.0-beta.20
Fixed:
- Fixed an issue with the default chatbot footer icon
- Improved checks for desktop/mobile devices
- Reduced unnecessary re-renders (minor optimizations)
- Properly fixed chatbot svg icon on mobile
Added:
- Added new
replaceSettings
,replaceStyles
,replaceMessages
,replacePaths
andreplaceToasts
utility functions to their respective hooks (replaces their respective state setters)
Note:
Hooks no longer directly expose state setters (not a great practice, and hinders optimizations that can be done within the library itself). The new functions serve as a drop-in replacement for the state setters.
v2.0.0-beta.19
Fixed:
- Fixed an issue where using
ChatBotProvider
for hooks will cause infinite re-renders - Fixed an issue where audio service will read out html tags
- Fixed an issue where
sendOutput
field is being ignored foroptions
andcheckboxes
attributes - Fixed an issue where tooltip had a much lower z-index than chat window, causing it to be partially hidden
- Fixed an issue with the
useToasts
hook not being imported correctly - Fixed an issue where chatbot button svg icon was not rendered correctly on mobile devices
Added:
- Added a new
updateSettings
utility function to theuseSettings
hook (refer to documentation for details) - Added a new
updateStyles
utility function to theuseStyles
hook (refer to documentation for details)
v2.0.0-beta.18
Fixed:
- Excluded comments from theme css files parsing
- Fixed an issue where icon was not rendered correctly in footer
v2.0.0-beta.17
Fixed:
- Fixed improper parsing of css files in themes
- Fixed toast animation not working
Added:
- Updated button with svgs from: https://fonts.google.com/
- Added disabled icon support for all buttons (now possible to have different icons for enabled/disabled state)
- Added svg component support for button icons (conveniently use the
fill
attribute to recolor icons!) - Added a new
sendIconDisabledStyle
- Loading of chat history no longer locks the text area
- Standardized keyframe naming conventions