@microsoft/teams-js 2.0.0-beta.6-dev.16 → 2.0.0-beta.6-dev.17
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.17";
|
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
|
}
|
@@ -5845,6 +5855,9 @@ var monetization;
|
|
5845
5855
|
}
|
5846
5856
|
var wrappedFunction = function () {
|
5847
5857
|
return new Promise(function (resolve) {
|
5858
|
+
if (!isSupported()) {
|
5859
|
+
throw errorNotSupportedOnPlatform;
|
5860
|
+
}
|
5848
5861
|
resolve(sendAndHandleSdkError('monetization.openPurchaseExperience', planInfo));
|
5849
5862
|
});
|
5850
5863
|
};
|