@microsoft/teams-js 2.1.0-beta.1 → 2.1.0-beta.2
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
CHANGED
@@ -2313,6 +2313,9 @@ export interface BotUrlDialogInfo extends UrlDialogInfo {
|
|
2313
2313
|
*/
|
2314
2314
|
completionBotId: string;
|
2315
2315
|
}
|
2316
|
+
/**
|
2317
|
+
* Data structure to describe dialog information
|
2318
|
+
*/
|
2316
2319
|
export interface DialogInfo {
|
2317
2320
|
/**
|
2318
2321
|
* The url to be rendered in the webview/iframe.
|
@@ -4481,7 +4484,7 @@ export namespace meeting {
|
|
4481
4484
|
function registerSpeakingStateChangeHandler(handler: (speakingState: ISpeakingState) => void): void;
|
4482
4485
|
/**
|
4483
4486
|
* Registers a handler for changes to the selfParticipant's (current user's) raiseHandState. If the selfParticipant raises their hand, isHandRaised
|
4484
|
-
* will be true. By default and if the selfParticipant hand is lowered, isHandRaised will be false. This API will return {@link
|
4487
|
+
* will be true. By default and if the selfParticipant hand is lowered, isHandRaised will be false. This API will return {@link RaiseHandStateChangedEventData}
|
4485
4488
|
* that will have the raiseHandState or an error object. Only one handler can be registered at a time. A subsequent registration
|
4486
4489
|
* replaces an existing registration.
|
4487
4490
|
*
|
@@ -5401,7 +5404,7 @@ export namespace settings {
|
|
5401
5404
|
function setValidityState(validityState: boolean): void;
|
5402
5405
|
/**
|
5403
5406
|
* @deprecated
|
5404
|
-
* As of 2.0.0, please use {@link pages.
|
5407
|
+
* As of 2.0.0, please use {@link pages.getConfig pages.getConfig(): Promise\<InstanceConfig\>} instead.
|
5405
5408
|
*
|
5406
5409
|
* Gets the settings for the current instance.
|
5407
5410
|
*
|
@@ -5455,9 +5458,8 @@ export namespace settings {
|
|
5455
5458
|
export namespace tasks {
|
5456
5459
|
/**
|
5457
5460
|
* @deprecated
|
5458
|
-
* As of 2.0.0, please use {@link dialog.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel):
|
5459
|
-
* and {@link dialog.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel):
|
5460
|
-
*
|
5461
|
+
* As of 2.0.0, please use {@link dialog.open dialog.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for url based dialogs
|
5462
|
+
* and {@link dialog.bot.open dialog.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for bot based dialogs.
|
5461
5463
|
* Allows an app to open the task module.
|
5462
5464
|
*
|
5463
5465
|
* @param taskInfo - An object containing the parameters of the task module
|
@@ -5475,7 +5477,7 @@ export namespace tasks {
|
|
5475
5477
|
function updateTask(taskInfo: TaskInfo): void;
|
5476
5478
|
/**
|
5477
5479
|
* @deprecated
|
5478
|
-
* As of 2.0.0, please use {@link dialog.submit
|
5480
|
+
* As of 2.0.0, please use {@link dialog.submit} instead.
|
5479
5481
|
*
|
5480
5482
|
* Submit the task module.
|
5481
5483
|
*
|
@@ -5483,8 +5485,24 @@ export namespace tasks {
|
|
5483
5485
|
* @param appIds - Helps to validate that the call originates from the same appId as the one that invoked the task module
|
5484
5486
|
*/
|
5485
5487
|
function submitTask(result?: string | object, appIds?: string | string[]): void;
|
5488
|
+
/**
|
5489
|
+
* Converts {@link TaskInfo} to {@link UrlDialogInfo}
|
5490
|
+
* @param taskInfo - TaskInfo object to convert
|
5491
|
+
* @returns - Converted UrlDialogInfo object
|
5492
|
+
*/
|
5486
5493
|
function getUrlDialogInfoFromTaskInfo(taskInfo: TaskInfo): UrlDialogInfo;
|
5494
|
+
/**
|
5495
|
+
* Converts {@link TaskInfo} to {@link BotUrlDialogInfo}
|
5496
|
+
* @param taskInfo - TaskInfo object to convert
|
5497
|
+
* @returns - converted BotUrlDialogInfo object
|
5498
|
+
*/
|
5487
5499
|
function getBotUrlDialogInfoFromTaskInfo(taskInfo: TaskInfo): BotUrlDialogInfo;
|
5500
|
+
/**
|
5501
|
+
* Sets the height and width of the {@link TaskInfo} object to the original height and width, if initially specified,
|
5502
|
+
* otherwise uses the height and width values corresponding to {@link TaskModuleDimension.Small}
|
5503
|
+
* @param taskInfo TaskInfo object from which to extract size info, if specified
|
5504
|
+
* @returns TaskInfo with height and width specified
|
5505
|
+
*/
|
5488
5506
|
function getDefaultSizeIfNotProvided(taskInfo: TaskInfo): TaskInfo;
|
5489
5507
|
}
|
5490
5508
|
|
package/dist/MicrosoftTeams.js
CHANGED
@@ -1122,7 +1122,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1122
1122
|
});
|
1123
1123
|
|
1124
1124
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1125
|
-
var version = "2.1.0-beta.
|
1125
|
+
var version = "2.1.0-beta.2";
|
1126
1126
|
/**
|
1127
1127
|
* @hidden
|
1128
1128
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
@@ -5934,7 +5934,7 @@ var meeting;
|
|
5934
5934
|
meeting.registerSpeakingStateChangeHandler = registerSpeakingStateChangeHandler;
|
5935
5935
|
/**
|
5936
5936
|
* Registers a handler for changes to the selfParticipant's (current user's) raiseHandState. If the selfParticipant raises their hand, isHandRaised
|
5937
|
-
* will be true. By default and if the selfParticipant hand is lowered, isHandRaised will be false. This API will return {@link
|
5937
|
+
* will be true. By default and if the selfParticipant hand is lowered, isHandRaised will be false. This API will return {@link RaiseHandStateChangedEventData}
|
5938
5938
|
* that will have the raiseHandState or an error object. Only one handler can be registered at a time. A subsequent registration
|
5939
5939
|
* replaces an existing registration.
|
5940
5940
|
*
|
@@ -7090,7 +7090,7 @@ var settings;
|
|
7090
7090
|
settings.setValidityState = setValidityState;
|
7091
7091
|
/**
|
7092
7092
|
* @deprecated
|
7093
|
-
* As of 2.0.0, please use {@link pages.
|
7093
|
+
* As of 2.0.0, please use {@link pages.getConfig pages.getConfig(): Promise\<InstanceConfig\>} instead.
|
7094
7094
|
*
|
7095
7095
|
* Gets the settings for the current instance.
|
7096
7096
|
*
|
@@ -7186,9 +7186,8 @@ var tasks;
|
|
7186
7186
|
(function (tasks) {
|
7187
7187
|
/**
|
7188
7188
|
* @deprecated
|
7189
|
-
* As of 2.0.0, please use {@link dialog.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel):
|
7190
|
-
* and {@link dialog.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel):
|
7191
|
-
*
|
7189
|
+
* As of 2.0.0, please use {@link dialog.open dialog.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for url based dialogs
|
7190
|
+
* and {@link dialog.bot.open dialog.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for bot based dialogs.
|
7192
7191
|
* Allows an app to open the task module.
|
7193
7192
|
*
|
7194
7193
|
* @param taskInfo - An object containing the parameters of the task module
|
@@ -7232,7 +7231,7 @@ var tasks;
|
|
7232
7231
|
tasks.updateTask = updateTask;
|
7233
7232
|
/**
|
7234
7233
|
* @deprecated
|
7235
|
-
* As of 2.0.0, please use {@link dialog.submit
|
7234
|
+
* As of 2.0.0, please use {@link dialog.submit} instead.
|
7236
7235
|
*
|
7237
7236
|
* Submit the task module.
|
7238
7237
|
*
|
@@ -7243,6 +7242,11 @@ var tasks;
|
|
7243
7242
|
dialog.submit(result, appIds);
|
7244
7243
|
}
|
7245
7244
|
tasks.submitTask = submitTask;
|
7245
|
+
/**
|
7246
|
+
* Converts {@link TaskInfo} to {@link UrlDialogInfo}
|
7247
|
+
* @param taskInfo - TaskInfo object to convert
|
7248
|
+
* @returns - Converted UrlDialogInfo object
|
7249
|
+
*/
|
7246
7250
|
function getUrlDialogInfoFromTaskInfo(taskInfo) {
|
7247
7251
|
var urldialogInfo = {
|
7248
7252
|
url: taskInfo.url,
|
@@ -7256,6 +7260,11 @@ var tasks;
|
|
7256
7260
|
return urldialogInfo;
|
7257
7261
|
}
|
7258
7262
|
tasks.getUrlDialogInfoFromTaskInfo = getUrlDialogInfoFromTaskInfo;
|
7263
|
+
/**
|
7264
|
+
* Converts {@link TaskInfo} to {@link BotUrlDialogInfo}
|
7265
|
+
* @param taskInfo - TaskInfo object to convert
|
7266
|
+
* @returns - converted BotUrlDialogInfo object
|
7267
|
+
*/
|
7259
7268
|
function getBotUrlDialogInfoFromTaskInfo(taskInfo) {
|
7260
7269
|
var botUrldialogInfo = {
|
7261
7270
|
url: taskInfo.url,
|
@@ -7270,6 +7279,12 @@ var tasks;
|
|
7270
7279
|
return botUrldialogInfo;
|
7271
7280
|
}
|
7272
7281
|
tasks.getBotUrlDialogInfoFromTaskInfo = getBotUrlDialogInfoFromTaskInfo;
|
7282
|
+
/**
|
7283
|
+
* Sets the height and width of the {@link TaskInfo} object to the original height and width, if initially specified,
|
7284
|
+
* otherwise uses the height and width values corresponding to {@link TaskModuleDimension.Small}
|
7285
|
+
* @param taskInfo TaskInfo object from which to extract size info, if specified
|
7286
|
+
* @returns TaskInfo with height and width specified
|
7287
|
+
*/
|
7273
7288
|
function getDefaultSizeIfNotProvided(taskInfo) {
|
7274
7289
|
taskInfo.height = taskInfo.height ? taskInfo.height : TaskModuleDimension.Small;
|
7275
7290
|
taskInfo.width = taskInfo.width ? taskInfo.width : TaskModuleDimension.Small;
|