@microsoft/teams-js 2.9.0-beta.0 → 2.9.1

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.8.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.9.1/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.8.0/js/MicrosoftTeams.min.js"
49
- integrity="sha384-/DJ9oJEFZSpGiUQx9Na5Yb5svOPPqSb3khKxJ/YgoZ2GtrkzWgSTBpESy3LvMPVk"
48
+ src="https://res.cdn.office.net/teams-js/2.9.1/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-xnsUQ1tUqsrutBJl0vuf4/hufzLFWW8ZhGnhItfpQ0/BtWgM2uw6YT6BQ5YaKBSM"
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.8.0/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.9.1/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -2208,26 +2208,45 @@ export namespace videoEx {
2208
2208
  * This object is used for starting or completing authentication flows.
2209
2209
  */
2210
2210
  export namespace authentication {
2211
+ /**
2212
+ * @hidden
2213
+ * @internal
2214
+ * Limited to Microsoft-internal use; automatically called when library is initialized
2215
+ */
2211
2216
  function initialize(): void;
2212
2217
  /**
2213
2218
  * @deprecated
2214
- * As of 2.0.0, this function has been deprecated in favor of a Promise-based pattern.
2215
- * Registers the authentication Communication.handlers
2219
+ * As of 2.0.0, this function has been deprecated in favor of a Promise-based pattern using {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>}
2216
2220
  *
2217
- * @param authenticateParameters - A set of values that configure the authentication pop-up.
2221
+ * Registers handlers to be called with the result of an authentication flow triggered using {@link authentication.authenticate authentication.authenticate(authenticateParameters?: AuthenticateParameters): void}
2222
+ *
2223
+ * @param authenticateParameters - Configuration for authentication flow pop-up result communication
2218
2224
  */
2219
2225
  function registerAuthenticationHandlers(authenticateParameters: AuthenticateParameters): void;
2220
2226
  /**
2221
- * Initiates an authentication request, which opens a new window with the specified settings.
2227
+ * Initiates an authentication flow which requires a new window.
2228
+ * There are two primary uses for this function:
2229
+ * 1. When your app needs to authenticate using a 3rd-party identity provider (not Azure Active Directory)
2230
+ * 2. When your app needs to show authentication UI that is blocked from being shown in an iframe (e.g., Azure Active Directory consent prompts)
2231
+ *
2232
+ * For more details, see [Enable authentication using third-party OAuth provider](https://learn.microsoft.com/microsoftteams/platform/tabs/how-to/authentication/auth-flow-tab)
2233
+ *
2234
+ * This function is *not* needed for "standard" Azure SSO usage. Using {@link getAuthToken} is usually sufficient in that case. For more, see
2235
+ * [Enable SSO for tab apps](https://learn.microsoft.com/microsoftteams/platform/tabs/how-to/authentication/tab-sso-overview))
2222
2236
  *
2223
2237
  * @remarks
2224
2238
  * The authentication flow must start and end from the same domain, otherwise success and failure messages won't be returned to the window that initiated the call.
2239
+ * The [Teams authentication flow](https://learn.microsoft.com/microsoftteams/platform/tabs/how-to/authentication/auth-flow-tab) starts and ends at an endpoint on
2240
+ * your own service (with a redirect round-trip to the 3rd party identity provider in the middle).
2225
2241
  *
2226
- * @param authenticateParameters - The parameters for the authentication request. It is a required parameter since v2 upgrade
2242
+ * @param authenticateParameters - Parameters describing the authentication window used for executing the authentication flow
2227
2243
  *
2228
- * @returns Promise that will be fulfilled with the result from the authentication pop-up if successful.
2244
+ * @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
2245
+ * passed by your app when it calls {@link notifySuccess} in the pop-up window after returning from the identity provider redirect.
2229
2246
  *
2230
- * @throws Error if the authentication request fails or is canceled by the user.
2247
+ * @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
2248
+ * {@link notifyFailure} in the pop-up window after returning from the identity provider redirect. However, in some cases it can also be provided by
2249
+ * the infrastructure depending on the failure (e.g., a user cancelation)
2231
2250
  *
2232
2251
  */
2233
2252
  function authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise<string>;
@@ -2235,30 +2254,36 @@ export namespace authentication {
2235
2254
  * @deprecated
2236
2255
  * As of 2.0.0, please use {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>} instead.
2237
2256
  *
2238
- * Initiates an authentication request, which opens a new window with the specified settings.
2239
- *
2240
- * @remarks
2241
- * The authentication flow must start and end from the same domain, otherwise success and failure messages won't be returned to the window that initiated the call.
2257
+ * The documentation for {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>} applies
2258
+ * to this function.
2259
+ * The one difference is that instead of the result being returned via the `Promise`, the result is returned to the callback functions provided in the
2260
+ * `authenticateParameters` parameter.
2242
2261
  *
2243
- * @param authenticateParameters - The parameters for the authentication request.
2262
+ * @param authenticateParameters - Parameters describing the authentication window used for executing the authentication flow and callbacks used for indicating the result
2244
2263
  *
2245
2264
  */
2246
2265
  function authenticate(authenticateParameters?: AuthenticateParameters): void;
2247
2266
  /**
2248
- * Requests an Azure AD token to be issued on behalf of the app. The token is acquired from the cache
2249
- * if it is not expired. Otherwise a request is sent to Azure AD to obtain a new token.
2267
+ * Requests an Azure AD token to be issued on behalf of your app in an SSO flow.
2268
+ * The token is acquired from the cache if it is not expired. Otherwise a request is sent to Azure AD to
2269
+ * obtain a new token.
2270
+ * This function is used to enable SSO scenarios. See [Enable SSO for tab apps](https://learn.microsoft.com/microsoftteams/platform/tabs/how-to/authentication/tab-sso-overview)
2271
+ * for more details.
2250
2272
  *
2251
2273
  * @param authTokenRequest - An optional set of values that configure the token request.
2252
2274
  *
2253
- * @returns Promise that will be fulfilled with the token if successful.
2275
+ * @returns `Promise` that will be resolved with the token, if successful.
2276
+ *
2277
+ * @throws `Error` if the request fails in some way
2254
2278
  */
2255
2279
  function getAuthToken(authTokenRequest?: AuthTokenRequestParameters): Promise<string>;
2256
2280
  /**
2257
2281
  * @deprecated
2258
2282
  * As of 2.0.0, please use {@link authentication.getAuthToken authentication.getAuthToken(authTokenRequest: AuthTokenRequestParameters): Promise\<string\>} instead.
2259
2283
  *
2260
- * Requests an Azure AD token to be issued on behalf of the app. The token is acquired from the cache
2261
- * if it is not expired. Otherwise a request is sent to Azure AD to obtain a new token.
2284
+ * The documentation {@link authentication.getAuthToken authentication.getAuthToken(authTokenRequest: AuthTokenRequestParameters): Promise\<string\>} applies to this
2285
+ * function as well. The one difference when using this function is that the result is provided in the callbacks in the `authTokenRequest` parameter
2286
+ * instead of as a `Promise`.
2262
2287
  *
2263
2288
  * @param authTokenRequest - An optional set of values that configure the token request.
2264
2289
  * It contains callbacks to call in case of success/failure
@@ -2287,30 +2312,39 @@ export namespace authentication {
2287
2312
  */
2288
2313
  function getUser(userRequest: UserRequest): void;
2289
2314
  /**
2290
- * Notifies the frame that initiated this authentication request that the request was successful.
2315
+ * When using {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>}, the
2316
+ * window that was opened to execute the authentication flow should call this method after authentiction to notify the caller of
2317
+ * {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>} that the
2318
+ * authentication request was successful.
2291
2319
  *
2292
2320
  * @remarks
2293
- * This function is usable only on the authentication window.
2321
+ * This function is usable only from the authentication window.
2294
2322
  * This call causes the authentication window to be closed.
2295
2323
  *
2296
- * @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives this value in its callback.
2324
+ * @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives
2325
+ * this value in its callback or via the `Promise` return value
2297
2326
  * @param callbackUrl - Specifies the url to redirect back to if the client is Win32 Outlook.
2298
2327
  */
2299
2328
  function notifySuccess(result?: string, callbackUrl?: string): void;
2300
2329
  /**
2301
- * Notifies the frame that initiated this authentication request that the request failed.
2330
+ * When using {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>}, the
2331
+ * window that was opened to execute the authentication flow should call this method after authentiction to notify the caller of
2332
+ * {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>} that the
2333
+ * authentication request failed.
2334
+
2302
2335
  *
2303
2336
  * @remarks
2304
2337
  * This function is usable only on the authentication window.
2305
2338
  * This call causes the authentication window to be closed.
2306
2339
  *
2307
- * @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives this value in its callback.
2340
+ * @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives
2341
+ * this value in its callback or via the `Promise` return value
2308
2342
  * @param callbackUrl - Specifies the url to redirect back to if the client is Win32 Outlook.
2309
2343
  */
2310
2344
  function notifyFailure(reason?: string, callbackUrl?: string): void;
2311
2345
  /**
2312
2346
  * @deprecated
2313
- * As of 2.0.0, this interface has been deprecated in favor of a Promise-based pattern.
2347
+ * 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\>}
2314
2348
  *-------------------------
2315
2349
  * Used in {@link AuthenticateParameters} and {@link AuthTokenRequest}
2316
2350
  */
@@ -2318,12 +2352,14 @@ export namespace authentication {
2318
2352
  /**
2319
2353
  * @deprecated
2320
2354
  * As of 2.0.0, this property has been deprecated in favor of a Promise-based pattern.
2355
+ *
2321
2356
  * A function that is called if the request succeeds.
2322
2357
  */
2323
2358
  successCallback?: (result: string) => void;
2324
2359
  /**
2325
2360
  * @deprecated
2326
2361
  * As of 2.0.0, this property has been deprecated in favor of a Promise-based pattern.
2362
+ *
2327
2363
  * A function that is called if the request fails, with the reason for the failure.
2328
2364
  */
2329
2365
  failureCallback?: (reason: string) => void;
@@ -2345,13 +2381,22 @@ export namespace authentication {
2345
2381
  */
2346
2382
  height?: number;
2347
2383
  /**
2348
- * The flag which indicates whether the auth page should be opened in an external browser. This flag has no effect on the web client.
2384
+ * Some identity providers restrict their authentication pages from being displayed in embedded browsers (e.g., a web view inside of a native application)
2385
+ * If the identity provider you are using prevents embedded browser usage, this flag should be set to `true` to enable the authentication page specified in
2386
+ * the {@link url} property to be opened in an external browser.
2387
+ * If this flag is `false`, the page will be opened directly within the current hosting application.
2388
+ *
2389
+ * This flag is ignored when the host for the application is a web app (as opposed to a native application) as the behavior is unnecessary in a web-only
2390
+ * environment without an embedded browser.
2349
2391
  */
2350
2392
  isExternal?: boolean;
2351
2393
  }
2352
2394
  /**
2353
2395
  * @deprecated
2354
- * As of 2.0.0, please use {@link AuthenticatePopUpParameters} instead.
2396
+ * As of 2.0.0, please use {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>} and
2397
+ * the associated {@link AuthenticatePopUpParameters} instead.
2398
+ *
2399
+ * @see {@link LegacyCallBacks}
2355
2400
  */
2356
2401
  type AuthenticateParameters = AuthenticatePopUpParameters & LegacyCallBacks;
2357
2402
  /**
@@ -2359,7 +2404,9 @@ export namespace authentication {
2359
2404
  */
2360
2405
  interface AuthTokenRequestParameters {
2361
2406
  /**
2362
- * An optional list of resource for which to acquire the access token; only used for full trust apps.
2407
+ * @hidden
2408
+ * @internal
2409
+ * An list of resources for which to acquire the access token; only for internal Microsoft usage
2363
2410
  */
2364
2411
  resources?: string[];
2365
2412
  /**
@@ -2600,7 +2647,11 @@ export enum HostName {
2600
2647
  /**
2601
2648
  * Teams
2602
2649
  */
2603
- teams = "Teams"
2650
+ teams = "Teams",
2651
+ /**
2652
+ * Modern Teams
2653
+ */
2654
+ teamsModern = "TeamsModern"
2604
2655
  }
2605
2656
  export enum FrameContexts {
2606
2657
  settings = "settings",
@@ -4196,7 +4247,15 @@ export namespace chat {
4196
4247
  export {};
4197
4248
 
4198
4249
  /**
4199
- * Namespace to interact with the dialog module-specific part of the SDK.
4250
+ * This group of capabilities enables apps to show modal dialogs. There are two primary types of dialogs: URL-based dialogs and [Adaptive Card](https://learn.microsoft.com/adaptive-cards/) dialogs.
4251
+ * Both types of dialogs are shown on top of your app, preventing interaction with your app while they are displayed.
4252
+ * - URL-based dialogs allow you to specify a URL from which the contents will be shown inside the dialog.
4253
+ * - For URL dialogs, use the functions and interfaces in the {@link dialog.url} namespace.
4254
+ * - Adaptive Card-based dialogs allow you to provide JSON describing an Adaptive Card that will be shown inside the dialog.
4255
+ * - For Adaptive Card dialogs, use the functions and interfaces in the {@link dialog.adaptiveCard} namespace.
4256
+ *
4257
+ * @remarks Note that dialogs were previously called "task modules". While they have been renamed for clarity, the functionality has been maintained.
4258
+ * For more details, see [Dialogs](https://learn.microsoft.com/microsoftteams/platform/task-modules-and-cards/what-are-task-modules)
4200
4259
  *
4201
4260
  * @beta
4202
4261
  */
@@ -4227,6 +4286,9 @@ export namespace dialog {
4227
4286
  /**
4228
4287
  * Handler used for receiving results when a dialog closes, either the value passed by {@linkcode url.submit}
4229
4288
  * or an error if the dialog was closed by the user.
4289
+ *
4290
+ * @see {@linkcode ISdkResponse}
4291
+ *
4230
4292
  * @beta
4231
4293
  */
4232
4294
  type DialogSubmitHandler = (result: ISdkResponse) => void;
@@ -4359,14 +4421,11 @@ export namespace dialog {
4359
4421
  function getDialogInfoFromBotUrlDialogInfo(botUrlDialogInfo: BotUrlDialogInfo): DialogInfo;
4360
4422
  }
4361
4423
  /**
4362
- * Checks if dialog capability is supported by the host
4363
- * @returns boolean to represent whether dialog capabilty is supported
4364
- *
4365
- * @throws Error if {@linkcode app.initialize} has not successfully completed
4424
+ * This function currently serves no purpose and should not be used. All functionality that used
4425
+ * to be covered by this method is now in subcapabilities and those isSupported methods should be
4426
+ * used directly.
4366
4427
  *
4367
- * @throws Error if {@linkcode app.initialize} has not successfully completed
4368
- *
4369
- * @beta
4428
+ * @hidden
4370
4429
  */
4371
4430
  function isSupported(): boolean;
4372
4431
  /**
@@ -7422,9 +7481,13 @@ export namespace settings {
7422
7481
  export namespace tasks {
7423
7482
  /**
7424
7483
  * @deprecated
7425
- * As of 2.8.0, please use {@link dialog.url.open dialog.url.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for url based dialogs
7426
- * and {@link dialog.url.bot.open dialog.url.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for bot-based dialogs. In Teams,
7427
- * this function can be used for Adaptive Card-based dialogs. Support for Adaptive Card-based dialogs is coming to other hosts in the future.
7484
+ * As of 2.8.0:
7485
+ * - For url-based dialogs, please use {@link dialog.url.open dialog.url.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} .
7486
+ * - For url-based dialogs with bot interaction, please use {@link dialog.url.bot.open dialog.url.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void}
7487
+ * - For Adaptive Card-based dialogs:
7488
+ * - In Teams, please continue to use this function until the new functions in {@link dialog.adaptiveCard} have been fully implemented. You can tell at runtime when they are implemented in Teams by checking
7489
+ * the return value of the {@link dialog.adaptiveCard.isSupported} function. This documentation line will also be removed once they have been fully implemented in Teams.
7490
+ * - In all other hosts, please use {@link dialog.adaptiveCard.open dialog.adaptiveCard.open(cardDialogInfo: CardDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void}
7428
7491
  *
7429
7492
  * Allows an app to open the task module.
7430
7493
  *
@@ -7,7 +7,7 @@
7
7
  exports["microsoftTeams"] = factory();
8
8
  else
9
9
  root["microsoftTeams"] = factory();
10
- })(self, function() {
10
+ })(self, () => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
@@ -1477,6 +1477,10 @@ var HostName;
1477
1477
  * Teams
1478
1478
  */
1479
1479
  HostName["teams"] = "Teams";
1480
+ /**
1481
+ * Modern Teams
1482
+ */
1483
+ HostName["teamsModern"] = "TeamsModern";
1480
1484
  })(HostName || (HostName = {}));
1481
1485
  // Ensure these declarations stay in sync with the framework.
1482
1486
  var FrameContexts;
@@ -2151,7 +2155,7 @@ var _minRuntimeConfigToUninitialize = {
2151
2155
  };
2152
2156
 
2153
2157
  ;// CONCATENATED MODULE: ./src/public/version.ts
2154
- var version = "2.9.0-beta.0";
2158
+ var version = "2.9.1";
2155
2159
 
2156
2160
  ;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
2157
2161
 
@@ -2302,6 +2306,11 @@ var authentication;
2302
2306
  (function (authentication) {
2303
2307
  var authHandlers;
2304
2308
  var authWindowMonitor;
2309
+ /**
2310
+ * @hidden
2311
+ * @internal
2312
+ * Limited to Microsoft-internal use; automatically called when library is initialized
2313
+ */
2305
2314
  function initialize() {
2306
2315
  registerHandler('authentication.authenticate.success', handleSuccess, false);
2307
2316
  registerHandler('authentication.authenticate.failure', handleFailure, false);
@@ -2310,10 +2319,11 @@ var authentication;
2310
2319
  var authParams;
2311
2320
  /**
2312
2321
  * @deprecated
2313
- * As of 2.0.0, this function has been deprecated in favor of a Promise-based pattern.
2314
- * Registers the authentication Communication.handlers
2322
+ * As of 2.0.0, this function has been deprecated in favor of a Promise-based pattern using {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>}
2315
2323
  *
2316
- * @param authenticateParameters - A set of values that configure the authentication pop-up.
2324
+ * Registers handlers to be called with the result of an authentication flow triggered using {@link authentication.authenticate authentication.authenticate(authenticateParameters?: AuthenticateParameters): void}
2325
+ *
2326
+ * @param authenticateParameters - Configuration for authentication flow pop-up result communication
2317
2327
  */
2318
2328
  function registerAuthenticationHandlers(authenticateParameters) {
2319
2329
  authParams = authenticateParameters;
@@ -2563,13 +2573,17 @@ var authentication;
2563
2573
  });
2564
2574
  }
2565
2575
  /**
2566
- * Notifies the frame that initiated this authentication request that the request was successful.
2576
+ * When using {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>}, the
2577
+ * window that was opened to execute the authentication flow should call this method after authentiction to notify the caller of
2578
+ * {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>} that the
2579
+ * authentication request was successful.
2567
2580
  *
2568
2581
  * @remarks
2569
- * This function is usable only on the authentication window.
2582
+ * This function is usable only from the authentication window.
2570
2583
  * This call causes the authentication window to be closed.
2571
2584
  *
2572
- * @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives this value in its callback.
2585
+ * @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives
2586
+ * this value in its callback or via the `Promise` return value
2573
2587
  * @param callbackUrl - Specifies the url to redirect back to if the client is Win32 Outlook.
2574
2588
  */
2575
2589
  function notifySuccess(result, callbackUrl) {
@@ -2581,13 +2595,18 @@ var authentication;
2581
2595
  }
2582
2596
  authentication.notifySuccess = notifySuccess;
2583
2597
  /**
2584
- * Notifies the frame that initiated this authentication request that the request failed.
2598
+ * When using {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>}, the
2599
+ * window that was opened to execute the authentication flow should call this method after authentiction to notify the caller of
2600
+ * {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>} that the
2601
+ * authentication request failed.
2602
+
2585
2603
  *
2586
2604
  * @remarks
2587
2605
  * This function is usable only on the authentication window.
2588
2606
  * This call causes the authentication window to be closed.
2589
2607
  *
2590
- * @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives this value in its callback.
2608
+ * @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives
2609
+ * this value in its callback or via the `Promise` return value
2591
2610
  * @param callbackUrl - Specifies the url to redirect back to if the client is Win32 Outlook.
2592
2611
  */
2593
2612
  function notifyFailure(reason, callbackUrl) {
@@ -2698,7 +2717,15 @@ var authentication;
2698
2717
 
2699
2718
 
2700
2719
  /**
2701
- * Namespace to interact with the dialog module-specific part of the SDK.
2720
+ * This group of capabilities enables apps to show modal dialogs. There are two primary types of dialogs: URL-based dialogs and [Adaptive Card](https://learn.microsoft.com/adaptive-cards/) dialogs.
2721
+ * Both types of dialogs are shown on top of your app, preventing interaction with your app while they are displayed.
2722
+ * - URL-based dialogs allow you to specify a URL from which the contents will be shown inside the dialog.
2723
+ * - For URL dialogs, use the functions and interfaces in the {@link dialog.url} namespace.
2724
+ * - Adaptive Card-based dialogs allow you to provide JSON describing an Adaptive Card that will be shown inside the dialog.
2725
+ * - For Adaptive Card dialogs, use the functions and interfaces in the {@link dialog.adaptiveCard} namespace.
2726
+ *
2727
+ * @remarks Note that dialogs were previously called "task modules". While they have been renamed for clarity, the functionality has been maintained.
2728
+ * For more details, see [Dialogs](https://learn.microsoft.com/microsoftteams/platform/task-modules-and-cards/what-are-task-modules)
2702
2729
  *
2703
2730
  * @beta
2704
2731
  */
@@ -2947,14 +2974,11 @@ var dialog;
2947
2974
  url.getDialogInfoFromBotUrlDialogInfo = getDialogInfoFromBotUrlDialogInfo;
2948
2975
  })(url = dialog.url || (dialog.url = {}));
2949
2976
  /**
2950
- * Checks if dialog capability is supported by the host
2951
- * @returns boolean to represent whether dialog capabilty is supported
2952
- *
2953
- * @throws Error if {@linkcode app.initialize} has not successfully completed
2977
+ * This function currently serves no purpose and should not be used. All functionality that used
2978
+ * to be covered by this method is now in subcapabilities and those isSupported methods should be
2979
+ * used directly.
2954
2980
  *
2955
- * @throws Error if {@linkcode app.initialize} has not successfully completed
2956
- *
2957
- * @beta
2981
+ * @hidden
2958
2982
  */
2959
2983
  function isSupported() {
2960
2984
  return ensureInitialized(runtime) && runtime.supports.dialog ? true : false;
@@ -8808,9 +8832,13 @@ var tasks;
8808
8832
  (function (tasks) {
8809
8833
  /**
8810
8834
  * @deprecated
8811
- * As of 2.8.0, please use {@link dialog.url.open dialog.url.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for url based dialogs
8812
- * and {@link dialog.url.bot.open dialog.url.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for bot-based dialogs. In Teams,
8813
- * this function can be used for Adaptive Card-based dialogs. Support for Adaptive Card-based dialogs is coming to other hosts in the future.
8835
+ * As of 2.8.0:
8836
+ * - For url-based dialogs, please use {@link dialog.url.open dialog.url.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} .
8837
+ * - For url-based dialogs with bot interaction, please use {@link dialog.url.bot.open dialog.url.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void}
8838
+ * - For Adaptive Card-based dialogs:
8839
+ * - In Teams, please continue to use this function until the new functions in {@link dialog.adaptiveCard} have been fully implemented. You can tell at runtime when they are implemented in Teams by checking
8840
+ * the return value of the {@link dialog.adaptiveCard.isSupported} function. This documentation line will also be removed once they have been fully implemented in Teams.
8841
+ * - In all other hosts, please use {@link dialog.adaptiveCard.open dialog.adaptiveCard.open(cardDialogInfo: CardDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void}
8814
8842
  *
8815
8843
  * Allows an app to open the task module.
8816
8844
  *