@microsoft/teams-js 2.0.0-beta.6-dev.10 → 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.
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -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,
|
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
|
*/
|
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.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(
|
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,
|
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
|
*/
|
@@ -6027,6 +6049,9 @@ var video;
|
|
6027
6049
|
*/
|
6028
6050
|
function registerForVideoFrame(frameCallback, config) {
|
6029
6051
|
ensureInitialized(FrameContexts.sidePanel);
|
6052
|
+
if (!isSupported()) {
|
6053
|
+
throw errorNotSupportedOnPlatform;
|
6054
|
+
}
|
6030
6055
|
registerHandler('video.newVideoFrame', function (videoFrame) {
|
6031
6056
|
if (videoFrame !== undefined) {
|
6032
6057
|
frameCallback(videoFrame, notifyVideoFrameProcessed, notifyError);
|
@@ -6045,6 +6070,9 @@ var video;
|
|
6045
6070
|
*/
|
6046
6071
|
function notifySelectedVideoEffectChanged(effectChangeType, effectId) {
|
6047
6072
|
ensureInitialized(FrameContexts.sidePanel);
|
6073
|
+
if (!isSupported()) {
|
6074
|
+
throw errorNotSupportedOnPlatform;
|
6075
|
+
}
|
6048
6076
|
sendMessageToParent('video.videoEffectChanged', [effectChangeType, effectId]);
|
6049
6077
|
}
|
6050
6078
|
video.notifySelectedVideoEffectChanged = notifySelectedVideoEffectChanged;
|
@@ -6053,6 +6081,9 @@ var video;
|
|
6053
6081
|
*/
|
6054
6082
|
function registerForVideoEffect(callback) {
|
6055
6083
|
ensureInitialized(FrameContexts.sidePanel);
|
6084
|
+
if (!isSupported()) {
|
6085
|
+
throw errorNotSupportedOnPlatform;
|
6086
|
+
}
|
6056
6087
|
registerHandler('video.effectParameterChange', callback);
|
6057
6088
|
}
|
6058
6089
|
video.registerForVideoEffect = registerForVideoEffect;
|
@@ -6897,7 +6928,6 @@ var tasks;
|
|
6897
6928
|
* @param submitHandler - Handler to call when the task module is completed
|
6898
6929
|
*/
|
6899
6930
|
function startTask(taskInfo, submitHandler) {
|
6900
|
-
taskInfo = getDefaultSizeIfNotProvided(taskInfo);
|
6901
6931
|
if (taskInfo.card !== undefined || taskInfo.url === undefined) {
|
6902
6932
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6903
6933
|
sendMessageToParent('tasks.startTask', [taskInfo], submitHandler);
|
@@ -6950,8 +6980,8 @@ var tasks;
|
|
6950
6980
|
var urldialogInfo = {
|
6951
6981
|
url: taskInfo.url,
|
6952
6982
|
size: {
|
6953
|
-
height: taskInfo.height,
|
6954
|
-
width: taskInfo.width,
|
6983
|
+
height: taskInfo.height ? taskInfo.height : TaskModuleDimension.Small,
|
6984
|
+
width: taskInfo.width ? taskInfo.width : TaskModuleDimension.Small,
|
6955
6985
|
},
|
6956
6986
|
title: taskInfo.title,
|
6957
6987
|
fallbackUrl: taskInfo.fallbackUrl,
|
@@ -6963,8 +6993,8 @@ var tasks;
|
|
6963
6993
|
var botUrldialogInfo = {
|
6964
6994
|
url: taskInfo.url,
|
6965
6995
|
size: {
|
6966
|
-
height: taskInfo.height,
|
6967
|
-
width: taskInfo.width,
|
6996
|
+
height: taskInfo.height ? taskInfo.height : TaskModuleDimension.Small,
|
6997
|
+
width: taskInfo.width ? taskInfo.width : TaskModuleDimension.Small,
|
6968
6998
|
},
|
6969
6999
|
title: taskInfo.title,
|
6970
7000
|
fallbackUrl: taskInfo.fallbackUrl,
|
@@ -7581,6 +7611,9 @@ var remoteCamera;
|
|
7581
7611
|
throw new Error('[remoteCamera.getCapableParticipants] Callback cannot be null');
|
7582
7612
|
}
|
7583
7613
|
ensureInitialized(FrameContexts.sidePanel);
|
7614
|
+
if (!isSupported()) {
|
7615
|
+
throw errorNotSupportedOnPlatform;
|
7616
|
+
}
|
7584
7617
|
sendMessageToParent('remoteCamera.getCapableParticipants', callback);
|
7585
7618
|
}
|
7586
7619
|
remoteCamera.getCapableParticipants = getCapableParticipants;
|
@@ -7604,6 +7637,9 @@ var remoteCamera;
|
|
7604
7637
|
throw new Error('[remoteCamera.requestControl] Callback cannot be null');
|
7605
7638
|
}
|
7606
7639
|
ensureInitialized(FrameContexts.sidePanel);
|
7640
|
+
if (!isSupported()) {
|
7641
|
+
throw errorNotSupportedOnPlatform;
|
7642
|
+
}
|
7607
7643
|
sendMessageToParent('remoteCamera.requestControl', [participant], callback);
|
7608
7644
|
}
|
7609
7645
|
remoteCamera.requestControl = requestControl;
|
@@ -7624,6 +7660,9 @@ var remoteCamera;
|
|
7624
7660
|
throw new Error('[remoteCamera.sendControlCommand] Callback cannot be null');
|
7625
7661
|
}
|
7626
7662
|
ensureInitialized(FrameContexts.sidePanel);
|
7663
|
+
if (!isSupported()) {
|
7664
|
+
throw errorNotSupportedOnPlatform;
|
7665
|
+
}
|
7627
7666
|
sendMessageToParent('remoteCamera.sendControlCommand', [ControlCommand], callback);
|
7628
7667
|
}
|
7629
7668
|
remoteCamera.sendControlCommand = sendControlCommand;
|
@@ -7640,6 +7679,9 @@ var remoteCamera;
|
|
7640
7679
|
throw new Error('[remoteCamera.terminateSession] Callback cannot be null');
|
7641
7680
|
}
|
7642
7681
|
ensureInitialized(FrameContexts.sidePanel);
|
7682
|
+
if (!isSupported()) {
|
7683
|
+
throw errorNotSupportedOnPlatform;
|
7684
|
+
}
|
7643
7685
|
sendMessageToParent('remoteCamera.terminateSession', callback);
|
7644
7686
|
}
|
7645
7687
|
remoteCamera.terminateSession = terminateSession;
|
@@ -7655,6 +7697,9 @@ var remoteCamera;
|
|
7655
7697
|
throw new Error('[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null');
|
7656
7698
|
}
|
7657
7699
|
ensureInitialized(FrameContexts.sidePanel);
|
7700
|
+
if (!isSupported()) {
|
7701
|
+
throw errorNotSupportedOnPlatform;
|
7702
|
+
}
|
7658
7703
|
registerHandler('remoteCamera.capableParticipantsChange', handler);
|
7659
7704
|
}
|
7660
7705
|
remoteCamera.registerOnCapableParticipantsChangeHandler = registerOnCapableParticipantsChangeHandler;
|
@@ -7670,6 +7715,9 @@ var remoteCamera;
|
|
7670
7715
|
throw new Error('[remoteCamera.registerOnErrorHandler] Handler cannot be null');
|
7671
7716
|
}
|
7672
7717
|
ensureInitialized(FrameContexts.sidePanel);
|
7718
|
+
if (!isSupported()) {
|
7719
|
+
throw errorNotSupportedOnPlatform;
|
7720
|
+
}
|
7673
7721
|
registerHandler('remoteCamera.handlerError', handler);
|
7674
7722
|
}
|
7675
7723
|
remoteCamera.registerOnErrorHandler = registerOnErrorHandler;
|
@@ -7685,6 +7733,9 @@ var remoteCamera;
|
|
7685
7733
|
throw new Error('[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null');
|
7686
7734
|
}
|
7687
7735
|
ensureInitialized(FrameContexts.sidePanel);
|
7736
|
+
if (!isSupported()) {
|
7737
|
+
throw errorNotSupportedOnPlatform;
|
7738
|
+
}
|
7688
7739
|
registerHandler('remoteCamera.deviceStateChange', handler);
|
7689
7740
|
}
|
7690
7741
|
remoteCamera.registerOnDeviceStateChangeHandler = registerOnDeviceStateChangeHandler;
|
@@ -7700,6 +7751,9 @@ var remoteCamera;
|
|
7700
7751
|
throw new Error('[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null');
|
7701
7752
|
}
|
7702
7753
|
ensureInitialized(FrameContexts.sidePanel);
|
7754
|
+
if (!isSupported()) {
|
7755
|
+
throw errorNotSupportedOnPlatform;
|
7756
|
+
}
|
7703
7757
|
registerHandler('remoteCamera.sessionStatusChange', handler);
|
7704
7758
|
}
|
7705
7759
|
remoteCamera.registerOnSessionStatusChangeHandler = registerOnSessionStatusChangeHandler;
|