@microsoft/teams-js 2.0.0-beta.4-dev.2 → 2.0.0-beta.4-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.
@@ -4472,6 +4472,52 @@ export namespace sharing {
4472
4472
  export {};
4473
4473
  }
4474
4474
 
4475
+ /**
4476
+ * Namespace to interact with the stage view specific part of the SDK.
4477
+ */
4478
+ export namespace stageView {
4479
+ /**
4480
+ * Parameters to open a stage view.
4481
+ */
4482
+ interface StageViewParams {
4483
+ /**
4484
+ * The application ID of the Teams application to be opened.
4485
+ */
4486
+ appId: string;
4487
+ /**
4488
+ * The URL of the content to display.
4489
+ */
4490
+ contentUrl: string;
4491
+ /**
4492
+ * The chat or channel ID.
4493
+ */
4494
+ threadId: string;
4495
+ /**
4496
+ * The title to give the stage view.
4497
+ */
4498
+ title: string;
4499
+ /**
4500
+ * The Teams app website URL.
4501
+ */
4502
+ websiteUrl?: string;
4503
+ /**
4504
+ * The entity ID of the Teams app content being opened.
4505
+ */
4506
+ entityId?: string;
4507
+ }
4508
+ /**
4509
+ * @hidden
4510
+ * Feature is under development
4511
+ *
4512
+ * Opens a stage view to display a Teams app
4513
+ * @param stageViewParams The parameters to pass into the stage view.
4514
+ * @param callback Callback that will be triggered once the stage view is closed.
4515
+ * The callback takes as an argument an SdkError in case something happened (i.e.
4516
+ * no permissions to execute the API)
4517
+ */
4518
+ function open(stageViewParams: StageViewParams, callback?: (sdkError?: SdkError) => void): void;
4519
+ }
4520
+
4475
4521
  /**
4476
4522
  * @alpha
4477
4523
  */
@@ -1112,6 +1112,7 @@ __webpack_require__.d(__webpack_exports__, {
1112
1112
  "settings": () => (/* reexport */ settings),
1113
1113
  "shareDeepLink": () => (/* reexport */ shareDeepLink),
1114
1114
  "sharing": () => (/* reexport */ sharing),
1115
+ "stageView": () => (/* reexport */ stageView),
1115
1116
  "tasks": () => (/* reexport */ tasks),
1116
1117
  "teams": () => (/* reexport */ teams),
1117
1118
  "teamsCore": () => (/* reexport */ teamsCore),
@@ -1120,7 +1121,7 @@ __webpack_require__.d(__webpack_exports__, {
1120
1121
  });
1121
1122
 
1122
1123
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1123
- var version = "2.0.0-beta.4-dev.2";
1124
+ var version = "2.0.0-beta.4-dev.5";
1124
1125
  /**
1125
1126
  * @hidden
1126
1127
  * The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -4375,7 +4376,7 @@ var dialog;
4375
4376
  * @param dialogInfo - An object containing width and height properties
4376
4377
  */
4377
4378
  function resize(dialogInfo) {
4378
- ensureInitialized(FrameContexts.task);
4379
+ ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.task, FrameContexts.meetingStage);
4379
4380
  var width = dialogInfo.width, height = dialogInfo.height, extra = __rest(dialogInfo, ["width", "height"]);
4380
4381
  if (!Object.keys(extra).length) {
4381
4382
  sendMessageToParent('tasks.updateTask', [dialogInfo]);
@@ -4392,7 +4393,7 @@ var dialog;
4392
4393
  * @param appIds - Helps to validate that the call originates from the same appId as the one that invoked the task module
4393
4394
  */
4394
4395
  function submit(result, appIds) {
4395
- ensureInitialized(FrameContexts.task);
4396
+ ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.task, FrameContexts.meetingStage);
4396
4397
  // Send tasks.completeTask instead of tasks.submitTask message for backward compatibility with Mobile clients
4397
4398
  sendMessageToParent('tasks.completeTask', [result, Array.isArray(appIds) ? appIds : [appIds]]);
4398
4399
  }
@@ -5623,6 +5624,35 @@ var sharing;
5623
5624
  sharing.isSupported = isSupported;
5624
5625
  })(sharing || (sharing = {}));
5625
5626
 
5627
+ ;// CONCATENATED MODULE: ./src/public/stageView.ts
5628
+
5629
+
5630
+
5631
+ /**
5632
+ * Namespace to interact with the stage view specific part of the SDK.
5633
+ */
5634
+ var stageView;
5635
+ (function (stageView) {
5636
+ /**
5637
+ * @hidden
5638
+ * Feature is under development
5639
+ *
5640
+ * Opens a stage view to display a Teams app
5641
+ * @param stageViewParams The parameters to pass into the stage view.
5642
+ * @param callback Callback that will be triggered once the stage view is closed.
5643
+ * The callback takes as an argument an SdkError in case something happened (i.e.
5644
+ * no permissions to execute the API)
5645
+ */
5646
+ function open(stageViewParams, callback) {
5647
+ ensureInitialized(FrameContexts.content);
5648
+ if (!stageViewParams) {
5649
+ throw new Error('[stageView.open] Stage view params cannot be null');
5650
+ }
5651
+ sendMessageToParent('stageView.open', [stageViewParams], callback);
5652
+ }
5653
+ stageView.open = open;
5654
+ })(stageView || (stageView = {}));
5655
+
5626
5656
  ;// CONCATENATED MODULE: ./src/public/call.ts
5627
5657
 
5628
5658
 
@@ -6384,6 +6414,7 @@ var tasks;
6384
6414
 
6385
6415
 
6386
6416
 
6417
+
6387
6418
 
6388
6419
 
6389
6420