@microsoft/teams-js 2.0.0-beta.7-dev.5 → 2.0.0-beta.7-dev.8

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.
@@ -1076,7 +1076,6 @@ __webpack_require__.d(__webpack_exports__, {
1076
1076
  "getTabInstances": () => (/* reexport */ getTabInstances),
1077
1077
  "initialize": () => (/* reexport */ initialize),
1078
1078
  "initializeWithFrameContext": () => (/* reexport */ initializeWithFrameContext),
1079
- "legacy": () => (/* reexport */ legacy),
1080
1079
  "location": () => (/* reexport */ location_location),
1081
1080
  "logs": () => (/* reexport */ logs),
1082
1081
  "mail": () => (/* reexport */ mail),
@@ -1122,7 +1121,7 @@ __webpack_require__.d(__webpack_exports__, {
1122
1121
  });
1123
1122
 
1124
1123
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1125
- var version = "2.0.0-beta.7-dev.5";
1124
+ var version = "2.0.0-beta.7-dev.8";
1126
1125
  /**
1127
1126
  * @hidden
1128
1127
  * The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -1351,7 +1350,7 @@ var HostClientType;
1351
1350
  HostClientType["ipados"] = "ipados";
1352
1351
  /**
1353
1352
  * @deprecated
1354
- * As of 2.0.0-beta.1, please use {@link teamsRoomsWindows} instead.
1353
+ * As of 2.0.0, please use {@link teamsRoomsWindows} instead.
1355
1354
  */
1356
1355
  HostClientType["rigel"] = "rigel";
1357
1356
  HostClientType["surfaceHub"] = "surfaceHub";
@@ -1412,7 +1411,7 @@ var DialogDimension;
1412
1411
 
1413
1412
  /**
1414
1413
  * @deprecated
1415
- * As of 2.0.0-beta.1, please use {@link DialogDimension} instead.
1414
+ * As of 2.0.0, please use {@link DialogDimension} instead.
1416
1415
  */
1417
1416
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1418
1417
  var TaskModuleDimension = DialogDimension;
@@ -1856,7 +1855,7 @@ function uploadCustomApp(manifestBlob, onComplete) {
1856
1855
  /**
1857
1856
  * @hidden
1858
1857
  * Internal use only
1859
- * Sends a custom action MessageRequest to Teams or parent window
1858
+ * Sends a custom action MessageRequest to host or parent window
1860
1859
  *
1861
1860
  * @param actionName - Specifies name of the custom action to be sent
1862
1861
  * @param args - Specifies additional arguments passed to the action
@@ -2987,6 +2986,11 @@ var teamsCore;
2987
2986
  handlers_registerBeforeUnloadHandler(handler);
2988
2987
  }
2989
2988
  teamsCore.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
2989
+ /**
2990
+ * Checks if teamsCore capability is supported by the host
2991
+ * @returns true if the teamsCore capability is enabled in runtime.supports.teamsCore and
2992
+ * false if it is disabled
2993
+ */
2990
2994
  function isSupported() {
2991
2995
  return runtime.supports.teamsCore ? true : false;
2992
2996
  }
@@ -3419,8 +3423,8 @@ function transformLegacyContextToAppContext(legacyContext) {
3419
3423
  var pages;
3420
3424
  (function (pages) {
3421
3425
  /**
3422
- * Return focus to the host. Will move focus forward or backward based on where the app container falls in
3423
- * the F6/Tab accessiblity loop in the host.
3426
+ * Return focus to the host. Will move focus forward or backward based on where the application container falls in
3427
+ * the F6/tab order in the host.
3424
3428
  * @param navigateForward - Determines the direction to focus in host.
3425
3429
  */
3426
3430
  function returnFocus(navigateForward) {
@@ -3434,9 +3438,9 @@ var pages;
3434
3438
  /**
3435
3439
  * @hidden
3436
3440
  *
3437
- * Registers a handler when focus needs to be passed from teams to the place of choice on app.
3441
+ * Registers a handler for specifying focus when it passes from the host to the application.
3438
3442
  *
3439
- * @param handler - The handler to invoked by the app when they want the focus to be in the place of their choice.
3443
+ * @param handler - The handler for placing focus within the application.
3440
3444
  *
3441
3445
  * @internal
3442
3446
  */
@@ -3467,7 +3471,7 @@ var pages;
3467
3471
  *
3468
3472
  * @param frameInfo - Frame information containing the URL used in the iframe on reload and the URL for when the
3469
3473
  * user clicks 'Go To Website'
3470
- * @param callback - An optional user-set callback that is executed once the app has finished initialization.
3474
+ * @param callback - An optional callback that is executed once the application has finished initialization.
3471
3475
  * @param validMessageOrigins - An optional list of cross-frame message origins. They must have
3472
3476
  * https: protocol otherwise they will be ignored. Example: https:www.example.com
3473
3477
  */
@@ -3494,7 +3498,7 @@ var pages;
3494
3498
  * Navigates the frame to a new cross-domain URL. The domain of this URL must match at least one of the
3495
3499
  * valid domains specified in the validDomains block of the manifest; otherwise, an exception will be
3496
3500
  * thrown. This function needs to be used only when navigating the frame to a URL in a different domain
3497
- * than the current one in a way that keeps the app informed of the change and allows the SDK to
3501
+ * than the current one in a way that keeps the application informed of the change and allows the SDK to
3498
3502
  * continue working.
3499
3503
  * @param url - The URL to navigate the frame to.
3500
3504
  * @returns Promise that resolves when the navigation has completed.
@@ -3511,12 +3515,12 @@ var pages;
3511
3515
  }
3512
3516
  pages.navigateCrossDomain = navigateCrossDomain;
3513
3517
  /**
3514
- * Navigate to the given App ID and Page ID, with optional parameters for a WebURL (if the app cannot
3515
- * be navigated to, such as if it is not installed), Channel ID (for apps installed as a channel tab), and
3516
- * Sub-page ID (for navigating to specific content within the page). This is equivalent to navigating to
3517
- * a deep link with the above data, but does not require the app to build a URL or worry about different
3518
+ * Navigate to the given application ID and page ID, with optional parameters for a WebURL (if the application
3519
+ * cannot be navigated to, such as if it is not installed), Channel ID (for applications installed as a channel tab),
3520
+ * and sub-page ID (for navigating to specific content within the page). This is equivalent to navigating to
3521
+ * a deep link with the above data, but does not require the application to build a URL or worry about different
3518
3522
  * deep link formats for different hosts.
3519
- * @param params Parameters for the navigation
3523
+ * @param params - Parameters for the navigation
3520
3524
  * @returns a promise that will resolve if the navigation was successful
3521
3525
  */
3522
3526
  function navigateToApp(params) {
@@ -3565,7 +3569,7 @@ var pages;
3565
3569
  }
3566
3570
  pages.registerFullScreenHandler = registerFullScreenHandler;
3567
3571
  /**
3568
- * Checks if the current application host supports the pages capability
3572
+ * Checks if the pages capability is supported by the host
3569
3573
  * @returns true if the pages capability is enabled in runtime.supports.pages and
3570
3574
  * false if it is disabled
3571
3575
  */
@@ -3574,13 +3578,14 @@ var pages;
3574
3578
  }
3575
3579
  pages.isSupported = isSupported;
3576
3580
  /**
3577
- * Namespace to interact with the teams specific part of the SDK.
3581
+ * Provides APIs for querying and navigating between contextual tabs of an application. Unlike personal tabs,
3582
+ * contextual tabs are pages associated with a specific context, such as channel or chat.
3578
3583
  */
3579
3584
  var tabs;
3580
3585
  (function (tabs) {
3581
3586
  /**
3582
- * Navigates the hosted app to the specified tab instance.
3583
- * @param tabInstance The tab instance to navigate to.
3587
+ * Navigates the hosted application to the specified tab instance.
3588
+ * @param tabInstance - The destination tab instance.
3584
3589
  * @returns Promise that resolves when the navigation has completed.
3585
3590
  */
3586
3591
  function navigateToTab(tabInstance) {
@@ -3595,9 +3600,9 @@ var pages;
3595
3600
  }
3596
3601
  tabs.navigateToTab = navigateToTab;
3597
3602
  /**
3598
- * Allows an app to retrieve for this user tabs that are owned by this app.
3599
- * If no TabInstanceParameters are passed, the app defaults to favorite teams and favorite channels.
3600
- * @param tabInstanceParameters OPTIONAL Flags that specify whether to scope call to favorite teams or channels.
3603
+ * Retrieves application tabs for the current user.
3604
+ * If no TabInstanceParameters are passed, the application defaults to favorite teams and favorite channels.
3605
+ * @param tabInstanceParameters - An optional set of flags that specify whether to scope call to favorite teams or channels.
3601
3606
  * @returns Promise that resolves with the {@link TabInformation}. Contains information for the user's tabs that are owned by this application {@link TabInstance}.
3602
3607
  */
3603
3608
  function getTabInstances(tabInstanceParameters) {
@@ -3611,8 +3616,8 @@ var pages;
3611
3616
  }
3612
3617
  tabs.getTabInstances = getTabInstances;
3613
3618
  /**
3614
- * Allows an app to retrieve the most recently used tabs for this user.
3615
- * @param tabInstanceParameters OPTIONAL Ignored, kept for future use.
3619
+ * Retrieves the most recently used application tabs for the current user.
3620
+ * @param tabInstanceParameters - An optional set of flags. Note this is currently ignored and kept for future use.
3616
3621
  * @returns Promise that resolves with the {@link TabInformation}. Contains information for the users' most recently used tabs {@link TabInstance}.
3617
3622
  */
3618
3623
  function getMruTabInstances(tabInstanceParameters) {
@@ -3626,7 +3631,7 @@ var pages;
3626
3631
  }
3627
3632
  tabs.getMruTabInstances = getMruTabInstances;
3628
3633
  /**
3629
- * Checks if the current application host supports the pages.tab capability
3634
+ * Checks if the pages.tab capability is supported by the host
3630
3635
  * @returns true if the pages.tabs capability is enabled in runtime.supports.pages.tabs and
3631
3636
  * false if it is disabled
3632
3637
  */
@@ -3636,8 +3641,8 @@ var pages;
3636
3641
  tabs.isSupported = isSupported;
3637
3642
  })(tabs = pages.tabs || (pages.tabs = {}));
3638
3643
  /**
3639
- * Namespace to interact with the config-specific part of the SDK.
3640
- * This object is usable only on the config frame.
3644
+ * Provides APIs to interact with the configuration-specific part of the SDK.
3645
+ * This object is usable only on the configuration frame.
3641
3646
  */
3642
3647
  var config;
3643
3648
  (function (config) {
@@ -3656,9 +3661,9 @@ var pages;
3656
3661
  }
3657
3662
  config.initialize = initialize;
3658
3663
  /**
3659
- * Sets the validity state for the config.
3660
- * The initial value is false, so the user cannot save the config until this is called with true.
3661
- * @param validityState Indicates whether the save or remove button is enabled for the user.
3664
+ * Sets the validity state for the configuration.
3665
+ * The initial value is false, so the user cannot save the configuration until this is called with true.
3666
+ * @param validityState - Indicates whether the save or remove button is enabled for the user.
3662
3667
  */
3663
3668
  function setValidityState(validityState) {
3664
3669
  ensureInitialized(FrameContexts.settings, FrameContexts.remove);
@@ -3669,9 +3674,9 @@ var pages;
3669
3674
  }
3670
3675
  config.setValidityState = setValidityState;
3671
3676
  /**
3672
- * Sets the config for the current instance.
3677
+ * Sets the configuration for the current instance.
3673
3678
  * This is an asynchronous operation; calls to getConfig are not guaranteed to reflect the changed state.
3674
- * @param instanceConfig The desired config for this instance.
3679
+ * @param instanceConfig - The desired configuration for this instance.
3675
3680
  * @returns Promise that resolves when the operation has completed.
3676
3681
  */
3677
3682
  function setConfig(instanceConfig) {
@@ -3685,11 +3690,11 @@ var pages;
3685
3690
  }
3686
3691
  config.setConfig = setConfig;
3687
3692
  /**
3688
- * Registers a handler for when the user attempts to save the settings. This handler should be used
3693
+ * Registers a handler for when the user attempts to save the configuration. This handler should be used
3689
3694
  * to create or update the underlying resource powering the content.
3690
3695
  * The object passed to the handler must be used to notify whether to proceed with the save.
3691
3696
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
3692
- * @param handler The handler to invoke when the user selects the save button.
3697
+ * @param handler - The handler to invoke when the user selects the Save button.
3693
3698
  */
3694
3699
  function registerOnSaveHandler(handler) {
3695
3700
  ensureInitialized(FrameContexts.settings);
@@ -3705,7 +3710,7 @@ var pages;
3705
3710
  * to remove the underlying resource powering the content.
3706
3711
  * The object passed to the handler must be used to indicate whether to proceed with the removal.
3707
3712
  * Only one handler may be registered at a time. Subsequent registrations will override the first.
3708
- * @param handler The handler to invoke when the user selects the remove button.
3713
+ * @param handler - The handler to invoke when the user selects the Remove button.
3709
3714
  */
3710
3715
  function registerOnRemoveHandler(handler) {
3711
3716
  ensureInitialized(FrameContexts.remove, FrameContexts.settings);
@@ -3728,7 +3733,7 @@ var pages;
3728
3733
  }
3729
3734
  /**
3730
3735
  * Registers a handler for when the tab configuration is changed by the user
3731
- * @param handler The handler to invoke when the user click on Settings.
3736
+ * @param handler - The handler to invoke when the user clicks on Settings.
3732
3737
  */
3733
3738
  function registerChangeConfigHandler(handler) {
3734
3739
  ensureInitialized(FrameContexts.content);
@@ -3800,7 +3805,7 @@ var pages;
3800
3805
  return RemoveEventImpl;
3801
3806
  }());
3802
3807
  /**
3803
- * Checks if the current application host supports the pages.config capability
3808
+ * Checks if the pages.config capability is supported by the host
3804
3809
  * @returns true if the pages.config capability is enabled in runtime.supports.pages.config and
3805
3810
  * false if it is disabled
3806
3811
  */
@@ -3810,7 +3815,7 @@ var pages;
3810
3815
  config.isSupported = isSupported;
3811
3816
  })(config = pages.config || (pages.config = {}));
3812
3817
  /**
3813
- * Namespace to interact with the back-stack part of the SDK.
3818
+ * Provides APIs for handling the user's navigational history.
3814
3819
  */
3815
3820
  var backStack;
3816
3821
  (function (backStack) {
@@ -3820,8 +3825,7 @@ var pages;
3820
3825
  }
3821
3826
  backStack._initialize = _initialize;
3822
3827
  /**
3823
- * Navigates back in the hosted app. See registerBackButtonHandler for more information on when
3824
- * it's appropriate to use this method.
3828
+ * Navigates back in the hosted application. See {@link pages.backStack.registerBackButtonHandler} for notes on usage.
3825
3829
  * @returns Promise that resolves when the navigation has completed.
3826
3830
  */
3827
3831
  function navigateBack() {
@@ -3836,11 +3840,11 @@ var pages;
3836
3840
  }
3837
3841
  backStack.navigateBack = navigateBack;
3838
3842
  /**
3839
- * Registers a handler for user presses of the Team client's back button. Experiences that maintain an internal
3840
- * navigation stack should use this handler to navigate the user back within their frame. If an app finds
3843
+ * Registers a handler for user presses of the host client's back button. Experiences that maintain an internal
3844
+ * navigation stack should use this handler to navigate the user back within their frame. If an application finds
3841
3845
  * that after running its back button handler it cannot handle the event it should call the navigateBack
3842
- * method to ask the Teams client to handle it instead.
3843
- * @param handler The handler to invoke when the user presses their Team client's back button.
3846
+ * method to ask the host client to handle it instead.
3847
+ * @param handler - The handler to invoke when the user presses the host client's back button.
3844
3848
  */
3845
3849
  function registerBackButtonHandler(handler) {
3846
3850
  ensureInitialized();
@@ -3857,7 +3861,7 @@ var pages;
3857
3861
  }
3858
3862
  }
3859
3863
  /**
3860
- * Checks if the current application host supports the pages.backStack capability
3864
+ * Checks if the pages.backStack capability is supported by the host
3861
3865
  * @returns true if the pages.backStack capability is enabled in runtime.supports.pages.backStack and
3862
3866
  * false if it is disabled
3863
3867
  */
@@ -3870,7 +3874,7 @@ var pages;
3870
3874
  * @hidden
3871
3875
  * Hide from docs
3872
3876
  * ------
3873
- * Namespace to interact with the full-trust part of the SDK. Limited to 1P apps
3877
+ * Provides APIs to interact with the full-trust part of the SDK. Limited to 1P applications
3874
3878
  */
3875
3879
  var fullTrust;
3876
3880
  (function (fullTrust) {
@@ -3906,7 +3910,7 @@ var pages;
3906
3910
  * @hidden
3907
3911
  * Hide from docs
3908
3912
  * ------
3909
- * Checks if the current application host supports the pages.fullTrust capability
3913
+ * Checks if the pages.fullTrust capability is supported by the host
3910
3914
  * @returns true if the pages.fullTrust capability is enabled in runtime.supports.pages.fullTrust and
3911
3915
  * false if it is disabled
3912
3916
  */
@@ -3916,7 +3920,7 @@ var pages;
3916
3920
  fullTrust.isSupported = isSupported;
3917
3921
  })(fullTrust = pages.fullTrust || (pages.fullTrust = {}));
3918
3922
  /**
3919
- * Namespace to interact with the app button part of the SDK.
3923
+ * Provides APIs to interact with the app button part of the SDK.
3920
3924
  */
3921
3925
  var appButton;
3922
3926
  (function (appButton) {
@@ -3960,7 +3964,7 @@ var pages;
3960
3964
  }
3961
3965
  appButton.onHoverLeave = onHoverLeave;
3962
3966
  /**
3963
- * Checks if pages.appButton capability is supported currently
3967
+ * Checks if pages.appButton capability is supported by the host
3964
3968
  * @returns true if the pages.appButton capability is enabled in runtime.supports.pages.appButton and
3965
3969
  * false if it is disabled
3966
3970
  */
@@ -6133,6 +6137,8 @@ var video;
6133
6137
  })(EffectChangeType = video.EffectChangeType || (video.EffectChangeType = {}));
6134
6138
  /**
6135
6139
  * Register to read the video frames in Permissions section
6140
+ * @param frameCallback - The callback to invoke when registerForVideoFrame has completed
6141
+ * @param config - VideoFrameConfig to customize generated video frame parameters
6136
6142
  */
6137
6143
  function registerForVideoFrame(frameCallback, config) {
6138
6144
  ensureInitialized(FrameContexts.sidePanel);
@@ -6148,9 +6154,9 @@ var video;
6148
6154
  }
6149
6155
  video.registerForVideoFrame = registerForVideoFrame;
6150
6156
  /**
6151
- * video extension should call this to notify Teams Client current selected effect parameter changed.
6152
- * If it's pre-meeting, Teams client will call videoEffectCallback immediately then use the videoEffect.
6153
- * in-meeting scenario, we will call videoEffectCallback when apply button clicked.
6157
+ * video extension should call this to notify host client that the current selected effect parameter changed.
6158
+ * If it's pre-meeting, host client will call videoEffectCallback immediately then use the videoEffect.
6159
+ * If it's the in-meeting scenario, we will call videoEffectCallback when apply button clicked.
6154
6160
  *
6155
6161
  * @param effectChangeType - the effect change type.
6156
6162
  * @param effectId - Newly selected effect id.
@@ -6164,7 +6170,8 @@ var video;
6164
6170
  }
6165
6171
  video.notifySelectedVideoEffectChanged = notifySelectedVideoEffectChanged;
6166
6172
  /**
6167
- * Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied
6173
+ * Register the video effect callback, host client uses this to notify the video extension the new video effect will by applied
6174
+ * @param callback - The VideoEffectCallback to invoke when registerForVideoEffect has completed
6168
6175
  */
6169
6176
  function registerForVideoEffect(callback) {
6170
6177
  ensureInitialized(FrameContexts.sidePanel);
@@ -6175,18 +6182,24 @@ var video;
6175
6182
  }
6176
6183
  video.registerForVideoEffect = registerForVideoEffect;
6177
6184
  /**
6178
- * Sending notification to Teams client finished the video frame processing, now Teams client can render this video frame
6185
+ * Sending notification to host client finished the video frame processing, now host client can render this video frame
6179
6186
  * or pass the video frame to next one in video pipeline
6180
6187
  */
6181
6188
  function notifyVideoFrameProcessed() {
6182
6189
  sendMessageToParent('video.videoFrameProcessed');
6183
6190
  }
6184
6191
  /**
6185
- * Sending error notification to Teams client
6192
+ * Sending error notification to host client
6193
+ * @param errorMessage - The error message that will be sent to the host
6186
6194
  */
6187
6195
  function notifyError(errorMessage) {
6188
6196
  sendMessageToParent('video.notifyError', [errorMessage]);
6189
6197
  }
6198
+ /**
6199
+ * Checks if video capability is supported by the host
6200
+ * @returns true if the video capability is enabled in runtime.supports.video and
6201
+ * false if it is disabled
6202
+ */
6190
6203
  function isSupported() {
6191
6204
  return runtime.supports.video ? true : false;
6192
6205
  }
@@ -6355,31 +6368,31 @@ var call;
6355
6368
 
6356
6369
  /**
6357
6370
  * @deprecated
6358
- * As of 2.0.0-beta.1, please use {@link app} namespace instead.
6371
+ * As of 2.0.0, please use {@link app} namespace instead.
6359
6372
  */
6360
6373
  var appInitialization;
6361
6374
  (function (appInitialization) {
6362
6375
  /**
6363
6376
  * @deprecated
6364
- * As of 2.0.0-beta.1, please use {@link app.Messages} instead.
6377
+ * As of 2.0.0, please use {@link app.Messages} instead.
6365
6378
  */
6366
6379
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
6367
6380
  appInitialization.Messages = app_app.Messages;
6368
6381
  /**
6369
6382
  * @deprecated
6370
- * As of 2.0.0-beta.1, please use {@link app.FailedReason} instead.
6383
+ * As of 2.0.0, please use {@link app.FailedReason} instead.
6371
6384
  */
6372
6385
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
6373
6386
  appInitialization.FailedReason = app_app.FailedReason;
6374
6387
  /**
6375
6388
  * @deprecated
6376
- * As of 2.0.0-beta.1, please use {@link app.ExpectedFailureReason} instead.
6389
+ * As of 2.0.0, please use {@link app.ExpectedFailureReason} instead.
6377
6390
  */
6378
6391
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
6379
6392
  appInitialization.ExpectedFailureReason = app_app.ExpectedFailureReason;
6380
6393
  /**
6381
6394
  * @deprecated
6382
- * As of 2.0.0-beta.1, please use {@link app.notifyAppLoaded app.notifyAppLoaded(): void} instead.
6395
+ * As of 2.0.0, please use {@link app.notifyAppLoaded app.notifyAppLoaded(): void} instead.
6383
6396
  *
6384
6397
  * Notifies the frame that app has loaded and to hide the loading indicator if one is shown.
6385
6398
  */
@@ -6389,7 +6402,7 @@ var appInitialization;
6389
6402
  appInitialization.notifyAppLoaded = notifyAppLoaded;
6390
6403
  /**
6391
6404
  * @deprecated
6392
- * As of 2.0.0-beta.1, please use {@link app.notifySuccess app.notifySuccess(): void} instead.
6405
+ * As of 2.0.0, please use {@link app.notifySuccess app.notifySuccess(): void} instead.
6393
6406
  *
6394
6407
  * Notifies the frame that app initialization is successful and is ready for user interaction.
6395
6408
  */
@@ -6399,7 +6412,7 @@ var appInitialization;
6399
6412
  appInitialization.notifySuccess = notifySuccess;
6400
6413
  /**
6401
6414
  * @deprecated
6402
- * As of 2.0.0-beta.1, please use {@link app.notifyFailure app.notifyFailure(appInitializationFailedRequest: IFailedRequest): void} instead.
6415
+ * As of 2.0.0, please use {@link app.notifyFailure app.notifyFailure(appInitializationFailedRequest: IFailedRequest): void} instead.
6403
6416
  *
6404
6417
  * Notifies the frame that app initialization has failed and to show an error page in its place.
6405
6418
  * @param appInitializationFailedRequest - The failure request containing the reason for why the app failed
@@ -6411,7 +6424,7 @@ var appInitialization;
6411
6424
  appInitialization.notifyFailure = notifyFailure;
6412
6425
  /**
6413
6426
  * @deprecated
6414
- * As of 2.0.0-beta.1, please use {@link app.notifyExpectedFailure app.notifyExpectedFailure(expectedFailureRequest: IExpectedFailureRequest): void} instead.
6427
+ * As of 2.0.0, please use {@link app.notifyExpectedFailure app.notifyExpectedFailure(expectedFailureRequest: IExpectedFailureRequest): void} instead.
6415
6428
  *
6416
6429
  * Notifies the frame that app initialized with some expected errors.
6417
6430
  * @param expectedFailureRequest - The expected failure request containing the reason and an optional message
@@ -6431,7 +6444,7 @@ var appInitialization;
6431
6444
 
6432
6445
  /**
6433
6446
  * @deprecated
6434
- * As of 2.0.0-beta.1, please use {@link app.initialize app.initialize(validMessageOrigins?: string[]): Promise\<void\>} instead.
6447
+ * As of 2.0.0, please use {@link app.initialize app.initialize(validMessageOrigins?: string[]): Promise\<void\>} instead.
6435
6448
  *
6436
6449
  * Initializes the library. This must be called before any other SDK calls
6437
6450
  * but after the frame is loaded successfully.
@@ -6448,7 +6461,7 @@ function initialize(callback, validMessageOrigins) {
6448
6461
  }
6449
6462
  /**
6450
6463
  * @deprecated
6451
- * As of 2.0.0-beta.1, please use {@link app._initialize app._initialize(hostWindow: any): void} instead.
6464
+ * As of 2.0.0, please use {@link app._initialize app._initialize(hostWindow: any): void} instead.
6452
6465
  *
6453
6466
  * @hidden
6454
6467
  * Hide from docs.
@@ -6463,7 +6476,7 @@ function _initialize(hostWindow) {
6463
6476
  }
6464
6477
  /**
6465
6478
  * @deprecated
6466
- * As of 2.0.0-beta.1, please use {@link app._uninitialize app._uninitialize(): void} instead.
6479
+ * As of 2.0.0, please use {@link app._uninitialize app._uninitialize(): void} instead.
6467
6480
  *
6468
6481
  * @hidden
6469
6482
  * Hide from docs.
@@ -6477,7 +6490,7 @@ function _uninitialize() {
6477
6490
  }
6478
6491
  /**
6479
6492
  * @deprecated
6480
- * As of 2.0.0-beta.1, please use {@link teamsCore.enablePrintCapability teamsCore.enablePrintCapability(): void} instead.
6493
+ * As of 2.0.0, please use {@link teamsCore.enablePrintCapability teamsCore.enablePrintCapability(): void} instead.
6481
6494
  *
6482
6495
  * Enable print capability to support printing page using Ctrl+P and cmd+P
6483
6496
  */
@@ -6486,7 +6499,7 @@ function enablePrintCapability() {
6486
6499
  }
6487
6500
  /**
6488
6501
  * @deprecated
6489
- * As of 2.0.0-beta.1, please use {@link teamsCore.print teamsCore.print(): void} instead.
6502
+ * As of 2.0.0, please use {@link teamsCore.print teamsCore.print(): void} instead.
6490
6503
  *
6491
6504
  * Default print handler
6492
6505
  */
@@ -6495,7 +6508,7 @@ function print() {
6495
6508
  }
6496
6509
  /**
6497
6510
  * @deprecated
6498
- * As of 2.0.0-beta.1, please use {@link app.getContext app.getContext(): Promise\<app.Context\>} instead.
6511
+ * As of 2.0.0, please use {@link app.getContext app.getContext(): Promise\<app.Context\>} instead.
6499
6512
  *
6500
6513
  * Retrieves the current context the frame is running in.
6501
6514
  *
@@ -6511,7 +6524,7 @@ function getContext(callback) {
6511
6524
  }
6512
6525
  /**
6513
6526
  * @deprecated
6514
- * As of 2.0.0-beta.1, please use {@link app.registerOnThemeChangeHandler app.registerOnThemeChangeHandler(handler: (theme: string) => void): void} instead.
6527
+ * As of 2.0.0, please use {@link app.registerOnThemeChangeHandler app.registerOnThemeChangeHandler(handler: (theme: string) => void): void} instead.
6515
6528
  *
6516
6529
  * Registers a handler for theme changes.
6517
6530
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -6523,7 +6536,7 @@ function registerOnThemeChangeHandler(handler) {
6523
6536
  }
6524
6537
  /**
6525
6538
  * @deprecated
6526
- * As of 2.0.0-beta.1, please use {@link pages.registerFullScreenHandler pages.registerFullScreenHandler(handler: (isFullScreen: boolean) => void): void} instead.
6539
+ * As of 2.0.0, please use {@link pages.registerFullScreenHandler pages.registerFullScreenHandler(handler: (isFullScreen: boolean) => void): void} instead.
6527
6540
  *
6528
6541
  * Registers a handler for changes from or to full-screen view for a tab.
6529
6542
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -6535,7 +6548,7 @@ function registerFullScreenHandler(handler) {
6535
6548
  }
6536
6549
  /**
6537
6550
  * @deprecated
6538
- * As of 2.0.0-beta.1, please use {@link pages.appButton.onClick pages.appButton.onClick(handler: () => void): void} instead.
6551
+ * As of 2.0.0, please use {@link pages.appButton.onClick pages.appButton.onClick(handler: () => void): void} instead.
6539
6552
  *
6540
6553
  * Registers a handler for clicking the app button.
6541
6554
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -6547,7 +6560,7 @@ function registerAppButtonClickHandler(handler) {
6547
6560
  }
6548
6561
  /**
6549
6562
  * @deprecated
6550
- * As of 2.0.0-beta.1, please use {@link pages.appButton.onHoverEnter pages.appButton.onHoverEnter(handler: () => void): void} instead.
6563
+ * As of 2.0.0, please use {@link pages.appButton.onHoverEnter pages.appButton.onHoverEnter(handler: () => void): void} instead.
6551
6564
  *
6552
6565
  * Registers a handler for entering hover of the app button.
6553
6566
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -6559,7 +6572,7 @@ function registerAppButtonHoverEnterHandler(handler) {
6559
6572
  }
6560
6573
  /**
6561
6574
  * @deprecated
6562
- * As of 2.0.0-beta.1, please use {@link pages.appButton.onHoverLeave pages.appButton.onHoverLeave(handler: () => void): void} instead.
6575
+ * As of 2.0.0, please use {@link pages.appButton.onHoverLeave pages.appButton.onHoverLeave(handler: () => void): void} instead.
6563
6576
  *
6564
6577
  * Registers a handler for exiting hover of the app button.
6565
6578
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -6571,7 +6584,7 @@ function registerAppButtonHoverLeaveHandler(handler) {
6571
6584
  }
6572
6585
  /**
6573
6586
  * @deprecated
6574
- * As of 2.0.0-beta.1, please use {@link pages.backStack.registerBackButtonHandler pages.backStack.registerBackButtonHandler(handler: () => boolean): void} instead.
6587
+ * As of 2.0.0, please use {@link pages.backStack.registerBackButtonHandler pages.backStack.registerBackButtonHandler(handler: () => boolean): void} instead.
6575
6588
  *
6576
6589
  * Registers a handler for user presses of the Team client's back button. Experiences that maintain an internal
6577
6590
  * navigation stack should use this handler to navigate the user back within their frame. If an app finds
@@ -6585,7 +6598,7 @@ function registerBackButtonHandler(handler) {
6585
6598
  }
6586
6599
  /**
6587
6600
  * @deprecated
6588
- * As of 2.0.0-beta.1, please use {@link teamsCore.registerOnLoadHandler teamsCore.registerOnLoadHandler(handler: (context: LoadContext) => void): void} instead.
6601
+ * As of 2.0.0, please use {@link teamsCore.registerOnLoadHandler teamsCore.registerOnLoadHandler(handler: (context: LoadContext) => void): void} instead.
6589
6602
  *
6590
6603
  * @hidden
6591
6604
  * Registers a handler to be called when the page has been requested to load.
@@ -6597,7 +6610,7 @@ function registerOnLoadHandler(handler) {
6597
6610
  }
6598
6611
  /**
6599
6612
  * @deprecated
6600
- * As of 2.0.0-beta.1, please use {@link teamsCore.registerBeforeUnloadHandler teamsCore.registerBeforeUnloadHandler(handler: (readyToUnload: () => void) => boolean): void} instead.
6613
+ * As of 2.0.0, please use {@link teamsCore.registerBeforeUnloadHandler teamsCore.registerBeforeUnloadHandler(handler: (readyToUnload: () => void) => boolean): void} instead.
6601
6614
  *
6602
6615
  * @hidden
6603
6616
  * Registers a handler to be called before the page is unloaded.
@@ -6610,7 +6623,7 @@ function registerBeforeUnloadHandler(handler) {
6610
6623
  }
6611
6624
  /**
6612
6625
  * @deprecated
6613
- * As of 2.0.0-beta.3, please use {@link pages.registerFocusEnterHandler pages.registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void} instead.
6626
+ * As of 2.0.0, please use {@link pages.registerFocusEnterHandler pages.registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void} instead.
6614
6627
  *
6615
6628
  * @hidden
6616
6629
  * Registers a handler when focus needs to be passed from teams to the place of choice on app.
@@ -6622,7 +6635,7 @@ function registerFocusEnterHandler(handler) {
6622
6635
  }
6623
6636
  /**
6624
6637
  * @deprecated
6625
- * As of 2.0.0-beta.1, please use {@link pages.config.registerChangeConfigHandler pages.config.registerChangeConfigHandler(handler: () => void): void} instead.
6638
+ * As of 2.0.0, please use {@link pages.config.registerChangeConfigHandler pages.config.registerChangeConfigHandler(handler: () => void): void} instead.
6626
6639
  *
6627
6640
  * Registers a handler for when the user reconfigurated tab.
6628
6641
  *
@@ -6633,7 +6646,7 @@ function registerEnterSettingsHandler(handler) {
6633
6646
  }
6634
6647
  /**
6635
6648
  * @deprecated
6636
- * As of 2.0.0-beta.1, please use {@link pages.tabs.getTabInstances pages.tabs.getTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise\<TabInformation\>} instead.
6649
+ * As of 2.0.0, please use {@link pages.tabs.getTabInstances pages.tabs.getTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise\<TabInformation\>} instead.
6637
6650
  *
6638
6651
  * Allows an app to retrieve for this user tabs that are owned by this app.
6639
6652
  * If no TabInstanceParameters are passed, the app defaults to favorite teams and favorite channels.
@@ -6649,7 +6662,7 @@ function getTabInstances(callback, tabInstanceParameters) {
6649
6662
  }
6650
6663
  /**
6651
6664
  * @deprecated
6652
- * As of 2.0.0-beta.1, please use {@link pages.tabs.getMruTabInstances pages.tabs.getMruTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise\<TabInformation\>} instead.
6665
+ * As of 2.0.0, please use {@link pages.tabs.getMruTabInstances pages.tabs.getMruTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise\<TabInformation\>} instead.
6653
6666
  *
6654
6667
  * Allows an app to retrieve the most recently used tabs for this user.
6655
6668
  *
@@ -6664,7 +6677,7 @@ function getMruTabInstances(callback, tabInstanceParameters) {
6664
6677
  }
6665
6678
  /**
6666
6679
  * @deprecated
6667
- * As of 2.0.0-beta.3, please use {@link pages.shareDeepLink pages.shareDeepLink(deepLinkParameters: DeepLinkParameters): void} instead.
6680
+ * As of 2.0.0, please use {@link pages.shareDeepLink pages.shareDeepLink(deepLinkParameters: DeepLinkParameters): void} instead.
6668
6681
  *
6669
6682
  * Shares a deep link that a user can use to navigate back to a specific state in this page.
6670
6683
  *
@@ -6679,7 +6692,7 @@ function shareDeepLink(deepLinkParameters) {
6679
6692
  }
6680
6693
  /**
6681
6694
  * @deprecated
6682
- * As of 2.0.0-beta.3, please use {@link app.openLink core.openLink(deepLink: string): Promise\<void\>} instead.
6695
+ * As of 2.0.0, please use {@link app.openLink core.openLink(deepLink: string): Promise\<void\>} instead.
6683
6696
  *
6684
6697
  * Execute deep link API.
6685
6698
  *
@@ -6698,7 +6711,7 @@ function executeDeepLink(deepLink, onComplete) {
6698
6711
  }
6699
6712
  /**
6700
6713
  * @deprecated
6701
- * As of 2.0.0-beta.1, please use {@link pages.setCurrentFrame pages.setCurrentFrame(frameInfo: FrameInfo): void} instead.
6714
+ * As of 2.0.0, please use {@link pages.setCurrentFrame pages.setCurrentFrame(frameInfo: FrameInfo): void} instead.
6702
6715
  *
6703
6716
  * Set the current Frame Context
6704
6717
  *
@@ -6709,7 +6722,7 @@ function setFrameContext(frameContext) {
6709
6722
  }
6710
6723
  /**
6711
6724
  * @deprecated
6712
- * As of 2.0.0-beta.1, please use {@link pages.initializeWithFrameContext pages.initializeWithFrameContext(frameInfo: FrameInfo, callback?: () => void, validMessageOrigins?: string[],): void} instead.
6725
+ * As of 2.0.0, please use {@link pages.initializeWithFrameContext pages.initializeWithFrameContext(frameInfo: FrameInfo, callback?: () => void, validMessageOrigins?: string[],): void} instead.
6713
6726
  *
6714
6727
  * Initilize with FrameContext
6715
6728
  *
@@ -6722,7 +6735,9 @@ function initializeWithFrameContext(frameContext, callback, validMessageOrigins)
6722
6735
  pages.initializeWithFrameContext(frameContext, callback, validMessageOrigins);
6723
6736
  }
6724
6737
  /**
6725
- * Transforms the app.Context object received to TeamsJS Context
6738
+ * Transforms the app.Context object received to the legacy global Context object
6739
+ * @param appContext - The app.Context object to be transformed
6740
+ * @returns The transformed legacy global Context object
6726
6741
  */
6727
6742
  function transformAppContextToLegacyContext(appContext) {
6728
6743
  var context = {
@@ -6808,7 +6823,7 @@ function transformAppContextToLegacyContext(appContext) {
6808
6823
  */
6809
6824
  /**
6810
6825
  * @deprecated
6811
- * As of 2.0.0-beta.1, please use {@link pages.returnFocus pages.returnFocus(navigateForward?: boolean): void} instead.
6826
+ * As of 2.0.0, please use {@link pages.returnFocus pages.returnFocus(navigateForward?: boolean): void} instead.
6812
6827
  *
6813
6828
  * Return focus to the main Teams app. Will focus search bar if navigating foward and app bar if navigating back.
6814
6829
  *
@@ -6819,7 +6834,7 @@ function returnFocus(navigateForward) {
6819
6834
  }
6820
6835
  /**
6821
6836
  * @deprecated
6822
- * As of 2.0.0-beta.1, please use {@link pages.tabs.navigateToTab pages.tabs.navigateToTab(tabInstance: TabInstance): Promise\<void\>} instead.
6837
+ * As of 2.0.0, please use {@link pages.tabs.navigateToTab pages.tabs.navigateToTab(tabInstance: TabInstance): Promise\<void\>} instead.
6823
6838
  *
6824
6839
  * Navigates the Microsoft Teams app to the specified tab instance.
6825
6840
  *
@@ -6839,7 +6854,7 @@ function navigateToTab(tabInstance, onComplete) {
6839
6854
  }
6840
6855
  /**
6841
6856
  * @deprecated
6842
- * As of 2.0.0-beta.1, please use {@link pages.navigateCrossDomain pages.navigateCrossDomain(url: string): Promise\<void\>} instead.
6857
+ * As of 2.0.0, please use {@link pages.navigateCrossDomain pages.navigateCrossDomain(url: string): Promise\<void\>} instead.
6843
6858
  *
6844
6859
  * Navigates the frame to a new cross-domain URL. The domain of this URL must match at least one of the
6845
6860
  * valid domains specified in the validDomains block of the manifest; otherwise, an exception will be
@@ -6863,7 +6878,7 @@ function navigateCrossDomain(url, onComplete) {
6863
6878
  }
6864
6879
  /**
6865
6880
  * @deprecated
6866
- * As of 2.0.0-beta.1, please use {@link pages.backStack.navigateBack pages.backStack.navigateBack(): Promise\<void\>} instead.
6881
+ * As of 2.0.0, please use {@link pages.backStack.navigateBack pages.backStack.navigateBack(): Promise\<void\>} instead.
6867
6882
  *
6868
6883
  * Navigates back in the Teams client.
6869
6884
  * See registerBackButtonHandler for more information on when it's appropriate to use this method.
@@ -6889,7 +6904,7 @@ function navigateBack(onComplete) {
6889
6904
 
6890
6905
  /**
6891
6906
  * @deprecated
6892
- * As of 2.0.0-beta.1, please use {@link pages.config} namespace instead.
6907
+ * As of 2.0.0, please use {@link pages.config} namespace instead.
6893
6908
  *
6894
6909
  * Namespace to interact with the settings-specific part of the SDK.
6895
6910
  * This object is usable only on the settings frame.
@@ -6898,7 +6913,7 @@ var settings;
6898
6913
  (function (settings) {
6899
6914
  /**
6900
6915
  * @deprecated
6901
- * As of 2.0.0-beta.1, please use {@link pages.config.setValidityState pages.config.setValidityState(validityState: boolean): void} instead.
6916
+ * As of 2.0.0, please use {@link pages.config.setValidityState pages.config.setValidityState(validityState: boolean): void} instead.
6902
6917
  *
6903
6918
  * Sets the validity state for the settings.
6904
6919
  * The initial value is false, so the user cannot save the settings until this is called with true.
@@ -6911,7 +6926,7 @@ var settings;
6911
6926
  settings.setValidityState = setValidityState;
6912
6927
  /**
6913
6928
  * @deprecated
6914
- * As of 2.0.0-beta.1, please use {@link pages.config.getConfig pages.config.getConfig(): Promise\<Config\>} instead.
6929
+ * As of 2.0.0, please use {@link pages.config.getConfig pages.config.getConfig(): Promise\<Config\>} instead.
6915
6930
  *
6916
6931
  * Gets the settings for the current instance.
6917
6932
  *
@@ -6926,7 +6941,7 @@ var settings;
6926
6941
  settings.getSettings = getSettings;
6927
6942
  /**
6928
6943
  * @deprecated
6929
- * As of 2.0.0-beta.1, please use {@link pages.config.setConfig pages.config.setConfig(instanceSettings: Config): Promise\<void\>} instead.
6944
+ * As of 2.0.0, please use {@link pages.config.setConfig pages.config.setConfig(instanceSettings: Config): Promise\<void\>} instead.
6930
6945
  *
6931
6946
  * Sets the settings for the current instance.
6932
6947
  * This is an asynchronous operation; calls to getSettings are not guaranteed to reflect the changed state.
@@ -6947,7 +6962,7 @@ var settings;
6947
6962
  settings.setSettings = setSettings;
6948
6963
  /**
6949
6964
  * @deprecated
6950
- * As of 2.0.0-beta.1, please use {@link pages.config.registerOnSaveHandler pages.config.registerOnSaveHandler(handler: (evt: SaveEvent) => void): void} instead.
6965
+ * As of 2.0.0, please use {@link pages.config.registerOnSaveHandler pages.config.registerOnSaveHandler(handler: (evt: SaveEvent) => void): void} instead.
6951
6966
  *
6952
6967
  * Registers a handler for when the user attempts to save the settings. This handler should be used
6953
6968
  * to create or update the underlying resource powering the content.
@@ -6962,7 +6977,7 @@ var settings;
6962
6977
  settings.registerOnSaveHandler = registerOnSaveHandler;
6963
6978
  /**
6964
6979
  * @deprecated
6965
- * As of 2.0.0-beta.1, please use {@link pages.config.registerOnRemoveHandler pages.config.registerOnRemoveHandler(handler: (evt: RemoveEvent) => void): void} instead.
6980
+ * As of 2.0.0, please use {@link pages.config.registerOnRemoveHandler pages.config.registerOnRemoveHandler(handler: (evt: RemoveEvent) => void): void} instead.
6966
6981
  *
6967
6982
  * Registers a handler for user attempts to remove content. This handler should be used
6968
6983
  * to remove the underlying resource powering the content.
@@ -6997,7 +7012,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
6997
7012
 
6998
7013
  /**
6999
7014
  * @deprecated
7000
- * As of 2.0.0-beta.1, please use {@link dialog} namespace instead.
7015
+ * As of 2.0.0, please use {@link dialog} namespace instead.
7001
7016
  *
7002
7017
  * Namespace to interact with the task module-specific part of the SDK.
7003
7018
  * This object is usable only on the content frame.
@@ -7007,7 +7022,7 @@ var tasks;
7007
7022
  (function (tasks) {
7008
7023
  /**
7009
7024
  * @deprecated
7010
- * As of 2.0.0-beta.4, please use {@link dialog.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): PostMessageChannel} for url based dialogs
7025
+ * As of 2.0.0, please use {@link dialog.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): PostMessageChannel} for url based dialogs
7011
7026
  * and {@link dialog.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): PostMessageChannel} for bot based dialogs.
7012
7027
  *
7013
7028
  * Allows an app to open the task module.
@@ -7035,7 +7050,7 @@ var tasks;
7035
7050
  tasks.startTask = startTask;
7036
7051
  /**
7037
7052
  * @deprecated
7038
- * As of 2.0.0-beta.4, please use {@link dialog.update.resize dialog.update.resize(dimensions: DialogSize): void} instead.
7053
+ * As of 2.0.0, please use {@link dialog.update.resize dialog.update.resize(dimensions: DialogSize): void} instead.
7039
7054
  *
7040
7055
  * Update height/width task info properties.
7041
7056
  *
@@ -7053,7 +7068,7 @@ var tasks;
7053
7068
  tasks.updateTask = updateTask;
7054
7069
  /**
7055
7070
  * @deprecated
7056
- * As of 2.0.0-beta.1, please use {@link dialog.submit dialog.submit(result?: string | object, appIds?: string | string[]): void} instead.
7071
+ * As of 2.0.0, please use {@link dialog.submit dialog.submit(result?: string | object, appIds?: string | string[]): void} instead.
7057
7072
  *
7058
7073
  * Submit the task module.
7059
7074
  *
@@ -7300,7 +7315,7 @@ var files;
7300
7315
  * Hide from docs
7301
7316
  * ------
7302
7317
  *
7303
- * Open a cloud storage file in teams
7318
+ * Open a cloud storage file in Teams
7304
7319
  *
7305
7320
  * @param file - cloud storage file that should be opened
7306
7321
  * @param providerCode - Code of the cloud storage folder provider
@@ -7394,97 +7409,6 @@ var files;
7394
7409
  files_1.openDownloadFolder = openDownloadFolder;
7395
7410
  })(files || (files = {}));
7396
7411
 
7397
- ;// CONCATENATED MODULE: ./src/private/legacy.ts
7398
-
7399
-
7400
-
7401
-
7402
-
7403
-
7404
-
7405
- /**
7406
- * @internal
7407
- */
7408
- var legacy;
7409
- (function (legacy) {
7410
- var fullTrust;
7411
- (function (fullTrust) {
7412
- var joinedTeams;
7413
- (function (joinedTeams) {
7414
- /**
7415
- * @hidden
7416
- * Hide from docs
7417
- * ------
7418
- * Allows an app to retrieve information of all user joined teams
7419
- *
7420
- * @param teamInstanceParameters - OPTIONAL Flags that specify whether to scope call to favorite teams
7421
- * @returns Promise resolved containing information about the user joined teams or rejected with error
7422
- */
7423
- function getUserJoinedTeams(teamInstanceParameters) {
7424
- return new Promise(function (resolve) {
7425
- ensureInitialized();
7426
- if (!isSupported()) {
7427
- throw errorNotSupportedOnPlatform;
7428
- }
7429
- if ((GlobalVars.hostClientType === HostClientType.android ||
7430
- GlobalVars.hostClientType === HostClientType.teamsRoomsAndroid ||
7431
- GlobalVars.hostClientType === HostClientType.teamsPhones ||
7432
- GlobalVars.hostClientType === HostClientType.teamsDisplays) &&
7433
- !isCurrentSDKVersionAtLeast(getUserJoinedTeamsSupportedAndroidClientVersion)) {
7434
- var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
7435
- throw new Error(JSON.stringify(oldPlatformError));
7436
- }
7437
- resolve(sendAndUnwrap('getUserJoinedTeams', teamInstanceParameters));
7438
- });
7439
- }
7440
- joinedTeams.getUserJoinedTeams = getUserJoinedTeams;
7441
- function isSupported() {
7442
- return runtime.supports.teams
7443
- ? runtime.supports.teams.fullTrust
7444
- ? runtime.supports.teams.fullTrust.joinedTeams
7445
- ? true
7446
- : false
7447
- : false
7448
- : false;
7449
- }
7450
- joinedTeams.isSupported = isSupported;
7451
- })(joinedTeams = fullTrust.joinedTeams || (fullTrust.joinedTeams = {}));
7452
- /**
7453
- * @hidden
7454
- * Hide from docs
7455
- * ------
7456
- * Allows an app to get the configuration setting value
7457
- *
7458
- * @param key - The key for the config setting
7459
- * @returns Promise resolved containing the value for the provided config setting or rejected with error
7460
- */
7461
- function getConfigSetting(key) {
7462
- return new Promise(function (resolve) {
7463
- ensureInitialized();
7464
- if (!isSupported()) {
7465
- throw errorNotSupportedOnPlatform;
7466
- }
7467
- resolve(sendAndUnwrap('getConfigSetting', key));
7468
- });
7469
- }
7470
- fullTrust.getConfigSetting = getConfigSetting;
7471
- /**
7472
- * Checks if teams.fullTrust capability is supported currently
7473
- */
7474
- function isSupported() {
7475
- return runtime.supports.teams ? (runtime.supports.teams.fullTrust ? true : false) : false;
7476
- }
7477
- fullTrust.isSupported = isSupported;
7478
- })(fullTrust = legacy.fullTrust || (legacy.fullTrust = {}));
7479
- /**
7480
- * Checks if teams capability is supported currently
7481
- */
7482
- function isSupported() {
7483
- return runtime.supports.teams ? true : false;
7484
- }
7485
- legacy.isSupported = isSupported;
7486
- })(legacy || (legacy = {}));
7487
-
7488
7412
  ;// CONCATENATED MODULE: ./src/private/meetingRoom.ts
7489
7413
 
7490
7414
 
@@ -7863,9 +7787,9 @@ var appEntity;
7863
7787
  * --------
7864
7788
  * Open the Tab Gallery and retrieve the app entity
7865
7789
  * @param threadId ID of the thread where the app entity will be created
7866
- * @param categories A list of app categories that will be displayed in the opened tab gallery
7790
+ * @param categories A list of application categories that will be displayed in the opened tab gallery
7867
7791
  * @param subEntityId An object that will be made available to the application being configured
7868
- * through the Teams Context's subEntityId field.
7792
+ * through the Context's subEntityId field.
7869
7793
  * @param callback Callback that will be triggered once the app entity information is available.
7870
7794
  * The callback takes two arguments: an SdkError in case something happened (i.e.
7871
7795
  * no permissions to execute the API) and the app entity configuration, if available
@@ -7884,6 +7808,11 @@ var appEntity;
7884
7808
  sendMessageToParent('appEntity.selectAppEntity', [threadId, categories, subEntityId], callback);
7885
7809
  }
7886
7810
  appEntity_1.selectAppEntity = selectAppEntity;
7811
+ /**
7812
+ * Checks if appEntity capability is supported by the host
7813
+ * @returns true if the appEntity capability is enabled in runtime.supports.appEntity and
7814
+ * false if it is disabled
7815
+ */
7887
7816
  function isSupported() {
7888
7817
  return runtime.supports.appEntity ? true : false;
7889
7818
  }
@@ -7895,6 +7824,9 @@ var appEntity;
7895
7824
 
7896
7825
 
7897
7826
 
7827
+
7828
+
7829
+
7898
7830
  /**
7899
7831
  * @hidden
7900
7832
  * Namespace to interact with the `teams` specific part of the SDK.
@@ -7955,10 +7887,107 @@ var teams;
7955
7887
  sendMessageToParent('teams.refreshSiteUrl', [threadId], callback);
7956
7888
  }
7957
7889
  teams.refreshSiteUrl = refreshSiteUrl;
7890
+ /**
7891
+ * @hidden
7892
+ * Checks if teams capability is supported by the host
7893
+ *
7894
+ * @returns true if the teams capability is enabled in runtime.supports.teams and
7895
+ * false if it is disabled
7896
+ */
7958
7897
  function isSupported() {
7959
7898
  return runtime.supports.teams ? true : false;
7960
7899
  }
7961
7900
  teams.isSupported = isSupported;
7901
+ /**
7902
+ * @hidden
7903
+ * Hide from docs
7904
+ * ------
7905
+ *
7906
+ * @internal
7907
+ */
7908
+ var fullTrust;
7909
+ (function (fullTrust) {
7910
+ var joinedTeams;
7911
+ (function (joinedTeams) {
7912
+ /**
7913
+ * @hidden
7914
+ * Hide from docs
7915
+ * ------
7916
+ * Allows an app to retrieve information of all user joined teams
7917
+ *
7918
+ * @param teamInstanceParameters - Optional flags that specify whether to scope call to favorite teams
7919
+ * @returns Promise that resolves with information about the user joined teams or rejects with an error when the operation has completed
7920
+ */
7921
+ function getUserJoinedTeams(teamInstanceParameters) {
7922
+ return new Promise(function (resolve) {
7923
+ ensureInitialized();
7924
+ if (!isSupported()) {
7925
+ throw errorNotSupportedOnPlatform;
7926
+ }
7927
+ if ((GlobalVars.hostClientType === HostClientType.android ||
7928
+ GlobalVars.hostClientType === HostClientType.teamsRoomsAndroid ||
7929
+ GlobalVars.hostClientType === HostClientType.teamsPhones ||
7930
+ GlobalVars.hostClientType === HostClientType.teamsDisplays) &&
7931
+ !isCurrentSDKVersionAtLeast(getUserJoinedTeamsSupportedAndroidClientVersion)) {
7932
+ var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
7933
+ throw new Error(JSON.stringify(oldPlatformError));
7934
+ }
7935
+ resolve(sendAndUnwrap('getUserJoinedTeams', teamInstanceParameters));
7936
+ });
7937
+ }
7938
+ joinedTeams.getUserJoinedTeams = getUserJoinedTeams;
7939
+ /**
7940
+ * @hidden
7941
+ * Hide from docs
7942
+ * ------
7943
+ * Checks if teams.fullTrust.joinedTeams capability is supported by the host
7944
+ *
7945
+ * @returns true if the teams.fullTrust.joinedTeams capability is enabled in
7946
+ * runtime.supports.teams.fullTrust.joinedTeams and false if it is disabled
7947
+ */
7948
+ function isSupported() {
7949
+ return runtime.supports.teams
7950
+ ? runtime.supports.teams.fullTrust
7951
+ ? runtime.supports.teams.fullTrust.joinedTeams
7952
+ ? true
7953
+ : false
7954
+ : false
7955
+ : false;
7956
+ }
7957
+ joinedTeams.isSupported = isSupported;
7958
+ })(joinedTeams = fullTrust.joinedTeams || (fullTrust.joinedTeams = {}));
7959
+ /**
7960
+ * @hidden
7961
+ * Hide from docs
7962
+ * ------
7963
+ * Allows an app to get the configuration setting value
7964
+ *
7965
+ * @param key - The key for the config setting
7966
+ * @returns Promise that resolves with the value for the provided configuration setting or rejects with an error when the operation has completed
7967
+ */
7968
+ function getConfigSetting(key) {
7969
+ return new Promise(function (resolve) {
7970
+ ensureInitialized();
7971
+ if (!isSupported()) {
7972
+ throw errorNotSupportedOnPlatform;
7973
+ }
7974
+ resolve(sendAndUnwrap('getConfigSetting', key));
7975
+ });
7976
+ }
7977
+ fullTrust.getConfigSetting = getConfigSetting;
7978
+ /**
7979
+ * @hidden
7980
+ * Hide from docs
7981
+ * ------
7982
+ * Checks if teams.fullTrust capability is supported by the host
7983
+ * @returns true if the teams.fullTrust capability is enabled in runtime.supports.teams.fullTrust and
7984
+ * false if it is disabled
7985
+ */
7986
+ function isSupported() {
7987
+ return runtime.supports.teams ? (runtime.supports.teams.fullTrust ? true : false) : false;
7988
+ }
7989
+ fullTrust.isSupported = isSupported;
7990
+ })(fullTrust = teams.fullTrust || (teams.fullTrust = {}));
7962
7991
  })(teams || (teams = {}));
7963
7992
 
7964
7993
  ;// CONCATENATED MODULE: ./src/private/index.ts
@@ -7972,7 +8001,6 @@ var teams;
7972
8001
 
7973
8002
 
7974
8003
 
7975
-
7976
8004
 
7977
8005
  ;// CONCATENATED MODULE: ./src/index.ts
7978
8006