@microsoft/teams-js 2.49.0 → 2.50.0

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
@@ -24,7 +24,7 @@ To install the stable [version](https://learn.microsoft.com/javascript/api/overv
24
24
 
25
25
  ### Production
26
26
 
27
- You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.49.0/js/MicrosoftTeams.min.js) or point your package manager at them.
27
+ You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.50.0/js/MicrosoftTeams.min.js) or point your package manager at them.
28
28
 
29
29
  ## Usage
30
30
 
@@ -45,13 +45,13 @@ Reference the library inside of your `.html` page using:
45
45
  ```html
46
46
  <!-- Microsoft Teams JavaScript API (via CDN) -->
47
47
  <script
48
- src="https://res.cdn.office.net/teams-js/2.49.0/js/MicrosoftTeams.min.js"
49
- integrity="sha384-7wAL7GWYFgbQUP3f6/vtioav57bCRJ7ndOZUan7+vnCnuM5fPwvCzX+W5DzyjBJ5"
48
+ src="https://res.cdn.office.net/teams-js/2.50.0/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-tAUmOW9DgkVVCWNQlKJzT9A3ykFmjwWrk8ClFaO1ozKKq44WzKpLyULQIrsovhwM"
50
50
  crossorigin="anonymous"
51
51
  ></script>
52
52
 
53
53
  <!-- Microsoft Teams JavaScript API (via npm) -->
54
- <script src="node_modules/@microsoft/teams-js@2.49.0/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.50.0/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -1 +1 @@
1
- import{sendMessageToParentAsync as t,callFunctionInHost as e,callFunctionInHostAndHandleResponse as n}from"../internal/communication.js";import{ensureInitialized as i}from"../internal/internalAPIs.js";import{ResponseHandler as o}from"../internal/responseHandler.js";import{getApiVersionTag as r}from"../internal/telemetry.js";import{isPrimitiveOrPlainObject as a,validateId as s,validateUrl as c}from"../internal/utils.js";import{FrameContexts as u,errorNotSupportedOnPlatform as h}from"../public/constants.js";import{runtime as l}from"../public/runtime.js";import{AppId as d}from"../public/appId.js";const p="v2";class f{constructor(t){this.invokeRequest=t}serialize(){return this.invokeRequest}}function m(t){const e=t;return e.responseType===w.ActionExecuteInvokeResponse&&void 0!==e.value&&void 0!==e.statusCode&&void 0!==e.type}const A="Action.Execute";var I,w,v,x;!function(t){t.ActionExecuteInvokeRequest="ActionExecuteInvokeRequest",t.QueryMessageExtensionRequest="QueryMessageExtensionRequest"}(I||(I={})),function(t){t.ActionExecuteInvokeResponse="ActionExecuteInvokeResponse",t.QueryMessageExtensionResponse="QueryMessageExtensionResponse"}(w||(w={}));class g extends o{validate(t){return m(t)}deserialize(t){return t}}function R(t){if("object"!=typeof t||null===t)return!1;const e=t;return Object.values(v).includes(e.errorCode)&&(void 0===e.message||"string"==typeof e.message)}function E(t){t.requestType===I.ActionExecuteInvokeRequest?y(t):t.requestType===I.QueryMessageExtensionRequest&&function(t){if(t.commandId.length>64)throw new Error("originalRequestInfo.commandId exceeds the maximum size of 64 characters");if(t.parameters.length>5)throw new Error("originalRequestInfo.parameters exceeds the maximum size of 5");for(const e of t.parameters){if(e.name.length>64)throw new Error("originalRequestInfo.parameters.name exceeds the maximum size of 64 characters");if(e.value.length>512)throw new Error("originalRequestInfo.parameters.value exceeds the maximum size of 512 characters")}}(t)}function y(t){if(t.type!==A){throw{errorCode:v.INTERNAL_ERROR,message:`Invalid action type ${t.type}. Action type must be "${A}"`}}if(!a(t.data)){throw{errorCode:v.INTERNAL_ERROR,message:`Invalid data type ${typeof t.data}. Data must be a primitive or a plain object.`}}}function C(e,n,o){if(i(l,u.content),!z())throw h;const a=new d(e);return E(o),t(r(p,"externalAppAuthentication.authenticateAndResendRequest"),"externalAppAuthentication.authenticateAndResendRequest",[a.toString(),o,n.url.href,n.width,n.height,n.isExternal]).then(([t,e])=>{if(t&&null!=e.responseType)return e;throw e})}function q(e,n){if(i(l,u.content),!z())throw h;const o=new d(e);return t(r(p,"externalAppAuthentication.authenticateWithSSO"),"externalAppAuthentication.authenticateWithSSO",[o.toString(),n.claims,n.silent]).then(([t,e])=>{if(!t)throw e})}function S(e,n,o){if(i(l,u.content),!z())throw h;const a=new d(e);return E(o),t(r(p,"externalAppAuthentication.authenticateWithSSOAndResendRequest"),"externalAppAuthentication.authenticateWithSSOAndResendRequest",[a.toString(),o,n.claims,n.silent]).then(([t,e])=>{if(t&&null!=e.responseType)return e;throw e})}function j(e,n,o){if(i(l,u.content),!z())throw h;return s(e,new Error("titleId is Invalid.")),s(n,new Error("oauthConfigId is Invalid.")),t(r(p,"externalAppAuthentication.authenticateWithOauth2"),"externalAppAuthentication.authenticateWithOauth2",[e,n,o.width,o.height,o.isExternal]).then(([t,e])=>{if(!t)throw e})}function O(e,n,o){if(i(l,u.content),!z())throw h;return s(e,new Error("titleId is Invalid.")),n&&c(n),t(r(p,"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins"),"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins",[e,null==n?void 0:n.toString(),null==o?void 0:o.width,null==o?void 0:o.height,null==o?void 0:o.isExternal]).then(([t,e])=>{if(!t)throw e})}!function(t){t.INTERNAL_ERROR="INTERNAL_ERROR"}(v||(v={}));class P{constructor(t){this.param=t}serialize(){var t,e,n;return{connectorId:this.param.connectorId,oAuthConfigId:this.param.oAuthConfigId,traceId:null!==(n=null===(e=null===(t=this.param.traceId)||void 0===t?void 0:t.toString)||void 0===e?void 0:e.call(t))&&void 0!==n?n:this.param.traceId,windowParameters:this.param.windowParameters?Object.assign({},this.param.windowParameters):void 0}}}function W(t){if(i(l,u.content),!z())throw h;return s(t.connectorId,new Error("connectorId is Invalid.")),s(t.oAuthConfigId,new Error("oauthConfigId is Invalid.")),e("externalAppAuthentication.authenticateWithConnector",[new P(t)],r(p,"externalAppAuthentication.authenticateWithConnector"),R)}!function(t){t.Invalid="Invalid",t.Valid="Valid",t.Expired="Expired"}(x||(x={}));class b extends o{validate(t){return"string"==typeof t&&t in x}deserialize(t){return t}}function T(t){if(i(l,u.content),!z())throw h;return s(t.connectorId,new Error("connectorId is Invalid.")),s(t.oAuthConfigId,new Error("oAuthConfigId is Invalid.")),n("externalAppAuthentication.getUserAuthenticationStateForConnector",[new P(t)],new b,r(p,"externalAppAuthentication.getUserAuthenticationStateForConnector"),R)}function k(t){if(i(l,u.content),!z())throw h;return s(t.connectorId,new Error("connectorId is Invalid.")),s(t.oAuthConfigId,new Error("oauthConfigId is Invalid.")),e("externalAppAuthentication.disconnectConnector",[new P(t)],r(p,"externalAppAuthentication.disconnectConnector"),R)}function z(){return!(!i(l)||!l.supports.externalAppAuthentication)}export{A as ActionExecuteInvokeRequestType,g as ActionExecuteResponseHandler,v as InvokeErrorCode,w as InvokeResponseType,I as OriginalRequestType,f as SerializableActionExecuteInvokeRequest,P as SerializableConnectorParameters,x as UserAuthenticationState,C as authenticateAndResendRequest,W as authenticateWithConnector,j as authenticateWithOauth2,O as authenticateWithPowerPlatformConnectorPlugins,q as authenticateWithSSO,S as authenticateWithSSOAndResendRequest,k as disconnectConnector,T as getUserAuthenticationStateForConnector,m as isActionExecuteResponse,R as isInvokeError,z as isSupported,y as validateActionExecuteInvokeRequest};
1
+ import{sendMessageToParentAsync as e,callFunctionInHost as t,callFunctionInHostAndHandleResponse as n}from"../internal/communication.js";import{ensureInitialized as i}from"../internal/internalAPIs.js";import{ResponseHandler as o}from"../internal/responseHandler.js";import{getApiVersionTag as r}from"../internal/telemetry.js";import{isPrimitiveOrPlainObject as a,validateId as s,validateUrl as c}from"../internal/utils.js";import{FrameContexts as u,errorNotSupportedOnPlatform as l}from"../public/constants.js";import{runtime as h}from"../public/runtime.js";import{AppId as d}from"../public/appId.js";const p="v2";class f{constructor(e){this.invokeRequest=e}serialize(){return this.invokeRequest}}function m(e){const t=e;return t.responseType===w.ActionExecuteInvokeResponse&&void 0!==t.value&&void 0!==t.statusCode&&void 0!==t.type}const A="Action.Execute";var I,w,v,x;!function(e){e.ActionExecuteInvokeRequest="ActionExecuteInvokeRequest",e.QueryMessageExtensionRequest="QueryMessageExtensionRequest"}(I||(I={})),function(e){e.ActionExecuteInvokeResponse="ActionExecuteInvokeResponse",e.QueryMessageExtensionResponse="QueryMessageExtensionResponse"}(w||(w={}));class g extends o{validate(e){return m(e)}deserialize(e){return e}}function R(e){if("object"!=typeof e||null===e)return!1;const t=e;return Object.values(v).includes(t.errorCode)&&(void 0===t.message||"string"==typeof t.message)}function E(e){e.requestType===I.ActionExecuteInvokeRequest?y(e):e.requestType===I.QueryMessageExtensionRequest&&function(e){if(e.commandId.length>64)throw new Error("originalRequestInfo.commandId exceeds the maximum size of 64 characters");if(e.parameters.length>5)throw new Error("originalRequestInfo.parameters exceeds the maximum size of 5");for(const t of e.parameters){if(t.name.length>64)throw new Error("originalRequestInfo.parameters.name exceeds the maximum size of 64 characters");if(t.value.length>512)throw new Error("originalRequestInfo.parameters.value exceeds the maximum size of 512 characters")}}(e)}function y(e){if(e.type!==A){throw{errorCode:v.INTERNAL_ERROR,message:`Invalid action type ${e.type}. Action type must be "${A}"`}}if(!a(e.data)){throw{errorCode:v.INTERNAL_ERROR,message:`Invalid data type ${typeof e.data}. Data must be a primitive or a plain object.`}}}function C(t,n,o){if(i(h,u.content,u.sidePanel),!z())throw l;const a=new d(t);return E(o),e(r(p,"externalAppAuthentication.authenticateAndResendRequest"),"externalAppAuthentication.authenticateAndResendRequest",[a.toString(),o,n.url.href,n.width,n.height,n.isExternal]).then(([e,t])=>{if(e&&null!=t.responseType)return t;throw t})}function q(t,n){if(i(h,u.content,u.sidePanel),!z())throw l;const o=new d(t);return e(r(p,"externalAppAuthentication.authenticateWithSSO"),"externalAppAuthentication.authenticateWithSSO",[o.toString(),n.claims,n.silent]).then(([e,t])=>{if(!e)throw t})}function P(t,n,o){if(i(h,u.content,u.sidePanel),!z())throw l;const a=new d(t);return E(o),e(r(p,"externalAppAuthentication.authenticateWithSSOAndResendRequest"),"externalAppAuthentication.authenticateWithSSOAndResendRequest",[a.toString(),o,n.claims,n.silent]).then(([e,t])=>{if(e&&null!=t.responseType)return t;throw t})}function S(t,n,o){if(i(h,u.content,u.sidePanel),!z())throw l;return s(t,new Error("titleId is Invalid.")),s(n,new Error("oauthConfigId is Invalid.")),e(r(p,"externalAppAuthentication.authenticateWithOauth2"),"externalAppAuthentication.authenticateWithOauth2",[t,n,o.width,o.height,o.isExternal]).then(([e,t])=>{if(!e)throw t})}function j(t,n,o){if(i(h,u.content,u.sidePanel),!z())throw l;return s(t,new Error("titleId is Invalid.")),n&&c(n),e(r(p,"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins"),"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins",[t,null==n?void 0:n.toString(),null==o?void 0:o.width,null==o?void 0:o.height,null==o?void 0:o.isExternal]).then(([e,t])=>{if(!e)throw t})}!function(e){e.INTERNAL_ERROR="INTERNAL_ERROR"}(v||(v={}));class O{constructor(e){this.param=e}serialize(){var e,t,n;return{connectorId:this.param.connectorId,oAuthConfigId:this.param.oAuthConfigId,traceId:null!==(n=null===(t=null===(e=this.param.traceId)||void 0===e?void 0:e.toString)||void 0===t?void 0:t.call(e))&&void 0!==n?n:this.param.traceId,windowParameters:this.param.windowParameters?Object.assign({},this.param.windowParameters):void 0}}}function W(e){if(i(h,u.content,u.sidePanel),!z())throw l;return s(e.connectorId,new Error("connectorId is Invalid.")),s(e.oAuthConfigId,new Error("oauthConfigId is Invalid.")),t("externalAppAuthentication.authenticateWithConnector",[new O(e)],r(p,"externalAppAuthentication.authenticateWithConnector"),R)}!function(e){e.Invalid="Invalid",e.Valid="Valid",e.Expired="Expired"}(x||(x={}));class b extends o{validate(e){return"string"==typeof e&&e in x}deserialize(e){return e}}function T(e){if(i(h,u.content,u.sidePanel),!z())throw l;return s(e.connectorId,new Error("connectorId is Invalid.")),s(e.oAuthConfigId,new Error("oAuthConfigId is Invalid.")),n("externalAppAuthentication.getUserAuthenticationStateForConnector",[new O(e)],new b,r(p,"externalAppAuthentication.getUserAuthenticationStateForConnector"),R)}function k(e){if(i(h,u.content,u.sidePanel),!z())throw l;return s(e.connectorId,new Error("connectorId is Invalid.")),s(e.oAuthConfigId,new Error("oauthConfigId is Invalid.")),t("externalAppAuthentication.disconnectConnector",[new O(e)],r(p,"externalAppAuthentication.disconnectConnector"),R)}function z(){return!(!i(h)||!h.supports.externalAppAuthentication)}export{A as ActionExecuteInvokeRequestType,g as ActionExecuteResponseHandler,v as InvokeErrorCode,w as InvokeResponseType,I as OriginalRequestType,f as SerializableActionExecuteInvokeRequest,O as SerializableConnectorParameters,x as UserAuthenticationState,C as authenticateAndResendRequest,W as authenticateWithConnector,S as authenticateWithOauth2,j as authenticateWithPowerPlatformConnectorPlugins,q as authenticateWithSSO,P as authenticateWithSSOAndResendRequest,k as disconnectConnector,T as getUserAuthenticationStateForConnector,m as isActionExecuteResponse,R as isInvokeError,z as isSupported,y as validateActionExecuteInvokeRequest};
@@ -1 +1 @@
1
- import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{callFunctionInHost as n,callFunctionInHostAndHandleResponse as e}from"../internal/communication.js";import{validateAppIdInstance as i}from"../internal/idValidation.js";import{ensureInitialized as o}from"../internal/internalAPIs.js";import{getApiVersionTag as r}from"../internal/telemetry.js";import{validateId as a}from"../internal/utils.js";import{FrameContexts as u,errorNotSupportedOnPlatform as c}from"../public/constants.js";import{runtime as h}from"../public/runtime.js";import{isInvokeError as s,validateActionExecuteInvokeRequest as p,ActionExecuteResponseHandler as l,SerializableActionExecuteInvokeRequest as A}from"./externalAppAuthentication.js";const m="v2";function d(e,i,a){return t(this,void 0,void 0,function*(){if(o(h,u.content),!v())throw c;return w(e,i),n("externalAppAuthenticationForCEA.authenticateWithSSO",[e,i,a.authId,a.connectionName,a.claims,a.silent],r(m,"externalAppAuthenticationForCEA.authenticateWithSSO"),s)})}function f(e,i,a){return t(this,void 0,void 0,function*(){if(o(h,u.content),!v())throw c;return w(e,i),n("externalAppAuthenticationForCEA.authenticateWithOauth",[e,i,a.url.href,a.width,a.height,a.isExternal],r(m,"externalAppAuthenticationForCEA.authenticateWithOauth"),s)})}function x(n,i,a,d){return t(this,void 0,void 0,function*(){if(o(h,u.content),!v())throw c;return w(n,i),p(d),e("externalAppAuthenticationForCEA.authenticateAndResendRequest",[n,i,new A(d),a.url.href,a.width,a.height,a.isExternal],new l,r(m,"externalAppAuthenticationForCEA.authenticateAndResendRequest"),s)})}function E(n,i,a,d){return t(this,void 0,void 0,function*(){if(o(h,u.content),!v())throw c;return w(n,i),p(d),e("externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest",[n,i,new A(d),a.authId,a.connectionName,a.claims,a.silent],new l,r(m,"externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest"),s)})}function v(){return!(!o(h)||!h.supports.externalAppAuthenticationForCEA)}function w(t,n){a(n,new Error("conversation id is not valid.")),i(t)}export{x as authenticateAndResendRequest,f as authenticateWithOauth,d as authenticateWithSSO,E as authenticateWithSSOAndResendRequest,v as isSupported,w as validateInput};
1
+ import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{callFunctionInHost as n,callFunctionInHostAndHandleResponse as e}from"../internal/communication.js";import{validateAppIdInstance as i}from"../internal/idValidation.js";import{ensureInitialized as o}from"../internal/internalAPIs.js";import{getApiVersionTag as r}from"../internal/telemetry.js";import{validateId as a}from"../internal/utils.js";import{FrameContexts as u,errorNotSupportedOnPlatform as s}from"../public/constants.js";import{runtime as c}from"../public/runtime.js";import{isInvokeError as h,validateActionExecuteInvokeRequest as l,ActionExecuteResponseHandler as p,SerializableActionExecuteInvokeRequest as A}from"./externalAppAuthentication.js";const d="v2";function m(e,i,a){return t(this,void 0,void 0,function*(){if(o(c,u.content,u.sidePanel),!v())throw s;return w(e,i),n("externalAppAuthenticationForCEA.authenticateWithSSO",[e,i,a.authId,a.connectionName,a.claims,a.silent],r(d,"externalAppAuthenticationForCEA.authenticateWithSSO"),h)})}function f(e,i,a){return t(this,void 0,void 0,function*(){if(o(c,u.content,u.sidePanel),!v())throw s;return w(e,i),n("externalAppAuthenticationForCEA.authenticateWithOauth",[e,i,a.url.href,a.width,a.height,a.isExternal],r(d,"externalAppAuthenticationForCEA.authenticateWithOauth"),h)})}function x(n,i,a,m){return t(this,void 0,void 0,function*(){if(o(c,u.content,u.sidePanel),!v())throw s;return w(n,i),l(m),e("externalAppAuthenticationForCEA.authenticateAndResendRequest",[n,i,new A(m),a.url.href,a.width,a.height,a.isExternal],new p,r(d,"externalAppAuthenticationForCEA.authenticateAndResendRequest"),h)})}function E(n,i,a,m){return t(this,void 0,void 0,function*(){if(o(c,u.content,u.sidePanel),!v())throw s;return w(n,i),l(m),e("externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest",[n,i,new A(m),a.authId,a.connectionName,a.claims,a.silent],new p,r(d,"externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest"),h)})}function v(){return!(!o(c)||!c.supports.externalAppAuthenticationForCEA)}function w(t,n){a(n,new Error("conversation id is not valid.")),i(t)}export{x as authenticateAndResendRequest,f as authenticateWithOauth,m as authenticateWithSSO,E as authenticateWithSSOAndResendRequest,v as isSupported,w as validateInput};
@@ -1 +1 @@
1
- import{sendMessageToParentAsync as n}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as e}from"../internal/telemetry.js";import{FrameContexts as r,errorNotSupportedOnPlatform as i}from"../public/constants.js";import{runtime as o}from"../public/runtime.js";import{AppId as p}from"../public/appId.js";var c,s;function a(c,s){if(t(o,r.content),!A())throw i;const a=new p(c);return n(e("v2","externalAppCardActions.processActionSubmit"),"externalAppCardActions.processActionSubmit",[a.toString(),s]).then(([n,t])=>{if(!n)throw t})}function l(c,s,a){if(t(o,r.content),!A())throw i;const l=new p(c);return n(e("v2","externalAppCardActions.processActionOpenUrl"),"externalAppCardActions.processActionOpenUrl",[l.toString(),s.href,a]).then(([n,t])=>{if(n)throw n;return t})}function A(){return!(!t(o)||!o.supports.externalAppCardActions)}!function(n){n.DeepLinkDialog="DeepLinkDialog",n.DeepLinkOther="DeepLinkOther",n.DeepLinkStageView="DeepLinkStageView",n.GenericUrl="GenericUrl"}(c||(c={})),function(n){n.INTERNAL_ERROR="INTERNAL_ERROR",n.INVALID_LINK="INVALID_LINK",n.NOT_SUPPORTED="NOT_SUPPORTED"}(s||(s={}));export{s as ActionOpenUrlErrorCode,c as ActionOpenUrlType,A as isSupported,l as processActionOpenUrl,a as processActionSubmit};
1
+ import{sendMessageToParentAsync as n}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as e}from"../internal/telemetry.js";import{FrameContexts as r,errorNotSupportedOnPlatform as i}from"../public/constants.js";import{runtime as o}from"../public/runtime.js";import{AppId as p}from"../public/appId.js";var c,s;function a(c,s){if(t(o,r.content,r.sidePanel),!A())throw i;const a=new p(c);return n(e("v2","externalAppCardActions.processActionSubmit"),"externalAppCardActions.processActionSubmit",[a.toString(),s]).then(([n,t])=>{if(!n)throw t})}function l(c,s,a){if(t(o,r.content,r.sidePanel),!A())throw i;const l=new p(c);return n(e("v2","externalAppCardActions.processActionOpenUrl"),"externalAppCardActions.processActionOpenUrl",[l.toString(),s.href,a]).then(([n,t])=>{if(n)throw n;return t})}function A(){return!(!t(o)||!o.supports.externalAppCardActions)}!function(n){n.DeepLinkDialog="DeepLinkDialog",n.DeepLinkOther="DeepLinkOther",n.DeepLinkStageView="DeepLinkStageView",n.GenericUrl="GenericUrl"}(c||(c={})),function(n){n.INTERNAL_ERROR="INTERNAL_ERROR",n.INVALID_LINK="INVALID_LINK",n.NOT_SUPPORTED="NOT_SUPPORTED"}(s||(s={}));export{s as ActionOpenUrlErrorCode,c as ActionOpenUrlType,A as isSupported,l as processActionOpenUrl,a as processActionSubmit};
@@ -1 +1 @@
1
- import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendMessageToParentAsync as o,sendAndUnwrap as r}from"../internal/communication.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{FrameContexts as e,errorNotSupportedOnPlatform as p}from"../public/constants.js";import{runtime as s}from"../public/runtime.js";import{validateInput as c}from"./externalAppAuthenticationForCEA.js";function l(r,l,m){return t(this,void 0,void 0,function*(){if(n(s,e.content),!A())throw p;c(r,l);const[t,u]=yield o(i("v2","externalAppCardActionsForCEA.processActionOpenUrl"),"externalAppCardActionsForCEA.processActionOpenUrl",[r.toString(),l,m.href]);if(t)throw t;return u})}function m(o,l,m){return t(this,void 0,void 0,function*(){if(n(s,e.content),!A())throw p;c(o,l);const t=yield r(i("v2","externalAppCardActionsForCEA.processActionSubmit"),"externalAppCardActionsForCEA.processActionSubmit",o.toString(),l,m);if(t)throw t})}function A(){return!(!n(s)||!s.supports.externalAppCardActionsForCEA)}export{A as isSupported,l as processActionOpenUrl,m as processActionSubmit};
1
+ import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendMessageToParentAsync as o,sendAndUnwrap as r}from"../internal/communication.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{FrameContexts as e,errorNotSupportedOnPlatform as p}from"../public/constants.js";import{runtime as s}from"../public/runtime.js";import{validateInput as c}from"./externalAppAuthenticationForCEA.js";function l(r,l,m){return t(this,void 0,void 0,function*(){if(n(s,e.content,e.sidePanel),!A())throw p;c(r,l);const[t,u]=yield o(i("v2","externalAppCardActionsForCEA.processActionOpenUrl"),"externalAppCardActionsForCEA.processActionOpenUrl",[r.toString(),l,m.href]);if(t)throw t;return u})}function m(o,l,m){return t(this,void 0,void 0,function*(){if(n(s,e.content,e.sidePanel),!A())throw p;c(o,l);const t=yield r(i("v2","externalAppCardActionsForCEA.processActionSubmit"),"externalAppCardActionsForCEA.processActionSubmit",o.toString(),l,m);if(t)throw t})}function A(){return!(!n(s)||!s.supports.externalAppCardActionsForCEA)}export{A as isSupported,l as processActionOpenUrl,m as processActionSubmit};
@@ -1 +1 @@
1
- import{__awaiter as r}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{callFunctionInHost as t}from"../internal/communication.js";import{validateAppIdInstance as i}from"../internal/idValidation.js";import{ensureInitialized as o}from"../internal/internalAPIs.js";import{getApiVersionTag as n}from"../internal/telemetry.js";import{FrameContexts as e,errorNotSupportedOnPlatform as s}from"../public/constants.js";import{runtime as p}from"../public/runtime.js";import{validateUuidInstance as l}from"../public/uuidObject.js";import{isExternalAppError as c}from"./externalAppErrorHandling.js";function m(m,f,d){return r(this,void 0,void 0,function*(){if(o(p,e.content),!u())throw s;return function(r,t){i(r),l(t)}(m,d),t("externalAppCardActionsForDA.processActionOpenUrlDialog",[m,new a(f),d],n("v2","externalAppCardActionsForDA.processActionOpenUrlDialog"),c)})}function u(){return!(!o(p)||!p.supports.externalAppCardActionsForDA)}class a{constructor(r){this.info=r}serialize(){const{url:r,title:t,size:i}=this.info;return{url:r.href,title:t,size:i}}}export{a as SerializableActionOpenUrlDialogInfo,u as isSupported,m as processActionOpenUrlDialog};
1
+ import{__awaiter as r}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{callFunctionInHost as t}from"../internal/communication.js";import{validateAppIdInstance as i}from"../internal/idValidation.js";import{ensureInitialized as o}from"../internal/internalAPIs.js";import{getApiVersionTag as n}from"../internal/telemetry.js";import{FrameContexts as e,errorNotSupportedOnPlatform as s}from"../public/constants.js";import{runtime as l}from"../public/runtime.js";import{validateUuidInstance as p}from"../public/uuidObject.js";import{isExternalAppError as c}from"./externalAppErrorHandling.js";function m(m,f,d){return r(this,void 0,void 0,function*(){if(o(l,e.content,e.sidePanel),!u())throw s;return function(r,t){i(r),p(t)}(m,d),t("externalAppCardActionsForDA.processActionOpenUrlDialog",[m,new a(f),d],n("v2","externalAppCardActionsForDA.processActionOpenUrlDialog"),c)})}function u(){return!(!o(l)||!l.supports.externalAppCardActionsForDA)}class a{constructor(r){this.info=r}serialize(){const{url:r,title:t,size:i}=this.info;return{url:r.href,title:t,size:i}}}export{a as SerializableActionOpenUrlDialogInfo,u as isSupported,m as processActionOpenUrlDialog};
@@ -1 +1 @@
1
- import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendMessageToParentAsync as o}from"../internal/communication.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{getApiVersionTag as r}from"../internal/telemetry.js";import{FrameContexts as i,errorNotSupportedOnPlatform as p}from"../public/constants.js";import{runtime as m}from"../public/runtime.js";import{AppId as e}from"../public/appId.js";function s(s,c,u){return t(this,void 0,void 0,function*(){if(n(m,i.content),!l())throw p;const t=new e(s),[a,d]=yield o(r("v2","externalAppCommands.processActionCommand"),"externalAppCommands.processActionCommand",[t.toString(),c,u]);if(a)throw a;return d})}function l(){return!(!n(m)||!m.supports.externalAppCommands)}export{l as isSupported,s as processActionCommand};
1
+ import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendMessageToParentAsync as o}from"../internal/communication.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{getApiVersionTag as r}from"../internal/telemetry.js";import{FrameContexts as i,errorNotSupportedOnPlatform as e}from"../public/constants.js";import{runtime as p}from"../public/runtime.js";import{AppId as m}from"../public/appId.js";function s(s,c,u){return t(this,void 0,void 0,function*(){if(n(p,i.content,i.sidePanel),!l())throw e;const t=new m(s),[a,d]=yield o(r("v2","externalAppCommands.processActionCommand"),"externalAppCommands.processActionCommand",[t.toString(),c,u]);if(a)throw a;return d})}function l(){return!(!n(p)||!p.supports.externalAppCommands)}export{l as isSupported,s as processActionCommand};
@@ -1 +1 @@
1
- const o="2.49.0";export{o as version};
1
+ const o="2.50.0";export{o as version};
@@ -4669,7 +4669,7 @@ function isSerializable(arg) {
4669
4669
  * @hidden
4670
4670
  * Package version.
4671
4671
  */
4672
- const version = "2.49.0";
4672
+ const version = "2.50.0";
4673
4673
 
4674
4674
  ;// ./src/public/featureFlags.ts
4675
4675
  // All build feature flags are defined inside this object. Any build feature flag must have its own unique getter and setter function. This pattern allows for client apps to treeshake unused code and avoid including code guarded by this feature flags in the final bundle. If this property isn't desired, use the below runtime feature flags object.
@@ -10247,7 +10247,7 @@ function validateQueryMessageExtensionRequest(originalRequestInfo) {
10247
10247
  * @returns A promise that resolves to the IInvokeResponse from the application backend and rejects with InvokeError if the host encounters an error while authenticating or resending the request
10248
10248
  */
10249
10249
  function authenticateAndResendRequest(appId, authenticateParameters, originalRequestInfo) {
10250
- ensureInitialized(runtime, FrameContexts.content);
10250
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10251
10251
  if (!externalAppAuthentication_isSupported()) {
10252
10252
  throw errorNotSupportedOnPlatform;
10253
10253
  }
@@ -10282,7 +10282,7 @@ function authenticateAndResendRequest(appId, authenticateParameters, originalReq
10282
10282
  * @returns A promise that resolves when authentication and succeeds and rejects with InvokeError on failure
10283
10283
  */
10284
10284
  function authenticateWithSSO(appId, authTokenRequest) {
10285
- ensureInitialized(runtime, FrameContexts.content);
10285
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10286
10286
  if (!externalAppAuthentication_isSupported()) {
10287
10287
  throw errorNotSupportedOnPlatform;
10288
10288
  }
@@ -10305,7 +10305,7 @@ function authenticateWithSSO(appId, authTokenRequest) {
10305
10305
  * @returns A promise that resolves to the IInvokeResponse from the application backend and rejects with InvokeError if the host encounters an error while authenticating or resending the request
10306
10306
  */
10307
10307
  function authenticateWithSSOAndResendRequest(appId, authTokenRequest, originalRequestInfo) {
10308
- ensureInitialized(runtime, FrameContexts.content);
10308
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10309
10309
  if (!externalAppAuthentication_isSupported()) {
10310
10310
  throw errorNotSupportedOnPlatform;
10311
10311
  }
@@ -10333,7 +10333,7 @@ function authenticateWithSSOAndResendRequest(appId, authTokenRequest, originalRe
10333
10333
  * @returns A promise that resolves when authentication succeeds and rejects with InvokeError on failure
10334
10334
  */
10335
10335
  function authenticateWithOauth2(titleId, oauthConfigId, oauthWindowParameters) {
10336
- ensureInitialized(runtime, FrameContexts.content);
10336
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10337
10337
  if (!externalAppAuthentication_isSupported()) {
10338
10338
  throw errorNotSupportedOnPlatform;
10339
10339
  }
@@ -10363,7 +10363,7 @@ function authenticateWithOauth2(titleId, oauthConfigId, oauthWindowParameters) {
10363
10363
  * @returns A promise that resolves when authentication succeeds and rejects with InvokeError on failure
10364
10364
  */
10365
10365
  function authenticateWithPowerPlatformConnectorPlugins(titleId, signInUrl, oauthWindowParameters) {
10366
- ensureInitialized(runtime, FrameContexts.content);
10366
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10367
10367
  if (!externalAppAuthentication_isSupported()) {
10368
10368
  throw errorNotSupportedOnPlatform;
10369
10369
  }
@@ -10410,7 +10410,7 @@ class SerializableConnectorParameters {
10410
10410
  * @throws Error if {@linkcode app.initialize} has not successfully completed
10411
10411
  */
10412
10412
  function authenticateWithConnector(input) {
10413
- ensureInitialized(runtime, FrameContexts.content);
10413
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10414
10414
  if (!externalAppAuthentication_isSupported()) {
10415
10415
  throw errorNotSupportedOnPlatform;
10416
10416
  }
@@ -10478,7 +10478,7 @@ class UserAuthenticationStateResponseHandler extends ResponseHandler {
10478
10478
  * @throws Error if the capability is not supported or if initialization has not completed.
10479
10479
  */
10480
10480
  function getUserAuthenticationStateForConnector(input) {
10481
- ensureInitialized(runtime, FrameContexts.content);
10481
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10482
10482
  if (!externalAppAuthentication_isSupported()) {
10483
10483
  throw errorNotSupportedOnPlatform;
10484
10484
  }
@@ -10500,7 +10500,7 @@ function getUserAuthenticationStateForConnector(input) {
10500
10500
  * @throws Error if the capability is not supported or if initialization has not completed.
10501
10501
  */
10502
10502
  function disconnectConnector(input) {
10503
- ensureInitialized(runtime, FrameContexts.content);
10503
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10504
10504
  if (!externalAppAuthentication_isSupported()) {
10505
10505
  throw errorNotSupportedOnPlatform;
10506
10506
  }
@@ -10563,7 +10563,7 @@ const externalAppAuthenticationForCEA_externalAppAuthenticationTelemetryVersionN
10563
10563
  */
10564
10564
  function externalAppAuthenticationForCEA_authenticateWithSSO(appId, conversationId, authTokenRequest) {
10565
10565
  return externalAppAuthenticationForCEA_awaiter(this, void 0, void 0, function* () {
10566
- ensureInitialized(runtime, FrameContexts.content);
10566
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10567
10567
  if (!externalAppAuthenticationForCEA_isSupported()) {
10568
10568
  throw errorNotSupportedOnPlatform;
10569
10569
  }
@@ -10592,7 +10592,7 @@ function externalAppAuthenticationForCEA_authenticateWithSSO(appId, conversation
10592
10592
  */
10593
10593
  function authenticateWithOauth(appId, conversationId, authenticateParameters) {
10594
10594
  return externalAppAuthenticationForCEA_awaiter(this, void 0, void 0, function* () {
10595
- ensureInitialized(runtime, FrameContexts.content);
10595
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10596
10596
  if (!externalAppAuthenticationForCEA_isSupported()) {
10597
10597
  throw errorNotSupportedOnPlatform;
10598
10598
  }
@@ -10623,7 +10623,7 @@ function authenticateWithOauth(appId, conversationId, authenticateParameters) {
10623
10623
  */
10624
10624
  function externalAppAuthenticationForCEA_authenticateAndResendRequest(appId, conversationId, authenticateParameters, originalRequestInfo) {
10625
10625
  return externalAppAuthenticationForCEA_awaiter(this, void 0, void 0, function* () {
10626
- ensureInitialized(runtime, FrameContexts.content);
10626
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10627
10627
  if (!externalAppAuthenticationForCEA_isSupported()) {
10628
10628
  throw errorNotSupportedOnPlatform;
10629
10629
  }
@@ -10656,7 +10656,7 @@ function externalAppAuthenticationForCEA_authenticateAndResendRequest(appId, con
10656
10656
  */
10657
10657
  function externalAppAuthenticationForCEA_authenticateWithSSOAndResendRequest(appId, conversationId, authTokenRequest, originalRequestInfo) {
10658
10658
  return externalAppAuthenticationForCEA_awaiter(this, void 0, void 0, function* () {
10659
- ensureInitialized(runtime, FrameContexts.content);
10659
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10660
10660
  if (!externalAppAuthenticationForCEA_isSupported()) {
10661
10661
  throw errorNotSupportedOnPlatform;
10662
10662
  }
@@ -10758,7 +10758,7 @@ var ActionOpenUrlErrorCode;
10758
10758
  * @returns Promise that resolves when the request is completed and rejects with ActionSubmitError if the request fails
10759
10759
  */
10760
10760
  function processActionSubmit(appId, actionSubmitPayload) {
10761
- ensureInitialized(runtime, FrameContexts.content);
10761
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10762
10762
  if (!externalAppCardActions_isSupported()) {
10763
10763
  throw errorNotSupportedOnPlatform;
10764
10764
  }
@@ -10783,7 +10783,7 @@ function processActionSubmit(appId, actionSubmitPayload) {
10783
10783
  * @returns Promise that resolves to ActionOpenUrlType indicating the type of URL that was opened on success and rejects with ActionOpenUrlError if the request fails
10784
10784
  */
10785
10785
  function processActionOpenUrl(appId, url, fromElement) {
10786
- ensureInitialized(runtime, FrameContexts.content);
10786
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10787
10787
  if (!externalAppCardActions_isSupported()) {
10788
10788
  throw errorNotSupportedOnPlatform;
10789
10789
  }
@@ -10853,7 +10853,7 @@ const externalAppCardActionsForCEA_externalAppCardActionsTelemetryVersionNumber
10853
10853
  */
10854
10854
  function externalAppCardActionsForCEA_processActionOpenUrl(appId, conversationId, url) {
10855
10855
  return externalAppCardActionsForCEA_awaiter(this, void 0, void 0, function* () {
10856
- ensureInitialized(runtime, FrameContexts.content);
10856
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10857
10857
  if (!externalAppCardActionsForCEA_isSupported()) {
10858
10858
  throw errorNotSupportedOnPlatform;
10859
10859
  }
@@ -10881,7 +10881,7 @@ function externalAppCardActionsForCEA_processActionOpenUrl(appId, conversationId
10881
10881
  */
10882
10882
  function externalAppCardActionsForCEA_processActionSubmit(appId, conversationId, actionSubmitPayload) {
10883
10883
  return externalAppCardActionsForCEA_awaiter(this, void 0, void 0, function* () {
10884
- ensureInitialized(runtime, FrameContexts.content);
10884
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10885
10885
  if (!externalAppCardActionsForCEA_isSupported()) {
10886
10886
  throw errorNotSupportedOnPlatform;
10887
10887
  }
@@ -10980,7 +10980,7 @@ const externalAppCardActionsForDATelemetryVersionNumber = "v2" /* ApiVersionNumb
10980
10980
  */
10981
10981
  function processActionOpenUrlDialog(appId, actionOpenUrlDialogInfo, traceId) {
10982
10982
  return externalAppCardActionsForDA_awaiter(this, void 0, void 0, function* () {
10983
- ensureInitialized(runtime, FrameContexts.content);
10983
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
10984
10984
  if (!externalAppCardActionsForDA_isSupported()) {
10985
10985
  throw errorNotSupportedOnPlatform;
10986
10986
  }
@@ -11084,7 +11084,7 @@ const externalAppCommandsTelemetryVersionNumber = "v2" /* ApiVersionNumber.V_2 *
11084
11084
  */
11085
11085
  function processActionCommand(appId, commandId, extractedParameters) {
11086
11086
  return externalAppCommands_awaiter(this, void 0, void 0, function* () {
11087
- ensureInitialized(runtime, FrameContexts.content);
11087
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel);
11088
11088
  if (!externalAppCommands_isSupported()) {
11089
11089
  throw errorNotSupportedOnPlatform;
11090
11090
  }