Releases: sendbird/chat-ai-widget
Releases · sendbird/chat-ai-widget
v1.8.0
[1.8.0] (Sep 12, 2024)
Feat:
- File Message Support: File attachment in messages is now supported. Of course, drag-and-drop and copy-paste actions are also supported.
- Locale Support: Added a
locale
option to support multiple languages for welcome messages and suggested replies. If not specified, the browser's default language will be used. (support for multilingual settings will be available in the dashboard). - Carousel Adapter for Function Call: Introduced an adapter to convert function call responses into a carousel UI. Example usage is as follows:
interface MealFunctionCallResponse { meals: { strYoutube: string; strMeal: string; strMealThumb: string }[]; } function isMealsResponse(response: unknown): response is MealFunctionCallResponse { return !!response && typeof response === 'object' && 'meals' in response && Array.isArray(response.meals); } const App = () => { return ( <ChatAiWidget tools={{ functionCall: { carouselAdapter({ response }) { if (isMealsResponse(response)) { return response.meals.map((it) => ({ title: it.strMeal, // Carousel card title featured_image: it.strMealThumb, // Carousel card image url: it.strYoutube, // URL to open when the carousel card is clicked })); } return []; }, }, }} /> ); };
v1.7.9
v1.7.8
[1.7.8] (Aug 16, 2024)
Fix:
- Fixed a bug where session not being reset on unauthorized error during channel fetch
- Fixed a bug where browser cached messages are not being cleared on refreshing the channel
Chore:
- Added
enableWidgetExpandButton
inConstant
. Refer to Available props section in README.md file for details WidgetWindowFullScreen
no longer disconnects while network is connected- Texts in user message that start with
tel:
,mailto:
, orsms:
are now being considered as url
v1.7.7
[1.7.7] (Aug 7, 2024)
Fix:
- Added a root element to the full-screen component for the modal to avoid crashes when clicking feedback.
- Fixed the carousel index calculation.
Chore:
- Updated disconnect WS timeout to 1 minute.
- Updated Sendbird banner link attributes.
[Deprecated] [v1.7.6]
Deprecated version
v1.7.5
v1.7.4
v1.7.3
v1.7.2
[1.7.2] (July 04, 2024)
Feat:
FormInput
ofFormMesage
now supports two newMessageFormItem.style.layout
types:chip
andtextarea
- Added
window.sbWidget
interface to allowing control of the widget state and cache clearing from a non-React environment
Update:
MessageFeedbackModal
is now being displayed within the widget windowautoOpen
is now being ignored in mobile view
v1.7.1
[1.7.1] (Jun 26, 2024)
Feat:
- Added a file viewer that allows you to enlarge images by clicking on
them.
Fix:
- Fixed the text color of messages sent by third parties (not the bot)
to display correctly.
Chore:
- Re-applied the autoOpen settings as configured in the dashboard.