@microsoft/teams-js 2.0.0-beta.3-dev.44 → 2.0.0-beta.3-dev.48
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
|
@@ -1514,6 +1514,10 @@ export namespace authentication {
|
|
|
1514
1514
|
* The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.
|
|
1515
1515
|
*/
|
|
1516
1516
|
height?: number;
|
|
1517
|
+
/**
|
|
1518
|
+
* The flag which indicates whether the auth page should be opened in an external browser. This flag has no effect on the web client.
|
|
1519
|
+
*/
|
|
1520
|
+
isExternal?: boolean;
|
|
1517
1521
|
}
|
|
1518
1522
|
/**
|
|
1519
1523
|
* @deprecated
|
|
@@ -3325,13 +3329,18 @@ export namespace media {
|
|
|
3325
3329
|
* Default value is false
|
|
3326
3330
|
*/
|
|
3327
3331
|
enableFilter?: boolean;
|
|
3332
|
+
/**
|
|
3333
|
+
* Optional; Lets the developer specify the image output formats, more than one can be specified.
|
|
3334
|
+
* Default value is Image.
|
|
3335
|
+
*/
|
|
3336
|
+
imageOutputFormats?: ImageOutputFormats[];
|
|
3328
3337
|
}
|
|
3329
3338
|
/**
|
|
3330
3339
|
* All properties in VideoProps are optional and have default values in the platform
|
|
3331
3340
|
*/
|
|
3332
3341
|
export interface VideoProps extends MediaProps {
|
|
3333
3342
|
/**
|
|
3334
|
-
* Optional; the maximum duration in
|
|
3343
|
+
* Optional; the maximum duration in seconds after which the recording should terminate automatically.
|
|
3335
3344
|
* Default value is defined by the platform serving the API.
|
|
3336
3345
|
*/
|
|
3337
3346
|
maxDuration?: number;
|
|
@@ -3463,6 +3472,13 @@ export namespace media {
|
|
|
3463
3472
|
ID = 1,
|
|
3464
3473
|
URL = 2
|
|
3465
3474
|
}
|
|
3475
|
+
/**
|
|
3476
|
+
* Specifies the image output formats.
|
|
3477
|
+
*/
|
|
3478
|
+
export enum ImageOutputFormats {
|
|
3479
|
+
IMAGE = 1,
|
|
3480
|
+
PDF = 2
|
|
3481
|
+
}
|
|
3466
3482
|
/**
|
|
3467
3483
|
* Media chunks an output of getMedia API from platform
|
|
3468
3484
|
*/
|
package/dist/MicrosoftTeams.js
CHANGED
|
@@ -1120,7 +1120,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1120
1120
|
});
|
|
1121
1121
|
|
|
1122
1122
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
|
1123
|
-
var version = "2.0.0-beta.3-dev.
|
|
1123
|
+
var version = "2.0.0-beta.3-dev.48";
|
|
1124
1124
|
/**
|
|
1125
1125
|
* @hidden
|
|
1126
1126
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
|
@@ -1141,6 +1141,10 @@ var videoAndImageMediaAPISupportVersion = '2.0.2';
|
|
|
1141
1141
|
* This is the client version when selectMedia API - Video with non-full screen mode is supported on mobile.
|
|
1142
1142
|
*/
|
|
1143
1143
|
var nonFullScreenVideoModeAPISupportVersion = '2.0.3';
|
|
1144
|
+
/**
|
|
1145
|
+
* This is the client version when selectMedia API - ImageOutputFormats is supported on mobile.
|
|
1146
|
+
*/
|
|
1147
|
+
var imageOutputFormatsAPISupportVersion = '2.0.4';
|
|
1144
1148
|
/**
|
|
1145
1149
|
* @hidden
|
|
1146
1150
|
* Minimum required client supported version for {@link getUserJoinedTeams} to be supported on {@link HostClientType.android}
|
|
@@ -2238,6 +2242,7 @@ var authentication;
|
|
|
2238
2242
|
link.href,
|
|
2239
2243
|
authenticateParameters.width,
|
|
2240
2244
|
authenticateParameters.height,
|
|
2245
|
+
authenticateParameters.isExternal,
|
|
2241
2246
|
]).then(function (_a) {
|
|
2242
2247
|
var success = _a[0], response = _a[1];
|
|
2243
2248
|
if (success) {
|
|
@@ -2351,7 +2356,7 @@ var authentication;
|
|
|
2351
2356
|
height = Math.min(height, Communication.currentWindow.outerHeight - 200);
|
|
2352
2357
|
// Convert any relative URLs into absolute URLs before sending them over to the parent window
|
|
2353
2358
|
var link = document.createElement('a');
|
|
2354
|
-
link.href = authenticateParameters.url;
|
|
2359
|
+
link.href = authenticateParameters.url.replace('{oauthRedirectMethod}', 'web');
|
|
2355
2360
|
// We are running in the browser, so we need to center the new window ourselves
|
|
2356
2361
|
var left = typeof Communication.currentWindow.screenLeft !== 'undefined'
|
|
2357
2362
|
? Communication.currentWindow.screenLeft
|
|
@@ -4448,6 +4453,9 @@ function isMediaCallSupportedOnMobile(mediaInputs) {
|
|
|
4448
4453
|
else if (isMediaCallForNonFullScreenVideoMode(mediaInputs)) {
|
|
4449
4454
|
return isApiSupportedOnMobile(nonFullScreenVideoModeAPISupportVersion);
|
|
4450
4455
|
}
|
|
4456
|
+
else if (isMediaCallForImageOutputFormats(mediaInputs)) {
|
|
4457
|
+
return isApiSupportedOnMobile(imageOutputFormatsAPISupportVersion);
|
|
4458
|
+
}
|
|
4451
4459
|
return null;
|
|
4452
4460
|
}
|
|
4453
4461
|
/**
|
|
@@ -4476,6 +4484,16 @@ function validateSelectMediaInputs(mediaInputs) {
|
|
|
4476
4484
|
}
|
|
4477
4485
|
return true;
|
|
4478
4486
|
}
|
|
4487
|
+
/**
|
|
4488
|
+
* Returns true if the mediaInput params are called for mediatype Image and contains Image outputs formats, false otherwise
|
|
4489
|
+
*/
|
|
4490
|
+
function isMediaCallForImageOutputFormats(mediaInputs) {
|
|
4491
|
+
var _a;
|
|
4492
|
+
if ((mediaInputs === null || mediaInputs === void 0 ? void 0 : mediaInputs.mediaType) == media.MediaType.Image && ((_a = mediaInputs === null || mediaInputs === void 0 ? void 0 : mediaInputs.imageProps) === null || _a === void 0 ? void 0 : _a.imageOutputFormats)) {
|
|
4493
|
+
return true;
|
|
4494
|
+
}
|
|
4495
|
+
return false;
|
|
4496
|
+
}
|
|
4479
4497
|
/**
|
|
4480
4498
|
* @hidden
|
|
4481
4499
|
* Returns true if the mediaInput params are called for mediatype VideoAndImage and false otherwise
|
|
@@ -4868,6 +4886,14 @@ var media;
|
|
|
4868
4886
|
ImageUriType[ImageUriType["ID"] = 1] = "ID";
|
|
4869
4887
|
ImageUriType[ImageUriType["URL"] = 2] = "URL";
|
|
4870
4888
|
})(ImageUriType = media.ImageUriType || (media.ImageUriType = {}));
|
|
4889
|
+
/**
|
|
4890
|
+
* Specifies the image output formats.
|
|
4891
|
+
*/
|
|
4892
|
+
var ImageOutputFormats;
|
|
4893
|
+
(function (ImageOutputFormats) {
|
|
4894
|
+
ImageOutputFormats[ImageOutputFormats["IMAGE"] = 1] = "IMAGE";
|
|
4895
|
+
ImageOutputFormats[ImageOutputFormats["PDF"] = 2] = "PDF";
|
|
4896
|
+
})(ImageOutputFormats = media.ImageOutputFormats || (media.ImageOutputFormats = {}));
|
|
4871
4897
|
function selectMedia(mediaInputs, callback) {
|
|
4872
4898
|
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
|
4873
4899
|
var wrappedFunction = function () {
|