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

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.
@@ -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.13";
1125
+ var version = "2.0.0-beta.6-dev.16";
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.
@@ -2912,8 +2912,6 @@ var menus;
2912
2912
 
2913
2913
  /**
2914
2914
  * Namespace containing the set of APIs that support Teams-specific functionalities.
2915
- *
2916
- * @alpha
2917
2915
  */
2918
2916
  var teamsCore;
2919
2917
  (function (teamsCore) {
@@ -3372,6 +3370,9 @@ var pages;
3372
3370
  */
3373
3371
  function returnFocus(navigateForward) {
3374
3372
  ensureInitialized();
3373
+ if (!isSupported()) {
3374
+ throw errorNotSupportedOnPlatform;
3375
+ }
3375
3376
  sendMessageToParent('returnFocus', [navigateForward]);
3376
3377
  }
3377
3378
  pages.returnFocus = returnFocus;
@@ -3385,11 +3386,17 @@ var pages;
3385
3386
  */
3386
3387
  function registerFocusEnterHandler(handler) {
3387
3388
  ensureInitialized();
3389
+ if (!isSupported()) {
3390
+ throw errorNotSupportedOnPlatform;
3391
+ }
3388
3392
  registerHandler('focusEnter', handler);
3389
3393
  }
3390
3394
  pages.registerFocusEnterHandler = registerFocusEnterHandler;
3391
3395
  function setCurrentFrame(frameInfo) {
3392
3396
  ensureInitialized(FrameContexts.content);
3397
+ if (!isSupported()) {
3398
+ throw errorNotSupportedOnPlatform;
3399
+ }
3393
3400
  sendMessageToParent('setFrameContext', [frameInfo]);
3394
3401
  }
3395
3402
  pages.setCurrentFrame = setCurrentFrame;
@@ -3405,6 +3412,9 @@ var pages;
3405
3412
  function getConfig() {
3406
3413
  return new Promise(function (resolve) {
3407
3414
  ensureInitialized(FrameContexts.content, FrameContexts.settings, FrameContexts.remove, FrameContexts.sidePanel);
3415
+ if (!isSupported()) {
3416
+ throw errorNotSupportedOnPlatform;
3417
+ }
3408
3418
  resolve(sendAndUnwrap('settings.getSettings'));
3409
3419
  });
3410
3420
  }
@@ -3421,6 +3431,9 @@ var pages;
3421
3431
  function navigateCrossDomain(url) {
3422
3432
  return new Promise(function (resolve) {
3423
3433
  ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.remove, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
3434
+ if (!isSupported()) {
3435
+ throw errorNotSupportedOnPlatform;
3436
+ }
3424
3437
  var errorMessage = 'Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.';
3425
3438
  resolve(sendAndHandleStatusAndReasonWithDefaultError('navigateCrossDomain', errorMessage, url));
3426
3439
  });
@@ -3438,6 +3451,9 @@ var pages;
3438
3451
  function navigateToApp(params) {
3439
3452
  return new Promise(function (resolve) {
3440
3453
  ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
3454
+ if (!isSupported()) {
3455
+ throw errorNotSupportedOnPlatform;
3456
+ }
3441
3457
  if (runtime.isLegacyTeams) {
3442
3458
  resolve(sendAndHandleStatusAndReason('executeDeepLink', createTeamsAppLink(params)));
3443
3459
  }
@@ -3454,6 +3470,9 @@ var pages;
3454
3470
  */
3455
3471
  function shareDeepLink(deepLinkParameters) {
3456
3472
  ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
3473
+ if (!isSupported()) {
3474
+ throw errorNotSupportedOnPlatform;
3475
+ }
3457
3476
  sendMessageToParent('shareDeepLink', [
3458
3477
  deepLinkParameters.subPageId,
3459
3478
  deepLinkParameters.subPageLabel,
@@ -3468,6 +3487,9 @@ var pages;
3468
3487
  */
3469
3488
  function registerFullScreenHandler(handler) {
3470
3489
  ensureInitialized();
3490
+ if (!isSupported()) {
3491
+ throw errorNotSupportedOnPlatform;
3492
+ }
3471
3493
  registerHandler('fullScreenChange', handler);
3472
3494
  }
3473
3495
  pages.registerFullScreenHandler = registerFullScreenHandler;
@@ -3491,6 +3513,9 @@ var pages;
3491
3513
  function navigateToTab(tabInstance) {
3492
3514
  return new Promise(function (resolve) {
3493
3515
  ensureInitialized();
3516
+ if (!isSupported()) {
3517
+ throw errorNotSupportedOnPlatform;
3518
+ }
3494
3519
  var errorMessage = 'Invalid internalTabInstanceId and/or channelId were/was provided';
3495
3520
  resolve(sendAndHandleStatusAndReasonWithDefaultError('navigateToTab', errorMessage, tabInstance));
3496
3521
  });
@@ -3505,6 +3530,9 @@ var pages;
3505
3530
  function getTabInstances(tabInstanceParameters) {
3506
3531
  return new Promise(function (resolve) {
3507
3532
  ensureInitialized();
3533
+ if (!isSupported()) {
3534
+ throw errorNotSupportedOnPlatform;
3535
+ }
3508
3536
  resolve(sendAndUnwrap('getTabInstances', tabInstanceParameters));
3509
3537
  });
3510
3538
  }
@@ -3517,6 +3545,9 @@ var pages;
3517
3545
  function getMruTabInstances(tabInstanceParameters) {
3518
3546
  return new Promise(function (resolve) {
3519
3547
  ensureInitialized();
3548
+ if (!isSupported()) {
3549
+ throw errorNotSupportedOnPlatform;
3550
+ }
3520
3551
  resolve(sendAndUnwrap('getMruTabInstances', tabInstanceParameters));
3521
3552
  });
3522
3553
  }
@@ -3549,6 +3580,9 @@ var pages;
3549
3580
  */
3550
3581
  function setValidityState(validityState) {
3551
3582
  ensureInitialized(FrameContexts.settings, FrameContexts.remove);
3583
+ if (!isSupported()) {
3584
+ throw errorNotSupportedOnPlatform;
3585
+ }
3552
3586
  sendMessageToParent('settings.setValidityState', [validityState]);
3553
3587
  }
3554
3588
  config.setValidityState = setValidityState;
@@ -3561,6 +3595,9 @@ var pages;
3561
3595
  function setConfig(instanceConfig) {
3562
3596
  return new Promise(function (resolve) {
3563
3597
  ensureInitialized(FrameContexts.content, FrameContexts.settings, FrameContexts.sidePanel);
3598
+ if (!isSupported()) {
3599
+ throw errorNotSupportedOnPlatform;
3600
+ }
3564
3601
  resolve(sendAndHandleStatusAndReason('settings.setSettings', instanceConfig));
3565
3602
  });
3566
3603
  }
@@ -3574,6 +3611,9 @@ var pages;
3574
3611
  */
3575
3612
  function registerOnSaveHandler(handler) {
3576
3613
  ensureInitialized(FrameContexts.settings);
3614
+ if (!isSupported()) {
3615
+ throw errorNotSupportedOnPlatform;
3616
+ }
3577
3617
  saveHandler = handler;
3578
3618
  handler && sendMessageToParent('registerHandler', ['save']);
3579
3619
  }
@@ -3587,6 +3627,9 @@ var pages;
3587
3627
  */
3588
3628
  function registerOnRemoveHandler(handler) {
3589
3629
  ensureInitialized(FrameContexts.remove, FrameContexts.settings);
3630
+ if (!isSupported()) {
3631
+ throw errorNotSupportedOnPlatform;
3632
+ }
3590
3633
  removeHandler = handler;
3591
3634
  handler && sendMessageToParent('registerHandler', ['remove']);
3592
3635
  }
@@ -3607,6 +3650,9 @@ var pages;
3607
3650
  */
3608
3651
  function registerChangeConfigHandler(handler) {
3609
3652
  ensureInitialized(FrameContexts.content);
3653
+ if (!isSupported()) {
3654
+ throw errorNotSupportedOnPlatform;
3655
+ }
3610
3656
  registerHandler('changeSettings', handler);
3611
3657
  }
3612
3658
  config.registerChangeConfigHandler = registerChangeConfigHandler;
@@ -3697,6 +3743,9 @@ var pages;
3697
3743
  function navigateBack() {
3698
3744
  return new Promise(function (resolve) {
3699
3745
  ensureInitialized();
3746
+ if (!isSupported()) {
3747
+ throw errorNotSupportedOnPlatform;
3748
+ }
3700
3749
  var errorMessage = 'Back navigation is not supported in the current client or context.';
3701
3750
  resolve(sendAndHandleStatusAndReasonWithDefaultError('navigateBack', errorMessage));
3702
3751
  });
@@ -3710,6 +3759,10 @@ var pages;
3710
3759
  * @param handler The handler to invoke when the user presses their Team client's back button.
3711
3760
  */
3712
3761
  function registerBackButtonHandler(handler) {
3762
+ ensureInitialized();
3763
+ if (!isSupported()) {
3764
+ throw errorNotSupportedOnPlatform;
3765
+ }
3713
3766
  backButtonPressHandler = handler;
3714
3767
  handler && sendMessageToParent('registerHandler', ['backButton']);
3715
3768
  }
@@ -3737,6 +3790,9 @@ var pages;
3737
3790
  */
3738
3791
  function enterFullscreen() {
3739
3792
  ensureInitialized(FrameContexts.content);
3793
+ if (!isSupported()) {
3794
+ throw errorNotSupportedOnPlatform;
3795
+ }
3740
3796
  sendMessageToParent('enterFullscreen', []);
3741
3797
  }
3742
3798
  fullTrust.enterFullscreen = enterFullscreen;
@@ -3748,6 +3804,9 @@ var pages;
3748
3804
  */
3749
3805
  function exitFullscreen() {
3750
3806
  ensureInitialized(FrameContexts.content);
3807
+ if (!isSupported()) {
3808
+ throw errorNotSupportedOnPlatform;
3809
+ }
3751
3810
  sendMessageToParent('exitFullscreen', []);
3752
3811
  }
3753
3812
  fullTrust.exitFullscreen = exitFullscreen;
@@ -3771,6 +3830,9 @@ var pages;
3771
3830
  */
3772
3831
  function onClick(handler) {
3773
3832
  ensureInitialized(FrameContexts.content);
3833
+ if (!isSupported()) {
3834
+ throw errorNotSupportedOnPlatform;
3835
+ }
3774
3836
  registerHandler('appButtonClick', handler);
3775
3837
  }
3776
3838
  appButton.onClick = onClick;
@@ -3781,6 +3843,9 @@ var pages;
3781
3843
  */
3782
3844
  function onHoverEnter(handler) {
3783
3845
  ensureInitialized(FrameContexts.content);
3846
+ if (!isSupported()) {
3847
+ throw errorNotSupportedOnPlatform;
3848
+ }
3784
3849
  registerHandler('appButtonHoverEnter', handler);
3785
3850
  }
3786
3851
  appButton.onHoverEnter = onHoverEnter;
@@ -3791,6 +3856,9 @@ var pages;
3791
3856
  */
3792
3857
  function onHoverLeave(handler) {
3793
3858
  ensureInitialized(FrameContexts.content);
3859
+ if (!isSupported()) {
3860
+ throw errorNotSupportedOnPlatform;
3861
+ }
3794
3862
  registerHandler('appButtonHoverLeave', handler);
3795
3863
  }
3796
3864
  appButton.onHoverLeave = onHoverLeave;
@@ -4415,9 +4483,6 @@ var logs;
4415
4483
  })(logs || (logs = {}));
4416
4484
 
4417
4485
  ;// CONCATENATED MODULE: ./src/private/interfaces.ts
4418
- /**
4419
- * @alpha
4420
- */
4421
4486
  var NotificationTypes;
4422
4487
  (function (NotificationTypes) {
4423
4488
  NotificationTypes["fileDownloadStart"] = "fileDownloadStart";
@@ -4426,8 +4491,6 @@ var NotificationTypes;
4426
4491
  /**
4427
4492
  * @hidden
4428
4493
  * Hide from docs.
4429
- * ------
4430
- * @alpha
4431
4494
  */
4432
4495
  var ViewerActionTypes;
4433
4496
  (function (ViewerActionTypes) {
@@ -4439,8 +4502,7 @@ var ViewerActionTypes;
4439
4502
  * @hidden
4440
4503
  * Hide from docs.
4441
4504
  * ------
4442
- * User setting changes that can be subscribed to,
4443
- * @alpha
4505
+ * User setting changes that can be subscribed to
4444
4506
  */
4445
4507
  var UserSettingTypes;
4446
4508
  (function (UserSettingTypes) {
@@ -4465,8 +4527,6 @@ var UserSettingTypes;
4465
4527
  /**
4466
4528
  * @hidden
4467
4529
  * Namespace to interact with the conversational subEntities inside the tab
4468
- *
4469
- * @alpha
4470
4530
  */
4471
4531
  var conversations;
4472
4532
  (function (conversations) {
@@ -4633,9 +4693,6 @@ function createTeamsDeepLinkForAppInstallDialog(appId) {
4633
4693
 
4634
4694
 
4635
4695
 
4636
- /**
4637
- * @alpha
4638
- */
4639
4696
  var appInstallDialog;
4640
4697
  (function (appInstallDialog) {
4641
4698
  function openAppInstallDialog(openAPPInstallDialogParams) {
@@ -5053,10 +5110,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
5053
5110
 
5054
5111
 
5055
5112
 
5056
- /**
5057
- * @deprecated
5058
- * As of 2.0.0-beta.6, use media only for backwards compatibility of existing code.
5059
- */
5060
5113
  var media;
5061
5114
  (function (media) {
5062
5115
  /**
@@ -5077,9 +5130,6 @@ var media;
5077
5130
  }());
5078
5131
  media.File = File;
5079
5132
  /**
5080
- * @deprecated
5081
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5082
- *
5083
5133
  * Launch camera, capture image or choose image from gallery and return the images as a File[] object to the callback.
5084
5134
  *
5085
5135
  * @params callback - Callback will be called with an @see SdkError if there are any.
@@ -5356,9 +5406,6 @@ var media;
5356
5406
  ImageOutputFormats[ImageOutputFormats["PDF"] = 2] = "PDF";
5357
5407
  })(ImageOutputFormats = media.ImageOutputFormats || (media.ImageOutputFormats = {}));
5358
5408
  /**
5359
- * @deprecated
5360
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5361
- *
5362
5409
  * Select an attachment using camera/gallery
5363
5410
  *
5364
5411
  * @param mediaInputs - The input params to customize the media to be selected
@@ -5411,10 +5458,8 @@ var media;
5411
5458
  }
5412
5459
  media.selectMedia = selectMedia;
5413
5460
  /**
5414
- * @deprecated
5415
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5416
- *
5417
5461
  * View images using native image viewer
5462
+ *
5418
5463
  * @param uriList - list of URIs for images to be viewed - can be content URI or server URL. Supports up to 10 Images in a single call
5419
5464
  * @param callback - returns back error if encountered, returns null in case of success
5420
5465
  */
@@ -5438,10 +5483,8 @@ var media;
5438
5483
  }
5439
5484
  media.viewImages = viewImages;
5440
5485
  /**
5441
- * @deprecated
5442
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5443
- *
5444
5486
  * Scan Barcode/QRcode using camera
5487
+ *
5445
5488
  * @remarks
5446
5489
  * Note: For desktop and web, this API is not supported. Callback will be resolved with ErrorCode.NotSupported.
5447
5490
  *
@@ -5487,9 +5530,6 @@ var media;
5487
5530
 
5488
5531
 
5489
5532
 
5490
- /**
5491
- * @alpha
5492
- */
5493
5533
  var location_location;
5494
5534
  (function (location_1) {
5495
5535
  function getLocation(props, callback) {
@@ -5542,10 +5582,6 @@ var location_location;
5542
5582
 
5543
5583
 
5544
5584
 
5545
- /**
5546
- * @deprecated
5547
- * As of 2.0.0-beta.6, use meeting only for backwards compatibility of existing code.
5548
- */
5549
5585
  var meeting;
5550
5586
  (function (meeting) {
5551
5587
  var MeetingType;
@@ -5563,9 +5599,6 @@ var meeting;
5563
5599
  CallType["GroupCall"] = "groupCall";
5564
5600
  })(CallType = meeting.CallType || (meeting.CallType = {}));
5565
5601
  /**
5566
- * @deprecated
5567
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5568
- *
5569
5602
  * Allows an app to get the incoming audio speaker setting for the meeting user
5570
5603
  *
5571
5604
  * @param callback - Callback contains 2 parameters, error and result.
@@ -5583,9 +5616,6 @@ var meeting;
5583
5616
  }
5584
5617
  meeting.getIncomingClientAudioState = getIncomingClientAudioState;
5585
5618
  /**
5586
- * @deprecated
5587
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5588
- *
5589
5619
  * Allows an app to toggle the incoming audio speaker setting for the meeting user from mute to unmute or vice-versa
5590
5620
  *
5591
5621
  * @param callback - Callback contains 2 parameters, error and result.
@@ -5602,9 +5632,6 @@ var meeting;
5602
5632
  }
5603
5633
  meeting.toggleIncomingClientAudio = toggleIncomingClientAudio;
5604
5634
  /**
5605
- * @deprecated
5606
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5607
- *
5608
5635
  * @hidden
5609
5636
  * Hide from docs
5610
5637
  *
@@ -5625,9 +5652,6 @@ var meeting;
5625
5652
  }
5626
5653
  meeting.getMeetingDetails = getMeetingDetails;
5627
5654
  /**
5628
- * @deprecated
5629
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5630
- *
5631
5655
  * @hidden
5632
5656
  * Allows an app to get the authentication token for the anonymous or guest user in the meeting
5633
5657
  *
@@ -5646,9 +5670,6 @@ var meeting;
5646
5670
  }
5647
5671
  meeting.getAuthenticationTokenForAnonymousUser = getAuthenticationTokenForAnonymousUser;
5648
5672
  /**
5649
- * @deprecated
5650
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5651
- *
5652
5673
  * Allows an app to get the state of the live stream in the current meeting
5653
5674
  *
5654
5675
  * @param callback - Callback contains 2 parameters: error and liveStreamState.
@@ -5664,9 +5685,6 @@ var meeting;
5664
5685
  }
5665
5686
  meeting.getLiveStreamState = getLiveStreamState;
5666
5687
  /**
5667
- * @deprecated
5668
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5669
- *
5670
5688
  * Allows an app to request the live streaming be started at the given streaming url
5671
5689
  *
5672
5690
  * @remarks
@@ -5685,9 +5703,6 @@ var meeting;
5685
5703
  }
5686
5704
  meeting.requestStartLiveStreaming = requestStartLiveStreaming;
5687
5705
  /**
5688
- * @deprecated
5689
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5690
- *
5691
5706
  * Allows an app to request the live streaming be stopped at the given streaming url
5692
5707
  *
5693
5708
  * @remarks
@@ -5704,9 +5719,6 @@ var meeting;
5704
5719
  }
5705
5720
  meeting.requestStopLiveStreaming = requestStopLiveStreaming;
5706
5721
  /**
5707
- * @deprecated
5708
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5709
- *
5710
5722
  * Registers a handler for changes to the live stream.
5711
5723
  *
5712
5724
  * @remarks
@@ -5723,9 +5735,6 @@ var meeting;
5723
5735
  }
5724
5736
  meeting.registerLiveStreamChangedHandler = registerLiveStreamChangedHandler;
5725
5737
  /**
5726
- * @deprecated
5727
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5728
- *
5729
5738
  * Allows an app to share contents in the meeting
5730
5739
  *
5731
5740
  * @param callback - Callback contains 2 parameters, error and result.
@@ -5742,9 +5751,6 @@ var meeting;
5742
5751
  }
5743
5752
  meeting.shareAppContentToStage = shareAppContentToStage;
5744
5753
  /**
5745
- * @deprecated
5746
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5747
- *
5748
5754
  * Provides information related app's in-meeting sharing capabilities
5749
5755
  *
5750
5756
  * @param callback - Callback contains 2 parameters, error and result.
@@ -5761,9 +5767,6 @@ var meeting;
5761
5767
  }
5762
5768
  meeting.getAppContentStageSharingCapabilities = getAppContentStageSharingCapabilities;
5763
5769
  /**
5764
- * @deprecated
5765
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5766
- *
5767
5770
  * @hidden
5768
5771
  * Hide from docs.
5769
5772
  * Terminates current stage sharing session in meeting
@@ -5781,9 +5784,6 @@ var meeting;
5781
5784
  }
5782
5785
  meeting.stopSharingAppContentToStage = stopSharingAppContentToStage;
5783
5786
  /**
5784
- * @deprecated
5785
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5786
- *
5787
5787
  * Provides information related to current stage sharing state for app
5788
5788
  *
5789
5789
  * @param callback - Callback contains 2 parameters, error and result.
@@ -5800,9 +5800,6 @@ var meeting;
5800
5800
  }
5801
5801
  meeting.getAppContentStageSharingState = getAppContentStageSharingState;
5802
5802
  /**
5803
- * @deprecated
5804
- * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
5805
- *
5806
5803
  * Registers a handler for changes to paticipant speaking states. If any participant is speaking, isSpeakingDetected
5807
5804
  * will be true. If no participants are speaking, isSpeakingDetected will be false. Only one handler can be registered
5808
5805
  * at a time. A subsequent registration replaces an existing registration.
@@ -5825,9 +5822,6 @@ var meeting;
5825
5822
 
5826
5823
 
5827
5824
 
5828
- /**
5829
- * @alpha
5830
- */
5831
5825
  var monetization;
5832
5826
  (function (monetization) {
5833
5827
  /**
@@ -5870,9 +5864,6 @@ var monetization;
5870
5864
 
5871
5865
 
5872
5866
 
5873
- /**
5874
- * @alpha
5875
- */
5876
5867
  var calendar;
5877
5868
  (function (calendar) {
5878
5869
  function openCalendarItem(openCalendarItemParams) {
@@ -5914,9 +5905,6 @@ var calendar;
5914
5905
 
5915
5906
 
5916
5907
 
5917
- /**
5918
- * @alpha
5919
- */
5920
5908
  var mail;
5921
5909
  (function (mail) {
5922
5910
  function openMailItem(openMailItemParams) {
@@ -5964,9 +5952,6 @@ var mail;
5964
5952
 
5965
5953
 
5966
5954
 
5967
- /**
5968
- * @alpha
5969
- */
5970
5955
  var people;
5971
5956
  (function (people_1) {
5972
5957
  /**
@@ -6000,6 +5985,9 @@ var people;
6000
5985
  if (!validatePeoplePickerInput(peoplePickerInputs)) {
6001
5986
  throw { errorCode: ErrorCode.INVALID_ARGUMENTS };
6002
5987
  }
5988
+ if (!isSupported()) {
5989
+ throw errorNotSupportedOnPlatform;
5990
+ }
6003
5991
  resolve(sendAndHandleSdkError('people.selectPeople', peoplePickerInputs));
6004
5992
  });
6005
5993
  }
@@ -6016,10 +6004,7 @@ var people;
6016
6004
 
6017
6005
 
6018
6006
  /**
6019
- * Namespace to video extensibility of the SDK.
6020
- *
6021
- * @alpha
6022
- *
6007
+ * Namespace to video extensibility of the SDK
6023
6008
  */
6024
6009
  var video;
6025
6010
  (function (video) {
@@ -6036,7 +6021,7 @@ var video;
6036
6021
  var EffectChangeType;
6037
6022
  (function (EffectChangeType) {
6038
6023
  /**
6039
- * current video effect changed.
6024
+ * current video effect changed
6040
6025
  */
6041
6026
  EffectChangeType[EffectChangeType["EffectChanged"] = 0] = "EffectChanged";
6042
6027
  /**
@@ -6045,7 +6030,7 @@ var video;
6045
6030
  EffectChangeType[EffectChangeType["EffectDisabled"] = 1] = "EffectDisabled";
6046
6031
  })(EffectChangeType = video.EffectChangeType || (video.EffectChangeType = {}));
6047
6032
  /**
6048
- * register to read the video frames in Permissions section.
6033
+ * Register to read the video frames in Permissions section
6049
6034
  */
6050
6035
  function registerForVideoFrame(frameCallback, config) {
6051
6036
  ensureInitialized(FrameContexts.sidePanel);
@@ -6077,7 +6062,7 @@ var video;
6077
6062
  }
6078
6063
  video.notifySelectedVideoEffectChanged = notifySelectedVideoEffectChanged;
6079
6064
  /**
6080
- * Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied.
6065
+ * Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied
6081
6066
  */
6082
6067
  function registerForVideoEffect(callback) {
6083
6068
  ensureInitialized(FrameContexts.sidePanel);
@@ -6088,14 +6073,14 @@ var video;
6088
6073
  }
6089
6074
  video.registerForVideoEffect = registerForVideoEffect;
6090
6075
  /**
6091
- * sending notification to Teams client finished the video frame processing, now Teams client can render this video frame
6092
- * or pass the video frame to next one in video pipeline.
6076
+ * Sending notification to Teams client finished the video frame processing, now Teams client can render this video frame
6077
+ * or pass the video frame to next one in video pipeline
6093
6078
  */
6094
6079
  function notifyVideoFrameProcessed() {
6095
6080
  sendMessageToParent('video.videoFrameProcessed');
6096
6081
  }
6097
6082
  /**
6098
- * sending error notification to Teams client.
6083
+ * Sending error notification to Teams client
6099
6084
  */
6100
6085
  function notifyError(errorMessage) {
6101
6086
  sendMessageToParent('video.notifyError', [errorMessage]);
@@ -6113,9 +6098,6 @@ var video;
6113
6098
 
6114
6099
 
6115
6100
 
6116
- /**
6117
- * @alpha
6118
- */
6119
6101
  var sharing;
6120
6102
  (function (sharing) {
6121
6103
  sharing.SharingAPIMessages = {
@@ -6229,9 +6211,6 @@ var stageView;
6229
6211
 
6230
6212
 
6231
6213
 
6232
- /**
6233
- * @alpha
6234
- */
6235
6214
  var call;
6236
6215
  (function (call) {
6237
6216
  var CallModalities;
@@ -7403,9 +7382,6 @@ var legacy;
7403
7382
 
7404
7383
 
7405
7384
 
7406
- /**
7407
- * @alpha
7408
- */
7409
7385
  var meetingRoom;
7410
7386
  (function (meetingRoom) {
7411
7387
  /**
@@ -7537,9 +7513,6 @@ var notifications;
7537
7513
 
7538
7514
 
7539
7515
 
7540
- /**
7541
- * @alpha
7542
- */
7543
7516
  var remoteCamera;
7544
7517
  (function (remoteCamera) {
7545
7518
  /**
@@ -7771,8 +7744,6 @@ var remoteCamera;
7771
7744
  /**
7772
7745
  * @hidden
7773
7746
  * Namespace to interact with the application entities specific part of the SDK.
7774
- *
7775
- * @alpha
7776
7747
  */
7777
7748
  var appEntity;
7778
7749
  (function (appEntity_1) {
@@ -7788,8 +7759,6 @@ var appEntity;
7788
7759
  * @param callback Callback that will be triggered once the app entity information is available.
7789
7760
  * The callback takes two arguments: an SdkError in case something happened (i.e.
7790
7761
  * no permissions to execute the API) and the app entity configuration, if available
7791
- *
7792
- * @alpha
7793
7762
  */
7794
7763
  function selectAppEntity(threadId, categories, subEntityId, callback) {
7795
7764
  ensureInitialized(FrameContexts.content);
@@ -7839,6 +7808,9 @@ var teams;
7839
7808
  */
7840
7809
  function getTeamChannels(groupId, callback) {
7841
7810
  ensureInitialized(FrameContexts.content);
7811
+ if (!isSupported()) {
7812
+ throw errorNotSupportedOnPlatform;
7813
+ }
7842
7814
  if (!groupId) {
7843
7815
  throw new Error('[teams.getTeamChannels] groupId cannot be null or empty');
7844
7816
  }
@@ -7858,6 +7830,9 @@ var teams;
7858
7830
  */
7859
7831
  function refreshSiteUrl(threadId, callback) {
7860
7832
  ensureInitialized();
7833
+ if (!isSupported()) {
7834
+ throw errorNotSupportedOnPlatform;
7835
+ }
7861
7836
  if (!threadId) {
7862
7837
  throw new Error('[teams.refreshSiteUrl] threadId cannot be null or empty');
7863
7838
  }