@microsoft/teams-js 2.49.0 → 2.50.0-beta.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/dist/esm/packages/teams-js/dts/public/index.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +12 -0
- package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCardActions.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForDA.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -1
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/umd/MicrosoftTeams.js +19 -19
- package/dist/umd/MicrosoftTeams.js.map +1 -1
- package/dist/umd/MicrosoftTeams.min.js +1 -1
- package/dist/umd/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -53
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as authentication from './authentication';
|
|
2
2
|
export { ChannelType, DialogDimension, FrameContexts, HostClientType, HostName, RenderingSurfaces, TaskModuleDimension, TeamType, UserTeamRole, } from './constants';
|
|
3
|
-
export { ActionInfo, ActionObjectType, AdaptiveCardVersion, AdaptiveCardDialogInfo, BaseActionObject, BotAdaptiveCardDialogInfo, BotUrlDialogInfo, Context, DeepLinkParameters, DialogInfo, DialogSize, EduType, ErrorCode, FileOpenPreference, FrameContext, FrameInfo, HostMemoryMetrics, HostToAppFrameMemoryMetrics, HostToAppPerformanceMetrics, LoadContext, LocaleInfo, M365ContentAction, ResumeContext, SdkError, SecondaryId, SecondaryM365ContentIdName, ShareDeepLinkParameters, TabInformation, TabInstance, TabInstanceParameters, TaskInfo, TeamInformation, UrlDialogInfo, } from './interfaces';
|
|
3
|
+
export { ActionInfo, ActionObjectType, AdaptiveCardVersion, AdaptiveCardDialogInfo, AppState, BaseActionObject, BotAdaptiveCardDialogInfo, BotUrlDialogInfo, Context, DeepLinkParameters, DialogInfo, DialogSize, EduType, ErrorCode, FileOpenPreference, FrameContext, FrameInfo, HostMemoryMetrics, HostToAppFrameMemoryMetrics, HostToAppPerformanceMetrics, LoadContext, LocaleInfo, M365ContentAction, ResumeContext, SdkError, SecondaryId, SecondaryM365ContentIdName, ShareDeepLinkParameters, TabInformation, TabInstance, TabInstanceParameters, TaskInfo, TeamInformation, UrlDialogInfo, } from './interfaces';
|
|
4
4
|
export * as app from './app/app';
|
|
5
5
|
export { AppId } from './appId';
|
|
6
6
|
export * as appPerformanceMetrics from './appPerformanceMetrics';
|
|
@@ -1271,15 +1271,27 @@ export type HostToAppFrameMemoryMetrics = {
|
|
|
1271
1271
|
*/
|
|
1272
1272
|
treeLevel: number;
|
|
1273
1273
|
};
|
|
1274
|
+
/**
|
|
1275
|
+
* The state of the app in terms of its lifecycle and caching status, which can impact its performance characteristics and memory usage.
|
|
1276
|
+
*/
|
|
1277
|
+
export type AppState = 'cached' | 'precached' | 'active';
|
|
1274
1278
|
/**
|
|
1275
1279
|
* Memory metrics provided by the host for the app.
|
|
1276
1280
|
*/
|
|
1277
1281
|
export type HostMemoryMetrics = {
|
|
1278
1282
|
/**
|
|
1283
|
+
* The current state of the app, which can be 'cached', 'precached', or 'active'. This provides insight into the app's lifecycle stage and can help developers understand the performance characteristics and memory usage of their app in different states.
|
|
1284
|
+
*/
|
|
1285
|
+
appState: AppState;
|
|
1286
|
+
/**
|
|
1287
|
+
* @deprecated - Use `appState` instead.
|
|
1288
|
+
*
|
|
1279
1289
|
* Indicates if the app is in a hidden state to accelerate future launches.
|
|
1280
1290
|
*/
|
|
1281
1291
|
isCached: boolean;
|
|
1282
1292
|
/**
|
|
1293
|
+
* @deprecated - Use `appState` instead.
|
|
1294
|
+
*
|
|
1283
1295
|
* Indicates if the app is in a preloaded state to accelerate its first launch in the session.
|
|
1284
1296
|
*/
|
|
1285
1297
|
isPrecached: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{sendMessageToParentAsync as
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1
|
+
const t="2.50.0-beta.0";export{t as version};
|
|
@@ -4669,7 +4669,7 @@ function isSerializable(arg) {
|
|
|
4669
4669
|
* @hidden
|
|
4670
4670
|
* Package version.
|
|
4671
4671
|
*/
|
|
4672
|
-
const version = "2.
|
|
4672
|
+
const version = "2.50.0-beta.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
|
}
|