botbuilder
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -221,9 +221,9 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
switch (message.type) { | ||
case "botAddedToConversation": | ||
case "BotAddedToConversation": | ||
msg = this.options.groupWelcomeMessage; | ||
break; | ||
case "userAddedToConversation": | ||
case "UserAddedToConversation": | ||
msg = this.options.userWelcomeMessage; | ||
break; | ||
case "endOfConversation": | ||
case "EndOfConversation": | ||
msg = this.options.goodbyeMessage; | ||
@@ -230,0 +230,0 @@ break; |
@@ -164,3 +164,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
if (args.promptType == PromptType.choice) { | ||
var style = args.listStyle || ListStyle.auto; | ||
var style = args.listStyle; | ||
if (style == ListStyle.auto) { | ||
@@ -256,27 +256,3 @@ var maxBtns = Channel.maxButtons(session); | ||
args.enumValues = entities.EntityRecognizer.expandChoices(choices); | ||
args.listStyle = args.listStyle || ListStyle.auto; | ||
var connector = '', list; | ||
switch (args.listStyle) { | ||
case ListStyle.list: | ||
list = '\n '; | ||
args.enumValues.forEach(function (value, index) { | ||
list += connector + (index + 1) + '. ' + value; | ||
connector = '\n '; | ||
}); | ||
args.prompt += list; | ||
break; | ||
case ListStyle.inline: | ||
list = ' '; | ||
args.enumValues.forEach(function (value, index) { | ||
list += connector + (index + 1) + '. ' + value; | ||
if (index == args.enumValues.length - 2) { | ||
connector = index == 0 ? ' or ' : ', or '; | ||
} | ||
else { | ||
connector = ', '; | ||
} | ||
}); | ||
args.prompt += list; | ||
break; | ||
} | ||
args.listStyle = args.hasOwnProperty('listStyle') ? args.listStyle : ListStyle.auto; | ||
beginPrompt(session, args); | ||
@@ -283,0 +259,0 @@ }; |
@@ -5,3 +5,3 @@ { | ||
"description": "Bot Builder is a dialog system for building rich bots on virtually any platform.", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
220932
4691