@microsoft/teams-js 2.0.0-beta.2-dev.0 → 2.0.0-beta.2-dev.4

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.
@@ -23,8 +23,8 @@ declare module '@microsoft/teams-js/private/index' {
23
23
 
24
24
  declare module '@microsoft/teams-js/public/index' {
25
25
  export { authentication } from '@microsoft/teams-js/public/authentication';
26
- export { FrameContexts, HostClientType, DialogDimension, TaskModuleDimension, TeamType, UserTeamRole, ChannelType, } from '@microsoft/teams-js/public/constants';
27
- export { Context, DeepLinkParameters, ErrorCode, LoadContext, SdkError, TabInformation, TabInstance, TabInstanceParameters, DialogInfo, TeamInformation, FileOpenPreference, OpenConversationRequest, } from '@microsoft/teams-js/public/interfaces';
26
+ export { FrameContexts, HostClientType, DialogDimension, TaskModuleDimension, TeamType, UserTeamRole, ChannelType, HostName, } from '@microsoft/teams-js/public/constants';
27
+ export { Context, DeepLinkParameters, ErrorCode, LoadContext, SdkError, TabInformation, TabInstance, TabInstanceParameters, DialogInfo, TeamInformation, FileOpenPreference, OpenConversationRequest, LocaleInfo, FrameInfo, } from '@microsoft/teams-js/public/interfaces';
28
28
  export { app, core } from '@microsoft/teams-js/public/app';
29
29
  export { appInstallDialog } from '@microsoft/teams-js/public/appInstallDialog';
30
30
  export { dialog } from '@microsoft/teams-js/public/dialog';
@@ -1378,7 +1378,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1378
1378
  * @beta
1379
1379
  */
1380
1380
  export namespace authentication {
1381
- export function initialize(): void;
1381
+ function initialize(): void;
1382
1382
  /**
1383
1383
  * @deprecated with Teams JS v2 upgrades
1384
1384
  *
@@ -1386,7 +1386,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1386
1386
  *
1387
1387
  * @param authenticateParameters - A set of values that configure the authentication pop-up.
1388
1388
  */
1389
- export function registerAuthenticationHandlers(authenticateParameters: AuthenticateParameters): void;
1389
+ function registerAuthenticationHandlers(authenticateParameters: AuthenticateParameters): void;
1390
1390
  /**
1391
1391
  * @deprecated with Teams JS v2 upgrades
1392
1392
  *
@@ -1395,7 +1395,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1395
1395
  * @param authenticateParameters - The parameters for the authentication request.
1396
1396
  *
1397
1397
  */
1398
- export function authenticate(authenticateParameters?: AuthenticateParameters): void;
1398
+ function authenticate(authenticateParameters?: AuthenticateParameters): void;
1399
1399
  /**
1400
1400
  * Initiates an authentication request, which opens a new window with the specified settings.
1401
1401
  *
@@ -1406,7 +1406,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1406
1406
  * @throws if the authentication request fails or is canceled by the user.
1407
1407
  *
1408
1408
  */
1409
- export function authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise<string>;
1409
+ function authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise<string>;
1410
1410
  /**
1411
1411
  * @deprecated with Teams JS v2 upgrades
1412
1412
  *
@@ -1416,7 +1416,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1416
1416
  * @param authTokenRequest - A set of values that configure the token request.
1417
1417
  * It contains callbacks to call in case of success/failure
1418
1418
  */
1419
- export function getAuthToken(authTokenRequest: AuthTokenRequest): void;
1419
+ function getAuthToken(authTokenRequest: AuthTokenRequest): void;
1420
1420
  /**
1421
1421
  * Requests an Azure AD token to be issued on behalf of the app. The token is acquired from the cache
1422
1422
  * if it is not expired. Otherwise a request is sent to Azure AD to obtain a new token.
@@ -1425,7 +1425,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1425
1425
  *
1426
1426
  * @returns Promise that will be fulfilled with the token if successful.
1427
1427
  */
1428
- export function getAuthToken(authTokenRequest: AuthTokenRequestParameters): Promise<string>;
1428
+ function getAuthToken(authTokenRequest: AuthTokenRequestParameters): Promise<string>;
1429
1429
  /**
1430
1430
  * @hidden
1431
1431
  * Hide from docs.
@@ -1436,7 +1436,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1436
1436
  *
1437
1437
  * @internal
1438
1438
  */
1439
- export function getUser(): Promise<UserProfile>;
1439
+ function getUser(): Promise<UserProfile>;
1440
1440
  /**
1441
1441
  * @deprecated with Teams JS v2 upgrades
1442
1442
  *
@@ -1448,7 +1448,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1448
1448
  * @param userRequest - It passes success/failure callbacks in the userRequest object(deprecated)
1449
1449
  * @internal
1450
1450
  */
1451
- export function getUser(userRequest: UserRequest): void;
1451
+ function getUser(userRequest: UserRequest): void;
1452
1452
  /**
1453
1453
  * Notifies the frame that initiated this authentication request that the request was successful.
1454
1454
  *
@@ -1459,7 +1459,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1459
1459
  * @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives this value in its callback.
1460
1460
  * @param callbackUrl - Specifies the url to redirect back to if the client is Win32 Outlook.
1461
1461
  */
1462
- export function notifySuccess(result?: string, callbackUrl?: string): void;
1462
+ function notifySuccess(result?: string, callbackUrl?: string): void;
1463
1463
  /**
1464
1464
  * Notifies the frame that initiated this authentication request that the request failed.
1465
1465
  *
@@ -1470,7 +1470,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1470
1470
  * @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives this value in its callback.
1471
1471
  * @param callbackUrl - Specifies the url to redirect back to if the client is Win32 Outlook.
1472
1472
  */
1473
- export function notifyFailure(reason?: string, callbackUrl?: string): void;
1473
+ function notifyFailure(reason?: string, callbackUrl?: string): void;
1474
1474
  /**
1475
1475
  * @deprecated with TeamsJS v2 upgrades
1476
1476
  */
@@ -1486,7 +1486,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1486
1486
  */
1487
1487
  failureCallback?: (reason: string) => void;
1488
1488
  }
1489
- export interface AuthenticatePopUpParameters {
1489
+ interface AuthenticatePopUpParameters {
1490
1490
  /**
1491
1491
  * The URL for the authentication pop-up.
1492
1492
  */
@@ -1503,8 +1503,8 @@ declare module '@microsoft/teams-js/public/authentication' {
1503
1503
  /**
1504
1504
  * @deprecated with TeamsJS v2 upgrades
1505
1505
  */
1506
- export type AuthenticateParameters = AuthenticatePopUpParameters & LegacyCallBacks;
1507
- export interface AuthTokenRequestParameters {
1506
+ type AuthenticateParameters = AuthenticatePopUpParameters & LegacyCallBacks;
1507
+ interface AuthTokenRequestParameters {
1508
1508
  /**
1509
1509
  * An optional list of resource for which to acquire the access token; only used for full trust apps.
1510
1510
  */
@@ -1521,7 +1521,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1521
1521
  /**
1522
1522
  * @deprecated with TeamsJS v2 upgrades
1523
1523
  */
1524
- export type AuthTokenRequest = AuthTokenRequestParameters & LegacyCallBacks;
1524
+ type AuthTokenRequest = AuthTokenRequestParameters & LegacyCallBacks;
1525
1525
  /**
1526
1526
  * @hidden
1527
1527
  * Hide from docs.
@@ -1529,7 +1529,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1529
1529
  *
1530
1530
  * @internal
1531
1531
  */
1532
- export interface UserProfile {
1532
+ interface UserProfile {
1533
1533
  /**
1534
1534
  * @hidden
1535
1535
  * The intended recipient of the token. The application that receives the token must verify that the audience
@@ -1624,7 +1624,7 @@ declare module '@microsoft/teams-js/public/authentication' {
1624
1624
  * ------
1625
1625
  * @internal
1626
1626
  */
1627
- export interface UserRequest {
1627
+ interface UserRequest {
1628
1628
  /**
1629
1629
  * A function that is called if the token request succeeds, with the resulting token.
1630
1630
  */
@@ -1634,7 +1634,6 @@ declare module '@microsoft/teams-js/public/authentication' {
1634
1634
  */
1635
1635
  failureCallback?: (reason: string) => void;
1636
1636
  }
1637
- export {};
1638
1637
  }
1639
1638
  }
1640
1639
 
@@ -4131,7 +4130,7 @@ declare module '@microsoft/teams-js/public/video' {
4131
4130
  /**
4132
4131
  * Represents a video frame.
4133
4132
  */
4134
- export interface VideoFrame {
4133
+ interface VideoFrame {
4135
4134
  /**
4136
4135
  * Video frame width.
4137
4136
  */
@@ -4160,13 +4159,13 @@ declare module '@microsoft/teams-js/public/video' {
4160
4159
  /**
4161
4160
  * Video frame format enum, currently only support NV12
4162
4161
  */
4163
- export enum VideoFrameFormat {
4162
+ enum VideoFrameFormat {
4164
4163
  NV12 = 0
4165
4164
  }
4166
4165
  /**
4167
4166
  * Video frame configuration supplied to Teams to customize the generated video frame parameters, like format.
4168
4167
  */
4169
- export interface VideoFrameConfig {
4168
+ interface VideoFrameConfig {
4170
4169
  /**
4171
4170
  * video format
4172
4171
  */
@@ -4175,7 +4174,7 @@ declare module '@microsoft/teams-js/public/video' {
4175
4174
  /**
4176
4175
  * Video effect change type enum
4177
4176
  */
4178
- export enum EffectChangeType {
4177
+ enum EffectChangeType {
4179
4178
  /**
4180
4179
  * current video effect changed.
4181
4180
  */
@@ -4196,7 +4195,7 @@ declare module '@microsoft/teams-js/public/video' {
4196
4195
  /**
4197
4196
  * register to read the video frames in Permissions section.
4198
4197
  */
4199
- export function registerForVideoFrame(frameCallback: VideoFrameCallback, config: VideoFrameConfig): void;
4198
+ function registerForVideoFrame(frameCallback: VideoFrameCallback, config: VideoFrameConfig): void;
4200
4199
  /**
4201
4200
  * video extension should call this to notify Teams Client current selected effect parameter changed.
4202
4201
  * If it's pre-meeting, Teams client will call videoEffectCallback immediately then use the videoEffect.
@@ -4205,13 +4204,12 @@ declare module '@microsoft/teams-js/public/video' {
4205
4204
  * @param effectChangeType - the effect change type.
4206
4205
  * @param effectId - Newly selected effect id.
4207
4206
  */
4208
- export function notifySelectedVideoEffectChanged(effectChangeType: EffectChangeType, effectId: string | undefined): void;
4207
+ function notifySelectedVideoEffectChanged(effectChangeType: EffectChangeType, effectId: string | undefined): void;
4209
4208
  /**
4210
4209
  * Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied.
4211
4210
  */
4212
- export function registerForVideoEffect(callback: VideoEffectCallBack): void;
4213
- export function isSupported(): boolean;
4214
- export {};
4211
+ function registerForVideoEffect(callback: VideoEffectCallBack): void;
4212
+ function isSupported(): boolean;
4215
4213
  }
4216
4214
  }
4217
4215
 
@@ -4711,8 +4709,8 @@ declare module '@microsoft/teams-js/public/tasks' {
4711
4709
 
4712
4710
  declare module '@microsoft/teams-js/public' {
4713
4711
  export { authentication } from '@microsoft/teams-js/public/authentication';
4714
- export { FrameContexts, HostClientType, DialogDimension, TaskModuleDimension, TeamType, UserTeamRole, ChannelType, } from '@microsoft/teams-js/public/constants';
4715
- export { Context, DeepLinkParameters, ErrorCode, LoadContext, SdkError, TabInformation, TabInstance, TabInstanceParameters, DialogInfo, TeamInformation, FileOpenPreference, OpenConversationRequest, } from '@microsoft/teams-js/public/interfaces';
4712
+ export { FrameContexts, HostClientType, DialogDimension, TaskModuleDimension, TeamType, UserTeamRole, ChannelType, HostName, } from '@microsoft/teams-js/public/constants';
4713
+ export { Context, DeepLinkParameters, ErrorCode, LoadContext, SdkError, TabInformation, TabInstance, TabInstanceParameters, DialogInfo, TeamInformation, FileOpenPreference, OpenConversationRequest, LocaleInfo, FrameInfo, } from '@microsoft/teams-js/public/interfaces';
4716
4714
  export { app, core } from '@microsoft/teams-js/public/app';
4717
4715
  export { appInstallDialog } from '@microsoft/teams-js/public/appInstallDialog';
4718
4716
  export { dialog } from '@microsoft/teams-js/public/dialog';
@@ -324,6 +324,7 @@ __webpack_require__.d(__webpack_exports__, {
324
324
  "FileOpenPreference": () => (/* reexport */ FileOpenPreference),
325
325
  "FrameContexts": () => (/* reexport */ FrameContexts),
326
326
  "HostClientType": () => (/* reexport */ HostClientType),
327
+ "HostName": () => (/* reexport */ HostName),
327
328
  "NotificationTypes": () => (/* reexport */ NotificationTypes),
328
329
  "ParentAppWindow": () => (/* reexport */ ParentAppWindow),
329
330
  "TaskModuleDimension": () => (/* reexport */ TaskModuleDimension),
@@ -394,7 +395,7 @@ __webpack_require__.d(__webpack_exports__, {
394
395
  });
395
396
 
396
397
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
397
- var version = '2.0.0-beta.2-dev.0';
398
+ var version = '2.0.0-beta.2-dev.4';
398
399
  /**
399
400
  * @hidden
400
401
  * The SDK version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.