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

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.
@@ -395,7 +395,7 @@ __webpack_require__.d(__webpack_exports__, {
395
395
  });
396
396
 
397
397
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
398
- var version = '2.0.0-beta.2-dev.6';
398
+ var version = '2.0.0-beta.2';
399
399
  /**
400
400
  * @hidden
401
401
  * The SDK version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -803,8 +803,7 @@ function ensureInitialized() {
803
803
  }
804
804
  }
805
805
  if (!found) {
806
- throw new Error("This call is only allowed in following contexts: " + JSON.stringify(expectedFrameContexts) + ". " +
807
- ("Current context: \"" + GlobalVars.frameContext + "\"."));
806
+ throw new Error("This call is not allowed in the '" + GlobalVars.frameContext + "' context");
808
807
  }
809
808
  }
810
809
  }
@@ -1197,7 +1196,8 @@ var HostClientType;
1197
1196
  HostClientType["android"] = "android";
1198
1197
  HostClientType["ios"] = "ios";
1199
1198
  /**
1200
- * @deprecated Use teamsRoomsWindows instead.
1199
+ * @deprecated
1200
+ * As of 2.0.0-beta.1, please use {@link teamsRoomsWindows} instead.
1201
1201
  */
1202
1202
  HostClientType["rigel"] = "rigel";
1203
1203
  HostClientType["surfaceHub"] = "surfaceHub";
@@ -1256,7 +1256,8 @@ var DialogDimension;
1256
1256
  DialogDimension["Small"] = "small";
1257
1257
  })(DialogDimension || (DialogDimension = {}));
1258
1258
  /**
1259
- * @deprecated with TeamsJS v2 upgrades
1259
+ * @deprecated
1260
+ * As of 2.0.0-beta.1, please use {@link DialogDimension} instead.
1260
1261
  */
1261
1262
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1262
1263
  var TaskModuleDimension = DialogDimension;
@@ -1294,7 +1295,8 @@ var authentication;
1294
1295
  authentication.initialize = initialize;
1295
1296
  var authParams;
1296
1297
  /**
1297
- * @deprecated with Teams JS v2 upgrades
1298
+ * @deprecated
1299
+ * As of 2.0.0-beta.1.
1298
1300
  *
1299
1301
  * Registers the authentication Communication.handlers
1300
1302
  *
@@ -4619,27 +4621,32 @@ var call;
4619
4621
  ;// CONCATENATED MODULE: ./src/public/appInitialization.ts
4620
4622
 
4621
4623
  /**
4622
- * @deprecated with TeamsJS v2 upgrades
4624
+ * @deprecated
4625
+ * As of 2.0.0-beta.1, please use {@link app} namespace instead.
4623
4626
  */
4624
4627
  var appInitialization;
