@microsoft/teams-js 2.21.0 → 2.21.1-beta.1
Sign up to get free protection for your applications and to get access to all the features.
package/dist/MicrosoftTeams.js
CHANGED
@@ -3629,7 +3629,7 @@ var ApiName;
|
|
3629
3629
|
})(ApiName || (ApiName = {}));
|
3630
3630
|
|
3631
3631
|
;// CONCATENATED MODULE: ./src/artifactsForCDN/validDomains.json
|
3632
|
-
const validDomains_namespaceObject = JSON.parse('{"validOrigins":["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","
|
3632
|
+
const validDomains_namespaceObject = JSON.parse('{"validOrigins":["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","www.bing.com","www.staging-bing-int.com","teams.cloud.microsoft","outlook.cloud.microsoft","m365.cloud.microsoft","copilot.microsoft.com","windows.msn.com"]}');
|
3633
3633
|
var artifactsForCDN_validDomains_namespaceObject = /*#__PURE__*/__webpack_require__.t(validDomains_namespaceObject, 2);
|
3634
3634
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
3635
3635
|
|
@@ -4548,19 +4548,6 @@ function ssrSafeWindow() {
|
|
4548
4548
|
function inServerSideRenderingEnvironment() {
|
4549
4549
|
return typeof window === 'undefined';
|
4550
4550
|
}
|
4551
|
-
const appIdRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
4552
|
-
/**
|
4553
|
-
* @param appID The app ID to validate against the GUID format
|
4554
|
-
* @throws Error if appID is not a valid GUID
|
4555
|
-
*
|
4556
|
-
* @internal
|
4557
|
-
* Limited to Microsoft-internal use
|
4558
|
-
*/
|
4559
|
-
function validateAppIdIsGuid(appId) {
|
4560
|
-
if (!appIdRegex.test(appId)) {
|
4561
|
-
throw new Error('App ID is not valid. Must be GUID format. App ID: ' + appId);
|
4562
|
-
}
|
4563
|
-
}
|
4564
4551
|
|
4565
4552
|
;// CONCATENATED MODULE: ./src/public/runtime.ts
|
4566
4553
|
/* eslint-disable @typescript-eslint/ban-types */
|
@@ -4918,7 +4905,7 @@ const _minRuntimeConfigToUninitialize = {
|
|
4918
4905
|
* @hidden
|
4919
4906
|
* Package version.
|
4920
4907
|
*/
|
4921
|
-
const version = "2.21.
|
4908
|
+
const version = "2.21.1-beta.1";
|
4922
4909
|
|
4923
4910
|
;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
|
4924
4911
|
|
@@ -10024,7 +10011,6 @@ var clipboard_awaiter = (undefined && undefined.__awaiter) || function (thisArg,
|
|
10024
10011
|
|
10025
10012
|
|
10026
10013
|
|
10027
|
-
|
10028
10014
|
/**
|
10029
10015
|
* v2 APIs telemetry file: All of APIs in this capability file should send out API version v2 ONLY
|
10030
10016
|
*/
|
@@ -10079,12 +10065,13 @@ var clipboard;
|
|
10079
10065
|
if (!isSupported()) {
|
10080
10066
|
throw errorNotSupportedOnPlatform;
|
10081
10067
|
}
|
10082
|
-
|
10083
|
-
|
10084
|
-
|
10068
|
+
const response = yield sendAndHandleSdkError(apiVersionTag, 'clipboard.readFromClipboard');
|
10069
|
+
if (typeof response === 'string') {
|
10070
|
+
const data = JSON.parse(response);
|
10071
|
+
return base64ToBlob(data.mimeType, data.content);
|
10085
10072
|
}
|
10086
10073
|
else {
|
10087
|
-
return
|
10074
|
+
return response;
|
10088
10075
|
}
|
10089
10076
|
});
|
10090
10077
|
}
|
@@ -14750,7 +14737,6 @@ var marketplace;
|
|
14750
14737
|
|
14751
14738
|
|
14752
14739
|
|
14753
|
-
|
14754
14740
|
/**
|
14755
14741
|
* v2 APIs telemetry file: All of APIs in this capability file should send out API version v2 ONLY
|
14756
14742
|
*/
|
@@ -14852,7 +14838,6 @@ var externalAppAuthentication;
|
|
14852
14838
|
if (!isSupported()) {
|
14853
14839
|
throw errorNotSupportedOnPlatform;
|
14854
14840
|
}
|
14855
|
-
validateAppIdIsGuid(appId);
|
14856
14841
|
validateOriginalRequestInfo(originalRequestInfo);
|
14857
14842
|
// Ask the parent window to open an authentication window with the parameters provided by the caller.
|
14858
14843
|
return sendMessageToParentAsync(getApiVersionTag(externalAppAuthenticationTelemetryVersionNumber, ApiName.ExternalAppAuthentication_AuthenticateAndResendRequest), 'externalAppAuthentication.authenticateAndResendRequest', [
|
@@ -14888,7 +14873,6 @@ var externalAppAuthentication;
|
|
14888
14873
|
if (!isSupported()) {
|
14889
14874
|
throw errorNotSupportedOnPlatform;
|
14890
14875
|
}
|
14891
|
-
validateAppIdIsGuid(appId);
|
14892
14876
|
return sendMessageToParentAsync(getApiVersionTag(externalAppAuthenticationTelemetryVersionNumber, ApiName.ExternalAppAuthentication_AuthenticateWithSSO), 'externalAppAuthentication.authenticateWithSSO', [appId, authTokenRequest.claims, authTokenRequest.silent]).then(([wasSuccessful, error]) => {
|
14893
14877
|
if (!wasSuccessful) {
|
14894
14878
|
throw error;
|
@@ -14912,7 +14896,6 @@ var externalAppAuthentication;
|
|
14912
14896
|
if (!isSupported()) {
|
14913
14897
|
throw errorNotSupportedOnPlatform;
|
14914
14898
|
}
|
14915
|
-
validateAppIdIsGuid(appId);
|
14916
14899
|
validateOriginalRequestInfo(originalRequestInfo);
|
14917
14900
|
return sendMessageToParentAsync(getApiVersionTag(externalAppAuthenticationTelemetryVersionNumber, ApiName.ExternalAppAuthentication_AuthenticateWithSSOAndResendRequest), 'externalAppAuthentication.authenticateWithSSOAndResendRequest', [appId, originalRequestInfo, authTokenRequest.claims, authTokenRequest.silent]).then(([wasSuccessful, response]) => {
|
14918
14901
|
if (wasSuccessful && response.responseType != null) {
|
@@ -14948,7 +14931,6 @@ var externalAppAuthentication;
|
|
14948
14931
|
|
14949
14932
|
|
14950
14933
|
|
14951
|
-
|
14952
14934
|
/**
|
14953
14935
|
* v2 APIs telemetry file: All of APIs in this capability file should send out API version v2 ONLY
|
14954
14936
|
*/
|
@@ -15012,7 +14994,6 @@ var externalAppCardActions;
|
|
15012
14994
|
if (!isSupported()) {
|
15013
14995
|
throw errorNotSupportedOnPlatform;
|
15014
14996
|
}
|
15015
|
-
validateAppIdIsGuid(appId);
|
15016
14997
|
return sendMessageToParentAsync(getApiVersionTag(externalAppCardActionsTelemetryVersionNumber, ApiName.ExternalAppCardActions_ProcessActionSubmit), 'externalAppCardActions.processActionSubmit', [appId, actionSubmitPayload]).then(([wasSuccessful, error]) => {
|
15017
14998
|
if (!wasSuccessful) {
|
15018
14999
|
throw error;
|
@@ -15035,7 +15016,6 @@ var externalAppCardActions;
|
|
15035
15016
|
if (!isSupported()) {
|
15036
15017
|
throw errorNotSupportedOnPlatform;
|
15037
15018
|
}
|
15038
|
-
validateAppIdIsGuid(appId);
|
15039
15019
|
return sendMessageToParentAsync(getApiVersionTag(externalAppCardActionsTelemetryVersionNumber, ApiName.ExternalAppCardActions_ProcessActionOpenUrl), 'externalAppCardActions.processActionOpenUrl', [appId, url.href]).then(([error, response]) => {
|
15040
15020
|
if (error) {
|
15041
15021
|
throw error;
|