@microsoft/teams-js 2.0.0-beta.6-dev.12 → 2.0.0-beta.6-dev.15
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.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.6-dev.
|
1125
|
+
var version = "2.0.0-beta.6-dev.15";
|
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.
|
@@ -1348,6 +1348,7 @@ var HostClientType;
|
|
1348
1348
|
HostClientType["web"] = "web";
|
1349
1349
|
HostClientType["android"] = "android";
|
1350
1350
|
HostClientType["ios"] = "ios";
|
1351
|
+
HostClientType["ipados"] = "ipados";
|
1351
1352
|
/**
|
1352
1353
|
* @deprecated
|
1353
1354
|
* As of 2.0.0-beta.1, please use {@link teamsRoomsWindows} instead.
|
@@ -2572,6 +2573,9 @@ var dialog;
|
|
2572
2573
|
*/
|
2573
2574
|
function open(urlDialogInfo, submitHandler, messageFromChildHandler) {
|
2574
2575
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
2576
|
+
if (!isSupported()) {
|
2577
|
+
throw errorNotSupportedOnPlatform;
|
2578
|
+
}
|
2575
2579
|
if (messageFromChildHandler) {
|
2576
2580
|
registerHandler('messageForParent', messageFromChildHandler);
|
2577
2581
|
}
|
@@ -2590,6 +2594,9 @@ var dialog;
|
|
2590
2594
|
*/
|
2591
2595
|
function submit(result, appIds) {
|
2592
2596
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.task, FrameContexts.meetingStage);
|
2597
|
+
if (!isSupported()) {
|
2598
|
+
throw errorNotSupportedOnPlatform;
|
2599
|
+
}
|
2593
2600
|
// Send tasks.completeTask instead of tasks.submitTask message for backward compatibility with Mobile clients
|
2594
2601
|
sendMessageToParent('tasks.completeTask', [result, appIds ? (Array.isArray(appIds) ? appIds : [appIds]) : []]);
|
2595
2602
|
}
|
@@ -2606,6 +2613,9 @@ var dialog;
|
|
2606
2613
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2607
2614
|
message) {
|
2608
2615
|
ensureInitialized(FrameContexts.task);
|
2616
|
+
if (!isSupported()) {
|
2617
|
+
throw errorNotSupportedOnPlatform;
|
2618
|
+
}
|
2609
2619
|
sendMessageToParent('messageForParent', [message]);
|
2610
2620
|
}
|
2611
2621
|
dialog.sendMessageToParentFromDialog = sendMessageToParentFromDialog;
|
@@ -2618,6 +2628,9 @@ var dialog;
|
|
2618
2628
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2619
2629
|
message) {
|
2620
2630
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
2631
|
+
if (!isSupported()) {
|
2632
|
+
throw errorNotSupportedOnPlatform;
|
2633
|
+
}
|
2621
2634
|
sendMessageToParent('messageForChild', [message]);
|
2622
2635
|
}
|
2623
2636
|
dialog.sendMessageToDialog = sendMessageToDialog;
|
@@ -2631,6 +2644,9 @@ var dialog;
|
|
2631
2644
|
*/
|
2632
2645
|
function registerOnMessageFromParent(listener) {
|
2633
2646
|
ensureInitialized(FrameContexts.task);
|
2647
|
+
if (!isSupported()) {
|
2648
|
+
throw errorNotSupportedOnPlatform;
|
2649
|
+
}
|
2634
2650
|
// We need to remove the original 'messageForChild'
|
2635
2651
|
// handler since the original does not allow for post messages.
|
2636
2652
|
// It is replaced by the user specified listener that is passed in.
|
@@ -2664,6 +2680,9 @@ var dialog;
|
|
2664
2680
|
*/
|
2665
2681
|
function resize(dimensions) {
|
2666
2682
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.task, FrameContexts.meetingStage);
|
2683
|
+
if (!isSupported()) {
|
2684
|
+
throw errorNotSupportedOnPlatform;
|
2685
|
+
}
|
2667
2686
|
sendMessageToParent('tasks.updateTask', [dimensions]);
|
2668
2687
|
}
|
2669
2688
|
update.resize = resize;
|
@@ -2693,6 +2712,9 @@ var dialog;
|
|
2693
2712
|
*/
|
2694
2713
|
function open(botUrlDialogInfo, submitHandler, messageFromChildHandler) {
|
2695
2714
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
2715
|
+
if (!isSupported()) {
|
2716
|
+
throw errorNotSupportedOnPlatform;
|
2717
|
+
}
|
2696
2718
|
if (messageFromChildHandler) {
|
2697
2719
|
registerHandler('messageForParent', messageFromChildHandler);
|
2698
2720
|
}
|
@@ -2890,8 +2912,6 @@ var menus;
|
|
2890
2912
|
|
2891
2913
|
/**
|
2892
2914
|
* Namespace containing the set of APIs that support Teams-specific functionalities.
|
2893
|
-
*
|
2894
|
-
* @alpha
|
2895
2915
|
*/
|
2896
2916
|
var teamsCore;
|
2897
2917
|
(function (teamsCore) {
|
@@ -3349,7 +3369,10 @@ var pages;
|
|
3349
3369
|
* @param navigateForward - Determines the direction to focus in host.
|
3350
3370
|
*/
|
3351
3371
|
function returnFocus(navigateForward) {
|
3352
|
-
ensureInitialized(
|
3372
|
+
ensureInitialized();
|
3373
|
+
if (!isSupported()) {
|
3374
|
+
throw errorNotSupportedOnPlatform;
|
3375
|
+
}
|
3353
3376
|
sendMessageToParent('returnFocus', [navigateForward]);
|
3354
3377
|
}
|
3355
3378
|
pages.returnFocus = returnFocus;
|
@@ -3363,11 +3386,17 @@ var pages;
|
|
3363
3386
|
*/
|
3364
3387
|
function registerFocusEnterHandler(handler) {
|
3365
3388
|
ensureInitialized();
|
3389
|
+
if (!isSupported()) {
|
3390
|
+
throw errorNotSupportedOnPlatform;
|
3391
|
+
}
|
3366
3392
|
registerHandler('focusEnter', handler);
|
3367
3393
|
}
|
3368
3394
|
pages.registerFocusEnterHandler = registerFocusEnterHandler;
|
3369
3395
|
function setCurrentFrame(frameInfo) {
|
3370
3396
|
ensureInitialized(FrameContexts.content);
|
3397
|
+
if (!isSupported()) {
|
3398
|
+
throw errorNotSupportedOnPlatform;
|
3399
|
+
}
|
3371
3400
|
sendMessageToParent('setFrameContext', [frameInfo]);
|
3372
3401
|
}
|
3373
3402
|
pages.setCurrentFrame = setCurrentFrame;
|
@@ -3383,6 +3412,9 @@ var pages;
|
|
3383
3412
|
function getConfig() {
|
3384
3413
|
return new Promise(function (resolve) {
|
3385
3414
|
ensureInitialized(FrameContexts.content, FrameContexts.settings, FrameContexts.remove, FrameContexts.sidePanel);
|
3415
|
+
if (!isSupported()) {
|
3416
|
+
throw errorNotSupportedOnPlatform;
|
3417
|
+
}
|
3386
3418
|
resolve(sendAndUnwrap('settings.getSettings'));
|
3387
3419
|
});
|
3388
3420
|
}
|
@@ -3399,6 +3431,9 @@ var pages;
|
|
3399
3431
|
function navigateCrossDomain(url) {
|
3400
3432
|
return new Promise(function (resolve) {
|
3401
3433
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.remove, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
3434
|
+
if (!isSupported()) {
|
3435
|
+
throw errorNotSupportedOnPlatform;
|
3436
|
+
}
|
3402
3437
|
var errorMessage = 'Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.';
|
3403
3438
|
resolve(sendAndHandleStatusAndReasonWithDefaultError('navigateCrossDomain', errorMessage, url));
|
3404
3439
|
});
|
@@ -3416,6 +3451,9 @@ var pages;
|
|
3416
3451
|
function navigateToApp(params) {
|
3417
3452
|
return new Promise(function (resolve) {
|
3418
3453
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
3454
|
+
if (!isSupported()) {
|
3455
|
+
throw errorNotSupportedOnPlatform;
|
3456
|
+
}
|
3419
3457
|
if (runtime.isLegacyTeams) {
|
3420
3458
|
resolve(sendAndHandleStatusAndReason('executeDeepLink', createTeamsAppLink(params)));
|
3421
3459
|
}
|
@@ -3432,6 +3470,9 @@ var pages;
|
|
3432
3470
|
*/
|
3433
3471
|
function shareDeepLink(deepLinkParameters) {
|
3434
3472
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
3473
|
+
if (!isSupported()) {
|
3474
|
+
throw errorNotSupportedOnPlatform;
|
3475
|
+
}
|
3435
3476
|
sendMessageToParent('shareDeepLink', [
|
3436
3477
|
deepLinkParameters.subPageId,
|
3437
3478
|
deepLinkParameters.subPageLabel,
|
@@ -3446,6 +3487,9 @@ var pages;
|
|
3446
3487
|
*/
|
3447
3488
|
function registerFullScreenHandler(handler) {
|
3448
3489
|
ensureInitialized();
|
3490
|
+
if (!isSupported()) {
|
3491
|
+
throw errorNotSupportedOnPlatform;
|
3492
|
+
}
|
3449
3493
|
registerHandler('fullScreenChange', handler);
|
3450
3494
|
}
|
3451
3495
|
pages.registerFullScreenHandler = registerFullScreenHandler;
|
@@ -3469,6 +3513,9 @@ var pages;
|
|
3469
3513
|
function navigateToTab(tabInstance) {
|
3470
3514
|
return new Promise(function (resolve) {
|
3471
3515
|
ensureInitialized();
|
3516
|
+
if (!isSupported()) {
|
3517
|
+
throw errorNotSupportedOnPlatform;
|
3518
|
+
}
|
3472
3519
|
var errorMessage = 'Invalid internalTabInstanceId and/or channelId were/was provided';
|
3473
3520
|
resolve(sendAndHandleStatusAndReasonWithDefaultError('navigateToTab', errorMessage, tabInstance));
|
3474
3521
|
});
|
@@ -3483,6 +3530,9 @@ var pages;
|
|
3483
3530
|
function getTabInstances(tabInstanceParameters) {
|
3484
3531
|
return new Promise(function (resolve) {
|
3485
3532
|
ensureInitialized();
|
3533
|
+
if (!isSupported()) {
|
3534
|
+
throw errorNotSupportedOnPlatform;
|
3535
|
+
}
|
3486
3536
|
resolve(sendAndUnwrap('getTabInstances', tabInstanceParameters));
|
3487
3537
|
});
|
3488
3538
|
}
|
@@ -3495,6 +3545,9 @@ var pages;
|
|
3495
3545
|
function getMruTabInstances(tabInstanceParameters) {
|
3496
3546
|
return new Promise(function (resolve) {
|
3497
3547
|
ensureInitialized();
|
3548
|
+
if (!isSupported()) {
|
3549
|
+
throw errorNotSupportedOnPlatform;
|
3550
|
+
}
|
3498
3551
|
resolve(sendAndUnwrap('getMruTabInstances', tabInstanceParameters));
|
3499
3552
|
});
|
3500
3553
|
}
|
@@ -3527,6 +3580,9 @@ var pages;
|
|
3527
3580
|
*/
|
3528
3581
|
function setValidityState(validityState) {
|
3529
3582
|
ensureInitialized(FrameContexts.settings, FrameContexts.remove);
|
3583
|
+
if (!isSupported()) {
|
3584
|
+
throw errorNotSupportedOnPlatform;
|
3585
|
+
}
|
3530
3586
|
sendMessageToParent('settings.setValidityState', [validityState]);
|
3531
3587
|
}
|
3532
3588
|
config.setValidityState = setValidityState;
|
@@ -3539,6 +3595,9 @@ var pages;
|
|
3539
3595
|
function setConfig(instanceConfig) {
|
3540
3596
|
return new Promise(function (resolve) {
|
3541
3597
|
ensureInitialized(FrameContexts.content, FrameContexts.settings, FrameContexts.sidePanel);
|
3598
|
+
if (!isSupported()) {
|
3599
|
+
throw errorNotSupportedOnPlatform;
|
3600
|
+
}
|
3542
3601
|
resolve(sendAndHandleStatusAndReason('settings.setSettings', instanceConfig));
|
3543
3602
|
});
|
3544
3603
|
}
|
@@ -3552,6 +3611,9 @@ var pages;
|
|
3552
3611
|
*/
|
3553
3612
|
function registerOnSaveHandler(handler) {
|
3554
3613
|
ensureInitialized(FrameContexts.settings);
|
3614
|
+
if (!isSupported()) {
|
3615
|
+
throw errorNotSupportedOnPlatform;
|
3616
|
+
}
|
3555
3617
|
saveHandler = handler;
|
3556
3618
|
handler && sendMessageToParent('registerHandler', ['save']);
|
3557
3619
|
}
|
@@ -3565,6 +3627,9 @@ var pages;
|
|
3565
3627
|
*/
|
3566
3628
|
function registerOnRemoveHandler(handler) {
|
3567
3629
|
ensureInitialized(FrameContexts.remove, FrameContexts.settings);
|
3630
|
+
if (!isSupported()) {
|
3631
|
+
throw errorNotSupportedOnPlatform;
|
3632
|
+
}
|
3568
3633
|
removeHandler = handler;
|
3569
3634
|
handler && sendMessageToParent('registerHandler', ['remove']);
|
3570
3635
|
}
|
@@ -3585,6 +3650,9 @@ var pages;
|
|
3585
3650
|
*/
|
3586
3651
|
function registerChangeConfigHandler(handler) {
|
3587
3652
|
ensureInitialized(FrameContexts.content);
|
3653
|
+
if (!isSupported()) {
|
3654
|
+
throw errorNotSupportedOnPlatform;
|
3655
|
+
}
|
3588
3656
|
registerHandler('changeSettings', handler);
|
3589
3657
|
}
|
3590
3658
|
config.registerChangeConfigHandler = registerChangeConfigHandler;
|
@@ -3675,6 +3743,9 @@ var pages;
|
|
3675
3743
|
function navigateBack() {
|
3676
3744
|
return new Promise(function (resolve) {
|
3677
3745
|
ensureInitialized();
|
3746
|
+
if (!isSupported()) {
|
3747
|
+
throw errorNotSupportedOnPlatform;
|
3748
|
+
}
|
3678
3749
|
var errorMessage = 'Back navigation is not supported in the current client or context.';
|
3679
3750
|
resolve(sendAndHandleStatusAndReasonWithDefaultError('navigateBack', errorMessage));
|
3680
3751
|
});
|
@@ -3688,6 +3759,10 @@ var pages;
|
|
3688
3759
|
* @param handler The handler to invoke when the user presses their Team client's back button.
|
3689
3760
|
*/
|
3690
3761
|
function registerBackButtonHandler(handler) {
|
3762
|
+
ensureInitialized();
|
3763
|
+
if (!isSupported()) {
|
3764
|
+
throw errorNotSupportedOnPlatform;
|
3765
|
+
}
|
3691
3766
|
backButtonPressHandler = handler;
|
3692
3767
|
handler && sendMessageToParent('registerHandler', ['backButton']);
|
3693
3768
|
}
|
@@ -3715,6 +3790,9 @@ var pages;
|
|
3715
3790
|
*/
|
3716
3791
|
function enterFullscreen() {
|
3717
3792
|
ensureInitialized(FrameContexts.content);
|
3793
|
+
if (!isSupported()) {
|
3794
|
+
throw errorNotSupportedOnPlatform;
|
3795
|
+
}
|
3718
3796
|
sendMessageToParent('enterFullscreen', []);
|
3719
3797
|
}
|
3720
3798
|
fullTrust.enterFullscreen = enterFullscreen;
|
@@ -3726,6 +3804,9 @@ var pages;
|
|
3726
3804
|
*/
|
3727
3805
|
function exitFullscreen() {
|
3728
3806
|
ensureInitialized(FrameContexts.content);
|
3807
|
+
if (!isSupported()) {
|
3808
|
+
throw errorNotSupportedOnPlatform;
|
3809
|
+
}
|
3729
3810
|
sendMessageToParent('exitFullscreen', []);
|
3730
3811
|
}
|
3731
3812
|
fullTrust.exitFullscreen = exitFullscreen;
|
@@ -3749,6 +3830,9 @@ var pages;
|
|
3749
3830
|
*/
|
3750
3831
|
function onClick(handler) {
|
3751
3832
|
ensureInitialized(FrameContexts.content);
|
3833
|
+
if (!isSupported()) {
|
3834
|
+
throw errorNotSupportedOnPlatform;
|
3835
|
+
}
|
3752
3836
|
registerHandler('appButtonClick', handler);
|
3753
3837
|
}
|
3754
3838
|
appButton.onClick = onClick;
|
@@ -3759,6 +3843,9 @@ var pages;
|
|
3759
3843
|
*/
|
3760
3844
|
function onHoverEnter(handler) {
|
3761
3845
|
ensureInitialized(FrameContexts.content);
|
3846
|
+
if (!isSupported()) {
|
3847
|
+
throw errorNotSupportedOnPlatform;
|
3848
|
+
}
|
3762
3849
|
registerHandler('appButtonHoverEnter', handler);
|
3763
3850
|
}
|
3764
3851
|
appButton.onHoverEnter = onHoverEnter;
|
@@ -3769,6 +3856,9 @@ var pages;
|
|
3769
3856
|
*/
|
3770
3857
|
function onHoverLeave(handler) {
|
3771
3858
|
ensureInitialized(FrameContexts.content);
|
3859
|
+
if (!isSupported()) {
|
3860
|
+
throw errorNotSupportedOnPlatform;
|
3861
|
+
}
|
3772
3862
|
registerHandler('appButtonHoverLeave', handler);
|
3773
3863
|
}
|
3774
3864
|
appButton.onHoverLeave = onHoverLeave;
|
@@ -4393,9 +4483,6 @@ var logs;
|
|
4393
4483
|
})(logs || (logs = {}));
|
4394
4484
|
|
4395
4485
|
;// CONCATENATED MODULE: ./src/private/interfaces.ts
|
4396
|
-
/**
|
4397
|
-
* @alpha
|
4398
|
-
*/
|
4399
4486
|
var NotificationTypes;
|
4400
4487
|
(function (NotificationTypes) {
|
4401
4488
|
NotificationTypes["fileDownloadStart"] = "fileDownloadStart";
|
@@ -4404,8 +4491,6 @@ var NotificationTypes;
|
|
4404
4491
|
/**
|
4405
4492
|
* @hidden
|
4406
4493
|
* Hide from docs.
|
4407
|
-
* ------
|
4408
|
-
* @alpha
|
4409
4494
|
*/
|
4410
4495
|
var ViewerActionTypes;
|
4411
4496
|
(function (ViewerActionTypes) {
|
@@ -4417,8 +4502,7 @@ var ViewerActionTypes;
|
|
4417
4502
|
* @hidden
|
4418
4503
|
* Hide from docs.
|
4419
4504
|
* ------
|
4420
|
-
* User setting changes that can be subscribed to
|
4421
|
-
* @alpha
|
4505
|
+
* User setting changes that can be subscribed to
|
4422
4506
|
*/
|
4423
4507
|
var UserSettingTypes;
|
4424
4508
|
(function (UserSettingTypes) {
|
@@ -4443,8 +4527,6 @@ var UserSettingTypes;
|
|
4443
4527
|
/**
|
4444
4528
|
* @hidden
|
4445
4529
|
* Namespace to interact with the conversational subEntities inside the tab
|
4446
|
-
*
|
4447
|
-
* @alpha
|
4448
4530
|
*/
|
4449
4531
|
var conversations;
|
4450
4532
|
(function (conversations) {
|
@@ -4611,9 +4693,6 @@ function createTeamsDeepLinkForAppInstallDialog(appId) {
|
|
4611
4693
|
|
4612
4694
|
|
4613
4695
|
|
4614
|
-
/**
|
4615
|
-
* @alpha
|
4616
|
-
*/
|
4617
4696
|
var appInstallDialog;
|
4618
4697
|
(function (appInstallDialog) {
|
4619
4698
|
function openAppInstallDialog(openAPPInstallDialogParams) {
|
@@ -5465,9 +5544,6 @@ var media;
|
|
5465
5544
|
|
5466
5545
|
|
5467
5546
|
|
5468
|
-
/**
|
5469
|
-
* @alpha
|
5470
|
-
*/
|
5471
5547
|
var location_location;
|
5472
5548
|
(function (location_1) {
|
5473
5549
|
function getLocation(props, callback) {
|
@@ -5590,7 +5666,7 @@ var meeting;
|
|
5590
5666
|
*
|
5591
5667
|
* @param callback - Callback contains 2 parameters, error and meetingDetailsResponse.
|
5592
5668
|
* error can either contain an error of type SdkError, incase of an error, or null when get is successful
|
5593
|
-
* result can either contain a IMeetingDetailsResponse value,
|
5669
|
+
* result can either contain a IMeetingDetailsResponse value, in case of a successful get or null when the get fails
|
5594
5670
|
*
|
5595
5671
|
* @internal
|
5596
5672
|
*/
|
@@ -5803,9 +5879,6 @@ var meeting;
|
|
5803
5879
|
|
5804
5880
|
|
5805
5881
|
|
5806
|
-
/**
|
5807
|
-
* @alpha
|
5808
|
-
*/
|
5809
5882
|
var monetization;
|
5810
5883
|
(function (monetization) {
|
5811
5884
|
/**
|
@@ -5848,9 +5921,6 @@ var monetization;
|
|
5848
5921
|
|
5849
5922
|
|
5850
5923
|
|
5851
|
-
/**
|
5852
|
-
* @alpha
|
5853
|
-
*/
|
5854
5924
|
var calendar;
|
5855
5925
|
(function (calendar) {
|
5856
5926
|
function openCalendarItem(openCalendarItemParams) {
|
@@ -5892,9 +5962,6 @@ var calendar;
|
|
5892
5962
|
|
5893
5963
|
|
5894
5964
|
|
5895
|
-
/**
|
5896
|
-
* @alpha
|
5897
|
-
*/
|
5898
5965
|
var mail;
|
5899
5966
|
(function (mail) {
|
5900
5967
|
function openMailItem(openMailItemParams) {
|
@@ -5942,9 +6009,6 @@ var mail;
|
|
5942
6009
|
|
5943
6010
|
|
5944
6011
|
|
5945
|
-
/**
|
5946
|
-
* @alpha
|
5947
|
-
*/
|
5948
6012
|
var people;
|
5949
6013
|
(function (people_1) {
|
5950
6014
|
/**
|
@@ -5978,6 +6042,9 @@ var people;
|
|
5978
6042
|
if (!validatePeoplePickerInput(peoplePickerInputs)) {
|
5979
6043
|
throw { errorCode: ErrorCode.INVALID_ARGUMENTS };
|
5980
6044
|
}
|
6045
|
+
if (!isSupported()) {
|
6046
|
+
throw errorNotSupportedOnPlatform;
|
6047
|
+
}
|
5981
6048
|
resolve(sendAndHandleSdkError('people.selectPeople', peoplePickerInputs));
|
5982
6049
|
});
|
5983
6050
|
}
|
@@ -5994,10 +6061,7 @@ var people;
|
|
5994
6061
|
|
5995
6062
|
|
5996
6063
|
/**
|
5997
|
-
* Namespace to video extensibility of the SDK
|
5998
|
-
*
|
5999
|
-
* @alpha
|
6000
|
-
*
|
6064
|
+
* Namespace to video extensibility of the SDK
|
6001
6065
|
*/
|
6002
6066
|
var video;
|
6003
6067
|
(function (video) {
|
@@ -6014,7 +6078,7 @@ var video;
|
|
6014
6078
|
var EffectChangeType;
|
6015
6079
|
(function (EffectChangeType) {
|
6016
6080
|
/**
|
6017
|
-
* current video effect changed
|
6081
|
+
* current video effect changed
|
6018
6082
|
*/
|
6019
6083
|
EffectChangeType[EffectChangeType["EffectChanged"] = 0] = "EffectChanged";
|
6020
6084
|
/**
|
@@ -6023,7 +6087,7 @@ var video;
|
|
6023
6087
|
EffectChangeType[EffectChangeType["EffectDisabled"] = 1] = "EffectDisabled";
|
6024
6088
|
})(EffectChangeType = video.EffectChangeType || (video.EffectChangeType = {}));
|
6025
6089
|
/**
|
6026
|
-
*
|
6090
|
+
* Register to read the video frames in Permissions section
|
6027
6091
|
*/
|
6028
6092
|
function registerForVideoFrame(frameCallback, config) {
|
6029
6093
|
ensureInitialized(FrameContexts.sidePanel);
|
@@ -6055,7 +6119,7 @@ var video;
|
|
6055
6119
|
}
|
6056
6120
|
video.notifySelectedVideoEffectChanged = notifySelectedVideoEffectChanged;
|
6057
6121
|
/**
|
6058
|
-
* Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied
|
6122
|
+
* Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied
|
6059
6123
|
*/
|
6060
6124
|
function registerForVideoEffect(callback) {
|
6061
6125
|
ensureInitialized(FrameContexts.sidePanel);
|
@@ -6066,14 +6130,14 @@ var video;
|
|
6066
6130
|
}
|
6067
6131
|
video.registerForVideoEffect = registerForVideoEffect;
|
6068
6132
|
/**
|
6069
|
-
*
|
6070
|
-
* or pass the video frame to next one in video pipeline
|
6133
|
+
* Sending notification to Teams client finished the video frame processing, now Teams client can render this video frame
|
6134
|
+
* or pass the video frame to next one in video pipeline
|
6071
6135
|
*/
|
6072
6136
|
function notifyVideoFrameProcessed() {
|
6073
6137
|
sendMessageToParent('video.videoFrameProcessed');
|
6074
6138
|
}
|
6075
6139
|
/**
|
6076
|
-
*
|
6140
|
+
* Sending error notification to Teams client
|
6077
6141
|
*/
|
6078
6142
|
function notifyError(errorMessage) {
|
6079
6143
|
sendMessageToParent('video.notifyError', [errorMessage]);
|
@@ -6091,9 +6155,6 @@ var video;
|
|
6091
6155
|
|
6092
6156
|
|
6093
6157
|
|
6094
|
-
/**
|
6095
|
-
* @alpha
|
6096
|
-
*/
|
6097
6158
|
var sharing;
|
6098
6159
|
(function (sharing) {
|
6099
6160
|
sharing.SharingAPIMessages = {
|
@@ -6207,9 +6268,6 @@ var stageView;
|
|
6207
6268
|
|
6208
6269
|
|
6209
6270
|
|
6210
|
-
/**
|
6211
|
-
* @alpha
|
6212
|
-
*/
|
6213
6271
|
var call;
|
6214
6272
|
(function (call) {
|
6215
6273
|
var CallModalities;
|
@@ -7381,9 +7439,6 @@ var legacy;
|
|
7381
7439
|
|
7382
7440
|
|
7383
7441
|
|
7384
|
-
/**
|
7385
|
-
* @alpha
|
7386
|
-
*/
|
7387
7442
|
var meetingRoom;
|
7388
7443
|
(function (meetingRoom) {
|
7389
7444
|
/**
|
@@ -7515,9 +7570,6 @@ var notifications;
|
|
7515
7570
|
|
7516
7571
|
|
7517
7572
|
|
7518
|
-
/**
|
7519
|
-
* @alpha
|
7520
|
-
*/
|
7521
7573
|
var remoteCamera;
|
7522
7574
|
(function (remoteCamera) {
|
7523
7575
|
/**
|
@@ -7589,6 +7641,9 @@ var remoteCamera;
|
|
7589
7641
|
throw new Error('[remoteCamera.getCapableParticipants] Callback cannot be null');
|
7590
7642
|
}
|
7591
7643
|
ensureInitialized(FrameContexts.sidePanel);
|
7644
|
+
if (!isSupported()) {
|
7645
|
+
throw errorNotSupportedOnPlatform;
|
7646
|
+
}
|
7592
7647
|
sendMessageToParent('remoteCamera.getCapableParticipants', callback);
|
7593
7648
|
}
|
7594
7649
|
remoteCamera.getCapableParticipants = getCapableParticipants;
|
@@ -7612,6 +7667,9 @@ var remoteCamera;
|
|
7612
7667
|
throw new Error('[remoteCamera.requestControl] Callback cannot be null');
|
7613
7668
|
}
|
7614
7669
|
ensureInitialized(FrameContexts.sidePanel);
|
7670
|
+
if (!isSupported()) {
|
7671
|
+
throw errorNotSupportedOnPlatform;
|
7672
|
+
}
|
7615
7673
|
sendMessageToParent('remoteCamera.requestControl', [participant], callback);
|
7616
7674
|
}
|
7617
7675
|
remoteCamera.requestControl = requestControl;
|
@@ -7632,6 +7690,9 @@ var remoteCamera;
|
|
7632
7690
|
throw new Error('[remoteCamera.sendControlCommand] Callback cannot be null');
|
7633
7691
|
}
|
7634
7692
|
ensureInitialized(FrameContexts.sidePanel);
|
7693
|
+
if (!isSupported()) {
|
7694
|
+
throw errorNotSupportedOnPlatform;
|
7695
|
+
}
|
7635
7696
|
sendMessageToParent('remoteCamera.sendControlCommand', [ControlCommand], callback);
|
7636
7697
|
}
|
7637
7698
|
remoteCamera.sendControlCommand = sendControlCommand;
|
@@ -7648,6 +7709,9 @@ var remoteCamera;
|
|
7648
7709
|
throw new Error('[remoteCamera.terminateSession] Callback cannot be null');
|
7649
7710
|
}
|
7650
7711
|
ensureInitialized(FrameContexts.sidePanel);
|
7712
|
+
if (!isSupported()) {
|
7713
|
+
throw errorNotSupportedOnPlatform;
|
7714
|
+
}
|
7651
7715
|
sendMessageToParent('remoteCamera.terminateSession', callback);
|
7652
7716
|
}
|
7653
7717
|
remoteCamera.terminateSession = terminateSession;
|
@@ -7663,6 +7727,9 @@ var remoteCamera;
|
|
7663
7727
|
throw new Error('[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null');
|
7664
7728
|
}
|
7665
7729
|
ensureInitialized(FrameContexts.sidePanel);
|
7730
|
+
if (!isSupported()) {
|
7731
|
+
throw errorNotSupportedOnPlatform;
|
7732
|
+
}
|
7666
7733
|
registerHandler('remoteCamera.capableParticipantsChange', handler);
|
7667
7734
|
}
|
7668
7735
|
remoteCamera.registerOnCapableParticipantsChangeHandler = registerOnCapableParticipantsChangeHandler;
|
@@ -7678,6 +7745,9 @@ var remoteCamera;
|
|
7678
7745
|
throw new Error('[remoteCamera.registerOnErrorHandler] Handler cannot be null');
|
7679
7746
|
}
|
7680
7747
|
ensureInitialized(FrameContexts.sidePanel);
|
7748
|
+
if (!isSupported()) {
|
7749
|
+
throw errorNotSupportedOnPlatform;
|
7750
|
+
}
|
7681
7751
|
registerHandler('remoteCamera.handlerError', handler);
|
7682
7752
|
}
|
7683
7753
|
remoteCamera.registerOnErrorHandler = registerOnErrorHandler;
|
@@ -7693,6 +7763,9 @@ var remoteCamera;
|
|
7693
7763
|
throw new Error('[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null');
|
7694
7764
|
}
|
7695
7765
|
ensureInitialized(FrameContexts.sidePanel);
|
7766
|
+
if (!isSupported()) {
|
7767
|
+
throw errorNotSupportedOnPlatform;
|
7768
|
+
}
|
7696
7769
|
registerHandler('remoteCamera.deviceStateChange', handler);
|
7697
7770
|
}
|
7698
7771
|
remoteCamera.registerOnDeviceStateChangeHandler = registerOnDeviceStateChangeHandler;
|
@@ -7708,6 +7781,9 @@ var remoteCamera;
|
|
7708
7781
|
throw new Error('[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null');
|
7709
7782
|
}
|
7710
7783
|
ensureInitialized(FrameContexts.sidePanel);
|
7784
|
+
if (!isSupported()) {
|
7785
|
+
throw errorNotSupportedOnPlatform;
|
7786
|
+
}
|
7711
7787
|
registerHandler('remoteCamera.sessionStatusChange', handler);
|
7712
7788
|
}
|
7713
7789
|
remoteCamera.registerOnSessionStatusChangeHandler = registerOnSessionStatusChangeHandler;
|
@@ -7725,8 +7801,6 @@ var remoteCamera;
|
|
7725
7801
|
/**
|
7726
7802
|
* @hidden
|
7727
7803
|
* Namespace to interact with the application entities specific part of the SDK.
|
7728
|
-
*
|
7729
|
-
* @alpha
|
7730
7804
|
*/
|
7731
7805
|
var appEntity;
|
7732
7806
|
(function (appEntity_1) {
|
@@ -7742,8 +7816,6 @@ var appEntity;
|
|
7742
7816
|
* @param callback Callback that will be triggered once the app entity information is available.
|
7743
7817
|
* The callback takes two arguments: an SdkError in case something happened (i.e.
|
7744
7818
|
* no permissions to execute the API) and the app entity configuration, if available
|
7745
|
-
*
|
7746
|
-
* @alpha
|
7747
7819
|
*/
|
7748
7820
|
function selectAppEntity(threadId, categories, subEntityId, callback) {
|
7749
7821
|
ensureInitialized(FrameContexts.content);
|