@microsoft/teams-js 2.22.0-beta.0 → 2.22.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -4
- package/dist/MicrosoftTeams.d.ts +22 -22
- package/dist/MicrosoftTeams.js +456 -24
- 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 +35 -1
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.
|
27
|
+
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.22.0/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.
|
49
|
-
integrity="sha384-
|
48
|
+
src="https://res.cdn.office.net/teams-js/2.22.0/js/MicrosoftTeams.min.js"
|
49
|
+
integrity="sha384-WSG/sWulIv7rel5TnFlH8JTpxl2OxzZh9Lux2mIzBFiTRLFvMBeFv9VURu/3vQdx"
|
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.
|
54
|
+
<script src="node_modules/@microsoft/teams-js@2.22.0/dist/MicrosoftTeams.min.js"></script>
|
55
55
|
|
56
56
|
<!-- Microsoft Teams JavaScript API (via local) -->
|
57
57
|
<script src="MicrosoftTeams.min.js"></script>
|
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -3240,7 +3240,7 @@ export namespace authentication {
|
|
3240
3240
|
* @internal
|
3241
3241
|
* Limited to Microsoft-internal use
|
3242
3242
|
*/
|
3243
|
-
|
3243
|
+
enum DataResidency {
|
3244
3244
|
/**
|
3245
3245
|
* Public
|
3246
3246
|
*/
|
@@ -3306,7 +3306,7 @@ export enum HostClientType {
|
|
3306
3306
|
teamsDisplays = "teamsDisplays"
|
3307
3307
|
}
|
3308
3308
|
/** HostName indicates the possible hosts for your application. */
|
3309
|
-
export
|
3309
|
+
export enum HostName {
|
3310
3310
|
/**
|
3311
3311
|
* Office.com and Office Windows App
|
3312
3312
|
*/
|
@@ -3398,7 +3398,7 @@ export enum UserTeamRole {
|
|
3398
3398
|
/**
|
3399
3399
|
* Dialog module dimension enum
|
3400
3400
|
*/
|
3401
|
-
export
|
3401
|
+
export enum DialogDimension {
|
3402
3402
|
/** Represents a large-sized dialog box, which is typically used for displaying large amounts of content or complex workflows that require more space. */
|
3403
3403
|
Large = "large",
|
3404
3404
|
/** Represents a medium-sized dialog box, which is typically used for displaying moderate amounts of content or workflows that require less space. */
|
@@ -3414,7 +3414,7 @@ export import TaskModuleDimension = DialogDimension;
|
|
3414
3414
|
/**
|
3415
3415
|
* The type of the channel with which the content is associated.
|
3416
3416
|
*/
|
3417
|
-
export
|
3417
|
+
export enum ChannelType {
|
3418
3418
|
/** The default channel type. Type of channel is used for general collaboration and communication within a team. */
|
3419
3419
|
Regular = "Regular",
|
3420
3420
|
/** Type of channel is used for sensitive or confidential communication within a team and is only accessible to members of the channel. */
|
@@ -3610,7 +3610,7 @@ export interface LocaleInfo {
|
|
3610
3610
|
/**
|
3611
3611
|
* Allowed user file open preferences
|
3612
3612
|
*/
|
3613
|
-
export
|
3613
|
+
export enum FileOpenPreference {
|
3614
3614
|
/** Indicates that the user should be prompted to open the file in inline. */
|
3615
3615
|
Inline = "inline",
|
3616
3616
|
/** Indicates that the user should be prompted to open the file in the native desktop application associated with the file type. */
|
@@ -3623,7 +3623,7 @@ export const enum FileOpenPreference {
|
|
3623
3623
|
*
|
3624
3624
|
* @beta
|
3625
3625
|
*/
|
3626
|
-
export
|
3626
|
+
export enum ActionObjectType {
|
3627
3627
|
/** Represents content within a Microsoft 365 application. */
|
3628
3628
|
M365Content = "m365content"
|
3629
3629
|
}
|
@@ -3669,7 +3669,7 @@ export interface SecondaryId {
|
|
3669
3669
|
* See [commonly accessed resources](https://learn.microsoft.com/graph/api/resources/onedrive?view=graph-rest-1.0#commonly-accessed-resources).
|
3670
3670
|
* @beta
|
3671
3671
|
*/
|
3672
|
-
export
|
3672
|
+
export enum SecondaryM365ContentIdName {
|
3673
3673
|
/** OneDrive ID */
|
3674
3674
|
DriveId = "driveId",
|
3675
3675
|
/** Teams Group ID */
|
@@ -4383,7 +4383,7 @@ export enum ErrorCode {
|
|
4383
4383
|
SIZE_EXCEEDED = 10000
|
4384
4384
|
}
|
4385
4385
|
/** @hidden */
|
4386
|
-
export
|
4386
|
+
export enum DevicePermission {
|
4387
4387
|
GeoLocation = "geolocation",
|
4388
4388
|
Media = "media"
|
4389
4389
|
}
|
@@ -6250,7 +6250,7 @@ export namespace menus {
|
|
6250
6250
|
* @hidden
|
6251
6251
|
* Represents information about type of list to display in Navigation Bar Menu.
|
6252
6252
|
*/
|
6253
|
-
|
6253
|
+
enum MenuListType {
|
6254
6254
|
dropDown = "dropDown",
|
6255
6255
|
popOver = "popOver"
|
6256
6256
|
}
|
@@ -6346,7 +6346,7 @@ export namespace media {
|
|
6346
6346
|
/**
|
6347
6347
|
* Enum for file formats supported
|
6348
6348
|
*/
|
6349
|
-
export
|
6349
|
+
export enum FileFormat {
|
6350
6350
|
/** Base64 encoding */
|
6351
6351
|
Base64 = "base64",
|
6352
6352
|
/** File id */
|
@@ -7216,7 +7216,7 @@ export namespace meeting {
|
|
7216
7216
|
*
|
7217
7217
|
* @beta
|
7218
7218
|
*/
|
7219
|
-
|
7219
|
+
enum MeetingReactionType {
|
7220
7220
|
like = "like",
|
7221
7221
|
heart = "heart",
|
7222
7222
|
laugh = "laugh",
|
@@ -7232,7 +7232,7 @@ export namespace meeting {
|
|
7232
7232
|
* @remarks
|
7233
7233
|
* Teams has several types of meetings to account for different user scenarios and requirements.
|
7234
7234
|
*/
|
7235
|
-
|
7235
|
+
enum MeetingType {
|
7236
7236
|
/**
|
7237
7237
|
* Used when the meeting type is not known.
|
7238
7238
|
*
|
@@ -7286,7 +7286,7 @@ export namespace meeting {
|
|
7286
7286
|
* @hidden
|
7287
7287
|
* Hide from docs.
|
7288
7288
|
*/
|
7289
|
-
|
7289
|
+
enum CallType {
|
7290
7290
|
/**
|
7291
7291
|
* Represents a call between two people.
|
7292
7292
|
*
|
@@ -7306,7 +7306,7 @@ export namespace meeting {
|
|
7306
7306
|
/**
|
7307
7307
|
* Represents the protocol option for sharing app content to the meeting stage.
|
7308
7308
|
*/
|
7309
|
-
|
7309
|
+
enum SharingProtocol {
|
7310
7310
|
/**
|
7311
7311
|
* The default protocol for sharing app content to stage. To learn more, visit https://aka.ms/teamsjs/shareAppContentToStage
|
7312
7312
|
*/
|
@@ -7571,7 +7571,7 @@ export namespace meeting {
|
|
7571
7571
|
source?: EventActionSource;
|
7572
7572
|
}
|
7573
7573
|
/** The source of the join button click. */
|
7574
|
-
|
7574
|
+
enum EventActionSource {
|
7575
7575
|
/**
|
7576
7576
|
* Source is calendar grid context menu.
|
7577
7577
|
*/
|
@@ -8215,7 +8215,7 @@ export namespace videoEffects {
|
|
8215
8215
|
* Video frame format enum, currently only support NV12
|
8216
8216
|
* @beta
|
8217
8217
|
*/
|
8218
|
-
|
8218
|
+
enum VideoFrameFormat {
|
8219
8219
|
/** Video format used for encoding and decoding YUV color data in video streaming and storage applications. */
|
8220
8220
|
NV12 = "NV12"
|
8221
8221
|
}
|
@@ -8233,7 +8233,7 @@ export namespace videoEffects {
|
|
8233
8233
|
* Video effect change type enum
|
8234
8234
|
* @beta
|
8235
8235
|
*/
|
8236
|
-
|
8236
|
+
enum EffectChangeType {
|
8237
8237
|
/**
|
8238
8238
|
* Current video effect changed
|
8239
8239
|
*/
|
@@ -8642,7 +8642,7 @@ export namespace stageView {
|
|
8642
8642
|
/**
|
8643
8643
|
* The open mode for stage content.
|
8644
8644
|
*/
|
8645
|
-
|
8645
|
+
enum StageViewOpenMode {
|
8646
8646
|
/**
|
8647
8647
|
* Open the content in a modal.
|
8648
8648
|
*/
|
@@ -8904,7 +8904,7 @@ export namespace webStorage {
|
|
8904
8904
|
*/
|
8905
8905
|
export namespace call {
|
8906
8906
|
/** Modalities that can be associated with a call. */
|
8907
|
-
|
8907
|
+
enum CallModalities {
|
8908
8908
|
/** Indicates that the modality is unknown or undefined. */
|
8909
8909
|
Unknown = "unknown",
|
8910
8910
|
/** Indicates that the call includes audio. */
|
@@ -9558,7 +9558,7 @@ export namespace liveShare {
|
|
9558
9558
|
* Used in Live Share for its role verification feature.
|
9559
9559
|
* For more information, visit https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/teams-live-share-capabilities?tabs=javascript#role-verification-for-live-data-structures
|
9560
9560
|
*/
|
9561
|
-
|
9561
|
+
enum UserMeetingRole {
|
9562
9562
|
/**
|
9563
9563
|
* Guest role.
|
9564
9564
|
*/
|
@@ -9581,7 +9581,7 @@ export namespace liveShare {
|
|
9581
9581
|
* State of the current Live Share session's Fluid container.
|
9582
9582
|
* This is used internally by the `LiveShareClient` when joining a Live Share session.
|
9583
9583
|
*/
|
9584
|
-
|
9584
|
+
enum ContainerState {
|
9585
9585
|
/**
|
9586
9586
|
* The call to `LiveShareHost.setContainerId()` successfully created the container mapping
|
9587
9587
|
* for the current Live Share session.
|
@@ -9935,7 +9935,7 @@ export namespace marketplace {
|
|
9935
9935
|
* Represents the persona creating the cart.
|
9936
9936
|
* @beta
|
9937
9937
|
*/
|
9938
|
-
export
|
9938
|
+
export enum Intent {
|
9939
9939
|
/**
|
9940
9940
|
* @hidden
|
9941
9941
|
* The cart is created by admin of an organization in Teams Admin Center.
|