4625
4628
  (function (appInitialization) {
4626
4629
  /**
4627
- * @deprecated with TeamsJS v2 upgrades
4630
+ * @deprecated
4631
+ * As of 2.0.0-beta.1, please use {@link app.Messages} instead.
4628
4632
  */
4629
4633
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4630
4634
  appInitialization.Messages = app_app.Messages;
4631
4635
  /**
4632
- * @deprecated with TeamsJS v2 upgrades
4636
+ * @deprecated
4637
+ * As of 2.0.0-beta.1, please use {@link app.FailedReason} instead.
4633
4638
  */
4634
4639
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4635
4640
  appInitialization.FailedReason = app_app.FailedReason;
4636
4641
  /**
4637
- * @deprecated with TeamsJS v2 upgrades
4642
+ * @deprecated
4643
+ * As of 2.0.0-beta.1, please use {@link app.ExpectedFailureReason} instead.
4638
4644
  */
4639
4645
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4640
4646
  appInitialization.ExpectedFailureReason = app_app.ExpectedFailureReason;
4641
4647
  /**
4642
- * @deprecated with TeamsJS v2 upgrades
4648
+ * @deprecated
4649
+ * As of 2.0.0-beta.1, please use {@link app.notifyAppLoaded app.notifyAppLoaded(): void} instead.
4643
4650
  * Notifies the frame that app has loaded and to hide the loading indicator if one is shown.
4644
4651
  */
4645
4652
  function notifyAppLoaded() {
@@ -4647,7 +4654,8 @@ var appInitialization;
4647
4654
  }
4648
4655
  appInitialization.notifyAppLoaded = notifyAppLoaded;
4649
4656
  /**
4650
- * @deprecated with TeamsJS v2 upgrades
4657
+ * @deprecated
4658
+ * As of 2.0.0-beta.1, please use {@link app.notifySuccess app.notifySuccess(): void} instead.
4651
4659
  * Notifies the frame that app initialization is successful and is ready for user interaction.
4652
4660
  */
4653
4661
  function notifySuccess() {
@@ -4655,7 +4663,8 @@ var appInitialization;
4655
4663
  }
4656
4664
  appInitialization.notifySuccess = notifySuccess;
4657
4665
  /**
4658
- * @deprecated with TeamsJS v2 upgrades
4666
+ * @deprecated
4667
+ * As of 2.0.0-beta.1, please use {@link app.notifyFailure app.notifyFailure(appInitializationFailedRequest: IFailedRequest): void} instead.
4659
4668
  * Notifies the frame that app initialization has failed and to show an error page in its place.
4660
4669
  */
4661
4670
  function notifyFailure(appInitializationFailedRequest) {
@@ -4663,7 +4672,8 @@ var appInitialization;
4663
4672
  }
4664
4673
  appInitialization.notifyFailure = notifyFailure;
4665
4674
  /**
4666
- * @deprecated with TeamsJS v2 upgrades
4675
+ * @deprecated
4676
+ * As of 2.0.0-beta.1, please use {@link app.notifyExpectedFailure app.notifyExpectedFailure(expectedFailureRequest: IExpectedFailureRequest): void} instead.
4667
4677
  * Notifies the frame that app initialized with some expected errors.
4668
4678
  */
4669
4679
  function notifyExpectedFailure(expectedFailureRequest) {
@@ -4679,7 +4689,8 @@ var appInitialization;
4679
4689
 
4680
4690
 
4681
4691
  /**
4682
- * @deprecated with TeamsJS v2 upgrades
4692
+ * @deprecated
4693
+ * As of 2.0.0-beta.1, please use {@link app.initialize app.initialize(validMessageOrigins?: string[]): Promise\<void\>} instead.
4683
4694
  *
4684
4695
  * Initializes the library. This must be called before any other SDK calls
4685
4696
  * but after the frame is loaded successfully.
@@ -4695,7 +4706,8 @@ function initialize(callback, validMessageOrigins) {
4695
4706
  });
4696
4707
  }
4697
4708
  /**
4698
- * @deprecated with Teams JS v2 upgrades
4709
+ * @deprecated
4710
+ * As of 2.0.0-beta.1, please use {@link app._initialize app._initialize(hostWindow: any): void} instead.
4699
4711
  *
4700
4712
  * @hidden
4701
4713
  * Hide from docs.
@@ -4709,7 +4721,8 @@ function _initialize(hostWindow) {
4709
4721
  app._initialize(hostWindow);
4710
4722
  }
4711
4723
  /**
4712
- * @deprecated with Teams JS v2 upgrades
4724
+ * @deprecated
4725
+ * As of 2.0.0-beta.1, please use {@link app._uninitialize app._uninitialize(): void} instead.
4713
4726
  *
4714
4727
  * @hidden
4715
4728
  * Hide from docs.
@@ -4722,7 +4735,8 @@ function _uninitialize() {
4722
4735
  app._uninitialize();
4723
4736
  }
4724
4737
  /**
4725
- * @deprecated with Teams JS v2 upgrades
4738
+ * @deprecated
4739
+ * As of 2.0.0-beta.1, please use {@link teamsCore.enablePrintCapability teamsCore.enablePrintCapability(): void} instead.
4726
4740
  *
4727
4741
  * Enable print capability to support printing page using Ctrl+P and cmd+P
4728
4742
  */
@@ -4730,7 +4744,8 @@ function enablePrintCapability() {
4730
4744
  teamsCore.enablePrintCapability();
4731
4745
  }
4732
4746
  /**
4733
- * @deprecated with Teams JS v2 upgrades
4747
+ * @deprecated
4748
+ * As of 2.0.0-beta.1, please use {@link teamsCore.print teamsCore.print(): void} instead.
4734
4749
  *
4735
4750
  * Default print handler
4736
4751
  */
@@ -4738,7 +4753,8 @@ function print() {
4738
4753
  teamsCore.print();
4739
4754
  }
4740
4755
  /**
4741
- * @deprecated with Teams JS v2 upgrades
4756
+ * @deprecated
4757
+ * As of 2.0.0-beta.1, please use {@link app.getContext app.getContext(): Promise\<app.Context\>} instead.
4742
4758
  *
4743
4759
  * Retrieves the current context the frame is running in.
4744
4760
  *
@@ -4753,7 +4769,8 @@ function getContext(callback) {
4753
4769
  });
4754
4770
  }
4755
4771
  /**
4756
- * @deprecated with Teams JS v2 upgrades
4772
+ * @deprecated
4773
+ * As of 2.0.0-beta.1, please use {@link app.registerOnThemeChangeHandler app.registerOnThemeChangeHandler(handler: (theme: string) => void): void} instead.
4757
4774
  *
4758
4775
  * Registers a handler for theme changes.
4759
4776
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -4764,7 +4781,8 @@ function registerOnThemeChangeHandler(handler) {
4764
4781
  app_app.registerOnThemeChangeHandler(handler);
4765
4782
  }
4766
4783
  /**
4767
- * @deprecated with Teams JS v2 upgrades
4784
+ * @deprecated
4785
+ * As of 2.0.0-beta.1, please use {@link pages.registerFullScreenHandler pages.registerFullScreenHandler(handler: (isFullScreen: boolean) => void): void} instead.
4768
4786
  *
4769
4787
  * Registers a handler for changes from or to full-screen view for a tab.
4770
4788
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -4775,7 +4793,8 @@ function registerFullScreenHandler(handler) {
4775
4793
  pages.registerFullScreenHandler(handler);
4776
4794
  }
4777
4795
  /**
4778
- * @deprecated with Teams JS v2 upgrades
4796
+ * @deprecated
4797
+ * As of 2.0.0-beta.1, please use {@link pages.appButton.onClick pages.appButton.onClick(handler: () => void): void} instead.
4779
4798
  *
4780
4799
  * Registers a handler for clicking the app button.
4781
4800
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -4786,7 +4805,8 @@ function registerAppButtonClickHandler(handler) {
4786
4805
  pages.appButton.onClick(handler);
4787
4806
  }
4788
4807
  /**
4789
- * @deprecated with Teams JS v2 upgrades
4808
+ * @deprecated
4809
+ * As of 2.0.0-beta.1, please use {@link pages.appButton.onHoverEnter pages.appButton.onHoverEnter(handler: () => void): void} instead.
4790
4810
  *
4791
4811
  * Registers a handler for entering hover of the app button.
4792
4812
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -4797,7 +4817,8 @@ function registerAppButtonHoverEnterHandler(handler) {
4797
4817
  pages.appButton.onHoverEnter(handler);
4798
4818
  }
4799
4819
  /**
4800
- * @deprecated with Teams JS v2 upgrades
4820
+ * @deprecated
4821
+ * As of 2.0.0-beta.1, please use {@link pages.appButton.onHoverLeave pages.appButton.onHoverLeave(handler: () => void): void} instead.
4801
4822
  *
4802
4823
  * Registers a handler for exiting hover of the app button.
4803
4824
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -4808,7 +4829,8 @@ function registerAppButtonHoverLeaveHandler(handler) {
4808
4829
  pages.appButton.onHoverLeave(handler);
4809
4830
  }
4810
4831
  /**
4811
- * @deprecated with Teams JS v2 upgrades
4832
+ * @deprecated
4833
+ * As of 2.0.0-beta.1, please use {@link pages.backStack.registerBackButtonHandler pages.backStack.registerBackButtonHandler(handler: () => boolean): void} instead.
4812
4834
  *
4813
4835
  * Registers a handler for user presses of the Team client's back button. Experiences that maintain an internal
4814
4836
  * navigation stack should use this handler to navigate the user back within their frame. If an app finds
@@ -4821,7 +4843,8 @@ function registerBackButtonHandler(handler) {
4821
4843
  pages.backStack.registerBackButtonHandler(handler);
4822
4844
  }
4823
4845
  /**
4824
- * @deprecated with Teams JS v2 upgrades
4846
+ * @deprecated
4847
+ * As of 2.0.0-beta.1, please use {@link teamsCore.registerOnLoadHandler teamsCore.registerOnLoadHandler(handler: (context: LoadContext) => void): void} instead.
4825
4848
  *
4826
4849
  * @hidden
4827
4850
  * Registers a handler to be called when the page has been requested to load.
@@ -4832,7 +4855,8 @@ function registerOnLoadHandler(handler) {
4832
4855
  teamsCore.registerOnLoadHandler(handler);
4833
4856
  }
4834
4857
  /**
4835
- * @deprecated with Teams JS v2 upgrades
4858
+ * @deprecated
4859
+ * As of 2.0.0-beta.1, please use {@link teamsCore.registerBeforeUnloadHandler teamsCore.registerBeforeUnloadHandler(handler: (readyToUnload: () => void) => boolean): void} instead.
4836
4860
  *
4837
4861
  * @hidden
4838
4862
  * Registers a handler to be called before the page is unloaded.
@@ -4844,7 +4868,8 @@ function registerBeforeUnloadHandler(handler) {
4844
4868
  teamsCore.registerBeforeUnloadHandler(handler);
4845
4869
  }
4846
4870
  /**
4847
- * @deprecated with Teams JS v2 upgrades
4871
+ * @deprecated
4872
+ * As of 2.0.0-beta.1, please use {@link teamsCore.registerFocusEnterHandler teamsCore.registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void} instead.
4848
4873
  *
4849
4874
  * @hidden
4850
4875
  * Registers a handler when focus needs to be passed from teams to the place of choice on app.
@@ -4855,7 +4880,8 @@ function registerFocusEnterHandler(handler) {
4855
4880
  teamsCore.registerFocusEnterHandler(handler);
4856
4881
  }
4857
4882
  /**
4858
- * @deprecated with Teams JS v2 upgrades
4883
+ * @deprecated
4884
+ * As of 2.0.0-beta.1, please use {@link pages.config.registerChangeConfigHandler pages.config.registerChangeConfigHandler(handler: () => void): void} instead.
4859
4885
  *
4860
4886
  * Registers a handler for when the user reconfigurated tab.
4861
4887
  *
@@ -4865,7 +4891,8 @@ function registerEnterSettingsHandler(handler) {
4865
4891
  pages.config.registerChangeConfigHandler(handler);
4866
4892
  }
4867
4893
  /**
4868
- * @deprecated with Teams JS v2 upgrades
4894
+ * @deprecated
4895
+ * As of 2.0.0-beta.1, please use {@link pages.tabs.getTabInstances pages.tabs.getTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise\<TabInformation\>} instead.
4869
4896
  *
4870
4897
  * Allows an app to retrieve for this user tabs that are owned by this app.
4871
4898
  * If no TabInstanceParameters are passed, the app defaults to favorite teams and favorite channels.
@@ -4880,7 +4907,8 @@ function getTabInstances(callback, tabInstanceParameters) {
4880
4907
  });
4881
4908
  }
4882
4909
  /**
4883
- * @deprecated with Teams JS v2 upgrades
4910
+ * @deprecated
4911
+ * As of 2.0.0-beta.1, please use {@link pages.tabs.getMruTabInstances pages.tabs.getMruTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise\<TabInformation\>} instead.
4884
4912
  *
4885
4913
  * Allows an app to retrieve the most recently used tabs for this user.
4886
4914
  *
@@ -4894,7 +4922,8 @@ function getMruTabInstances(callback, tabInstanceParameters) {
4894
4922
  });
4895
4923
  }
4896
4924
  /**
4897
- * @deprecated with Teams JS v2 upgrades
4925
+ * @deprecated
4926
+ * As of 2.0.0-beta.1, please use {@link core.shareDeepLink core.shareDeepLink(deepLinkParameters: DeepLinkParameters): void} instead.
4898
4927
  *
4899
4928
  * Shares a deep link that a user can use to navigate back to a specific state in this page.
4900
4929
  *
@@ -4904,7 +4933,8 @@ function shareDeepLink(deepLinkParameters) {
4904
4933
  core.shareDeepLink(deepLinkParameters);
4905
4934
  }
4906
4935
  /**
4907
- * @deprecated with Teams JS v2 upgrades
4936
+ * @deprecated
4937
+ * As of 2.0.0-beta.1, please use {@link core.executeDeepLink core.executeDeepLink(deepLink: string): Promise\<void\>} instead.
4908
4938
  *
4909
4939
  * Execute deep link API.
4910
4940
  *
@@ -4925,7 +4955,8 @@ function executeDeepLink(deepLink, onComplete) {
4925
4955
  });
4926
4956
  }
4927
4957
  /**
4928
- * @deprecated with Teams JS v2 upgrades
4958
+ * @deprecated
4959
+ * As of 2.0.0-beta.1, please use {@link pages.setCurrentFrame pages.setCurrentFrame(frameInfo: FrameInfo): void} instead.
4929
4960
  *
4930
4961
  * Set the current Frame Context
4931
4962
  *
@@ -4935,7 +4966,8 @@ function setFrameContext(frameContext) {
4935
4966
  pages.setCurrentFrame(frameContext);
4936
4967
  }
4937
4968
  /**
4938
- * @deprecated with Teams JS v2 upgrades
4969
+ * @deprecated
4970
+ * As of 2.0.0-beta.1, please use {@link pages.initializeWithFrameContext pages.initializeWithFrameContext(frameInfo: FrameInfo, callback?: () => void, validMessageOrigins?: string[],): void} instead.
4939
4971
  *
4940
4972
  * Initilize with FrameContext
4941
4973
  *
@@ -5030,7 +5062,8 @@ function transformAppContextToLegacyContext(appContext) {
5030
5062
  * Navigation specific part of the SDK.
5031
5063
  */
5032
5064
  /**
5033
- * @deprecated with Teams JS v2 upgrades
5065
+ * @deprecated
5066
+ * As of 2.0.0-beta.1, please use {@link pages.returnFocus pages.returnFocus(navigateForward?: boolean): void} instead.
5034
5067
  *
5035
5068
  * Return focus to the main Teams app. Will focus search bar if navigating foward and app bar if navigating back.
5036
5069
  *
@@ -5040,7 +5073,8 @@ function returnFocus(navigateForward) {
5040
5073
  pages.returnFocus(navigateForward);
5041
5074
  }
5042
5075
  /**
5043
- * @deprecated with Teams JS v2 upgrades
5076
+ * @deprecated
5077
+ * As of 2.0.0-beta.1, please use {@link pages.tabs.navigateToTab pages.tabs.navigateToTab(tabInstance: TabInstance): Promise\<void\>} instead.
5044
5078
  *
5045
5079
  * Navigates the Microsoft Teams app to the specified tab instance.
5046
5080
  *
@@ -5062,7 +5096,8 @@ function navigateToTab(tabInstance, onComplete) {
5062
5096
  });
5063
5097
  }
5064
5098
  /**
5065
- * @deprecated with Teams JS v2 upgrades
5099
+ * @deprecated
5100
+ * As of 2.0.0-beta.1, please use {@link pages.navigateCrossDomain pages.navigateCrossDomain(url: string): Promise\<void\>} instead.
5066
5101
  *
5067
5102
  * Navigates the frame to a new cross-domain URL. The domain of this URL must match at least one of the
5068
5103
  * valid domains specified in the validDomains block of the manifest; otherwise, an exception will be
@@ -5088,7 +5123,8 @@ function navigateCrossDomain(url, onComplete) {
5088
5123
  });
5089
5124
  }
5090
5125
  /**
5091
- * @deprecated with Teams JS v2 upgrades
5126
+ * @deprecated
5127
+ * As of 2.0.0-beta.1, please use {@link pages.backStack.navigateBack pages.backStack.navigateBack(): Promise\<void\>} instead.
5092
5128
  *
5093
5129
  * Navigates back in the Teams client.
5094
5130
  * See registerBackButtonHandler for more information on when it's appropriate to use this method.
@@ -5115,7 +5151,8 @@ function navigateBack(onComplete) {
5115
5151
 
5116
5152
 
5117
5153
  /**
5118
- * @deprecated with Teams JS v2 upgrades
5154
+ * @deprecated
5155
+ * As of 2.0.0-beta.1, please use {@link pages.config} namespace instead.
5119
5156
  *
5120
5157
  * Namespace to interact with the settings-specific part of the SDK.
5121
5158
  * This object is usable only on the settings frame.
@@ -5123,7 +5160,8 @@ function navigateBack(onComplete) {
5123
5160
  var settings;
5124
5161
  (function (settings) {
5125
5162
  /**
5126
- * @deprecated with Teams JS v2 upgrades
5163
+ * @deprecated
5164
+ * As of 2.0.0-beta.1, please use {@link pages.config.setValidityState pages.config.setValidityState(validityState: boolean): void} instead.
5127
5165
  *
5128
5166
  * Sets the validity state for the settings.
5129
5167
  * The initial value is false, so the user cannot save the settings until this is called with true.
@@ -5135,7 +5173,8 @@ var settings;
5135
5173
  }
5136
5174
  settings.setValidityState = setValidityState;
5137
5175
  /**
5138
- * @deprecated with Teams JS v2 upgrades
5176
+ * @deprecated
5177
+ * As of 2.0.0-beta.1, please use {@link pages.config.getConfig pages.config.getConfig(): Promise\<Config\>} instead.
5139
5178
  *
5140
5179
  * Gets the settings for the current instance.
5141
5180
  *
@@ -5149,7 +5188,8 @@ var settings;
5149
5188
  }
5150
5189
  settings.getSettings = getSettings;
5151
5190
  /**
5152
- * @deprecated with Teams JS v2 upgrades
5191
+ * @deprecated
5192
+ * As of 2.0.0-beta.1, please use {@link pages.config.setConfig pages.config.setConfig(instanceSettings: Config): Promise\<void\>} instead.
5153
5193
  *
5154
5194
  * Sets the settings for the current instance.
5155
5195
  * This is an asynchronous operation; calls to getSettings are not guaranteed to reflect the changed state.
@@ -5172,7 +5212,8 @@ var settings;
5172
5212
  }
5173
5213
  settings.setSettings = setSettings;
5174
5214
  /**
5175
- * @deprecated with Teams JS v2 upgrades
5215
+ * @deprecated
5216
+ * As of 2.0.0-beta.1, please use {@link pages.config.registerOnSaveHandler pages.config.registerOnSaveHandler(handler: (evt: SaveEvent) => void): void} instead.
5176
5217
  *
5177
5218
  * Registers a handler for when the user attempts to save the settings. This handler should be used
5178
5219
  * to create or update the underlying resource powering the content.
@@ -5186,7 +5227,8 @@ var settings;
5186
5227
  }
5187
5228
  settings.registerOnSaveHandler = registerOnSaveHandler;
5188
5229
  /**
5189
- * @deprecated with Teams JS v2 upgrades
5230
+ * @deprecated
5231
+ * As of 2.0.0-beta.1, please use {@link pages.config.registerOnRemoveHandler pages.config.registerOnRemoveHandler(handler: (evt: RemoveEvent) => void): void} instead.
5190
5232
  *
5191
5233
  * Registers a handler for user attempts to remove content. This handler should be used
5192
5234
  * to remove the underlying resource powering the content.
@@ -5202,11 +5244,11 @@ var settings;
5202
5244
  })(settings || (settings = {}));
5203
5245
 
5204
5246
  ;// CONCATENATED MODULE: ./src/public/tasks.ts
5205
- /* eslint-disable @typescript-eslint/ban-types */
5206
5247
 
5207
5248
 
5208
5249
  /**
5209
- * @deprecated with TeamsJS v2 upgrades
5250
+ * @deprecated
5251
+ * As of 2.0.0-beta.1, please use {@link dialog} namespace instead.
5210
5252
  *
5211
5253
  * Namespace to interact with the task module-specific part of the SDK.
5212
5254
  * This object is usable only on the content frame.
@@ -5215,7 +5257,8 @@ var settings;
5215
5257
  var tasks;
5216
5258
  (function (tasks) {
5217
5259
  /**
5218
- * @deprecated with TeamsJS v2 upgrades
5260
+ * @deprecated
5261
+ * As of 2.0.0-beta.1, please use {@link dialog.open dialog.open(dialogInfo: DialogInfo, submitHandler?: (err: string, result: string) => void): IAppWindow} instead.
5219
5262
  *
5220
5263
  * Allows an app to open the task module.
5221
5264
  *
@@ -5227,7 +5270,8 @@ var tasks;
5227
5270
  }
5228
5271
  tasks.startTask = startTask;
5229
5272
  /**
5230
- * @deprecated with TeamsJS v2 upgrades
5273
+ * @deprecated
5274
+ * As of 2.0.0-beta.1, please use {@link dialog.resize dialog.resize(dialogInfo: DialogInfo): void} instead.
5231
5275
  *
5232
5276
  * Update height/width task info properties.
5233
5277
  *
@@ -5238,13 +5282,15 @@ var tasks;
5238
5282
  }
5239
5283
  tasks.updateTask = updateTask;
5240
5284
  /**
5241
- * @deprecated with TeamsJS v2 upgrades
5285
+ * @deprecated
5286
+ * As of 2.0.0-beta.1, please use {@link dialog.submit dialog.submit(result?: string | object, appIds?: string | string[]): void} instead.
5242
5287
  *
5243
5288
  * Submit the task module.
5244
5289
  *
5245
5290
  * @param result - Contains the result to be sent to the bot or the app. Typically a JSON object or a serialized version of it
5246
5291
  * @param appIds - Helps to validate that the call originates from the same appId as the one that invoked the task module
5247
5292
  */
5293
+ // eslint-disable-next-line
5248
5294
  function submitTask(result, appIds) {
5249
5295
  dialog.submit(result, appIds);
5250
5296
  }
@@ -5301,23 +5347,28 @@ var tasks;
5301
5347
 
5302
5348
 
5303
5349
  /**
5304
- * @deprecated with TeamsJS v2 upgrades
5350
+ * @deprecated
5351
+ * As of 2.0.0-beta.1.
5305
5352
  */
5306
5353
 
5307
5354
  /**
5308
- * @deprecated with TeamsJS v2 upgrades
5355
+ * @deprecated
5356
+ * As of 2.0.0-beta.1.
5309
5357
  */
5310
5358
 
5311
5359
  /**
5312
- * @deprecated with TeamsJS v2 upgrades
5360
+ * @deprecated
5361
+ * As of 2.0.0-beta.1.
5313
5362
  */
5314
5363
 
5315
5364
  /**
5316
- * @deprecated with TeamsJS v2 upgrades
5365
+ * @deprecated
5366
+ * As of 2.0.0-beta.1.
5317
5367
  */
5318
5368
 
5319
5369
  /**
5320
- * @deprecated with TeamsJS v2 upgrades
5370
+ * @deprecated
5371
+ * As of 2.0.0-beta.1.
5321
5372
  */
5322
5373
 
5323
5374