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

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.
@@ -1582,6 +1582,7 @@ export enum HostClientType {
1582
1582
  web = "web",
1583
1583
  android = "android",
1584
1584
  ios = "ios",
1585
+ ipados = "ipados",
1585
1586
  /**
1586
1587
  * @deprecated
1587
1588
  * As of 2.0.0-beta.1, please use {@link teamsRoomsWindows} instead.
@@ -3897,7 +3898,7 @@ export namespace meeting {
3897
3898
  /**
3898
3899
  * @hidden
3899
3900
  * Hide from docs
3900
- * Data structure to represent a meeting details.
3901
+ * Data structure to represent a meeting details
3901
3902
  *
3902
3903
  * @internal
3903
3904
  */
@@ -4078,7 +4079,7 @@ export namespace meeting {
4078
4079
  *
4079
4080
  * @param callback - Callback contains 2 parameters, error and meetingDetailsResponse.
4080
4081
  * error can either contain an error of type SdkError, incase of an error, or null when get is successful
4081
- * result can either contain a IMeetingDetailsResponse value, incase of a successful get or null when the get fails
4082
+ * result can either contain a IMeetingDetailsResponse value, in case of a successful get or null when the get fails
4082
4083
  *
4083
4084
  * @internal
4084
4085
  */
@@ -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.12";
1125
+ var version = "2.0.0-beta.6-dev.13";
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
  }
@@ -3349,7 +3371,7 @@ var pages;
3349
3371
  * @param navigateForward - Determines the direction to focus in host.
3350
3372
  */
3351
3373
  function returnFocus(navigateForward) {
3352
- ensureInitialized(FrameContexts.content);
3374
+ ensureInitialized();
3353
3375
  sendMessageToParent('returnFocus', [navigateForward]);
3354
3376
  }
3355
3377
  pages.returnFocus = returnFocus;
@@ -5590,7 +5612,7 @@ var meeting;
5590
5612
  *
5591
5613
  * @param callback - Callback contains 2 parameters, error and meetingDetailsResponse.
5592
5614
  * 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, incase of a successful get or null when the get fails
5615
+ * result can either contain a IMeetingDetailsResponse value, in case of a successful get or null when the get fails
5594
5616
  *
5595
5617
  * @internal
5596
5618
  */
@@ -7589,6 +7611,9 @@ var remoteCamera;
7589
7611
  throw new Error('[remoteCamera.getCapableParticipants] Callback cannot be null');
7590
7612
  }
7591
7613
  ensureInitialized(FrameContexts.sidePanel);
7614
+ if (!isSupported()) {
7615
+ throw errorNotSupportedOnPlatform;
7616
+ }
7592
7617
  sendMessageToParent('remoteCamera.getCapableParticipants', callback);
7593
7618
  }
7594
7619
  remoteCamera.getCapableParticipants = getCapableParticipants;
@@ -7612,6 +7637,9 @@ var remoteCamera;
7612
7637
  throw new Error('[remoteCamera.requestControl] Callback cannot be null');
7613
7638
  }
7614
7639
  ensureInitialized(FrameContexts.sidePanel);
7640
+ if (!isSupported()) {
7641
+ throw errorNotSupportedOnPlatform;
7642
+ }
7615
7643
  sendMessageToParent('remoteCamera.requestControl', [participant], callback);
7616
7644
  }
7617
7645
  remoteCamera.requestControl = requestControl;
@@ -7632,6 +7660,9 @@ var remoteCamera;
7632
7660
  throw new Error('[remoteCamera.sendControlCommand] Callback cannot be null');
7633
7661
  }
7634
7662
  ensureInitialized(FrameContexts.sidePanel);
7663
+ if (!isSupported()) {
7664
+ throw errorNotSupportedOnPlatform;
7665
+ }
7635
7666
  sendMessageToParent('remoteCamera.sendControlCommand', [ControlCommand], callback);
7636
7667
  }
7637
7668
  remoteCamera.sendControlCommand = sendControlCommand;
@@ -7648,6 +7679,9 @@ var remoteCamera;
7648
7679
  throw new Error('[remoteCamera.terminateSession] Callback cannot be null');
7649
7680
  }
7650
7681
  ensureInitialized(FrameContexts.sidePanel);
7682
+ if (!isSupported()) {
7683
+ throw errorNotSupportedOnPlatform;
7684
+ }
7651
7685
  sendMessageToParent('remoteCamera.terminateSession', callback);
7652
7686
  }
7653
7687
  remoteCamera.terminateSession = terminateSession;
@@ -7663,6 +7697,9 @@ var remoteCamera;
7663
7697
  throw new Error('[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null');
7664
7698
  }
7665
7699
  ensureInitialized(FrameContexts.sidePanel);
7700
+ if (!isSupported()) {
7701
+ throw errorNotSupportedOnPlatform;
7702
+ }
7666
7703
  registerHandler('remoteCamera.capableParticipantsChange', handler);
7667
7704
  }
7668
7705
  remoteCamera.registerOnCapableParticipantsChangeHandler = registerOnCapableParticipantsChangeHandler;
@@ -7678,6 +7715,9 @@ var remoteCamera;
7678
7715
  throw new Error('[remoteCamera.registerOnErrorHandler] Handler cannot be null');
7679
7716
  }
7680
7717
  ensureInitialized(FrameContexts.sidePanel);
7718
+ if (!isSupported()) {
7719
+ throw errorNotSupportedOnPlatform;
7720
+ }
7681
7721
  registerHandler('remoteCamera.handlerError', handler);
7682
7722
  }
7683
7723
  remoteCamera.registerOnErrorHandler = registerOnErrorHandler;
@@ -7693,6 +7733,9 @@ var remoteCamera;
7693
7733
  throw new Error('[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null');
7694
7734
  }
7695
7735
  ensureInitialized(FrameContexts.sidePanel);
7736
+ if (!isSupported()) {
7737
+ throw errorNotSupportedOnPlatform;
7738
+ }
7696
7739
  registerHandler('remoteCamera.deviceStateChange', handler);
7697
7740
  }
7698
7741
  remoteCamera.registerOnDeviceStateChangeHandler = registerOnDeviceStateChangeHandler;
@@ -7708,6 +7751,9 @@ var remoteCamera;
7708
7751
  throw new Error('[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null');
7709
7752
  }
7710
7753
  ensureInitialized(FrameContexts.sidePanel);
7754
+ if (!isSupported()) {
7755
+ throw errorNotSupportedOnPlatform;
7756
+ }
7711
7757
  registerHandler('remoteCamera.sessionStatusChange', handler);
7712
7758
  }
7713
7759
  remoteCamera.registerOnSessionStatusChangeHandler = registerOnSessionStatusChangeHandler;