Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: v1.8.0 #360

Merged
merged 2 commits into from
Sep 12, 2024
Merged

release: v1.8.0 #360

merged 2 commits into from
Sep 12, 2024

Conversation

bang9
Copy link
Contributor

@bang9 bang9 commented Sep 12, 2024

[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 [];
              },
            },
          }}
        />
      );
    };

Copy link

netlify bot commented Sep 12, 2024

Deploy Preview for chat-ai-widget ready!

Name Link
🔨 Latest commit 78264e5
🔍 Latest deploy log https://app.netlify.com/sites/chat-ai-widget/deploys/66e253308973c70008110a58
😎 Deploy Preview https://deploy-preview-360--chat-ai-widget.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bang9 bang9 self-assigned this Sep 12, 2024
@bang9
Copy link
Contributor Author

bang9 commented Sep 12, 2024

/bot create ticket

Copy link

Copy link

[Creating Ticket] In progress https://app.circleci.com/pipelines/github/sendbird/sdk-deployment/820

@sendbird-sdk-deployment
Copy link
Collaborator

[Creating Ticket] 🔖 Done https://sendbird.atlassian.net/browse/SDKRLSD-1406

Copy link

github-actions bot commented Sep 12, 2024

Size Change: 0 B

Total Size: 602 kB

ℹ️ View Unchanged
Filename Size
./dist/__bundle-46d64517-********.js 4.01 kB
./dist/__bundle-7c3d40f4-********.js 21 B
./dist/__bundle-bbedc09c-********.js 892 B
./dist/index-********.js 305 kB
./dist/index.es.js 173 B
./dist/index.umd.js 282 kB
./dist/Placeholder.error-********.js 345 B
./dist/Placeholder.loading-********.js 186 B
./dist/Placeholder.noChannels-********.js 182 B
./dist/Placeholder.noMessages-********.js 182 B
./dist/PlaceholderCommon-********.js 247 B
./dist/style.css 8.64 kB

compressed-size-action

@bang9 bang9 added the 1.8.0 label Sep 12, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved by automation

@bang9 bang9 merged commit 3a673ea into develop Sep 12, 2024
4 of 6 checks passed
@bang9 bang9 deleted the release/v1.8.0 branch September 12, 2024 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants