@microsoft/teams-js 2.19.1-beta.0 → 2.20.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/MicrosoftTeams.d.ts +67 -34
- package/dist/MicrosoftTeams.js +575 -229
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +1 -1
- package/dist/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -1
package/dist/MicrosoftTeams.d.ts
CHANGED
|
@@ -1393,7 +1393,9 @@ export namespace files {
|
|
|
1393
1393
|
* @hidden
|
|
1394
1394
|
* Hide from docs
|
|
1395
1395
|
*
|
|
1396
|
-
* Gets a list of cloud storage folders added to the channel
|
|
1396
|
+
* Gets a list of cloud storage folders added to the channel. This function will not timeout;
|
|
1397
|
+
* the callback will only return when the host responds with a list of folders or error.
|
|
1398
|
+
*
|
|
1397
1399
|
* @param channelId - ID of the channel whose cloud storage folders should be retrieved
|
|
1398
1400
|
* @param callback - Callback that will be triggered post folders load
|
|
1399
1401
|
*
|
|
@@ -2649,10 +2651,10 @@ export namespace authentication {
|
|
|
2649
2651
|
* @param authenticateParameters - Parameters describing the authentication window used for executing the authentication flow
|
|
2650
2652
|
*
|
|
2651
2653
|
* @returns `Promise` that will be fulfilled with the result from the authentication pop-up, if successful. The string in this result is provided in the parameter
|
|
2652
|
-
* passed by your app when it calls {@link notifySuccess} in the pop-up window after returning from the identity provider redirect.
|
|
2654
|
+
* passed by your app when it calls {@link authentication.notifySuccess authentication.notifySuccess(result?: string): void} in the pop-up window after returning from the identity provider redirect.
|
|
2653
2655
|
*
|
|
2654
2656
|
* @throws `Error` if the authentication request fails or is canceled by the user. This error is provided in the parameter passed by your app when it calls
|
|
2655
|
-
* {@link notifyFailure} in the pop-up window after returning from the identity provider redirect. However, in some cases it can also be provided by
|
|
2657
|
+
* {@link authentication.notifyFailure authentication.notifyFailure(result?: string): void} in the pop-up window after returning from the identity provider redirect. However, in some cases it can also be provided by
|
|
2656
2658
|
* the infrastructure depending on the failure (e.g., a user cancelation)
|
|
2657
2659
|
*
|
|
2658
2660
|
*/
|
|
@@ -2730,9 +2732,8 @@ export namespace authentication {
|
|
|
2730
2732
|
*
|
|
2731
2733
|
* @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives
|
|
2732
2734
|
* this value in its callback or via the `Promise` return value
|
|
2733
|
-
* @param callbackUrl - Specifies the url to redirect back to if the client is Win32 Outlook.
|
|
2734
2735
|
*/
|
|
2735
|
-
function notifySuccess(result?: string
|
|
2736
|
+
function notifySuccess(result?: string): void;
|
|
2736
2737
|
/**
|
|
2737
2738
|
* When using {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>}, the
|
|
2738
2739
|
* window that was opened to execute the authentication flow should call this method after authentiction to notify the caller of
|
|
@@ -2746,9 +2747,9 @@ export namespace authentication {
|
|
|
2746
2747
|
*
|
|
2747
2748
|
* @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives
|
|
2748
2749
|
* this value in its callback or via the `Promise` return value
|
|
2749
|
-
* @param
|
|
2750
|
+
* @param _callbackUrl - This parameter is deprecated and unused
|
|
2750
2751
|
*/
|
|
2751
|
-
function notifyFailure(
|
|
2752
|
+
function notifyFailure(result?: string): void;
|
|
2752
2753
|
/**
|
|
2753
2754
|
* @deprecated
|
|
2754
2755
|
* As of 2.0.0, this interface has been deprecated in favor of leveraging the `Promise` returned from {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>}
|
|
@@ -2824,6 +2825,10 @@ export namespace authentication {
|
|
|
2824
2825
|
* An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.
|
|
2825
2826
|
*/
|
|
2826
2827
|
silent?: boolean;
|
|
2828
|
+
/**
|
|
2829
|
+
* An optional identifier of the home tenant for which to acquire the acess token for (used in cross-tenant shared channels).
|
|
2830
|
+
*/
|
|
2831
|
+
tenantId?: string;
|
|
2827
2832
|
}
|
|
2828
2833
|
/**
|
|
2829
2834
|
* @deprecated
|
|
@@ -4995,35 +5000,55 @@ export namespace dialog {
|
|
|
4995
5000
|
*/
|
|
4996
5001
|
function submit(result?: string | object, appIds?: string | string[]): void;
|
|
4997
5002
|
/**
|
|
4998
|
-
*
|
|
4999
|
-
*
|
|
5000
|
-
* @remarks
|
|
5001
|
-
* This function is only intended to be called from code running within the dialog. Calling it from outside the dialog will have no effect.
|
|
5002
|
-
*
|
|
5003
|
-
* @param message - The message to send to the parent
|
|
5004
|
-
*
|
|
5005
|
-
* @beta
|
|
5006
|
-
*/
|
|
5007
|
-
function sendMessageToParentFromDialog(message: any): void;
|
|
5008
|
-
/**
|
|
5009
|
-
* Send message to the dialog from the parent
|
|
5010
|
-
*
|
|
5011
|
-
* @param message - The message to send
|
|
5012
|
-
*
|
|
5013
|
-
* @beta
|
|
5014
|
-
*/
|
|
5015
|
-
function sendMessageToDialog(message: any): void;
|
|
5016
|
-
/**
|
|
5017
|
-
* Register a listener that will be triggered when a message is received from the app that opened the dialog.
|
|
5003
|
+
* Subcapability that allows communication between the dialog and the parent app.
|
|
5018
5004
|
*
|
|
5019
5005
|
* @remarks
|
|
5020
|
-
*
|
|
5021
|
-
*
|
|
5022
|
-
* @param listener - The listener that will be triggered.
|
|
5006
|
+
* Note that dialog can be invoked from parentless scenarios e.g. Search Message Extensions. The subcapability `parentCommunication` is not supported in such scenarios.
|
|
5023
5007
|
*
|
|
5024
5008
|
* @beta
|
|
5025
5009
|
*/
|
|
5026
|
-
|
|
5010
|
+
namespace parentCommunication {
|
|
5011
|
+
/**
|
|
5012
|
+
* Send message to the parent from dialog
|
|
5013
|
+
*
|
|
5014
|
+
* @remarks
|
|
5015
|
+
* This function is only intended to be called from code running within the dialog. Calling it from outside the dialog will have no effect.
|
|
5016
|
+
*
|
|
5017
|
+
* @param message - The message to send to the parent
|
|
5018
|
+
*
|
|
5019
|
+
* @beta
|
|
5020
|
+
*/
|
|
5021
|
+
function sendMessageToParentFromDialog(message: any): void;
|
|
5022
|
+
/**
|
|
5023
|
+
* Send message to the dialog from the parent
|
|
5024
|
+
*
|
|
5025
|
+
* @param message - The message to send
|
|
5026
|
+
*
|
|
5027
|
+
* @beta
|
|
5028
|
+
*/
|
|
5029
|
+
function sendMessageToDialog(message: any): void;
|
|
5030
|
+
/**
|
|
5031
|
+
* Register a listener that will be triggered when a message is received from the app that opened the dialog.
|
|
5032
|
+
*
|
|
5033
|
+
* @remarks
|
|
5034
|
+
* This function is only intended to be called from code running within the dialog. Calling it from outside the dialog will have no effect.
|
|
5035
|
+
*
|
|
5036
|
+
* @param listener - The listener that will be triggered.
|
|
5037
|
+
*
|
|
5038
|
+
* @beta
|
|
5039
|
+
*/
|
|
5040
|
+
function registerOnMessageFromParent(listener: PostMessageChannel): void;
|
|
5041
|
+
/**
|
|
5042
|
+
* Checks if dialog.url.parentCommunication capability is supported by the host
|
|
5043
|
+
*
|
|
5044
|
+
* @returns boolean to represent whether dialog.url.parentCommunication capability is supported
|
|
5045
|
+
*
|
|
5046
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
5047
|
+
*
|
|
5048
|
+
* @beta
|
|
5049
|
+
*/
|
|
5050
|
+
function isSupported(): boolean;
|
|
5051
|
+
}
|
|
5027
5052
|
/**
|
|
5028
5053
|
* Checks if dialog.url module is supported by the host
|
|
5029
5054
|
*
|
|
@@ -5285,6 +5310,9 @@ export function getTabInstancesHelper(apiVersionTag: string, tabInstanceParamete
|
|
|
5285
5310
|
export function getMruTabInstancesHelper(apiVersionTag: string, tabInstanceParameters?: TabInstanceParameters): Promise<TabInformation>;
|
|
5286
5311
|
export function shareDeepLinkHelper(apiVersionTag: string, deepLinkParameters: ShareDeepLinkParameters): void;
|
|
5287
5312
|
export function setCurrentFrameHelper(apiVersionTag: string, frameInfo: FrameInfo): void;
|
|
5313
|
+
export function configSetValidityStateHelper(apiVersionTag: string, validityState: boolean): void;
|
|
5314
|
+
export function getConfigHelper(apiVersionTag: string): Promise<pages.InstanceConfig>;
|
|
5315
|
+
export function configSetConfigHelper(apiVersionTag: string, instanceConfig: pages.InstanceConfig): Promise<void>;
|
|
5288
5316
|
/**
|
|
5289
5317
|
* Navigation-specific part of the SDK.
|
|
5290
5318
|
*/
|
|
@@ -5510,10 +5538,11 @@ export namespace pages {
|
|
|
5510
5538
|
* @internal
|
|
5511
5539
|
* Limited to Microsoft-internal use
|
|
5512
5540
|
*
|
|
5541
|
+
* @param apiVersionTag - The API version tag, which is used for telemetry, composed by API version number and source API name.
|
|
5513
5542
|
* @param handler - The handler to invoke when the user selects the Save button.
|
|
5514
5543
|
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
|
5515
5544
|
*/
|
|
5516
|
-
function registerOnSaveHandlerHelper(handler: (evt: SaveEvent) => void, versionSpecificHelper?: () => void): void;
|
|
5545
|
+
function registerOnSaveHandlerHelper(apiVersionTag: string, handler: (evt: SaveEvent) => void, versionSpecificHelper?: () => void): void;
|
|
5517
5546
|
/**
|
|
5518
5547
|
* Registers a handler for user attempts to remove content. This handler should be used
|
|
5519
5548
|
* to remove the underlying resource powering the content.
|
|
@@ -5529,10 +5558,11 @@ export namespace pages {
|
|
|
5529
5558
|
* @internal
|
|
5530
5559
|
* Limited to Microsoft-internal use
|
|
5531
5560
|
*
|
|
5561
|
+
* @param apiVersionTag - The API version tag, which is used for telemetry, composed by API version number and source API name.
|
|
5532
5562
|
* @param handler - The handler to invoke when the user selects the Remove button.
|
|
5533
5563
|
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
|
5534
5564
|
*/
|
|
5535
|
-
function registerOnRemoveHandlerHelper(handler: (evt: RemoveEvent) => void, versionSpecificHelper?: () => void): void;
|
|
5565
|
+
function registerOnRemoveHandlerHelper(apiVersionTag: string, handler: (evt: RemoveEvent) => void, versionSpecificHelper?: () => void): void;
|
|
5536
5566
|
/**
|
|
5537
5567
|
* Registers a handler for when the tab configuration is changed by the user
|
|
5538
5568
|
* @param handler - The handler to invoke when the user clicks on Settings.
|
|
@@ -5638,6 +5668,8 @@ export namespace pages {
|
|
|
5638
5668
|
* Hide from docs
|
|
5639
5669
|
* ------
|
|
5640
5670
|
* Provides APIs to interact with the full-trust part of the SDK. Limited to 1P applications
|
|
5671
|
+
* @internal
|
|
5672
|
+
* Limited to Microsoft-internal use
|
|
5641
5673
|
*/
|
|
5642
5674
|
namespace fullTrust {
|
|
5643
5675
|
/**
|
|
@@ -5645,6 +5677,7 @@ export namespace pages {
|
|
|
5645
5677
|
* Hide from docs
|
|
5646
5678
|
* ------
|
|
5647
5679
|
* Place the tab into full-screen mode.
|
|
5680
|
+
*
|
|
5648
5681
|
*/
|
|
5649
5682
|
function enterFullscreen(): void;
|
|
5650
5683
|
/**
|
|
@@ -9713,7 +9746,7 @@ export { VideoEffectCallBack as DefaultVideoEffectCallBack };
|
|
|
9713
9746
|
* This class is used to monitor the performance of video processing, and report performance events.
|
|
9714
9747
|
*/
|
|
9715
9748
|
export class VideoPerformanceMonitor {
|
|
9716
|
-
constructor(reportPerformanceEvent: (actionName: string, args: unknown[]) => void);
|
|
9749
|
+
constructor(reportPerformanceEvent: (apiVersionTag: string, actionName: string, args: unknown[]) => void);
|
|
9717
9750
|
/**
|
|
9718
9751
|
* Start to check frame processing time intervally
|
|
9719
9752
|
* and report performance event if the average frame processing time is too long.
|