@omnia/fx-msteams 7.11.33 → 7.12.2
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.
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { microsoftTeams } from "./MicrosoftTeams.d";
|
|
2
2
|
export type MicrosoftTeams = typeof microsoftTeams;
|
|
3
|
+
export type MicrosoftTeamsContext = microsoftTeams.Context;
|
|
4
|
+
export type MicrosoftTeamsSettings = microsoftTeams.settings.Settings;
|
|
3
5
|
export declare module MicrosoftTeamsSdkLoader {
|
|
4
6
|
function getApi(): Promise<MicrosoftTeams>;
|
|
5
7
|
function runningInMicrosoftTeams(): boolean;
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
//! <omnia-transform-resource path="eebfcd2f-b987-4725-8165-2955befcf8e1" />
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.MicrosoftTeamsSdkLoader = void 0;
|
|
5
|
-
const core_1 = require("
|
|
6
|
-
const models_1 = require("
|
|
7
|
-
const core_2 = require("
|
|
5
|
+
const core_1 = require("omniaapp/fx/runtime/core");
|
|
6
|
+
const models_1 = require("omniaapp/fx/models");
|
|
7
|
+
const core_2 = require("omniaapp/fx/core");
|
|
8
8
|
var MicrosoftTeamsSdkLoader;
|
|
9
9
|
(function (MicrosoftTeamsSdkLoader) {
|
|
10
|
+
let runningInMicrosoftTeamsResult = null;
|
|
10
11
|
function getApi() {
|
|
11
12
|
const retPromise = new Promise((resolve, reject) => {
|
|
12
13
|
core_1.PublicManifestResourceLoader.loadResource(models_1.OmniaResourceManifests.MicrosoftTeamsSDK).then(() => {
|
|
@@ -17,7 +18,10 @@ var MicrosoftTeamsSdkLoader;
|
|
|
17
18
|
}
|
|
18
19
|
MicrosoftTeamsSdkLoader.getApi = getApi;
|
|
19
20
|
function runningInMicrosoftTeams() {
|
|
20
|
-
|
|
21
|
+
if (runningInMicrosoftTeamsResult === null) {
|
|
22
|
+
runningInMicrosoftTeamsResult = core_2.WebUtils.getQs("inTeamsSSO") == "true" || window.name === "embedded-page-container" || window.name === "extension-tab-frame" || window.location.href.indexOf("teams.microsoft.com") > 0;
|
|
23
|
+
}
|
|
24
|
+
return runningInMicrosoftTeamsResult;
|
|
21
25
|
}
|
|
22
26
|
MicrosoftTeamsSdkLoader.runningInMicrosoftTeams = runningInMicrosoftTeams;
|
|
23
27
|
})(MicrosoftTeamsSdkLoader = exports.MicrosoftTeamsSdkLoader || (exports.MicrosoftTeamsSdkLoader = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"omniaWebpackJsonp['bb000000-0000-bbbb-0000-0000000000bb']['ee16aba9-229e-43f0-8559-d913b3aa85d4']","content":{"./node_modules/@omnia/fx-msteams/index.js":{"id":"eebfcd2f-b987-4725-8165-2955befcf8e1","buildMeta":{"exportsType":"namespace"}
|
|
1
|
+
{"name":"omniaWebpackJsonp['bb000000-0000-bbbb-0000-0000000000bb']['ee16aba9-229e-43f0-8559-d913b3aa85d4']","content":{"./node_modules/@omnia/fx-msteams/index.js":{"id":"eebfcd2f-b987-4725-8165-2955befcf8e1","buildMeta":{"exportsType":"namespace"}}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx-msteams",
|
|
3
3
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.12.2",
|
|
5
5
|
"description": "Provide Microsoft Teams API.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"author": "Omnia Digital Workplace AB",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@omnia/fx": "7.
|
|
22
|
+
"@omnia/fx": "7.12.2"
|
|
23
23
|
},
|
|
24
24
|
"typings": "./index.d.ts",
|
|
25
25
|
"bugs": {
|