@microsoft/teams-js 2.0.0-beta.6-dev.16 → 2.0.0-beta.6-dev.19
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.19";
|
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.
|
@@ -2781,6 +2781,7 @@ var dialog;
|
|
2781
2781
|
|
2782
2782
|
|
2783
2783
|
|
2784
|
+
|
2784
2785
|
/**
|
2785
2786
|
* Namespace to interact with the menu-specific part of the SDK.
|
2786
2787
|
* This object is used to show View Configuration, Action Menu and Navigation Bar Menu.
|
@@ -2851,6 +2852,9 @@ var menus;
|
|
2851
2852
|
*/
|
2852
2853
|
function setUpViews(viewConfig, handler) {
|
2853
2854
|
ensureInitialized();
|
2855
|
+
if (!isSupported()) {
|
2856
|
+
throw errorNotSupportedOnPlatform;
|
2857
|
+
}
|
2854
2858
|
viewConfigItemPressHandler = handler;
|
2855
2859
|
sendMessageToParent('setUpViews', [viewConfig]);
|
2856
2860
|
}
|
@@ -2870,6 +2874,9 @@ var menus;
|
|
2870
2874
|
*/
|
2871
2875
|
function setNavBarMenu(items, handler) {
|
2872
2876
|
ensureInitialized();
|
2877
|
+
if (!isSupported()) {
|
2878
|
+
throw errorNotSupportedOnPlatform;
|
2879
|
+
}
|
2873
2880
|
navBarMenuItemPressHandler = handler;
|
2874
2881
|
sendMessageToParent('setNavBarMenu', [items]);
|
2875
2882
|
}
|
@@ -2889,6 +2896,9 @@ var menus;
|
|
2889
2896
|
*/
|
2890
2897
|
function showActionMenu(params, handler) {
|
2891
2898
|
ensureInitialized();
|
2899
|
+
if (!isSupported()) {
|
2900
|
+
throw errorNotSupportedOnPlatform;
|
2901
|
+
}
|
2892
2902
|
actionMenuItemPressHandler = handler;
|
2893
2903
|
sendMessageToParent('showActionMenu', [params]);
|
2894
2904
|
}
|
@@ -2910,6 +2920,7 @@ var menus;
|
|
2910
2920
|
// Conflict with some names
|
2911
2921
|
|
2912
2922
|
|
2923
|
+
|
2913
2924
|
/**
|
2914
2925
|
* Namespace containing the set of APIs that support Teams-specific functionalities.
|
2915
2926
|
*/
|
@@ -2920,8 +2931,11 @@ var teamsCore;
|
|
2920
2931
|
*/
|
2921
2932
|
function enablePrintCapability() {
|
2922
2933
|
if (!GlobalVars.printCapabilityEnabled) {
|
2923
|
-
GlobalVars.printCapabilityEnabled = true;
|
2924
2934
|
ensureInitialized();
|
2935
|
+
if (!isSupported()) {
|
2936
|
+
throw errorNotSupportedOnPlatform;
|
2937
|
+
}
|
2938
|
+
GlobalVars.printCapabilityEnabled = true;
|
2925
2939
|
// adding ctrl+P and cmd+P handler
|
2926
2940
|
document.addEventListener('keydown', function (event) {
|
2927
2941
|
if ((event.ctrlKey || event.metaKey) && event.keyCode === 80) {
|
@@ -2951,6 +2965,9 @@ var teamsCore;
|
|
2951
2965
|
*/
|
2952
2966
|
function registerOnLoadHandler(handler) {
|
2953
2967
|
ensureInitialized();
|
2968
|
+
if (!isSupported()) {
|
2969
|
+
throw errorNotSupportedOnPlatform;
|
2970
|
+
}
|
2954
2971
|
handlers_registerOnLoadHandler(handler);
|
2955
2972
|
}
|
2956
2973
|
teamsCore.registerOnLoadHandler = registerOnLoadHandler;
|
@@ -2965,6 +2982,9 @@ var teamsCore;
|
|
2965
2982
|
*/
|
2966
2983
|
function registerBeforeUnloadHandler(handler) {
|
2967
2984
|
ensureInitialized();
|
2985
|
+
if (!isSupported()) {
|
2986
|
+
throw errorNotSupportedOnPlatform;
|
2987
|
+
}
|
2968
2988
|
handlers_registerBeforeUnloadHandler(handler);
|
2969
2989
|
}
|
2970
2990
|
teamsCore.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
|
@@ -5845,6 +5865,9 @@ var monetization;
|
|
5845
5865
|
}
|
5846
5866
|
var wrappedFunction = function () {
|
5847
5867
|
return new Promise(function (resolve) {
|
5868
|
+
if (!isSupported()) {
|
5869
|
+
throw errorNotSupportedOnPlatform;
|
5870
|
+
}
|
5848
5871
|
resolve(sendAndHandleSdkError('monetization.openPurchaseExperience', planInfo));
|
5849
5872
|
});
|
5850
5873
|
};
|
@@ -7741,6 +7764,7 @@ var remoteCamera;
|
|
7741
7764
|
|
7742
7765
|
|
7743
7766
|
|
7767
|
+
|
7744
7768
|
/**
|
7745
7769
|
* @hidden
|
7746
7770
|
* Namespace to interact with the application entities specific part of the SDK.
|
@@ -7762,6 +7786,9 @@ var appEntity;
|
|
7762
7786
|
*/
|
7763
7787
|
function selectAppEntity(threadId, categories, subEntityId, callback) {
|
7764
7788
|
ensureInitialized(FrameContexts.content);
|
7789
|
+
if (!isSupported()) {
|
7790
|
+
throw errorNotSupportedOnPlatform;
|
7791
|
+
}
|
7765
7792
|
if (!threadId || threadId.length == 0) {
|
7766
7793
|
throw new Error('[appEntity.selectAppEntity] threadId name cannot be null or empty');
|
7767
7794
|
}
|