@microsoft/teams-js 2.3.0 → 2.4.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 +32 -90
- package/dist/MicrosoftTeams.js +681 -673
- 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 -34
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -2499,9 +2499,26 @@ export enum HostClientType {
|
|
2499
2499
|
teamsDisplays = "teamsDisplays"
|
2500
2500
|
}
|
2501
2501
|
export enum HostName {
|
2502
|
+
/**
|
2503
|
+
* Office.com and Office Windows App
|
2504
|
+
*/
|
2502
2505
|
office = "Office",
|
2506
|
+
/**
|
2507
|
+
* For "desktop" specifically, this refers to the new, pre-release version of Outlook for Windows.
|
2508
|
+
* Also used on other platforms that map to a single Outlook client.
|
2509
|
+
*/
|
2503
2510
|
outlook = "Outlook",
|
2511
|
+
/**
|
2512
|
+
* Outlook for Windows: the classic, native, desktop client
|
2513
|
+
*/
|
2514
|
+
outlookWin32 = "OutlookWin32",
|
2515
|
+
/**
|
2516
|
+
* Microsoft-internal test Host
|
2517
|
+
*/
|
2504
2518
|
orange = "Orange",
|
2519
|
+
/**
|
2520
|
+
* Teams
|
2521
|
+
*/
|
2505
2522
|
teams = "Teams"
|
2506
2523
|
}
|
2507
2524
|
export enum FrameContexts {
|
@@ -3508,7 +3525,7 @@ export namespace app {
|
|
3508
3525
|
*/
|
3509
3526
|
locale: string;
|
3510
3527
|
/**
|
3511
|
-
* The current UI theme.
|
3528
|
+
* The current UI theme of the host. Possible values: "default", "dark", or "contrast".
|
3512
3529
|
*/
|
3513
3530
|
theme: string;
|
3514
3531
|
/**
|
@@ -4202,7 +4219,9 @@ export namespace geoLocation {
|
|
4202
4219
|
*/
|
4203
4220
|
longitude: number;
|
4204
4221
|
/**
|
4205
|
-
Accuracy
|
4222
|
+
Accuracy describes the maximum distance in meters from the captured coordinates to the possible actual location
|
4223
|
+
@remarks
|
4224
|
+
This property is only in scope for mobile
|
4206
4225
|
*/
|
4207
4226
|
accuracy?: number;
|
4208
4227
|
/**
|
@@ -4301,17 +4320,6 @@ export namespace pages {
|
|
4301
4320
|
* Limited to Microsoft-internal use
|
4302
4321
|
*/
|
4303
4322
|
function registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void;
|
4304
|
-
/**
|
4305
|
-
* @hidden
|
4306
|
-
* Undocumented helper function with shared code between deprecated version and current version of the registerFocusEnterHandler API.
|
4307
|
-
*
|
4308
|
-
* @internal
|
4309
|
-
* Limited to Microsoft-internal use
|
4310
|
-
*
|
4311
|
-
* @param handler - The handler for placing focus within the application.
|
4312
|
-
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
4313
|
-
*/
|
4314
|
-
function registerFocusEnterHandlerHelper(handler: (navigateForward: boolean) => void, versionSpecificHelper?: () => void): void;
|
4315
4323
|
/**
|
4316
4324
|
* Sets/Updates the current frame with new information
|
4317
4325
|
*
|
@@ -4392,17 +4400,6 @@ export namespace pages {
|
|
4392
4400
|
* @param handler - The handler to invoke when the user toggles full-screen view for a tab.
|
4393
4401
|
*/
|
4394
4402
|
function registerFullScreenHandler(handler: (isFullScreen: boolean) => void): void;
|
4395
|
-
/**
|
4396
|
-
* @hidden
|
4397
|
-
* Undocumented helper function with shared code between deprecated version and current version of the registerFullScreenHandler API.
|
4398
|
-
*
|
4399
|
-
* @internal
|
4400
|
-
* Limited to Microsoft-internal use
|
4401
|
-
*
|
4402
|
-
* @param handler - The handler to invoke when the user toggles full-screen view for a tab.
|
4403
|
-
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
4404
|
-
*/
|
4405
|
-
function registerFullScreenHandlerHelper(handler: (isFullScreen: boolean) => void, versionSpecificHelper?: () => void): void;
|
4406
4403
|
/**
|
4407
4404
|
* Checks if the pages capability is supported by the host
|
4408
4405
|
* @returns true if the pages capability is enabled in runtime.supports.pages and
|
@@ -4536,17 +4533,6 @@ export namespace pages {
|
|
4536
4533
|
* @param handler - The handler to invoke when the user clicks on Settings.
|
4537
4534
|
*/
|
4538
4535
|
function registerChangeConfigHandler(handler: () => void): void;
|
4539
|
-
/**
|
4540
|
-
* @hidden
|
4541
|
-
* Undocumented helper function with shared code between deprecated version and current version of the registerConfigChangeHandler API.
|
4542
|
-
*
|
4543
|
-
* @internal
|
4544
|
-
* Limited to Microsoft-internal use
|
4545
|
-
*
|
4546
|
-
* @param handler - The handler to invoke when the user clicks on Settings.
|
4547
|
-
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
4548
|
-
*/
|
4549
|
-
function registerChangeConfigHandlerHelper(handler: () => void, versionSpecificHelper?: () => void): void;
|
4550
4536
|
/**
|
4551
4537
|
* Describes the results of the settings.save event. Includes result, notifySuccess, and notifyFailure
|
4552
4538
|
* to indicate the return object (result) and the status of whether the settings.save call succeeded or not and why.
|
@@ -4674,51 +4660,18 @@ export namespace pages {
|
|
4674
4660
|
* @param handler - The handler to invoke when the personal app button is clicked in the app bar.
|
4675
4661
|
*/
|
4676
4662
|
function onClick(handler: () => void): void;
|
4677
|
-
/**
|
4678
|
-
* @hidden
|
4679
|
-
* Undocumented helper function with shared code between deprecated version and current version of the onClick API.
|
4680
|
-
*
|
4681
|
-
* @internal
|
4682
|
-
* Limited to Microsoft-internal use
|
4683
|
-
*
|
4684
|
-
* @param handler - The handler to invoke when the personal app button is clicked in the app bar.
|
4685
|
-
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
4686
|
-
*/
|
4687
|
-
function onClickHelper(handler: () => void, versionSpecificHelper?: () => void): void;
|
4688
4663
|
/**
|
4689
4664
|
* Registers a handler for entering hover of the app button.
|
4690
4665
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
4691
4666
|
* @param handler - The handler to invoke when entering hover of the personal app button in the app bar.
|
4692
4667
|
*/
|
4693
4668
|
function onHoverEnter(handler: () => void): void;
|
4694
|
-
/**
|
4695
|
-
* @hidden
|
4696
|
-
* Undocumented helper function with shared code between deprecated version and current version of the onHoverEnter API.
|
4697
|
-
*
|
4698
|
-
* @internal
|
4699
|
-
* Limited to Microsoft-internal use
|
4700
|
-
*
|
4701
|
-
* @param handler - The handler to invoke when entering hover of the personal app button in the app bar.
|
4702
|
-
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
4703
|
-
*/
|
4704
|
-
function onHoverEnterHelper(handler: () => void, versionSpecificHelper?: () => void): void;
|
4705
4669
|
/**
|
4706
4670
|
* Registers a handler for exiting hover of the app button.
|
4707
4671
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
4708
4672
|
* @param handler - The handler to invoke when exiting hover of the personal app button in the app bar.
|
4709
4673
|
*/
|
4710
4674
|
function onHoverLeave(handler: () => void): void;
|
4711
|
-
/**
|
4712
|
-
* @hidden
|
4713
|
-
* Undocumented helper function with shared code between deprecated version and current version of the onHoverLeave API.
|
4714
|
-
*
|
4715
|
-
* @internal
|
4716
|
-
* Limited to Microsoft-internal use
|
4717
|
-
*
|
4718
|
-
* @param handler - The handler to invoke when existing hover of the personal app button in the app bar.
|
4719
|
-
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
4720
|
-
*/
|
4721
|
-
function onHoverLeaveHelper(handler: () => void, versionSpecificHelper?: () => void): void;
|
4722
4675
|
/**
|
4723
4676
|
* Checks if pages.appButton capability is supported by the host
|
4724
4677
|
* @returns true if the pages.appButton capability is enabled in runtime.supports.pages.appButton and
|
@@ -6213,13 +6166,6 @@ export namespace search {
|
|
6213
6166
|
* Your application should *not* re-render inside of these callbacks, there may be a large number
|
6214
6167
|
* of onChangeHandler calls if the user is typing rapidly in the search box.
|
6215
6168
|
*
|
6216
|
-
* @param onChangeHandler - This optional handler will be called when the user first starts using the
|
6217
|
-
* host's search box and as the user types their query. Can be used to put your application into a
|
6218
|
-
* word-wheeling state or to display suggestions as the user is typing.
|
6219
|
-
*
|
6220
|
-
* This handler will be called with an empty {@link SearchQuery.searchTerm} when search is beginning, and subsequently,
|
6221
|
-
* with the current contents of the search box.
|
6222
|
-
*
|
6223
6169
|
* @param onClosedHandler - This handler will be called when the user exits or cancels their search.
|
6224
6170
|
* Should be used to return your application to its most recent, non-search state. The value of {@link SearchQuery.searchTerm}
|
6225
6171
|
* will be whatever the last query was before ending search.
|
@@ -6228,18 +6174,24 @@ export namespace search {
|
|
6228
6174
|
* search (by pressing Enter for example). Should be used to display the full list of search results.
|
6229
6175
|
* The value of {@link SearchQuery.searchTerm} is the complete query the user entered in the search box.
|
6230
6176
|
*
|
6177
|
+
* @param onChangeHandler - This optional handler will be called when the user first starts using the
|
6178
|
+
* host's search box and as the user types their query. Can be used to put your application into a
|
6179
|
+
* word-wheeling state or to display suggestions as the user is typing.
|
6180
|
+
*
|
6181
|
+
* This handler will be called with an empty {@link SearchQuery.searchTerm} when search is beginning, and subsequently,
|
6182
|
+
* with the current contents of the search box.
|
6231
6183
|
* @example
|
6232
6184
|
* ``` ts
|
6233
6185
|
* search.registerHandlers(
|
6234
|
-
query => {
|
6235
|
-
console.log(`Update your application with the changed search query: ${query.searchTerm}`);
|
6236
|
-
},
|
6237
6186
|
query => {
|
6238
6187
|
console.log('Update your application to handle the search experience being closed. Last query: ${query.searchTerm}');
|
6239
6188
|
},
|
6240
6189
|
query => {
|
6241
6190
|
console.log(`Update your application to handle an executed search result: ${query.searchTerm}`);
|
6242
6191
|
},
|
6192
|
+
query => {
|
6193
|
+
console.log(`Update your application with the changed search query: ${query.searchTerm}`);
|
6194
|
+
},
|
6243
6195
|
);
|
6244
6196
|
* ```
|
6245
6197
|
*
|
@@ -6367,6 +6319,8 @@ export namespace stageView {
|
|
6367
6319
|
function isSupported(): boolean;
|
6368
6320
|
}
|
6369
6321
|
|
6322
|
+
export const version: string;
|
6323
|
+
|
6370
6324
|
/**
|
6371
6325
|
* Contains functionality to allow web apps to store data in webview cache
|
6372
6326
|
*
|
@@ -6885,18 +6839,6 @@ export namespace tasks {
|
|
6885
6839
|
* @param appIds - Helps to validate that the call originates from the same appId as the one that invoked the task module
|
6886
6840
|
*/
|
6887
6841
|
function submitTask(result?: string | object, appIds?: string | string[]): void;
|
6888
|
-
/**
|
6889
|
-
* Converts {@link TaskInfo} to {@link UrlDialogInfo}
|
6890
|
-
* @param taskInfo - TaskInfo object to convert
|
6891
|
-
* @returns - Converted UrlDialogInfo object
|
6892
|
-
*/
|
6893
|
-
function getUrlDialogInfoFromTaskInfo(taskInfo: TaskInfo): UrlDialogInfo;
|
6894
|
-
/**
|
6895
|
-
* Converts {@link TaskInfo} to {@link BotUrlDialogInfo}
|
6896
|
-
* @param taskInfo - TaskInfo object to convert
|
6897
|
-
* @returns - converted BotUrlDialogInfo object
|
6898
|
-
*/
|
6899
|
-
function getBotUrlDialogInfoFromTaskInfo(taskInfo: TaskInfo): BotUrlDialogInfo;
|
6900
6842
|
/**
|
6901
6843
|
* Sets the height and width of the {@link TaskInfo} object to the original height and width, if initially specified,
|
6902
6844
|
* otherwise uses the height and width values corresponding to {@link TaskModuleDimension | TaskModuleDimension.Small}
|