@microsoft/teams-js 2.0.0-beta.4-dev.9 → 2.0.0-beta.4-dev.10

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.
@@ -4563,7 +4563,19 @@ export namespace stageView {
4563
4563
  *
4564
4564
  * Opens a stage view to display a Teams app
4565
4565
  * @param stageViewParams The parameters to pass into the stage view.
4566
- * @param callback Callback that will be triggered once the stage view is closed.
4566
+ *
4567
+ */
4568
+ function open(stageViewParams: StageViewParams): Promise<void>;
4569
+ /**
4570
+ * @hidden
4571
+ * Feature is under development
4572
+ *
4573
+ * @deprecated
4574
+ * As of 2.0.0-beta.3, please use {@link stageView.open stageView.open(): Promise\<void\>} instead.
4575
+ *
4576
+ * Opens a stage view to display a Teams app
4577
+ * @param stageViewParams The parameters to pass into the stage view.
4578
+ * Optional; @param callback Callback that will be triggered once the stage view is closed.
4567
4579
  * The callback takes as an argument an SdkError in case something happened (i.e.
4568
4580
  * no permissions to execute the API)
4569
4581
  */
@@ -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.4-dev.9";
1124
+ var version = "2.0.0-beta.4-dev.10";
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.
@@ -5625,27 +5625,21 @@ var sharing;
5625
5625
 
5626
5626
 
5627
5627
 
5628
+
5628
5629
  /**
5629
5630
  * Namespace to interact with the stage view specific part of the SDK.
5630
5631
  */
5631
5632
  var stageView;
5632
5633
  (function (stageView) {
5633
- /**
5634
- * @hidden
5635
- * Feature is under development
5636
- *
5637
- * Opens a stage view to display a Teams app
5638
- * @param stageViewParams The parameters to pass into the stage view.
5639
- * @param callback Callback that will be triggered once the stage view is closed.
5640
- * The callback takes as an argument an SdkError in case something happened (i.e.
5641
- * no permissions to execute the API)
5642
- */
5643
5634
  function open(stageViewParams, callback) {
5644
5635
  ensureInitialized(FrameContexts.content);
5645
5636
  if (!stageViewParams) {
5646
5637
  throw new Error('[stageView.open] Stage view params cannot be null');
5647
5638
  }
5648
- sendMessageToParent('stageView.open', [stageViewParams], callback);
5639
+ var wrappedFunction = function () {
5640
+ return new Promise(function (resolve) { return resolve(sendAndHandleSdkError('stageView.open', stageViewParams)); });
5641
+ };
5642
+ return callCallbackWithErrorOrResultFromPromiseAndReturnPromise(wrappedFunction, callback);
5649
5643
  }
5650
5644
  stageView.open = open;
5651
5645
  })(stageView || (stageView = {}));