Skip to content

Commit 1899bf1

Browse files
authored
Merge branch 'development' into 983838-ChartFeatures1
2 parents 737c624 + ca19774 commit 1899bf1

File tree

405 files changed

+8485
-7572
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+8485
-7572
lines changed

blazor-toc.html

Lines changed: 121 additions & 167 deletions
Large diffs are not rendered by default.

blazor/ai-assistview/accessibility.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ control: AI AssistView
77
documentation: ug
88
---
99

10-
# Accessibility in Blazor AI AssistView component
10+
# Accessibility in the Blazor AI AssistView component
1111

12-
The Blazor AI AssistView component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
12+
The Blazor AI AssistView component follows established accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
1313

14-
The accessibility compliance for the Blazor AI AssistView component is outlined below.
14+
The component’s accessibility compliance is summarized below.
1515

1616
| Accessibility Criteria | Compatibility |
1717
| -- | -- |
@@ -45,7 +45,7 @@ The following ARIA attributes are used in the AI AssistView component:
4545
| ------------ | ----------------------- |
4646
| `role=button` | Indicates that the element is clickable and triggers an action when activated by the user. |
4747
| `role=toolbar` | Specifies that the element is a toolbar. |
48-
| `aria-label` | Defines a string value that labels an interactive element for accessibility. |
48+
| `aria-label` | Provides an accessible name for interactive elements (for example, buttons, toolbar, or prompt input). |
4949
| `aria-orientation` | Specifies the orientation of the toolbar. |
5050
| `aria-disabled` | Indicates whether the toolbar or element is currently disabled and not interactive. |
5151
| `aria-multiline` | Indicates that a textbox accepts multiple lines of input or only a single line. |
@@ -57,19 +57,19 @@ The following keyboard shortcuts are supported by the AI AssistView component.
5757
| Windows | Mac | Actions |
5858
| --- | --- | --- |
5959
| <kbd>Enter</kbd> | <kbd>Enter</kbd> | Select the focused item. |
60-
| <kbd>Tab</kbd> | <kbd>Tab</kbd> | Moves focus forward through the interactive elements. |
61-
| <kbd>Shift</kbd> + <kbd>Tab</kbd> | <kbd>⇧</kbd> + <kbd>Tab</kbd> | Moves focus backward through the interactive elements. |
62-
<b>AI AssistView Toolbars</b>|||
63-
| <kbd>←</kbd> | <kbd>←</kbd> | Focuses the previous toolbar element. |
64-
| <kbd>→</kbd> | <kbd>→</kbd> | Focuses the next toolbar element. |
60+
| <kbd>Tab</kbd> | <kbd>Tab</kbd> | Move focus forward through interactive elements. |
61+
| <kbd>Shift</kbd> + <kbd>Tab</kbd> | <kbd>⇧</kbd> + <kbd>Tab</kbd> | Move focus backward through interactive elements. |
62+
<b>AI AssistView toolbar</b>|||
63+
| <kbd>←</kbd> | <kbd>←</kbd> | Move focus to the previous toolbar element. |
64+
| <kbd>→</kbd> | <kbd>→</kbd> | Move focus to the next toolbar element. |
6565
| <kbd>Enter</kbd> / <kbd>Space</kbd> | <kbd>Enter</kbd> / <kbd>Space</kbd> | Select the focused item or activate the selected option. |
66-
| <kbd>Home</kbd> | <kbd>Home</kbd> | Moves focus to the first toolbar element. |
67-
| <kbd>End</kbd> | <kbd>End</kbd> | Moves focus to the last toolbar element. |
66+
| <kbd>Home</kbd> | <kbd>Home</kbd> | Move focus to the first toolbar element. |
67+
| <kbd>End</kbd> | <kbd>End</kbd> | Move focus to the last toolbar element. |
6868

6969
## Ensuring accessibility
7070

7171
The Blazor AI AssistView component's accessibility levels are ensured through an [axe-core](https://www.nuget.org/packages/Deque.AxeCore.Playwright) with playwright tests.
7272

7373
## See also
7474

75-
* [Accessibility in Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components](https://blazor.syncfusion.com/documentation/common/accessibility)
75+
* Accessibility in Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components (https://blazor.syncfusion.com/documentation/common/accessibility)

blazor/ai-assistview/ai-integrations/gemini-integration.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,54 +7,55 @@ control: AI AssistView
77
documentation: ug
88
---
99

10-
# Integration of Gemini AI With Blazor AI AssistView component
10+
# Gemini AI With Blazor AI AssistView component
1111

12-
The Syncfusion AI AssistView supports integration with [Gemini](https://ai.google.dev/gemini-api/docs/quickstart), enabling advanced conversational AI features in your applications.
12+
The Syncfusion AI AssistView supports integration with [Gemini](https://ai.google.dev/gemini-api/docs/quickstart), enabling advanced conversational AI features in applications.
1313

1414
## Prerequisites
1515

16-
* Google account to generate API key on accessing `Gemini AI`
17-
* Syncfusion AI AssistView for Blazor `Syncfusion.Blazor.InteractiveChat` installed in your project.
16+
* Google account to generate an API key for accessing [Gemini AI](https://ai.google.dev/gemini-api/docs/quickstart)
17+
* Syncfusion AI AssistView for Blazor package [Syncfusion.Blazor.InteractiveChat](https://www.nuget.org/packages/Syncfusion.Blazor.InteractiveChat) installed in the project.
18+
* [Markdig](https://www.nuget.org/packages/Markdig) package available in the project for Markdown-to-HTML conversion (required by the sample code).
1819

1920
## Getting Started with the AI AssistView Component
2021

21-
Before integrating Gemini AI, ensure that the Syncfusion AI AssistView is correctly rendered in your application:
22+
Before integrating Gemini AI, ensure that the Syncfusion AI AssistView renders correctly in the application and that prerequisites are met:
2223

23-
[ Blazor Getting Started Guide](../getting-started)
24+
[Blazor Getting Started Guide](../getting-started)
2425

2526
## Install Dependencies
2627

2728
Install the Syncfusion Blazor package in the application.
2829

2930
```bash
3031

31-
Install-Package Syncfusion.Blazor.InteractiveChat
32+
Nuget\Install-Package Syncfusion.Blazor.InteractiveChat
3233

3334
```
3435

3536
Install the Gemini AI package in the application.
3637

3738
```bash
3839

39-
Install-Package Mscc.GenerativeAI
40+
Nuget\Install-Package Mscc.GenerativeAI
4041

4142
```
4243

4344
## Generate API Key
4445

45-
1. Go to [Google AI Studio](https://aistudio.google.com/app/apikey) and sign in with your Google account. If you don’t have one, create a new account.
46+
1. Go to [Google AI Studio](https://aistudio.google.com/app/api-keys) and sign in with a google account. Create a new account if needed.
4647

47-
2. Once logged in, click on `Get API Key` from the left-hand menu or the top-right corner of the dashboard.
48+
2. Select `Get API key` from the left menu or the top-right of the dashboard.
4849

49-
3. Click the `Create API Key` button. You’ll be prompted to either select an existing Google Cloud project or create a new one. Choose the appropriate option and proceed.
50+
3. Choose `Create API key`. Select an existing google cloud project or create a new one, then proceed.
5051

51-
4. After selecting or creating a project, your API key will be generated and displayed. Copy the key and store it securely, as it will only be shown once.
52+
4. After creating or selecting a project, an API key is generated and displayed. Copy the key and store it securely, as it may be shown only once.
5253

53-
> `Security Note`: Never commit the API key to version control. Use environment variables or a secret manager for production.
54+
> Security note: Do not commit API keys to version control. Use environment variables, a secret manager, or a server-side proxy in production.
5455
55-
## Integration Gemini AI with AI AssistView
56+
## Gemini AI with AI AssistView
5657

57-
* Add your generated `API Key` at the line
58+
* Add the generated API key in the following line.
5859

5960
```bash
6061

@@ -65,6 +66,11 @@ const string GeminiApiKey = 'Place your API key here';
6566
{% tabs %}
6667
{% highlight razor %}
6768

69+
@using Syncfusion.Blazor.InteractiveChat
70+
@using Syncfusion.Blazor.Navigations
71+
@using Mscc.GenerativeAI
72+
@using Markdig
73+
6874
<div class="aiassist-container" style="height: 350px; width: 650px;">
6975
<SfAIAssistView @ref="sfAIAssistView" ID="aiAssistView" PromptSuggestions="@promptSuggestions" PromptRequested="@OnPromptRequest">
7076
<AssistViews>
@@ -128,4 +134,4 @@ const string GeminiApiKey = 'Place your API key here';
128134
{% endhighlight %}
129135
{% endtabs %}
130136

131-
![Blazor AI AssistView Gemini Integration](./images/gemini-integration.png)
137+
![Blazor AI AssistView Gemini Integration](../images/gemini-integration.png)

0 commit comments

Comments
 (0)