@microsoft/teams-js 2.20.1-beta.0 → 2.21.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/README.md +4 -4
- package/dist/MicrosoftTeams.d.ts +58 -12
- package/dist/MicrosoftTeams.js +2422 -14
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +2 -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.21.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.21.0/js/MicrosoftTeams.min.js"
|
49
|
+
integrity="sha384-8IiFmUTxC/bV/D3X+IBPbfibh4oRJIbu7E14dqbrDjvMRs5JDg7p4sz0/JT74f2a"
|
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.21.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
@@ -4824,8 +4824,6 @@ interface OpenChatRequest {
|
|
4824
4824
|
* Used when starting a chat with one person
|
4825
4825
|
*
|
4826
4826
|
* @see OpenGroupChatRequest for use when a chat with more than one person
|
4827
|
-
*
|
4828
|
-
* @beta
|
4829
4827
|
*/
|
4830
4828
|
export interface OpenSingleChatRequest extends OpenChatRequest {
|
4831
4829
|
/**
|
@@ -4838,8 +4836,6 @@ export interface OpenSingleChatRequest extends OpenChatRequest {
|
|
4838
4836
|
* Used when starting a chat with more than one person
|
4839
4837
|
*
|
4840
4838
|
* @see OpenSingleChatRequest for use in a chat with only one person
|
4841
|
-
*
|
4842
|
-
* @beta
|
4843
4839
|
*/
|
4844
4840
|
export interface OpenGroupChatRequest extends OpenChatRequest {
|
4845
4841
|
/**
|
@@ -4854,8 +4850,6 @@ export interface OpenGroupChatRequest extends OpenChatRequest {
|
|
4854
4850
|
}
|
4855
4851
|
/**
|
4856
4852
|
* Contains functionality to start chat with others
|
4857
|
-
*
|
4858
|
-
* @beta
|
4859
4853
|
*/
|
4860
4854
|
export namespace chat {
|
4861
4855
|
/**
|
@@ -4865,8 +4859,6 @@ export namespace chat {
|
|
4865
4859
|
* @param openChatRequest: {@link OpenSingleChatRequest}- a request object that contains a user's email as well as an optional message parameter.
|
4866
4860
|
*
|
4867
4861
|
* @returns Promise resolved upon completion
|
4868
|
-
*
|
4869
|
-
* @beta
|
4870
4862
|
*/
|
4871
4863
|
function openChat(openChatRequest: OpenSingleChatRequest): Promise<void>;
|
4872
4864
|
/**
|
@@ -4877,8 +4869,6 @@ export namespace chat {
|
|
4877
4869
|
* @param openChatRequest: {@link OpenGroupChatRequest} - a request object that contains a list of user emails as well as optional parameters for message and topic (display name for the group chat).
|
4878
4870
|
*
|
4879
4871
|
* @returns Promise resolved upon completion
|
4880
|
-
*
|
4881
|
-
* @beta
|
4882
4872
|
*/
|
4883
4873
|
function openGroupChat(openChatRequest: OpenGroupChatRequest): Promise<void>;
|
4884
4874
|
/**
|
@@ -4886,8 +4876,6 @@ export namespace chat {
|
|
4886
4876
|
* @returns boolean to represent whether the chat capability is supported
|
4887
4877
|
*
|
4888
4878
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
4889
|
-
*
|
4890
|
-
* @beta
|
4891
4879
|
*/
|
4892
4880
|
function isSupported(): boolean;
|
4893
4881
|
}
|
@@ -7282,6 +7270,64 @@ export namespace meeting {
|
|
7282
7270
|
* @beta
|
7283
7271
|
*/
|
7284
7272
|
function registerMeetingReactionReceivedHandler(handler: (eventData: MeetingReactionReceivedEventData) => void): void;
|
7273
|
+
/**
|
7274
|
+
* @hidden
|
7275
|
+
* Hide from docs beacuse it's only used internally as a serialization/deserialization type
|
7276
|
+
*
|
7277
|
+
* @internal
|
7278
|
+
* Limited to Microsoft-internal use
|
7279
|
+
*/
|
7280
|
+
interface ISerializedJoinMeetingParams {
|
7281
|
+
joinWebUrl: string;
|
7282
|
+
source: EventActionSource;
|
7283
|
+
}
|
7284
|
+
/**
|
7285
|
+
* This function is used to join a meeting.
|
7286
|
+
* This opens a meeting in a new window for the desktop app.
|
7287
|
+
* In case of a web app, it will close the current app and open the meeting in the same tab.
|
7288
|
+
* There is currently no support or experience for this on mobile platforms.
|
7289
|
+
* @param joinMeetingParams This takes {@link JoinMeetingParams} for joining the meeting. If source isn't passed then it is marked as 'Other' by default.
|
7290
|
+
* @throws error if the meeting join fails, the promise will reject to an object with the error message.
|
7291
|
+
*/
|
7292
|
+
function joinMeeting(joinMeetingParams: JoinMeetingParams): Promise<void>;
|
7293
|
+
/**
|
7294
|
+
* Contains information associated with parameters required for joining the Microsoft Teams meetings.
|
7295
|
+
* More details regarding parameters can be found at:
|
7296
|
+
* [Online Meeting Base - Microsoft Graph v1.0](https://learn.microsoft.com/en-us/graph/api/resources/onlinemeetingbase?view=graph-rest-1.0)
|
7297
|
+
*/
|
7298
|
+
interface JoinMeetingParams {
|
7299
|
+
/** The join URL of the online meeting. */
|
7300
|
+
joinWebUrl: URL;
|
7301
|
+
/** The source of the join button click. If not passed, 'Other' is the default value of source. {@link EventActionSource} */
|
7302
|
+
source?: EventActionSource;
|
7303
|
+
}
|
7304
|
+
/** The source of the join button click. */
|
7305
|
+
enum EventActionSource {
|
7306
|
+
/**
|
7307
|
+
* Source is calendar grid context menu.
|
7308
|
+
*/
|
7309
|
+
M365CalendarGridContextMenu = "m365_calendar_grid_context_menu",
|
7310
|
+
/**
|
7311
|
+
* Source is calendar grid peek.
|
7312
|
+
*/
|
7313
|
+
M365CalendarGridPeek = "m365_calendar_grid_peek",
|
7314
|
+
/**
|
7315
|
+
* Source is calendar grid event card join button.
|
7316
|
+
*/
|
7317
|
+
M365CalendarGridEventCardJoinButton = "m365_calendar_grid_event_card_join_button",
|
7318
|
+
/**
|
7319
|
+
* Source is calendar form ribbon join button.
|
7320
|
+
*/
|
7321
|
+
M365CalendarFormRibbonJoinButton = "m365_calendar_form_ribbon_join_button",
|
7322
|
+
/**
|
7323
|
+
* Source is calendar form join teams meeting button.
|
7324
|
+
*/
|
7325
|
+
M365CalendarFormJoinTeamsMeetingButton = "m365_calendar_form_join_teams_meeting_button",
|
7326
|
+
/**
|
7327
|
+
* Other sources.
|
7328
|
+
*/
|
7329
|
+
Other = "other"
|
7330
|
+
}
|
7285
7331
|
/**
|
7286
7332
|
* Nested namespace for functions to control behavior of the app share button
|
7287
7333
|
*
|