@microsoft/teams-js 2.0.0-beta.6-dev.17 → 2.0.0-beta.6-dev.20
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/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Microsoft Teams JavaScript client SDK
|
2
2
|
|
3
|
-
Welcome to the Teams JavaScript client SDK! For breaking changes, please refer to our [changelog](./CHANGELOG.md) in the current `<root>/packages/teams-js` directory of the `
|
3
|
+
Welcome to the Teams JavaScript client SDK! For breaking changes, please refer to our [changelog](./CHANGELOG.md) in the current `<root>/packages/teams-js` directory of the `main` branch.
|
4
4
|
|
5
5
|
This JavaScript library is part of the [Microsoft Teams developer platform](https://docs.microsoft.com/en-us/microsoftteams/platform/overview?view=msteams-client-js-beta). See full [SDK reference documentation](https://docs.microsoft.com/en-us/javascript/api/overview/msteams-client?view=msteams-client-js-beta).
|
6
6
|
|
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.20";
|
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.
|
@@ -2920,6 +2920,7 @@ var menus;
|
|
2920
2920
|
// Conflict with some names
|
2921
2921
|
|
2922
2922
|
|
2923
|
+
|
2923
2924
|
/**
|
2924
2925
|
* Namespace containing the set of APIs that support Teams-specific functionalities.
|
2925
2926
|
*/
|
@@ -2930,8 +2931,11 @@ var teamsCore;
|
|
2930
2931
|
*/
|
2931
2932
|
function enablePrintCapability() {
|
2932
2933
|
if (!GlobalVars.printCapabilityEnabled) {
|
2933
|
-
GlobalVars.printCapabilityEnabled = true;
|
2934
2934
|
ensureInitialized();
|
2935
|
+
if (!isSupported()) {
|
2936
|
+
throw errorNotSupportedOnPlatform;
|
2937
|
+
}
|
2938
|
+
GlobalVars.printCapabilityEnabled = true;
|
2935
2939
|
// adding ctrl+P and cmd+P handler
|
2936
2940
|
document.addEventListener('keydown', function (event) {
|
2937
2941
|
if ((event.ctrlKey || event.metaKey) && event.keyCode === 80) {
|
@@ -2961,6 +2965,9 @@ var teamsCore;
|
|
2961
2965
|
*/
|
2962
2966
|
function registerOnLoadHandler(handler) {
|
2963
2967
|
ensureInitialized();
|
2968
|
+
if (!isSupported()) {
|
2969
|
+
throw errorNotSupportedOnPlatform;
|
2970
|
+
}
|
2964
2971
|
handlers_registerOnLoadHandler(handler);
|
2965
2972
|
}
|
2966
2973
|
teamsCore.registerOnLoadHandler = registerOnLoadHandler;
|
@@ -2975,6 +2982,9 @@ var teamsCore;
|
|
2975
2982
|
*/
|
2976
2983
|
function registerBeforeUnloadHandler(handler) {
|
2977
2984
|
ensureInitialized();
|
2985
|
+
if (!isSupported()) {
|
2986
|
+
throw errorNotSupportedOnPlatform;
|
2987
|
+
}
|
2978
2988
|
handlers_registerBeforeUnloadHandler(handler);
|
2979
2989
|
}
|
2980
2990
|
teamsCore.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
|
@@ -7754,6 +7764,7 @@ var remoteCamera;
|
|
7754
7764
|
|
7755
7765
|
|
7756
7766
|
|
7767
|
+
|
7757
7768
|
/**
|
7758
7769
|
* @hidden
|
7759
7770
|
* Namespace to interact with the application entities specific part of the SDK.
|
@@ -7775,6 +7786,9 @@ var appEntity;
|
|
7775
7786
|
*/
|
7776
7787
|
function selectAppEntity(threadId, categories, subEntityId, callback) {
|
7777
7788
|
ensureInitialized(FrameContexts.content);
|
7789
|
+
if (!isSupported()) {
|
7790
|
+
throw errorNotSupportedOnPlatform;
|
7791
|
+
}
|
7778
7792
|
if (!threadId || threadId.length == 0) {
|
7779
7793
|
throw new Error('[appEntity.selectAppEntity] threadId name cannot be null or empty');
|
7780
7794
|
}
|