@microsoft/teams-js
Advanced tools
Comparing version 1.3.6 to 1.3.7
@@ -1,5 +0,2 @@ | ||
declare module '@microsoft/teams-js' { | ||
export = microsoftTeams; | ||
} | ||
export = microsoftTeams; | ||
interface String { | ||
@@ -6,0 +3,0 @@ startsWith(search: string, pos?: number): boolean; |
@@ -21,3 +21,3 @@ ;(function(root, factory) { | ||
"use strict"; | ||
var version = "1.3.6"; | ||
var version = "1.3.7"; | ||
var validOrigins = [ | ||
@@ -24,0 +24,0 @@ "https://teams.microsoft.com", |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.microsoftTeams=e()}(this,function(){String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return this.substr(!e||e<0?0:+e,t.length)===t});var t;return function(t){"use strict";function e(t){for(var e="^",n=t.split("."),i=0;i<n.length;i++)e+=(i>0?"[.]":"")+n[i].replace("*","[^/^.]+");return e+="$"}function n(t){for(var n="",i=0;i<t.length;i++)n+=(0===i?"":"|")+e(t[i]);return new RegExp(n)}function i(){if(!q){q=!0,R=this._window||window;var t=function(t){return k(t)};V=R.parent!==R.self?R.parent:R.opener,V?R.addEventListener("message",t,!1):(G=!0,window.onNativeMessage=T);try{_="*";var e=U(V,"initialize",[x]);tt[e]=function(t,e){X=t,Y=e}}finally{_=null}this._uninitialize=function(){X&&(r(null),s(null),c(null)),X===z.settings&&it.registerOnSaveHandler(null),X===z.remove&&it.registerOnRemoveHandler(null),G||R.removeEventListener("message",t,!1),q=!1,V=null,_=null,K=[],j=null,J=null,Q=[],Z=0,tt={},X=null,Y=null,G=!1}}}function o(t){b();var e=U(V,"getContext");tt[e]=t}function r(t){b(),$=t}function a(t){$&&$(t),j&&U(j,"themeChange",[t])}function s(t){b(),et=t}function u(t){et&&et(t)}function c(t){b(),nt=t}function f(){nt&&nt()||l()}function l(){b();var t=U(V,"navigateBack",[]);tt[t]=function(t){if(!t)throw new Error("Back navigation is not supported in the current client or context.")}}function h(t){b(z.content,z.settings,z.remove,z.task);var e=U(V,"navigateCrossDomain",[t]);tt[e]=function(t){if(!t)throw new Error("Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.")}}function v(t,e){b();var n=U(V,"getTabInstances",[e]);tt[n]=t}function d(t,e){b();var n=U(V,"getUserJoinedTeams",[e]);tt[n]=t}function g(t,e){b();var n=U(V,"getMruTabInstances",[e]);tt[n]=t}function p(t){b(z.content),U(V,"shareDeepLink",[t.subEntityId,t.subEntityLabel,t.subEntityWebUrl])}function m(t){b(z.content);var e=[t.entityId,t.title,t.description,t.type,t.objectUrl,t.downloadUrl,t.webPreviewUrl,t.webEditUrl,t.baseUrl,t.editFile,t.subEntityId];U(V,"openFilePreview",e)}function y(t){b();var e=U(V,"uploadCustomApp",[t]);tt[e]=function(t,e){if(!t)throw new Error(e)}}function w(t){b();var e=U(V,"navigateToTab",[t]);tt[e]=function(t){if(!t)throw new Error("Invalid internalTabInstanceId and/or channelId were/was provided")}}function b(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!q)throw new Error("The library has not yet been initialized");if(X&&t&&t.length>0){for(var n=!1,i=0;i<t.length;i++)if(t[i]===X){n=!0;break}if(!n)throw new Error("This call is not allowed in the '"+X+"' context")}}function k(t){if(t&&t.data&&"object"==typeof t.data){var e=t.source||t.originalEvent.source,n=t.origin||t.originalEvent.origin;e===R||n!==R.location.origin&&!D.test(n.toLowerCase())||(C(e,n),e===V?T(t):e===j&&I(t))}}function C(t,e){V&&t!==V?j&&t!==j||(j=t,J=e):(V=t,_=e),V&&V.closed&&(V=null,_=null),j&&j.closed&&(j=null,J=null),S(V),S(j)}function T(t){if("id"in t.data){var e=t.data,n=tt[e.id];n&&(n.apply(null,e.args),delete tt[e.id])}else if("func"in t.data){var e=t.data,i=W[e.func];i&&i.apply(this,e.args)}}function I(t){if("id"in t.data&&"func"in t.data){var e=t.data,n=W[e.func];if(n){var i=n.apply(this,e.args);i&&O(j,e.id,Array.isArray(i)?i:[i])}else{var o=U(V,e.func,e.args);tt[o]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];j&&O(j,e.id,t)}}}}function M(t){return t===V?K:t===j?Q:[]}function E(t){return t===V?_:t===j?J:null}function S(t){for(var e=E(t),n=M(t);t&&e&&n.length>0;)t.postMessage(n.shift(),e)}function N(t,e){var n=R.setInterval(function(){0===M(t).length&&(clearInterval(n),e())},100)}function U(t,e,n){var i=B(e,n);if(G)R&&R.nativeInterface&&R.nativeInterface.framelessPostMessage(JSON.stringify(i));else{var o=E(t);t&&o?t.postMessage(i,o):M(t).push(i)}return i.id}function A(t,e){return b(),U(V,t,e)}function O(t,e,n){var i=L(e,n),o=E(t);t&&o&&t.postMessage(i,o)}function B(t,e){return{id:Z++,func:t,args:e||[]}}function L(t,e){return{id:t,args:e||[]}}function H(t){b();var e=U(V,"getChatMembers");tt[e]=t}var P,x="1.3.6",F=["https://teams.microsoft.com","https://teams.microsoft.us","https://int.teams.microsoft.com","https://devspaces.skype.com","https://ssauth.skype.com","http://dev.local","https://msft.spoppe.com","https://*.sharepoint.com","https://*.sharepoint-df.com","https://*.sharepointonline.com","https://outlook.office.com","https://outlook-sdf.office.com"],D=n(F),W={},z={settings:"settings",content:"content",authentication:"authentication",remove:"remove",task:"task"};!function(t){function e(t,e){b(),l=e,U(V,"setUpViews",[t])}function n(t){l&&l(t)||(b(),U(V,"viewConfigItemPress",[t]))}function i(t,e){b(),c=e,U(V,"setNavBarMenu",[t])}function o(t){c&&c(t)||(b(),U(V,"handleNavBarMenuItemPress",[t]))}function r(t,e){b(),f=e,U(V,"showActionMenu",[t])}function a(t){f&&f(t)||(b(),U(V,"handleActionMenuItemPress",[t]))}var s=function(){function t(){this.enabled=!0}return t}();t.MenuItem=s;var u;!function(t){t.dropDown="dropDown",t.popOver="popOver"}(u=t.MenuListType||(t.MenuListType={}));var c;W.navBarMenuItemPress=o;var f;W.actionMenuItemPress=a;var l;W.setModuleView=n,t.setUpViews=e,t.setNavBarMenu=i,t.showActionMenu=r}(P=t.menus||(t.menus={}));var R,V,_,j,J,X,Y,$,q=!1,G=!1,K=[],Q=[],Z=0,tt={};W.themeChange=a;var et;W.fullScreenChange=u;var nt;W.backButtonPress=f,t.initialize=i,t.getContext=o,t.registerOnThemeChangeHandler=r,t.registerFullScreenHandler=s,t.registerBackButtonHandler=c,t.navigateBack=l,t.navigateCrossDomain=h,t.getTabInstances=v,t.getUserJoinedTeams=d,t.getMruTabInstances=g,t.shareDeepLink=p,t.openFilePreview=m,t.uploadCustomApp=y,t.navigateToTab=w;var it;!function(t){function e(t){b(z.settings,z.remove),U(V,"settings.setValidityState",[t])}function n(t){b(z.settings,z.remove);var e=U(V,"settings.getSettings");tt[e]=t}function i(t){b(z.settings),U(V,"settings.setSettings",[t])}function o(t){b(z.settings),u=t}function r(t){b(z.remove),c=t}function a(t){var e=new f(t);u?u(e):e.notifySuccess()}function s(){var t=new l;c?c(t):t.notifySuccess()}var u,c;W["settings.save"]=a,W["settings.remove"]=s,t.setValidityState=e,t.getSettings=n,t.setSettings=i,t.registerOnSaveHandler=o,t.registerOnRemoveHandler=r;var f=function(){function t(t){this.notified=!1,this.result=t?t:{}}return t.prototype.notifySuccess=function(){this.ensureNotNotified(),U(V,"settings.save.success"),this.notified=!0},t.prototype.notifyFailure=function(t){this.ensureNotNotified(),U(V,"settings.save.failure",[t]),this.notified=!0},t.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")},t}(),l=function(){function t(){this.notified=!1}return t.prototype.notifySuccess=function(){this.ensureNotNotified(),U(V,"settings.remove.success"),this.notified=!0},t.prototype.notifyFailure=function(t){this.ensureNotNotified(),U(V,"settings.remove.failure",[t]),this.notified=!0},t.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The removeEvent may only notify success or failure once.")},t}()}(it=t.settings||(t.settings={}));var ot;!function(t){function e(t){g=t}function n(t){var e=void 0!==t?t:g;if(b(z.content,z.settings,z.remove,z.task),"desktop"===Y){var n=document.createElement("a");n.href=e.url;var i=U(V,"authentication.authenticate",[n.href,e.width,e.height]);tt[i]=function(t,n){t?e.successCallback(n):e.failureCallback(n)}}else a(e)}function i(t){b();var e=U(V,"authentication.getAuthToken",[t.resources]);tt[e]=function(e,n){e?t.successCallback(n):t.failureCallback(n)}}function o(t){b();var e=U(V,"authentication.getUser");tt[e]=function(e,n){e?t.successCallback(n):t.failureCallback(n)}}function r(){s();try{j&&j.close()}finally{j=null,J=null}}function a(t){g=t,r();var e=g.width||600,n=g.height||400;e=Math.min(e,R.outerWidth-400),n=Math.min(n,R.outerHeight-200);var i=document.createElement("a");i.href=g.url;var o="undefined"!=typeof R.screenLeft?R.screenLeft:R.screenX,a="undefined"!=typeof R.screenTop?R.screenTop:R.screenY;o+=R.outerWidth/2-e/2,a+=R.outerHeight/2-n/2,j=R.open(i.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+a+", left="+o+", width="+e+", height="+n),j?u():h("FailedToOpenWindow")}function s(){p&&(clearInterval(p),p=0),delete W.initialize,delete W.navigateCrossDomain}function u(){s(),p=R.setInterval(function(){if(!j||j.closed)h("CancelledByUser");else{var t=J;try{J="*",U(j,"ping")}finally{J=t}}},100),W.initialize=function(){return[z.authentication,Y]},W.navigateCrossDomain=function(t){return!1}}function c(t,e){v(e,"result",t),b(z.authentication),U(V,"authentication.authenticate.success",[t]),N(V,function(){return setTimeout(function(){return R.close()},200)})}function f(t,e){v(e,"reason",t),b(z.authentication),U(V,"authentication.authenticate.failure",[t]),N(V,function(){return setTimeout(function(){return R.close()},200)})}function l(t){try{g&&g.successCallback&&g.successCallback(t)}finally{g=null,r()}}function h(t){try{g&&g.failureCallback&&g.failureCallback(t)}finally{g=null,r()}}function v(t,e,n){if(t){var i=document.createElement("a");i.href=decodeURIComponent(t),i.host&&i.host!==window.location.host&&"outlook.office.com"===i.host&&i.search.indexOf("client_type=Win32_Outlook")>-1&&(e&&"result"===e&&(n&&(i.href=d(i.href,"result",n)),R.location.assign(d(i.href,"authSuccess",""))),e&&"reason"===e&&(n&&(i.href=d(i.href,"reason",n)),R.location.assign(d(i.href,"authFailure",""))))}}function d(t,e,n){var i=t.indexOf("#"),o=i===-1?"#":t.substr(i);return o=o+"&"+e+(""!==n?"="+n:""),t=i===-1?t:t.substr(0,i),t+o}var g,p;W["authentication.authenticate.success"]=l,W["authentication.authenticate.failure"]=h,t.registerAuthenticationHandlers=e,t.authenticate=n,t.getAuthToken=i,t.getUser=o,t.notifySuccess=c,t.notifyFailure=f}(ot=t.authentication||(t.authentication={})),t.sendCustomMessage=A;var rt;!function(t){function e(t,e){b(z.content);var n=U(V,"tasks.startTask",[t]);tt[n]=e}function n(t,e){b(z.content,z.task),U(V,"tasks.completeTask",[t,Array.isArray(e)?e:[e]])}t.startTask=e,t.submitTask=n}(rt=t.tasks||(t.tasks={})),t.getChatMembers=H}(t||(t={})),t}); | ||
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.microsoftTeams=e()}(this,function(){String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return this.substr(!e||e<0?0:+e,t.length)===t});var t;return function(t){"use strict";function e(t){for(var e="^",n=t.split("."),i=0;i<n.length;i++)e+=(i>0?"[.]":"")+n[i].replace("*","[^/^.]+");return e+="$"}function n(t){for(var n="",i=0;i<t.length;i++)n+=(0===i?"":"|")+e(t[i]);return new RegExp(n)}function i(){if(!q){q=!0,R=this._window||window;var t=function(t){return k(t)};V=R.parent!==R.self?R.parent:R.opener,V?R.addEventListener("message",t,!1):(G=!0,window.onNativeMessage=T);try{_="*";var e=U(V,"initialize",[x]);tt[e]=function(t,e){X=t,Y=e}}finally{_=null}this._uninitialize=function(){X&&(r(null),s(null),c(null)),X===z.settings&&it.registerOnSaveHandler(null),X===z.remove&&it.registerOnRemoveHandler(null),G||R.removeEventListener("message",t,!1),q=!1,V=null,_=null,K=[],j=null,J=null,Q=[],Z=0,tt={},X=null,Y=null,G=!1}}}function o(t){b();var e=U(V,"getContext");tt[e]=t}function r(t){b(),$=t}function a(t){$&&$(t),j&&U(j,"themeChange",[t])}function s(t){b(),et=t}function u(t){et&&et(t)}function c(t){b(),nt=t}function f(){nt&&nt()||l()}function l(){b();var t=U(V,"navigateBack",[]);tt[t]=function(t){if(!t)throw new Error("Back navigation is not supported in the current client or context.")}}function h(t){b(z.content,z.settings,z.remove,z.task);var e=U(V,"navigateCrossDomain",[t]);tt[e]=function(t){if(!t)throw new Error("Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.")}}function v(t,e){b();var n=U(V,"getTabInstances",[e]);tt[n]=t}function d(t,e){b();var n=U(V,"getUserJoinedTeams",[e]);tt[n]=t}function g(t,e){b();var n=U(V,"getMruTabInstances",[e]);tt[n]=t}function p(t){b(z.content),U(V,"shareDeepLink",[t.subEntityId,t.subEntityLabel,t.subEntityWebUrl])}function m(t){b(z.content);var e=[t.entityId,t.title,t.description,t.type,t.objectUrl,t.downloadUrl,t.webPreviewUrl,t.webEditUrl,t.baseUrl,t.editFile,t.subEntityId];U(V,"openFilePreview",e)}function y(t){b();var e=U(V,"uploadCustomApp",[t]);tt[e]=function(t,e){if(!t)throw new Error(e)}}function w(t){b();var e=U(V,"navigateToTab",[t]);tt[e]=function(t){if(!t)throw new Error("Invalid internalTabInstanceId and/or channelId were/was provided")}}function b(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!q)throw new Error("The library has not yet been initialized");if(X&&t&&t.length>0){for(var n=!1,i=0;i<t.length;i++)if(t[i]===X){n=!0;break}if(!n)throw new Error("This call is not allowed in the '"+X+"' context")}}function k(t){if(t&&t.data&&"object"==typeof t.data){var e=t.source||t.originalEvent.source,n=t.origin||t.originalEvent.origin;e===R||n!==R.location.origin&&!D.test(n.toLowerCase())||(C(e,n),e===V?T(t):e===j&&I(t))}}function C(t,e){V&&t!==V?j&&t!==j||(j=t,J=e):(V=t,_=e),V&&V.closed&&(V=null,_=null),j&&j.closed&&(j=null,J=null),S(V),S(j)}function T(t){if("id"in t.data){var e=t.data,n=tt[e.id];n&&(n.apply(null,e.args),delete tt[e.id])}else if("func"in t.data){var e=t.data,i=W[e.func];i&&i.apply(this,e.args)}}function I(t){if("id"in t.data&&"func"in t.data){var e=t.data,n=W[e.func];if(n){var i=n.apply(this,e.args);i&&O(j,e.id,Array.isArray(i)?i:[i])}else{var o=U(V,e.func,e.args);tt[o]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];j&&O(j,e.id,t)}}}}function M(t){return t===V?K:t===j?Q:[]}function E(t){return t===V?_:t===j?J:null}function S(t){for(var e=E(t),n=M(t);t&&e&&n.length>0;)t.postMessage(n.shift(),e)}function N(t,e){var n=R.setInterval(function(){0===M(t).length&&(clearInterval(n),e())},100)}function U(t,e,n){var i=B(e,n);if(G)R&&R.nativeInterface&&R.nativeInterface.framelessPostMessage(JSON.stringify(i));else{var o=E(t);t&&o?t.postMessage(i,o):M(t).push(i)}return i.id}function A(t,e){return b(),U(V,t,e)}function O(t,e,n){var i=L(e,n),o=E(t);t&&o&&t.postMessage(i,o)}function B(t,e){return{id:Z++,func:t,args:e||[]}}function L(t,e){return{id:t,args:e||[]}}function H(t){b();var e=U(V,"getChatMembers");tt[e]=t}var P,x="1.3.7",F=["https://teams.microsoft.com","https://teams.microsoft.us","https://int.teams.microsoft.com","https://devspaces.skype.com","https://ssauth.skype.com","http://dev.local","https://msft.spoppe.com","https://*.sharepoint.com","https://*.sharepoint-df.com","https://*.sharepointonline.com","https://outlook.office.com","https://outlook-sdf.office.com"],D=n(F),W={},z={settings:"settings",content:"content",authentication:"authentication",remove:"remove",task:"task"};!function(t){function e(t,e){b(),l=e,U(V,"setUpViews",[t])}function n(t){l&&l(t)||(b(),U(V,"viewConfigItemPress",[t]))}function i(t,e){b(),c=e,U(V,"setNavBarMenu",[t])}function o(t){c&&c(t)||(b(),U(V,"handleNavBarMenuItemPress",[t]))}function r(t,e){b(),f=e,U(V,"showActionMenu",[t])}function a(t){f&&f(t)||(b(),U(V,"handleActionMenuItemPress",[t]))}var s=function(){function t(){this.enabled=!0}return t}();t.MenuItem=s;var u;!function(t){t.dropDown="dropDown",t.popOver="popOver"}(u=t.MenuListType||(t.MenuListType={}));var c;W.navBarMenuItemPress=o;var f;W.actionMenuItemPress=a;var l;W.setModuleView=n,t.setUpViews=e,t.setNavBarMenu=i,t.showActionMenu=r}(P=t.menus||(t.menus={}));var R,V,_,j,J,X,Y,$,q=!1,G=!1,K=[],Q=[],Z=0,tt={};W.themeChange=a;var et;W.fullScreenChange=u;var nt;W.backButtonPress=f,t.initialize=i,t.getContext=o,t.registerOnThemeChangeHandler=r,t.registerFullScreenHandler=s,t.registerBackButtonHandler=c,t.navigateBack=l,t.navigateCrossDomain=h,t.getTabInstances=v,t.getUserJoinedTeams=d,t.getMruTabInstances=g,t.shareDeepLink=p,t.openFilePreview=m,t.uploadCustomApp=y,t.navigateToTab=w;var it;!function(t){function e(t){b(z.settings,z.remove),U(V,"settings.setValidityState",[t])}function n(t){b(z.settings,z.remove);var e=U(V,"settings.getSettings");tt[e]=t}function i(t){b(z.settings),U(V,"settings.setSettings",[t])}function o(t){b(z.settings),u=t}function r(t){b(z.remove),c=t}function a(t){var e=new f(t);u?u(e):e.notifySuccess()}function s(){var t=new l;c?c(t):t.notifySuccess()}var u,c;W["settings.save"]=a,W["settings.remove"]=s,t.setValidityState=e,t.getSettings=n,t.setSettings=i,t.registerOnSaveHandler=o,t.registerOnRemoveHandler=r;var f=function(){function t(t){this.notified=!1,this.result=t?t:{}}return t.prototype.notifySuccess=function(){this.ensureNotNotified(),U(V,"settings.save.success"),this.notified=!0},t.prototype.notifyFailure=function(t){this.ensureNotNotified(),U(V,"settings.save.failure",[t]),this.notified=!0},t.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")},t}(),l=function(){function t(){this.notified=!1}return t.prototype.notifySuccess=function(){this.ensureNotNotified(),U(V,"settings.remove.success"),this.notified=!0},t.prototype.notifyFailure=function(t){this.ensureNotNotified(),U(V,"settings.remove.failure",[t]),this.notified=!0},t.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The removeEvent may only notify success or failure once.")},t}()}(it=t.settings||(t.settings={}));var ot;!function(t){function e(t){g=t}function n(t){var e=void 0!==t?t:g;if(b(z.content,z.settings,z.remove,z.task),"desktop"===Y){var n=document.createElement("a");n.href=e.url;var i=U(V,"authentication.authenticate",[n.href,e.width,e.height]);tt[i]=function(t,n){t?e.successCallback(n):e.failureCallback(n)}}else a(e)}function i(t){b();var e=U(V,"authentication.getAuthToken",[t.resources]);tt[e]=function(e,n){e?t.successCallback(n):t.failureCallback(n)}}function o(t){b();var e=U(V,"authentication.getUser");tt[e]=function(e,n){e?t.successCallback(n):t.failureCallback(n)}}function r(){s();try{j&&j.close()}finally{j=null,J=null}}function a(t){g=t,r();var e=g.width||600,n=g.height||400;e=Math.min(e,R.outerWidth-400),n=Math.min(n,R.outerHeight-200);var i=document.createElement("a");i.href=g.url;var o="undefined"!=typeof R.screenLeft?R.screenLeft:R.screenX,a="undefined"!=typeof R.screenTop?R.screenTop:R.screenY;o+=R.outerWidth/2-e/2,a+=R.outerHeight/2-n/2,j=R.open(i.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+a+", left="+o+", width="+e+", height="+n),j?u():h("FailedToOpenWindow")}function s(){p&&(clearInterval(p),p=0),delete W.initialize,delete W.navigateCrossDomain}function u(){s(),p=R.setInterval(function(){if(!j||j.closed)h("CancelledByUser");else{var t=J;try{J="*",U(j,"ping")}finally{J=t}}},100),W.initialize=function(){return[z.authentication,Y]},W.navigateCrossDomain=function(t){return!1}}function c(t,e){v(e,"result",t),b(z.authentication),U(V,"authentication.authenticate.success",[t]),N(V,function(){return setTimeout(function(){return R.close()},200)})}function f(t,e){v(e,"reason",t),b(z.authentication),U(V,"authentication.authenticate.failure",[t]),N(V,function(){return setTimeout(function(){return R.close()},200)})}function l(t){try{g&&g.successCallback&&g.successCallback(t)}finally{g=null,r()}}function h(t){try{g&&g.failureCallback&&g.failureCallback(t)}finally{g=null,r()}}function v(t,e,n){if(t){var i=document.createElement("a");i.href=decodeURIComponent(t),i.host&&i.host!==window.location.host&&"outlook.office.com"===i.host&&i.search.indexOf("client_type=Win32_Outlook")>-1&&(e&&"result"===e&&(n&&(i.href=d(i.href,"result",n)),R.location.assign(d(i.href,"authSuccess",""))),e&&"reason"===e&&(n&&(i.href=d(i.href,"reason",n)),R.location.assign(d(i.href,"authFailure",""))))}}function d(t,e,n){var i=t.indexOf("#"),o=i===-1?"#":t.substr(i);return o=o+"&"+e+(""!==n?"="+n:""),t=i===-1?t:t.substr(0,i),t+o}var g,p;W["authentication.authenticate.success"]=l,W["authentication.authenticate.failure"]=h,t.registerAuthenticationHandlers=e,t.authenticate=n,t.getAuthToken=i,t.getUser=o,t.notifySuccess=c,t.notifyFailure=f}(ot=t.authentication||(t.authentication={})),t.sendCustomMessage=A;var rt;!function(t){function e(t,e){b(z.content);var n=U(V,"tasks.startTask",[t]);tt[n]=e}function n(t,e){b(z.content,z.task),U(V,"tasks.completeTask",[t,Array.isArray(e)?e:[e]])}t.startTask=e,t.submitTask=n}(rt=t.tasks||(t.tasks={})),t.getChatMembers=H}(t||(t={})),t}); |
@@ -0,0 +0,0 @@ { |
{ | ||
"name": "@microsoft/teams-js", | ||
"author": "Microsoft Teams", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"description": "Microsoft Client SDK for building app for Microsoft teams", | ||
@@ -47,2 +47,2 @@ "main": "./dist/MicrosoftTeams.min.js", | ||
"files": ["dist/**", "README.md", "LICENSE"] | ||
} | ||
} |
@@ -49,6 +49,6 @@ # [Microsoft Teams JavaScript Library](https://msdn.microsoft.com/en-us/microsoft-teams/) | ||
<!-- Microsoft Teams JavaScript API (via CDN) --> | ||
<script src="https://unpkg.com/@microsoft/teams-js@1.3.6/dist/MicrosoftTeams.min.js" integrity="sha384-bw/tQKCO7OgnYN29MFvAaRlOI7YaLpqeRtWhE//yfPA9pFx5THAydRA7o43Vt2JS" crossorigin="anonymous"></script> | ||
<script src="https://unpkg.com/@microsoft/teams-js@1.3.7/dist/MicrosoftTeams.min.js" integrity="sha384-glExfvkpce98dO2oN+diZ/Luv/5qrZJiOvWCeR8ng/ZxlhpvBgHKeVFRURrh+NEC" crossorigin="anonymous"></script> | ||
<!-- Microsoft Teams JavaScript API (via npm) --> | ||
<script src="node_modules/@microsoft/teams-js@1.3.6/dist/MicrosoftTeams.min.js"></script> | ||
<script src="node_modules/@microsoft/teams-js@1.3.7/dist/MicrosoftTeams.min.js"></script> | ||
@@ -55,0 +55,0 @@ <!-- Microsoft Teams JavaScript API (via local) --> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
118563
2527