@microsoft/teams-js 2.0.0-beta.7-dev.6 → 2.0.0-beta.7-dev.7
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.
- package/dist/MicrosoftTeams.d.ts +117 -72
- package/dist/MicrosoftTeams.js +107 -59
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +1 -1
- package/dist/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -1
package/dist/MicrosoftTeams.js
CHANGED
@@ -1122,7 +1122,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1122
1122
|
});
|
1123
1123
|
|
1124
1124
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1125
|
-
var version = "2.0.0-beta.7-dev.
|
1125
|
+
var version = "2.0.0-beta.7-dev.7";
|
1126
1126
|
/**
|
1127
1127
|
* @hidden
|
1128
1128
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
@@ -1856,7 +1856,7 @@ function uploadCustomApp(manifestBlob, onComplete) {
|
|
1856
1856
|
/**
|
1857
1857
|
* @hidden
|
1858
1858
|
* Internal use only
|
1859
|
-
* Sends a custom action MessageRequest to
|
1859
|
+
* Sends a custom action MessageRequest to host or parent window
|
1860
1860
|
*
|
1861
1861
|
* @param actionName - Specifies name of the custom action to be sent
|
1862
1862
|
* @param args - Specifies additional arguments passed to the action
|
@@ -2987,6 +2987,11 @@ var teamsCore;
|
|
2987
2987
|
handlers_registerBeforeUnloadHandler(handler);
|
2988
2988
|
}
|
2989
2989
|
teamsCore.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
|
2990
|
+
/**
|
2991
|
+
* Checks if teamsCore capability is supported by the host
|
2992
|
+
* @returns true if the teamsCore capability is enabled in runtime.supports.teamsCore and
|
2993
|
+
* false if it is disabled
|
2994
|
+
*/
|
2990
2995
|
function isSupported() {
|
2991
2996
|
return runtime.supports.teamsCore ? true : false;
|
2992
2997
|
}
|
@@ -3419,8 +3424,8 @@ function transformLegacyContextToAppContext(legacyContext) {
|
|
3419
3424
|
var pages;
|
3420
3425
|
(function (pages) {
|
3421
3426
|
/**
|
3422
|
-
* Return focus to the host. Will move focus forward or backward based on where the
|
3423
|
-
* the F6/
|
3427
|
+
* Return focus to the host. Will move focus forward or backward based on where the application container falls in
|
3428
|
+
* the F6/tab order in the host.
|
3424
3429
|
* @param navigateForward - Determines the direction to focus in host.
|
3425
3430
|
*/
|
3426
3431
|
function returnFocus(navigateForward) {
|
@@ -3434,9 +3439,9 @@ var pages;
|
|
3434
3439
|
/**
|
3435
3440
|
* @hidden
|
3436
3441
|
*
|
3437
|
-
* Registers a handler
|
3442
|
+
* Registers a handler for specifying focus when it passes from the host to the application.
|
3438
3443
|
*
|
3439
|
-
* @param handler - The handler
|
3444
|
+
* @param handler - The handler for placing focus within the application.
|
3440
3445
|
*
|
3441
3446
|
* @internal
|
3442
3447
|
*/
|
@@ -3467,7 +3472,7 @@ var pages;
|
|
3467
3472
|
*
|
3468
3473
|
* @param frameInfo - Frame information containing the URL used in the iframe on reload and the URL for when the
|
3469
3474
|
* user clicks 'Go To Website'
|
3470
|
-
* @param callback - An optional
|
3475
|
+
* @param callback - An optional callback that is executed once the application has finished initialization.
|
3471
3476
|
* @param validMessageOrigins - An optional list of cross-frame message origins. They must have
|
3472
3477
|
* https: protocol otherwise they will be ignored. Example: https:www.example.com
|
3473
3478
|
*/
|
@@ -3494,7 +3499,7 @@ var pages;
|
|
3494
3499
|
* Navigates the frame to a new cross-domain URL. The domain of this URL must match at least one of the
|
3495
3500
|
* valid domains specified in the validDomains block of the manifest; otherwise, an exception will be
|
3496
3501
|
* 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
|
3502
|
+
* than the current one in a way that keeps the application informed of the change and allows the SDK to
|
3498
3503
|
* continue working.
|
3499
3504
|
* @param url - The URL to navigate the frame to.
|
3500
3505
|
* @returns Promise that resolves when the navigation has completed.
|
@@ -3511,12 +3516,12 @@ var pages;
|
|
3511
3516
|
}
|
3512
3517
|
pages.navigateCrossDomain = navigateCrossDomain;
|
3513
3518
|
/**
|
3514
|
-
* Navigate to the given
|
3515
|
-
* be navigated to, such as if it is not installed), Channel ID (for
|
3516
|
-
*
|
3517
|
-
* a deep link with the above data, but does not require the
|
3519
|
+
* Navigate to the given application ID and page ID, with optional parameters for a WebURL (if the application
|
3520
|
+
* cannot be navigated to, such as if it is not installed), Channel ID (for applications installed as a channel tab),
|
3521
|
+
* and sub-page ID (for navigating to specific content within the page). This is equivalent to navigating to
|
3522
|
+
* a deep link with the above data, but does not require the application to build a URL or worry about different
|
3518
3523
|
* deep link formats for different hosts.
|
3519
|
-
* @param params Parameters for the navigation
|
3524
|
+
* @param params - Parameters for the navigation
|
3520
3525
|
* @returns a promise that will resolve if the navigation was successful
|
3521
3526
|
*/
|
3522
3527
|
function navigateToApp(params) {
|
@@ -3565,7 +3570,7 @@ var pages;
|
|
3565
3570
|
}
|
3566
3571
|
pages.registerFullScreenHandler = registerFullScreenHandler;
|
3567
3572
|
/**
|
3568
|
-
* Checks if the
|
3573
|
+
* Checks if the pages capability is supported by the host
|
3569
3574
|
* @returns true if the pages capability is enabled in runtime.supports.pages and
|
3570
3575
|
* false if it is disabled
|
3571
3576
|
*/
|
@@ -3574,13 +3579,14 @@ var pages;
|
|
3574
3579
|
}
|
3575
3580
|
pages.isSupported = isSupported;
|
3576
3581
|
/**
|
3577
|
-
*
|
3582
|
+
* Provides APIs for querying and navigating between contextual tabs of an application. Unlike personal tabs,
|
3583
|
+
* contextual tabs are pages associated with a specific context, such as channel or chat.
|
3578
3584
|
*/
|
3579
3585
|
var tabs;
|
3580
3586
|
(function (tabs) {
|
3581
3587
|
/**
|
3582
|
-
* Navigates the hosted
|
3583
|
-
* @param tabInstance The tab instance
|
3588
|
+
* Navigates the hosted application to the specified tab instance.
|
3589
|
+
* @param tabInstance - The destination tab instance.
|
3584
3590
|
* @returns Promise that resolves when the navigation has completed.
|
3585
3591
|
*/
|
3586
3592
|
function navigateToTab(tabInstance) {
|
@@ -3595,9 +3601,9 @@ var pages;
|
|
3595
3601
|
}
|
3596
3602
|
tabs.navigateToTab = navigateToTab;
|
3597
3603
|
/**
|
3598
|
-
*
|
3599
|
-
* If no TabInstanceParameters are passed, the
|
3600
|
-
* @param tabInstanceParameters
|
3604
|
+
* Retrieves application tabs for the current user.
|
3605
|
+
* If no TabInstanceParameters are passed, the application defaults to favorite teams and favorite channels.
|
3606
|
+
* @param tabInstanceParameters - An optional set of flags that specify whether to scope call to favorite teams or channels.
|
3601
3607
|
* @returns Promise that resolves with the {@link TabInformation}. Contains information for the user's tabs that are owned by this application {@link TabInstance}.
|
3602
3608
|
*/
|
3603
3609
|
function getTabInstances(tabInstanceParameters) {
|
@@ -3611,8 +3617,8 @@ var pages;
|
|
3611
3617
|
}
|
3612
3618
|
tabs.getTabInstances = getTabInstances;
|
3613
3619
|
/**
|
3614
|
-
*
|
3615
|
-
* @param tabInstanceParameters
|
3620
|
+
* Retrieves the most recently used application tabs for the current user.
|
3621
|
+
* @param tabInstanceParameters - An optional set of flags. Note this is currently ignored and kept for future use.
|
3616
3622
|
* @returns Promise that resolves with the {@link TabInformation}. Contains information for the users' most recently used tabs {@link TabInstance}.
|
3617
3623
|
*/
|
3618
3624
|
function getMruTabInstances(tabInstanceParameters) {
|
@@ -3626,7 +3632,7 @@ var pages;
|
|
3626
3632
|
}
|
3627
3633
|
tabs.getMruTabInstances = getMruTabInstances;
|
3628
3634
|
/**
|
3629
|
-
* Checks if the
|
3635
|
+
* Checks if the pages.tab capability is supported by the host
|
3630
3636
|
* @returns true if the pages.tabs capability is enabled in runtime.supports.pages.tabs and
|
3631
3637
|
* false if it is disabled
|
3632
3638
|
*/
|
@@ -3636,8 +3642,8 @@ var pages;
|
|
3636
3642
|
tabs.isSupported = isSupported;
|
3637
3643
|
})(tabs = pages.tabs || (pages.tabs = {}));
|
3638
3644
|
/**
|
3639
|
-
*
|
3640
|
-
* This object is usable only on the
|
3645
|
+
* Provides APIs to interact with the configuration-specific part of the SDK.
|
3646
|
+
* This object is usable only on the configuration frame.
|
3641
3647
|
*/
|
3642
3648
|
var config;
|
3643
3649
|
(function (config) {
|
@@ -3656,9 +3662,9 @@ var pages;
|
|
3656
3662
|
}
|
3657
3663
|
config.initialize = initialize;
|
3658
3664
|
/**
|
3659
|
-
* Sets the validity state for the
|
3660
|
-
* The initial value is false, so the user cannot save the
|
3661
|
-
* @param validityState Indicates whether the save or remove button is enabled for the user.
|
3665
|
+
* Sets the validity state for the configuration.
|
3666
|
+
* The initial value is false, so the user cannot save the configuration until this is called with true.
|
3667
|
+
* @param validityState - Indicates whether the save or remove button is enabled for the user.
|
3662
3668
|
*/
|
3663
3669
|
function setValidityState(validityState) {
|
3664
3670
|
ensureInitialized(FrameContexts.settings, FrameContexts.remove);
|
@@ -3669,9 +3675,9 @@ var pages;
|
|
3669
3675
|
}
|
3670
3676
|
config.setValidityState = setValidityState;
|
3671
3677
|
/**
|
3672
|
-
* Sets the
|
3678
|
+
* Sets the configuration for the current instance.
|
3673
3679
|
* This is an asynchronous operation; calls to getConfig are not guaranteed to reflect the changed state.
|
3674
|
-
* @param instanceConfig The desired
|
3680
|
+
* @param instanceConfig - The desired configuration for this instance.
|
3675
3681
|
* @returns Promise that resolves when the operation has completed.
|
3676
3682
|
*/
|
3677
3683
|
function setConfig(instanceConfig) {
|
@@ -3685,11 +3691,11 @@ var pages;
|
|
3685
3691
|
}
|
3686
3692
|
config.setConfig = setConfig;
|
3687
3693
|
/**
|
3688
|
-
* Registers a handler for when the user attempts to save the
|
3694
|
+
* Registers a handler for when the user attempts to save the configuration. This handler should be used
|
3689
3695
|
* to create or update the underlying resource powering the content.
|
3690
3696
|
* The object passed to the handler must be used to notify whether to proceed with the save.
|
3691
3697
|
* 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
|
3698
|
+
* @param handler - The handler to invoke when the user selects the Save button.
|
3693
3699
|
*/
|
3694
3700
|
function registerOnSaveHandler(handler) {
|
3695
3701
|
ensureInitialized(FrameContexts.settings);
|
@@ -3705,7 +3711,7 @@ var pages;
|
|
3705
3711
|
* to remove the underlying resource powering the content.
|
3706
3712
|
* The object passed to the handler must be used to indicate whether to proceed with the removal.
|
3707
3713
|
* 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
|
3714
|
+
* @param handler - The handler to invoke when the user selects the Remove button.
|
3709
3715
|
*/
|
3710
3716
|
function registerOnRemoveHandler(handler) {
|
3711
3717
|
ensureInitialized(FrameContexts.remove, FrameContexts.settings);
|
@@ -3728,7 +3734,7 @@ var pages;
|
|
3728
3734
|
}
|
3729
3735
|
/**
|
3730
3736
|
* Registers a handler for when the tab configuration is changed by the user
|
3731
|
-
* @param handler The handler to invoke when the user
|
3737
|
+
* @param handler - The handler to invoke when the user clicks on Settings.
|
3732
3738
|
*/
|
3733
3739
|
function registerChangeConfigHandler(handler) {
|
3734
3740
|
ensureInitialized(FrameContexts.content);
|
@@ -3800,7 +3806,7 @@ var pages;
|
|
3800
3806
|
return RemoveEventImpl;
|
3801
3807
|
}());
|
3802
3808
|
/**
|
3803
|
-
* Checks if the
|
3809
|
+
* Checks if the pages.config capability is supported by the host
|
3804
3810
|
* @returns true if the pages.config capability is enabled in runtime.supports.pages.config and
|
3805
3811
|
* false if it is disabled
|
3806
3812
|
*/
|
@@ -3810,7 +3816,7 @@ var pages;
|
|
3810
3816
|
config.isSupported = isSupported;
|
3811
3817
|
})(config = pages.config || (pages.config = {}));
|
3812
3818
|
/**
|
3813
|
-
*
|
3819
|
+
* Provides APIs for handling the user's navigational history.
|
3814
3820
|
*/
|
3815
3821
|
var backStack;
|
3816
3822
|
(function (backStack) {
|
@@ -3820,8 +3826,7 @@ var pages;
|
|
3820
3826
|
}
|
3821
3827
|
backStack._initialize = _initialize;
|
3822
3828
|
/**
|
3823
|
-
* Navigates back in the hosted
|
3824
|
-
* it's appropriate to use this method.
|
3829
|
+
* Navigates back in the hosted application. See {@link pages.backStack.registerBackButtonHandler} for notes on usage.
|
3825
3830
|
* @returns Promise that resolves when the navigation has completed.
|
3826
3831
|
*/
|
3827
3832
|
function navigateBack() {
|
@@ -3836,11 +3841,11 @@ var pages;
|
|
3836
3841
|
}
|
3837
3842
|
backStack.navigateBack = navigateBack;
|
3838
3843
|
/**
|
3839
|
-
* Registers a handler for user presses of the
|
3840
|
-
* navigation stack should use this handler to navigate the user back within their frame. If an
|
3844
|
+
* Registers a handler for user presses of the host client's back button. Experiences that maintain an internal
|
3845
|
+
* navigation stack should use this handler to navigate the user back within their frame. If an application finds
|
3841
3846
|
* that after running its back button handler it cannot handle the event it should call the navigateBack
|
3842
|
-
* method to ask the
|
3843
|
-
* @param handler The handler to invoke when the user presses
|
3847
|
+
* method to ask the host client to handle it instead.
|
3848
|
+
* @param handler - The handler to invoke when the user presses the host client's back button.
|
3844
3849
|
*/
|
3845
3850
|
function registerBackButtonHandler(handler) {
|
3846
3851
|
ensureInitialized();
|
@@ -3857,7 +3862,7 @@ var pages;
|
|
3857
3862
|
}
|
3858
3863
|
}
|
3859
3864
|
/**
|
3860
|
-
* Checks if the
|
3865
|
+
* Checks if the pages.backStack capability is supported by the host
|
3861
3866
|
* @returns true if the pages.backStack capability is enabled in runtime.supports.pages.backStack and
|
3862
3867
|
* false if it is disabled
|
3863
3868
|
*/
|
@@ -3870,7 +3875,7 @@ var pages;
|
|
3870
3875
|
* @hidden
|
3871
3876
|
* Hide from docs
|
3872
3877
|
* ------
|
3873
|
-
*
|
3878
|
+
* Provides APIs to interact with the full-trust part of the SDK. Limited to 1P applications
|
3874
3879
|
*/
|
3875
3880
|
var fullTrust;
|
3876
3881
|
(function (fullTrust) {
|
@@ -3906,7 +3911,7 @@ var pages;
|
|
3906
3911
|
* @hidden
|
3907
3912
|
* Hide from docs
|
3908
3913
|
* ------
|
3909
|
-
* Checks if the
|
3914
|
+
* Checks if the pages.fullTrust capability is supported by the host
|
3910
3915
|
* @returns true if the pages.fullTrust capability is enabled in runtime.supports.pages.fullTrust and
|
3911
3916
|
* false if it is disabled
|
3912
3917
|
*/
|
@@ -3916,7 +3921,7 @@ var pages;
|
|
3916
3921
|
fullTrust.isSupported = isSupported;
|
3917
3922
|
})(fullTrust = pages.fullTrust || (pages.fullTrust = {}));
|
3918
3923
|
/**
|
3919
|
-
*
|
3924
|
+
* Provides APIs to interact with the app button part of the SDK.
|
3920
3925
|
*/
|
3921
3926
|
var appButton;
|
3922
3927
|
(function (appButton) {
|
@@ -3960,7 +3965,7 @@ var pages;
|
|
3960
3965
|
}
|
3961
3966
|
appButton.onHoverLeave = onHoverLeave;
|
3962
3967
|
/**
|
3963
|
-
* Checks if pages.appButton capability is supported
|
3968
|
+
* Checks if pages.appButton capability is supported by the host
|
3964
3969
|
* @returns true if the pages.appButton capability is enabled in runtime.supports.pages.appButton and
|
3965
3970
|
* false if it is disabled
|
3966
3971
|
*/
|
@@ -6133,6 +6138,8 @@ var video;
|
|
6133
6138
|
})(EffectChangeType = video.EffectChangeType || (video.EffectChangeType = {}));
|
6134
6139
|
/**
|
6135
6140
|
* Register to read the video frames in Permissions section
|
6141
|
+
* @param frameCallback - The callback to invoke when registerForVideoFrame has completed
|
6142
|
+
* @param config - VideoFrameConfig to customize generated video frame parameters
|
6136
6143
|
*/
|
6137
6144
|
function registerForVideoFrame(frameCallback, config) {
|
6138
6145
|
ensureInitialized(FrameContexts.sidePanel);
|
@@ -6148,9 +6155,9 @@ var video;
|
|
6148
6155
|
}
|
6149
6156
|
video.registerForVideoFrame = registerForVideoFrame;
|
6150
6157
|
/**
|
6151
|
-
* video extension should call this to notify
|
6152
|
-
* If it's pre-meeting,
|
6153
|
-
* in-meeting scenario, we will call videoEffectCallback when apply button clicked.
|
6158
|
+
* video extension should call this to notify host client that the current selected effect parameter changed.
|
6159
|
+
* If it's pre-meeting, host client will call videoEffectCallback immediately then use the videoEffect.
|
6160
|
+
* If it's the in-meeting scenario, we will call videoEffectCallback when apply button clicked.
|
6154
6161
|
*
|
6155
6162
|
* @param effectChangeType - the effect change type.
|
6156
6163
|
* @param effectId - Newly selected effect id.
|
@@ -6164,7 +6171,8 @@ var video;
|
|
6164
6171
|
}
|
6165
6172
|
video.notifySelectedVideoEffectChanged = notifySelectedVideoEffectChanged;
|
6166
6173
|
/**
|
6167
|
-
* Register the video effect callback,
|
6174
|
+
* Register the video effect callback, host client uses this to notify the video extension the new video effect will by applied
|
6175
|
+
* @param callback - The VideoEffectCallback to invoke when registerForVideoEffect has completed
|
6168
6176
|
*/
|
6169
6177
|
function registerForVideoEffect(callback) {
|
6170
6178
|
ensureInitialized(FrameContexts.sidePanel);
|
@@ -6175,18 +6183,24 @@ var video;
|
|
6175
6183
|
}
|
6176
6184
|
video.registerForVideoEffect = registerForVideoEffect;
|
6177
6185
|
/**
|
6178
|
-
* Sending notification to
|
6186
|
+
* Sending notification to host client finished the video frame processing, now host client can render this video frame
|
6179
6187
|
* or pass the video frame to next one in video pipeline
|
6180
6188
|
*/
|
6181
6189
|
function notifyVideoFrameProcessed() {
|
6182
6190
|
sendMessageToParent('video.videoFrameProcessed');
|
6183
6191
|
}
|
6184
6192
|
/**
|
6185
|
-
* Sending error notification to
|
6193
|
+
* Sending error notification to host client
|
6194
|
+
* @param errorMessage - The error message that will be sent to the host
|
6186
6195
|
*/
|
6187
6196
|
function notifyError(errorMessage) {
|
6188
6197
|
sendMessageToParent('video.notifyError', [errorMessage]);
|
6189
6198
|
}
|
6199
|
+
/**
|
6200
|
+
* Checks if video capability is supported by the host
|
6201
|
+
* @returns true if the video capability is enabled in runtime.supports.video and
|
6202
|
+
* false if it is disabled
|
6203
|
+
*/
|
6190
6204
|
function isSupported() {
|
6191
6205
|
return runtime.supports.video ? true : false;
|
6192
6206
|
}
|
@@ -6722,7 +6736,9 @@ function initializeWithFrameContext(frameContext, callback, validMessageOrigins)
|
|
6722
6736
|
pages.initializeWithFrameContext(frameContext, callback, validMessageOrigins);
|
6723
6737
|
}
|
6724
6738
|
/**
|
6725
|
-
* Transforms the app.Context object received to
|
6739
|
+
* Transforms the app.Context object received to the legacy global Context object
|
6740
|
+
* @param appContext - The app.Context object to be transformed
|
6741
|
+
* @returns The transformed legacy global Context object
|
6726
6742
|
*/
|
6727
6743
|
function transformAppContextToLegacyContext(appContext) {
|
6728
6744
|
var context = {
|
@@ -7300,7 +7316,7 @@ var files;
|
|
7300
7316
|
* Hide from docs
|
7301
7317
|
* ------
|
7302
7318
|
*
|
7303
|
-
* Open a cloud storage file in
|
7319
|
+
* Open a cloud storage file in Teams
|
7304
7320
|
*
|
7305
7321
|
* @param file - cloud storage file that should be opened
|
7306
7322
|
* @param providerCode - Code of the cloud storage folder provider
|
@@ -7403,6 +7419,9 @@ var files;
|
|
7403
7419
|
|
7404
7420
|
|
7405
7421
|
/**
|
7422
|
+
* @hidden
|
7423
|
+
* Hide from docs
|
7424
|
+
* ------
|
7406
7425
|
* @internal
|
7407
7426
|
*/
|
7408
7427
|
var legacy;
|
@@ -7438,6 +7457,14 @@ var legacy;
|
|
7438
7457
|
});
|
7439
7458
|
}
|
7440
7459
|
joinedTeams.getUserJoinedTeams = getUserJoinedTeams;
|
7460
|
+
/**
|
7461
|
+
* @hidden
|
7462
|
+
* Hide from docs
|
7463
|
+
* ------
|
7464
|
+
* Checks if teams.fullTrust.joinedTeams capability is supported by the host
|
7465
|
+
* @returns true if the teams.fullTrust.joinedTeams capability is enabled in
|
7466
|
+
* runtime.supports.teams.fullTrust.joinedTeams and false if it is disabled
|
7467
|
+
*/
|
7441
7468
|
function isSupported() {
|
7442
7469
|
return runtime.supports.teams
|
7443
7470
|
? runtime.supports.teams.fullTrust
|
@@ -7469,7 +7496,12 @@ var legacy;
|
|
7469
7496
|
}
|
7470
7497
|
fullTrust.getConfigSetting = getConfigSetting;
|
7471
7498
|
/**
|
7472
|
-
*
|
7499
|
+
* @hidden
|
7500
|
+
* Hide from docs
|
7501
|
+
* ------
|
7502
|
+
* Checks if teams.fullTrust capability is supported by the host
|
7503
|
+
* @returns true if the teams.fullTrust capability is enabled in runtime.supports.teams.fullTrust and
|
7504
|
+
* false if it is disabled
|
7473
7505
|
*/
|
7474
7506
|
function isSupported() {
|
7475
7507
|
return runtime.supports.teams ? (runtime.supports.teams.fullTrust ? true : false) : false;
|
@@ -7477,7 +7509,12 @@ var legacy;
|
|
7477
7509
|
fullTrust.isSupported = isSupported;
|
7478
7510
|
})(fullTrust = legacy.fullTrust || (legacy.fullTrust = {}));
|
7479
7511
|
/**
|
7480
|
-
*
|
7512
|
+
* @hidden
|
7513
|
+
* Hide from docs
|
7514
|
+
* ------
|
7515
|
+
* Checks if teams capability is supported by the host
|
7516
|
+
* @returns true if the teams capability is enabled in runtime.supports.teams and
|
7517
|
+
* false if it is disabled
|
7481
7518
|
*/
|
7482
7519
|
function isSupported() {
|
7483
7520
|
return runtime.supports.teams ? true : false;
|
@@ -7863,9 +7900,9 @@ var appEntity;
|
|
7863
7900
|
* --------
|
7864
7901
|
* Open the Tab Gallery and retrieve the app entity
|
7865
7902
|
* @param threadId ID of the thread where the app entity will be created
|
7866
|
-
* @param categories A list of
|
7903
|
+
* @param categories A list of application categories that will be displayed in the opened tab gallery
|
7867
7904
|
* @param subEntityId An object that will be made available to the application being configured
|
7868
|
-
* through the
|
7905
|
+
* through the Context's subEntityId field.
|
7869
7906
|
* @param callback Callback that will be triggered once the app entity information is available.
|
7870
7907
|
* The callback takes two arguments: an SdkError in case something happened (i.e.
|
7871
7908
|
* no permissions to execute the API) and the app entity configuration, if available
|
@@ -7884,6 +7921,11 @@ var appEntity;
|
|
7884
7921
|
sendMessageToParent('appEntity.selectAppEntity', [threadId, categories, subEntityId], callback);
|
7885
7922
|
}
|
7886
7923
|
appEntity_1.selectAppEntity = selectAppEntity;
|
7924
|
+
/**
|
7925
|
+
* Checks if appEntity capability is supported by the host
|
7926
|
+
* @returns true if the appEntity capability is enabled in runtime.supports.appEntity and
|
7927
|
+
* false if it is disabled
|
7928
|
+
*/
|
7887
7929
|
function isSupported() {
|
7888
7930
|
return runtime.supports.appEntity ? true : false;
|
7889
7931
|
}
|
@@ -7955,6 +7997,12 @@ var teams;
|
|
7955
7997
|
sendMessageToParent('teams.refreshSiteUrl', [threadId], callback);
|
7956
7998
|
}
|
7957
7999
|
teams.refreshSiteUrl = refreshSiteUrl;
|
8000
|
+
/**
|
8001
|
+
* @hidden
|
8002
|
+
* Checks if teams capability is supported by the host
|
8003
|
+
* @returns true if the teams capability is enabled in runtime.supports.teams and
|
8004
|
+
* false if it is disabled
|
8005
|
+
*/
|
7958
8006
|
function isSupported() {
|
7959
8007
|
return runtime.supports.teams ? true : false;
|
7960
8008
|
}
|