@microsoft/teamsfx 2.2.3-alpha.2f75fb932.0 → 2.2.3-alpha.35dcda472.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2487,6 +2487,7 @@ function cloneConversation(conversation) {
2487
2487
  */
2488
2488
  function getKey(reference) {
2489
2489
  var _a, _b;
2490
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
2490
2491
  return `_${(_a = reference.conversation) === null || _a === void 0 ? void 0 : _a.tenantId}_${(_b = reference.conversation) === null || _b === void 0 ? void 0 : _b.id}`;
2491
2492
  }
2492
2493
  /**
@@ -3628,8 +3629,7 @@ class DefaultBotSsoExecutionActivityHandler extends botbuilder.TeamsActivityHand
3628
3629
  timeout: (_h = (_g = ssoConfig.dialog) === null || _g === void 0 ? void 0 : _g.ssoPromptConfig) === null || _h === void 0 ? void 0 : _h.timeout,
3629
3630
  endOnInvalidMessage: (_k = (_j = ssoConfig.dialog) === null || _j === void 0 ? void 0 : _j.ssoPromptConfig) === null || _k === void 0 ? void 0 : _k.endOnInvalidMessage,
3630
3631
  };
3631
- const teamsfx = new TeamsFx(exports.IdentityType.User, Object.assign({}, customConfig));
3632
- this.ssoExecutionDialog = new BotSsoExecutionDialog(dedupStorage, settings, teamsfx);
3632
+ this.ssoExecutionDialog = new BotSsoExecutionDialog(dedupStorage, settings, customConfig, customConfig.initiateLoginEndpoint);
3633
3633
  this.conversationState = conversationState;
3634
3634
  this.dialogState = conversationState.createProperty("DialogState");
3635
3635
  this.userState = userState;
@@ -3799,9 +3799,12 @@ class ConversationBot$1 {
3799
3799
  // the default error handler
3800
3800
  adapter.onTurnError = (context, error) => tslib.__awaiter(this, void 0, void 0, function* () {
3801
3801
  // This check writes out errors to console.
3802
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
3802
3803
  console.error(`[onTurnError] unhandled error: ${error}`);
3803
3804
  // Send a trace activity, which will be displayed in Bot Framework Emulator
3804
- yield context.sendTraceActivity("OnTurnError Trace", `${error}`, "https://www.botframework.com/schemas/error", "TurnError");
3805
+ yield context.sendTraceActivity("OnTurnError Trace",
3806
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
3807
+ `${error}`, "https://www.botframework.com/schemas/error", "TurnError");
3805
3808
  // Send a message to the user
3806
3809
  yield context.sendActivity(`The bot encountered unhandled error: ${error.message}`);
3807
3810
  yield context.sendActivity("To continue to run this bot, please fix the bot source code.");