@microsoft/teams-js 2.0.0-beta.7-dev.6 → 2.0.0-beta.7-dev.9
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/README.md +1 -1
- package/dist/MicrosoftTeams.d.ts +145 -109
- package/dist/MicrosoftTeams.js +178 -150
- 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
|
@@ -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.
|
|
1124
|
+
var version = "2.0.0-beta.7-dev.9";
|
|
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.
|
|
@@ -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
|
|
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
|
|
3423
|
-
* the F6/
|
|
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
|
|
3441
|
+
* Registers a handler for specifying focus when it passes from the host to the application.
|
|
3438
3442
|
*
|
|
3439
|
-
* @param handler - The handler
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
3583
|
-
* @param tabInstance The tab instance
|
|
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
|
-
*
|
|
3599
|
-
* If no TabInstanceParameters are passed, the
|
|
3600
|
-
* @param tabInstanceParameters
|
|
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
|
-
*
|
|
3615
|
-
* @param tabInstanceParameters
|
|
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
|
|
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
|
-
*
|
|
3640
|
-
* This object is usable only on the
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
|
3840
|
-
* navigation stack should use this handler to navigate the user back within their frame. If an
|
|
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
|
|
3843
|
-
* @param handler The handler to invoke when the user presses
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
|
6152
|
-
* If it's pre-meeting,
|
|
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,
|
|
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
|
|
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
|
|
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
|
}
|
|
@@ -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
|
|
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 = {
|
|
@@ -7300,7 +7315,7 @@ var files;
|
|
|
7300
7315
|
* Hide from docs
|
|
7301
7316
|
* ------
|
|
7302
7317
|
*
|
|
7303
|
-
* Open a cloud storage file in
|
|
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
|
|
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
|
|
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
|
|