From 4897cbc6e523f8aa30719833b1753fdb4b4939bc Mon Sep 17 00:00:00 2001 From: bang9 Date: Thu, 12 Sep 2024 11:25:12 +0900 Subject: [PATCH] release: v1.8.0 --- CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++++ package.json | 2 +- yarn.lock | 18 +++++++++++++++++- 3 files changed, 56 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf09ee10d..539ebd9e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,41 @@ +## [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: + ```tsx + 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 ( + ({ + 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 []; + }, + }, + }} + /> + ); + }; + ``` + ## [1.7.10] (Aug 29, 2024) ### Update: - Improved user interface and experience of form message feature diff --git a/package.json b/package.json index aee005eed..df39489e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sendbird/chat-ai-widget", - "version": "1.7.10", + "version": "1.8.0", "description": "Sendbird Chat AI Widget,\n Detailed documentation can be found at https://github.com/sendbird/chat-ai-widget#readme", "main": "./dist/index.umd.js", "module": "./dist/index.es.js", diff --git a/yarn.lock b/yarn.lock index a50b3e5fb..45e21de14 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3259,7 +3259,23 @@ __metadata: languageName: node linkType: hard -"@sendbird/chat-ai-widget@npm:1.7.10, @sendbird/chat-ai-widget@workspace:.": +"@sendbird/chat-ai-widget@npm:1.7.10": + version: 1.7.10 + resolution: "@sendbird/chat-ai-widget@npm:1.7.10" + dependencies: + styled-components: "npm:^5.3.11" + peerDependencies: + date-fns: ^3.6.0 + react: ^16.8.6 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.6 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + date-fns: + optional: true + checksum: 10c0/dc79601cc0024d3aa1229412a147abee9fb6ed264a0fd406d1916360042193cb2150a5a678394b1fcf1c4145a44bb6f028f7cb9d18da2765aaeaa789bbae7e44 + languageName: node + linkType: hard + +"@sendbird/chat-ai-widget@workspace:.": version: 0.0.0-use.local resolution: "@sendbird/chat-ai-widget@workspace:." dependencies: