uischema: port composer ui schema to component schema files (#4341)

* add uischema to editor settings

* port ui schema from composer

* add new line at EOF

* update OnCancelDialog

* remove extraneous properties

* remove empty ui schemas

* include uischemas in csproj references
This commit is contained in:
Andy Brown 2020-08-05 22:34:05 -07:00 коммит произвёл GitHub
Родитель 252a0fa578
Коммит 6ca3185cb5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
64 изменённых файлов: 642 добавлений и 10 удалений

Просмотреть файл

@ -22,6 +22,10 @@ indent_size = 2
[*.json]
indent_size = 2
# Schema files
[*.{schema,uischema}]
indent_size = 4
# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
@ -75,7 +79,7 @@ dotnet_style_prefer_conditional_expression_over_return = true:silent
# Style Definitions
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# Use PascalCase for constant fields
# Use PascalCase for constant fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
@ -138,7 +142,7 @@ csharp_indent_labels = flush_left
# Space preferences
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_before_colon_in_inheritance_clause = true

3
.vscode/settings.json поставляемый
Просмотреть файл

@ -1,6 +1,7 @@
{
"files.associations": {
"*.schema": "json"
"*.schema": "json",
"*.uischema": "json"
},
"dotnet-test-explorer.testProjectPath": "**/*.Tests.csproj"
}

Просмотреть файл

@ -28,6 +28,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>
@ -54,4 +55,4 @@
<ProjectReference Include="..\Microsoft.Bot.Builder.Dialogs.Declarative\Microsoft.Bot.Builder.Dialogs.Declarative.csproj" />
<ProjectReference Include="..\Microsoft.Bot.Configuration\Microsoft.Bot.Configuration.csproj" />
</ItemGroup>
</Project>
</Project>

Просмотреть файл

@ -27,6 +27,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>
@ -56,4 +57,4 @@
<ProjectReference Include="..\Microsoft.Bot.Builder\Microsoft.Bot.Builder.csproj" />
<ProjectReference Include="..\Microsoft.Bot.Configuration\Microsoft.Bot.Configuration.csproj" />
</ItemGroup>
</Project>
</Project>

Просмотреть файл

@ -41,6 +41,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>
@ -71,4 +72,4 @@
<ProjectReference Include="..\Microsoft.Bot.Builder\Microsoft.Bot.Builder.csproj" />
<ProjectReference Include="..\Microsoft.Bot.Builder.Dialogs.Declarative\Microsoft.Bot.Builder.Dialogs.Declarative.csproj" />
</ItemGroup>
</Project>
</Project>

Просмотреть файл

@ -34,6 +34,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>
@ -59,4 +60,4 @@
<ProjectReference Include="..\Microsoft.Bot.Builder.Dialogs.Adaptive\Microsoft.Bot.Builder.Dialogs.Adaptive.csproj" />
</ItemGroup>
</Project>
</Project>

Просмотреть файл

@ -35,6 +35,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>
@ -72,4 +73,4 @@
<ProjectReference Include="..\Microsoft.Bot.Builder.Dialogs.Adaptive\Microsoft.Bot.Builder.Dialogs.Adaptive.csproj" />
<ProjectReference Include="..\Microsoft.Bot.Builder.Dialogs.Declarative\Microsoft.Bot.Builder.Dialogs.Declarative.csproj" />
</ItemGroup>
</Project>
</Project>

Просмотреть файл

@ -37,6 +37,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>
@ -71,4 +72,4 @@
<ProjectReference Include="..\AdaptiveExpressions\AdaptiveExpressions.csproj" />
</ItemGroup>
</Project>
</Project>

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Begin a new dialog",
"subtitle": "Begin Dialog",
"helpLink": "https://aka.ms/bfc-understanding-dialogs",
"order": [
"dialog",
"options",
"resultProperty",
"*"
]
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Connect to a skill",
"subtitle": "Skill Dialog",
"helpLink": "https://aka.ms/bf-composer-docs-connect-skill"
}
}

Просмотреть файл

@ -0,0 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Break out of loop",
"subtitle": "Break out of loop"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Cancel all active dialogs",
"subtitle": "Cancel All Dialogs",
"helpLink": "https://aka.ms/bfc-understanding-dialogs"
}
}

Просмотреть файл

@ -0,0 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Continue loop",
"subtitle": "Continue loop"
}
}

Просмотреть файл

@ -0,0 +1,6 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Debug Break"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Delete properties",
"subtitle": "Delete Properties",
"helpLink": "https://aka.ms/bfc-using-memory"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Delete a property",
"subtitle": "Delete Property",
"helpLink": "https://aka.ms/bfc-using-memory"
}
}

Просмотреть файл

@ -0,0 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Modify active dialog",
"subtitle": "Edit Actions"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Edit an array property",
"subtitle": "Edit Array",
"helpLink": "https://aka.ms/bfc-using-memory"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Emit a custom event",
"subtitle": "Emit Event",
"helpLink": "https://aka.ms/bfc-custom-events"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "End this dialog",
"subtitle": "End Dialog",
"helpLink": "https://aka.ms/bfc-understanding-dialogs"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "End turn",
"subtitle": "End Turn",
"helpLink": "https://aka.ms/bfc-understanding-dialogs"
}
}

Просмотреть файл

@ -0,0 +1,15 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Loop: For each item",
"subtitle": "For Each",
"order": [
"itemsProperty",
"*"
],
"hidden": [
"actions"
],
"helpLink": "https://aka.ms/bfc-controlling-conversation-flow"
}
}

Просмотреть файл

@ -0,0 +1,16 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Loop: For each page (multiple items)",
"subtitle": "For Each Page",
"order": [
"itemsProperty",
"pageSize",
"*"
],
"hidden": [
"actions"
],
"helpLink": "https://aka.ms/bfc-controlling-conversation-flow"
}
}

Просмотреть файл

@ -0,0 +1,15 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Send an HTTP request",
"subtitle": "HTTP Request",
"order": [
"method",
"url",
"body",
"headers",
"*"
],
"helpLink": "https://aka.ms/bfc-using-http"
}
}

Просмотреть файл

@ -0,0 +1,12 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Branch: If/Else",
"subtitle": "If Condition",
"hidden": [
"actions",
"elseActions"
],
"helpLink": "https://aka.ms/bfc-controlling-conversation-flow"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Log to console",
"subtitle": "Log Action",
"helpLink": "https://aka.ms/bfc-debugging-bots"
}
}

Просмотреть файл

@ -0,0 +1,12 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Repeat this dialog",
"subtitle": "Repeat Dialog",
"helpLink": "https://aka.ms/bfc-understanding-dialogs",
"order": [
"options",
"*"
]
}
}

Просмотреть файл

@ -0,0 +1,13 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Replace this dialog",
"subtitle": "Replace Dialog",
"helpLink": "https://aka.ms/bfc-understanding-dialogs",
"order": [
"dialog",
"options",
"*"
]
}
}

Просмотреть файл

@ -0,0 +1,12 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Send a response",
"subtitle": "Send Activity",
"helpLink": "https://aka.ms/bfc-send-activity",
"order": [
"activity",
"*"
]
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Set properties",
"subtitle": "Set Properties",
"helpLink": "https://aka.ms/bfc-using-memory"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Set a property",
"subtitle": "Set Property",
"helpLink": "https://aka.ms/bfc-using-memory"
}
}

Просмотреть файл

@ -0,0 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Sign out user",
"subtitle": "Signout User"
}
}

Просмотреть файл

@ -0,0 +1,18 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Branch: Switch (multiple options)",
"subtitle": "Switch Condition",
"helpLink": "https://aka.ms/bfc-controlling-conversation-flow",
"hidden": [
"default"
],
"properties": {
"cases": {
"hidden": [
"actions"
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Emit a trace event",
"subtitle": "Trace Activity",
"helpLink": "https://aka.ms/bfc-debugging-bots"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Prompt for a file or an attachment",
"subtitle": "Attachment Input",
"helpLink": "https://aka.ms/bfc-ask-for-user-input"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Prompt with multi-choice",
"subtitle": "Choice Input",
"helpLink": "https://aka.ms/bfc-ask-for-user-input"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Prompt for confirmation",
"subtitle": "Confirm Input",
"helpLink": "https://aka.ms/bfc-ask-for-user-input"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Prompt for a date or a time",
"subtitle": "Date Time Input",
"helpLink": "https://aka.ms/bfc-ask-for-user-input"
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Prompt for a number",
"subtitle": "Number Input",
"helpLink": "https://aka.ms/bfc-ask-for-user-input"
}
}

Просмотреть файл

@ -0,0 +1,12 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "OAuth login",
"subtitle": "OAuth Input",
"helpLink": "https://aka.ms/bfc-using-oauth",
"order": [
"connectionName",
"*"
]
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Prompt for text",
"subtitle": "Text Input",
"helpLink": "https://aka.ms/bfc-ask-for-user-input"
}
}

Просмотреть файл

@ -0,0 +1,24 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Adaptive dialog",
"description": "This configures a data driven dialog via a collection of events and actions.",
"helpLink": "https://aka.ms/bf-composer-docs-dialog",
"order": [
"recognizer",
"*"
],
"hidden": [
"triggers",
"generator",
"selector",
"schema"
],
"properties": {
"recognizer": {
"label": "Language Understanding",
"description": "To understand what the user says, your dialog needs a \"Recognizer\"; that includes example words and sentences that users may use."
}
}
}
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"hidden": [
"entities"
]
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Activities",
"subtitle": "Activity received"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Dialog started",
"subtitle": "Begin dialog event"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Dialog cancelled",
"subtitle": "Cancel dialog event",
"order": [
"condition",
"*"
],
"hidden": [
"actions"
]
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Handle a condition",
"subtitle": "Condition"
}
}

Просмотреть файл

@ -0,0 +1,16 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Greeting",
"subtitle": "ConversationUpdate activity",
"description": "Handle the events fired when a user begins a new conversation with the bot.",
"helpLink": "https://aka.ms/bf-composer-docs-conversation-update-activity"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Dialog events",
"subtitle": "Dialog event"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Conversation ended",
"subtitle": "EndOfConversation activity"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Error occurred",
"subtitle": "Error event"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Event received",
"subtitle": "Event activity"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Handover to human",
"subtitle": "Handoff activity"
}
}

Просмотреть файл

@ -0,0 +1,16 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Intent recognized",
"subtitle": "Intent recognized",
"order": [
"intent",
"condition",
"entities",
"*"
],
"hidden": [
"actions"
]
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Conversation invoked",
"subtitle": "Invoke activity"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Message received",
"subtitle": "Message received activity"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Message deleted",
"subtitle": "Message deleted activity"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Message reaction",
"subtitle": "Message reaction activity"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Message updated",
"subtitle": "Message updated activity"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Re-prompt for input",
"subtitle": "Reprompt dialog event"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "User is typing",
"subtitle": "Typing activity"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"order": [
"condition",
"*"
],
"hidden": [
"actions"
],
"label": "Unknown intent",
"subtitle": "Unknown intent recognized"
}
}

Просмотреть файл

@ -33,6 +33,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>
@ -59,4 +60,4 @@
<ProjectReference Include="..\AdaptiveExpressions\AdaptiveExpressions.csproj" />
</ItemGroup>
</Project>
</Project>

Просмотреть файл

@ -13,6 +13,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
</ItemGroup>
<ItemGroup>