Releases: sendbird/chat-ai-widget
Releases · sendbird/chat-ai-widget
v1.6.5
[1.6.5] (Jun 18, 2024)
Feat:
- Added
botStudioEditProps.styles.toggleButtonUrl
to customize the toggle button image. - Exported
WidgetButton
component.
Fix:
- Fixed the disabled placeholder for waiting suggested replies.
- Fixed the issue where JavaScript would run when a link was ctrl + clicked.
v1.6.4
v1.6.3
v1.6.2
[1.6.2] (Jun 7, 2024)
Feat:
- Added video message support for bot messages. The widget now supports video messages sent by the bot.
- Added support for using new channels in
widget_setting
when a new channel is created. - Added
sessionToken
prop for managing manual sessions.
Fix:
- Fixed a bug where the widget would not connect to the bot when the cached channel is not found and now creates a new channel.
- Fixed a bug where the feedback did not work according to the option set in the dashboard.
Chore:
- Removed the default value of
false
for mentions in self-service.
v1.6.1
v1.6.0
[1.6.0] (May 31, 2024)
Feat:
- Added
messageInputControls
toConstant
. It allows to control enabled/disabled state of the message input - Added
dateLocale
toConstant
. It is applied to string values of message timestamp and date separator - Added the
enableHideWidgetForDeactivatedUser
toConstant
. It is used to decide whether the chatbot widget is hidden or not when the user is deactivated
import { ar } from 'date-fns/locale';
<ChatAiWidget
applicationId={props.applicationId}
botId={props.botId}
messageInputControls={{
blockWhileBotResponding: 30000, // Change force unblock timeout to 30 seconds. Default value is 10 seconds.
}}
dateLocale={ar} // Applies Arabic locale.
enableHideWidgetForDeactivatedUser={true}
/>
Refer to Available props section in README.md file for details.
Fix:
- Fixed a bug where multiple timestamps of messages are not grouped into one when should be if
botStudioEditProps.welcomeMessages
is given
v1.5.12
v1.5.11
[1.5.11] (May 23 2024)
Feat:
- Mssage input is now being disabled upon sending a message until a reply message is received from the bot and finished streaming
Chore:
- Expand button is now being displayed only when
callbacks.onWidgetExpandStateChange
is given
Deprecated:
- The
autoOpen
setting from the dashboard has been deprecated and is no longer being considered internally due to its use-case removal.
v1.5.10
v1.5.9
[1.5.9] (May 22 2024)
Feat:
Carousel message
Widget now supports carousel message for commercial shop items. Message with valid extendedMessagePayload?.commerce_shop_items
value is displayed as carousel component that is interactable.
Others
- Added
enableResetHistoryOnConnect
inConstant
for allowing to reset chat history - Added
onWidgetExpandStateChange
toConstant.callbacks
that will be called upon expanded state change event
Fix:
- Fixed a bug where
botStudioEditProps.botInfo.profileUrl
is not applied to typing indicator bubble - Fixed a bug where suggested replies of
botStudioEditProps.welcomeMessages
are not being removed after a message is sent - Fixed a bug where injected welcome messages are not displayed when there is no message in the channel
- Adjusted margins of message timestamp
- Fixed a bug where message bubble width is incorrectly displayed depending on the length of text
Permanently removed
- Following Constant properties are removed because they were not being considered internally:
- instantConnect
- botNickName
- enableMobileView (use deviceType instead)