Skip to content

Releases: sendbird/chat-ai-widget

v1.8.0

12 Sep 02:35
Compare
Choose a tag to compare

[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

22 Aug 10:51
Compare
Choose a tag to compare

[1.7.9] (Aug 22, 2024)

Feat:

  • Added callbacks.onWidgetSettingFailure in Constant for handling widget setting failure
  • Added error page to widget playground

Fix:

  • Fixed a broken message data content UI in dark theme

v1.7.8

16 Aug 03:00
Compare
Choose a tag to compare

[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 in Constant. 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:, or sms: are now being considered as url

v1.7.7

07 Aug 07:14
Compare
Choose a tag to compare

[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]

07 Aug 07:36
Compare
Choose a tag to compare

Deprecated version

v1.7.5

01 Aug 07:25
Compare
Choose a tag to compare

[1.7.5] (Aug 1, 2024)

Fix:

  • Fixed a bug where directly managing the widget open state caused a disconnection after 3 minutes and prevented reconnection.

v1.7.4

30 Jul 08:46
Compare
Choose a tag to compare

[1.7.4] (July 30, 2024)

Fix:

  • Fixed a UX issue where the feedback modal was displaying unintended behavior
  • Fixed a bug with URL handling in Markdown syntax
  • Fixed a bug where the self-service widget was broken in Angular.js

v1.7.3

08 Jul 16:12
Compare
Choose a tag to compare

[1.7.3] (July 09, 2024)

Fix:

  • Fixed a broken backward compatibility of FormMessage introduced in v1.7.2

v1.7.2

04 Jul 04:23
Compare
Choose a tag to compare

[1.7.2] (July 04, 2024)

Feat:

  • FormInput of FormMesage now supports two new MessageFormItem.style.layout types: chip and textarea
  • 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 window
  • autoOpen is now being ignored in mobile view

v1.7.1

26 Jun 06:12
Compare
Choose a tag to compare

[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.