@microsoft/teams-js 2.0.0-beta.6-dev.4 → 2.0.0-beta.6-dev.5

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.
@@ -2924,6 +2924,24 @@ export namespace dialog {
2924
2924
  */
2925
2925
  function isSupported(): boolean;
2926
2926
  }
2927
+ /**
2928
+ * @hidden
2929
+ * Hide from docs
2930
+ * --------
2931
+ * Convert UrlDialogInfo to DialogInfo to send the information to host in {@linkcode open} API.
2932
+ *
2933
+ * @internal
2934
+ */
2935
+ function getDialogInfoFromUrlDialogInfo(urlDialogInfo: UrlDialogInfo): DialogInfo;
2936
+ /**
2937
+ * @hidden
2938
+ * Hide from docs
2939
+ * --------
2940
+ * Convert BotUrlDialogInfo to DialogInfo to send the information to host in {@linkcode bot.open} API.
2941
+ *
2942
+ * @internal
2943
+ */
2944
+ function getDialogInfoFromBotUrlDialogInfo(botUrlDialogInfo: BotUrlDialogInfo): DialogInfo;
2927
2945
  }
2928
2946
 
2929
2947
  /**
@@ -1121,7 +1121,7 @@ __webpack_require__.d(__webpack_exports__, {
1121
1121
  });
1122
1122
 
1123
1123
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1124
- var version = "2.0.0-beta.6-dev.4";
1124
+ var version = "2.0.0-beta.6-dev.5";
1125
1125
  /**
1126
1126
  * @hidden
1127
1127
  * The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -2527,7 +2527,8 @@ var dialog;
2527
2527
  if (messageFromChildHandler) {
2528
2528
  registerHandler('messageForParent', messageFromChildHandler);
2529
2529
  }
2530
- sendMessageToParent('tasks.startTask', [urlDialogInfo], function (err, result) {
2530
+ var dialogInfo = getDialogInfoFromUrlDialogInfo(urlDialogInfo);
2531
+ sendMessageToParent('tasks.startTask', [dialogInfo], function (err, result) {
2531
2532
  submitHandler({ err: err, result: result });
2532
2533
  removeHandler('messageForParent');
2533
2534
  });
@@ -2647,7 +2648,8 @@ var dialog;
2647
2648
  if (messageFromChildHandler) {
2648
2649
  registerHandler('messageForParent', messageFromChildHandler);
2649
2650
  }
2650
- sendMessageToParent('tasks.startTask', [botUrlDialogInfo], function (err, result) {
2651
+ var dialogInfo = getDialogInfoFromBotUrlDialogInfo(botUrlDialogInfo);
2652
+ sendMessageToParent('tasks.startTask', [dialogInfo], function (err, result) {
2651
2653
  submitHandler({ err: err, result: result });
2652
2654
  removeHandler('messageForParent');
2653
2655
  });
@@ -2663,6 +2665,45 @@ var dialog;
2663
2665
  }
2664
2666
  bot.isSupported = isSupported;
2665
2667
  })(bot = dialog.bot || (dialog.bot = {}));
2668
+ /**
2669
+ * @hidden
2670
+ * Hide from docs
2671
+ * --------
2672
+ * Convert UrlDialogInfo to DialogInfo to send the information to host in {@linkcode open} API.
2673
+ *
2674
+ * @internal
2675
+ */
2676
+ function getDialogInfoFromUrlDialogInfo(urlDialogInfo) {
2677
+ var dialogInfo = {
2678
+ url: urlDialogInfo.url,
2679
+ height: urlDialogInfo.size ? urlDialogInfo.size.height : DialogDimension.Small,
2680
+ width: urlDialogInfo.size ? urlDialogInfo.size.width : DialogDimension.Small,
2681
+ title: urlDialogInfo.title,
2682
+ fallbackUrl: urlDialogInfo.fallbackUrl,
2683
+ };
2684
+ return dialogInfo;
2685
+ }
2686
+ dialog.getDialogInfoFromUrlDialogInfo = getDialogInfoFromUrlDialogInfo;
2687
+ /**
2688
+ * @hidden
2689
+ * Hide from docs
2690
+ * --------
2691
+ * Convert BotUrlDialogInfo to DialogInfo to send the information to host in {@linkcode bot.open} API.
2692
+ *
2693
+ * @internal
2694
+ */
2695
+ function getDialogInfoFromBotUrlDialogInfo(botUrlDialogInfo) {
2696
+ var dialogInfo = {
2697
+ url: botUrlDialogInfo.url,
2698
+ height: botUrlDialogInfo.size ? botUrlDialogInfo.size.height : DialogDimension.Small,
2699
+ width: botUrlDialogInfo.size ? botUrlDialogInfo.size.width : DialogDimension.Small,
2700
+ title: botUrlDialogInfo.title,
2701
+ fallbackUrl: botUrlDialogInfo.fallbackUrl,
2702
+ completionBotId: botUrlDialogInfo.completionBotId,
2703
+ };
2704
+ return dialogInfo;
2705
+ }
2706
+ dialog.getDialogInfoFromBotUrlDialogInfo = getDialogInfoFromBotUrlDialogInfo;
2666
2707
  })(dialog || (dialog = {}));
2667
2708
 
2668
2709
  ;// CONCATENATED MODULE: ./src/public/menus.ts