@microsoft/teams-js 2.29.0-beta.1 → 2.29.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- 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/interfaces.js +1 -1
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/umd/MicrosoftTeams.d.ts +54 -68
- package/dist/umd/MicrosoftTeams.js +18 -33
- 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 -1
@@ -1 +1 @@
|
|
1
|
-
import{sendMessageToParentAsync as
|
1
|
+
import{sendMessageToParentAsync as r}from"../internal/communication.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{getApiVersionTag as e}from"../internal/telemetry.js";import{FrameContexts as t,errorNotSupportedOnPlatform as o}from"../public/constants.js";import{runtime as i}from"../public/runtime.js";import{AppId as p}from"../public/appId.js";var c;!function(c){var s,A;function l(){return!(!n(i)||!i.supports.externalAppCardActions)}(s=c.ActionOpenUrlType||(c.ActionOpenUrlType={})).DeepLinkDialog="DeepLinkDialog",s.DeepLinkOther="DeepLinkOther",s.DeepLinkStageView="DeepLinkStageView",s.GenericUrl="GenericUrl",(A=c.ActionOpenUrlErrorCode||(c.ActionOpenUrlErrorCode={})).INTERNAL_ERROR="INTERNAL_ERROR",A.INVALID_LINK="INVALID_LINK",A.NOT_SUPPORTED="NOT_SUPPORTED",c.processActionSubmit=function(c,s){if(n(i,t.content),!l())throw o;const A=new p(c);return r(e("v2","externalAppCardActions.processActionSubmit"),"externalAppCardActions.processActionSubmit",[A.toString(),s]).then((([r,n])=>{if(!r)throw n}))},c.processActionOpenUrl=function(c,s,A){if(n(i,t.content),!l())throw o;const a=new p(c);return r(e("v2","externalAppCardActions.processActionOpenUrl"),"externalAppCardActions.processActionOpenUrl",[a.toString(),s.href,A]).then((([r,n])=>{if(r)throw r;return n}))},c.isSupported=l}(c||(c={}));export{c as externalAppCardActions};
|
@@ -1 +1 @@
|
|
1
|
-
import{__awaiter as
|
1
|
+
import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.22.4_tslib@2.6.3_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{validateId as e}from"../internal/utils.js";import{FrameContexts as s,errorNotSupportedOnPlatform as p}from"../public/constants.js";import{runtime as c}from"../public/runtime.js";var l;!function(l){function u(){return!(!n(c)||!c.supports.externalAppCardActionsForCEA)}l.processActionOpenUrl=function(r,l,m){return t(this,void 0,void 0,(function*(){if(n(c,s.content),!u())throw p;e(l,new Error("conversation id is not valid."));const[t,a]=yield o(i("v2","externalAppCardActionsForCEA.processActionOpenUrl"),"externalAppCardActionsForCEA.processActionOpenUrl",[r.toString(),l,m.href]);if(t)throw t;return a}))},l.processActionSubmit=function(o,l,m){return t(this,void 0,void 0,(function*(){if(n(c,s.content),!u())throw p;e(l,new Error("conversation id is not valid."));const t=yield r(i("v2","externalAppCardActionsForCEA.processActionSubmit"),"externalAppCardActionsForCEA.processActionSubmit",o.toString(),l,m);if(t)throw t}))},l.isSupported=u}(l||(l={}));export{l as externalAppCardActionsForCEA};
|
@@ -1 +1 @@
|
|
1
|
-
var e,
|
1
|
+
var e,t,i;!function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(e||(e={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(t||(t={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(i||(i={}));export{e as NotificationTypes,i as UserSettingTypes,t as ViewerActionTypes};
|
@@ -1 +1 @@
|
|
1
|
-
const t="2.29.0-beta.
|
1
|
+
const t="2.29.0-beta.2";export{t as version};
|
@@ -275,72 +275,6 @@ export interface UserJoinedTeamsInformation {
|
|
275
275
|
*/
|
276
276
|
userJoinedTeams: TeamInformation[];
|
277
277
|
}
|
278
|
-
/**
|
279
|
-
* @beta
|
280
|
-
* @hidden
|
281
|
-
* The types for ActionOpenUrl
|
282
|
-
*
|
283
|
-
* @internal
|
284
|
-
* Limited to Microsoft-internal use
|
285
|
-
*/
|
286
|
-
export enum ActionOpenUrlType {
|
287
|
-
DeepLinkDialog = "DeepLinkDialog",
|
288
|
-
DeepLinkOther = "DeepLinkOther",
|
289
|
-
DeepLinkStageView = "DeepLinkStageView",
|
290
|
-
GenericUrl = "GenericUrl"
|
291
|
-
}
|
292
|
-
/**
|
293
|
-
* @beta
|
294
|
-
* @hidden
|
295
|
-
* Error that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
|
296
|
-
* and IExternalAppCardActionForCEAService.handleActionOpenUrl
|
297
|
-
*
|
298
|
-
* @internal
|
299
|
-
* Limited to Microsoft-internal use
|
300
|
-
*/
|
301
|
-
export interface ActionOpenUrlError {
|
302
|
-
errorCode: ActionOpenUrlErrorCode;
|
303
|
-
message?: string;
|
304
|
-
}
|
305
|
-
/**
|
306
|
-
* @beta
|
307
|
-
* @hidden
|
308
|
-
* Error codes that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
|
309
|
-
* and IExternalAppCardActionForCEAService.handleActionOpenUrl
|
310
|
-
*
|
311
|
-
* @internal
|
312
|
-
* Limited to Microsoft-internal use
|
313
|
-
*/
|
314
|
-
export enum ActionOpenUrlErrorCode {
|
315
|
-
INTERNAL_ERROR = "INTERNAL_ERROR",
|
316
|
-
INVALID_LINK = "INVALID_LINK",
|
317
|
-
NOT_SUPPORTED = "NOT_SUPPORTED"
|
318
|
-
}
|
319
|
-
/**
|
320
|
-
* @beta
|
321
|
-
* @hidden
|
322
|
-
* The payload that is used when executing an Adaptive Card Action.Submit
|
323
|
-
*
|
324
|
-
* @internal
|
325
|
-
* Limited to Microsoft-internal use
|
326
|
-
*/
|
327
|
-
export interface IAdaptiveCardActionSubmit {
|
328
|
-
id: string;
|
329
|
-
data: string | Record<string, unknown>;
|
330
|
-
}
|
331
|
-
/**
|
332
|
-
* @beta
|
333
|
-
* @hidden
|
334
|
-
* Error that can be thrown from IExternalAppCardActionService.handleActionSubmit
|
335
|
-
* and IExternalAppCardActionForCEAService.handleActionSubmit
|
336
|
-
*
|
337
|
-
* @internal
|
338
|
-
* Limited to Microsoft-internal use
|
339
|
-
*/
|
340
|
-
export interface ActionSubmitError {
|
341
|
-
errorCode: ExternalAppErrorCode;
|
342
|
-
message?: string;
|
343
|
-
}
|
344
278
|
|
345
279
|
export function uploadCustomApp(manifestBlob: Blob, onComplete?: (status: boolean, reason?: string) => void): void;
|
346
280
|
/**
|
@@ -932,6 +866,58 @@ export namespace externalAppCardActions {
|
|
932
866
|
DeepLinkStageView = "DeepLinkStageView",
|
933
867
|
GenericUrl = "GenericUrl"
|
934
868
|
}
|
869
|
+
/**
|
870
|
+
* @beta
|
871
|
+
* @hidden
|
872
|
+
* Error that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
|
873
|
+
* and IExternalAppCardActionForCEAService.handleActionOpenUrl
|
874
|
+
*
|
875
|
+
* @internal
|
876
|
+
* Limited to Microsoft-internal use
|
877
|
+
*/
|
878
|
+
interface ActionOpenUrlError {
|
879
|
+
errorCode: ActionOpenUrlErrorCode;
|
880
|
+
message?: string;
|
881
|
+
}
|
882
|
+
/**
|
883
|
+
* @beta
|
884
|
+
* @hidden
|
885
|
+
* Error codes that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
|
886
|
+
* and IExternalAppCardActionForCEAService.handleActionOpenUrl
|
887
|
+
*
|
888
|
+
* @internal
|
889
|
+
* Limited to Microsoft-internal use
|
890
|
+
*/
|
891
|
+
enum ActionOpenUrlErrorCode {
|
892
|
+
INTERNAL_ERROR = "INTERNAL_ERROR",
|
893
|
+
INVALID_LINK = "INVALID_LINK",
|
894
|
+
NOT_SUPPORTED = "NOT_SUPPORTED"
|
895
|
+
}
|
896
|
+
/**
|
897
|
+
* @beta
|
898
|
+
* @hidden
|
899
|
+
* The payload that is used when executing an Adaptive Card Action.Submit
|
900
|
+
*
|
901
|
+
* @internal
|
902
|
+
* Limited to Microsoft-internal use
|
903
|
+
*/
|
904
|
+
interface IAdaptiveCardActionSubmit {
|
905
|
+
id: string;
|
906
|
+
data: string | Record<string, unknown>;
|
907
|
+
}
|
908
|
+
/**
|
909
|
+
* @beta
|
910
|
+
* @hidden
|
911
|
+
* Error that can be thrown from IExternalAppCardActionService.handleActionSubmit
|
912
|
+
* and IExternalAppCardActionForCEAService.handleActionSubmit
|
913
|
+
*
|
914
|
+
* @internal
|
915
|
+
* Limited to Microsoft-internal use
|
916
|
+
*/
|
917
|
+
interface ActionSubmitError {
|
918
|
+
errorCode: ExternalAppErrorCode;
|
919
|
+
message?: string;
|
920
|
+
}
|
935
921
|
/**
|
936
922
|
* @beta
|
937
923
|
* @hidden
|
@@ -993,7 +979,7 @@ export namespace externalAppCardActionsForCEA {
|
|
993
979
|
* @throws Error if the response has not successfully completed
|
994
980
|
* @returns Promise that resolves to ActionOpenUrlType indicating the type of URL that was opened on success and rejects with ActionOpenUrlError if the request fails
|
995
981
|
*/
|
996
|
-
function processActionOpenUrl(appId: AppId, conversationId: string, url: URL): Promise<ActionOpenUrlType>;
|
982
|
+
function processActionOpenUrl(appId: AppId, conversationId: string, url: URL): Promise<externalAppCardActions.ActionOpenUrlType>;
|
997
983
|
/**
|
998
984
|
* @beta
|
999
985
|
* @hidden
|
@@ -1006,7 +992,7 @@ export namespace externalAppCardActionsForCEA {
|
|
1006
992
|
* @throws Error if host notifies of an error
|
1007
993
|
* @returns Promise that resolves when the request is completed and rejects with ActionSubmitError if the request fails
|
1008
994
|
*/
|
1009
|
-
function processActionSubmit(appId: AppId, conversationId: string, actionSubmitPayload: IAdaptiveCardActionSubmit): Promise<void>;
|
995
|
+
function processActionSubmit(appId: AppId, conversationId: string, actionSubmitPayload: externalAppCardActions.IAdaptiveCardActionSubmit): Promise<void>;
|
1010
996
|
/**
|
1011
997
|
* @beta
|
1012
998
|
* @hidden
|
@@ -3509,7 +3509,7 @@ const _minRuntimeConfigToUninitialize = {
|
|
3509
3509
|
* @hidden
|
3510
3510
|
* Package version.
|
3511
3511
|
*/
|
3512
|
-
const version = "2.29.0-beta.
|
3512
|
+
const version = "2.29.0-beta.2";
|
3513
3513
|
|
3514
3514
|
;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
|
3515
3515
|
|
@@ -7829,36 +7829,6 @@ var UserSettingTypes;
|
|
7829
7829
|
*/
|
7830
7830
|
UserSettingTypes["theme"] = "theme";
|
7831
7831
|
})(UserSettingTypes || (UserSettingTypes = {}));
|
7832
|
-
/**
|
7833
|
-
* @beta
|
7834
|
-
* @hidden
|
7835
|
-
* The types for ActionOpenUrl
|
7836
|
-
*
|
7837
|
-
* @internal
|
7838
|
-
* Limited to Microsoft-internal use
|
7839
|
-
*/
|
7840
|
-
var ActionOpenUrlType;
|
7841
|
-
(function (ActionOpenUrlType) {
|
7842
|
-
ActionOpenUrlType["DeepLinkDialog"] = "DeepLinkDialog";
|
7843
|
-
ActionOpenUrlType["DeepLinkOther"] = "DeepLinkOther";
|
7844
|
-
ActionOpenUrlType["DeepLinkStageView"] = "DeepLinkStageView";
|
7845
|
-
ActionOpenUrlType["GenericUrl"] = "GenericUrl";
|
7846
|
-
})(ActionOpenUrlType || (ActionOpenUrlType = {}));
|
7847
|
-
/**
|
7848
|
-
* @beta
|
7849
|
-
* @hidden
|
7850
|
-
* Error codes that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
|
7851
|
-
* and IExternalAppCardActionForCEAService.handleActionOpenUrl
|
7852
|
-
*
|
7853
|
-
* @internal
|
7854
|
-
* Limited to Microsoft-internal use
|
7855
|
-
*/
|
7856
|
-
var ActionOpenUrlErrorCode;
|
7857
|
-
(function (ActionOpenUrlErrorCode) {
|
7858
|
-
ActionOpenUrlErrorCode["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
7859
|
-
ActionOpenUrlErrorCode["INVALID_LINK"] = "INVALID_LINK";
|
7860
|
-
ActionOpenUrlErrorCode["NOT_SUPPORTED"] = "NOT_SUPPORTED";
|
7861
|
-
})(ActionOpenUrlErrorCode || (ActionOpenUrlErrorCode = {}));
|
7862
7832
|
|
7863
7833
|
;// CONCATENATED MODULE: ./src/private/privateAPIs.ts
|
7864
7834
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
@@ -8462,6 +8432,21 @@ var externalAppCardActions;
|
|
8462
8432
|
ActionOpenUrlType["DeepLinkStageView"] = "DeepLinkStageView";
|
8463
8433
|
ActionOpenUrlType["GenericUrl"] = "GenericUrl";
|
8464
8434
|
})(ActionOpenUrlType = externalAppCardActions.ActionOpenUrlType || (externalAppCardActions.ActionOpenUrlType = {}));
|
8435
|
+
/**
|
8436
|
+
* @beta
|
8437
|
+
* @hidden
|
8438
|
+
* Error codes that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
|
8439
|
+
* and IExternalAppCardActionForCEAService.handleActionOpenUrl
|
8440
|
+
*
|
8441
|
+
* @internal
|
8442
|
+
* Limited to Microsoft-internal use
|
8443
|
+
*/
|
8444
|
+
let ActionOpenUrlErrorCode;
|
8445
|
+
(function (ActionOpenUrlErrorCode) {
|
8446
|
+
ActionOpenUrlErrorCode["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
8447
|
+
ActionOpenUrlErrorCode["INVALID_LINK"] = "INVALID_LINK";
|
8448
|
+
ActionOpenUrlErrorCode["NOT_SUPPORTED"] = "NOT_SUPPORTED";
|
8449
|
+
})(ActionOpenUrlErrorCode = externalAppCardActions.ActionOpenUrlErrorCode || (externalAppCardActions.ActionOpenUrlErrorCode = {}));
|
8465
8450
|
/**
|
8466
8451
|
* @beta
|
8467
8452
|
* @hidden
|
@@ -8579,7 +8564,7 @@ var externalAppCardActionsForCEA;
|
|
8579
8564
|
throw errorNotSupportedOnPlatform;
|
8580
8565
|
}
|
8581
8566
|
validateId(conversationId, new Error('conversation id is not valid.'));
|
8582
|
-
const [error, response] = yield sendMessageToParentAsync(getApiVersionTag(externalAppCardActionsForCEA_externalAppCardActionsTelemetryVersionNumber, "externalAppCardActionsForCEA.processActionOpenUrl" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionOpenUrl */), "externalAppCardActionsForCEA.processActionOpenUrl" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionOpenUrl */, [appId, url.href
|
8567
|
+
const [error, response] = yield sendMessageToParentAsync(getApiVersionTag(externalAppCardActionsForCEA_externalAppCardActionsTelemetryVersionNumber, "externalAppCardActionsForCEA.processActionOpenUrl" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionOpenUrl */), "externalAppCardActionsForCEA.processActionOpenUrl" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionOpenUrl */, [appId.toString(), conversationId, url.href]);
|
8583
8568
|
if (error) {
|
8584
8569
|
throw error;
|
8585
8570
|
}
|
@@ -8608,7 +8593,7 @@ var externalAppCardActionsForCEA;
|
|
8608
8593
|
throw errorNotSupportedOnPlatform;
|
8609
8594
|
}
|
8610
8595
|
validateId(conversationId, new Error('conversation id is not valid.'));
|
8611
|
-
const error = yield sendAndUnwrap(getApiVersionTag(externalAppCardActionsForCEA_externalAppCardActionsTelemetryVersionNumber, "externalAppCardActionsForCEA.processActionSubmit" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionSubmit */), "externalAppCardActionsForCEA.processActionSubmit" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionSubmit */,
|
8596
|
+
const error = yield sendAndUnwrap(getApiVersionTag(externalAppCardActionsForCEA_externalAppCardActionsTelemetryVersionNumber, "externalAppCardActionsForCEA.processActionSubmit" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionSubmit */), "externalAppCardActionsForCEA.processActionSubmit" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionSubmit */, appId.toString(), conversationId, actionSubmitPayload);
|
8612
8597
|
if (error) {
|
8613
8598
|
throw error;
|
8614
8599
|
}
|