@microsoft/teams-js 2.14.0 → 2.15.0-beta.1
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
@@ -2668,6 +2668,8 @@ export enum HostClientType {
|
|
2668
2668
|
ios = "ios",
|
2669
2669
|
/** Represents the iPadOS client of host, which runs on iOS devices such as iPads. */
|
2670
2670
|
ipados = "ipados",
|
2671
|
+
/** The host is running on a macOS client, which runs on devices such as MacBooks. */
|
2672
|
+
macos = "macos",
|
2671
2673
|
/**
|
2672
2674
|
* @deprecated
|
2673
2675
|
* As of 2.0.0, please use {@link teamsRoomsWindows} instead.
|
@@ -2941,7 +2943,7 @@ export interface TeamInformation {
|
|
2941
2943
|
*/
|
2942
2944
|
export interface LocaleInfo {
|
2943
2945
|
/** Represents the user's platform on which the app is running. */
|
2944
|
-
platform: HostClientType.android | HostClientType.ios |
|
2946
|
+
platform: HostClientType.android | HostClientType.ios | HostClientType.macos | 'windows';
|
2945
2947
|
/**
|
2946
2948
|
* Represents the regional format used by the user's locale.
|
2947
2949
|
* @example `en-us`.
|
@@ -4343,7 +4345,7 @@ export namespace appNotification {
|
|
4343
4345
|
* If no icon is provided, the notification card would be displayed without an icon
|
4344
4346
|
* The url link to where the icon is stored should be provided as the input string
|
4345
4347
|
*/
|
4346
|
-
|
4348
|
+
notificationIconAsString?: string;
|
4347
4349
|
/**
|
4348
4350
|
* This would specify how long a notification would be displayed on the screen for (unit: seconds)
|
4349
4351
|
*
|
@@ -4647,7 +4649,7 @@ export namespace dialog {
|
|
4647
4649
|
*/
|
4648
4650
|
namespace bot {
|
4649
4651
|
/**
|
4650
|
-
* Allows an app to open
|
4652
|
+
* Allows an app to open a dialog that sends submitted data to a bot.
|
4651
4653
|
*
|
4652
4654
|
* @param botUrlDialogInfo - An object containing the parameters of the dialog module including completionBotId.
|
4653
4655
|
* @param submitHandler - Handler that triggers when the dialog has been submitted or closed.
|
package/dist/MicrosoftTeams.js
CHANGED
@@ -1303,6 +1303,8 @@ var HostClientType;
|
|
1303
1303
|
HostClientType["ios"] = "ios";
|
1304
1304
|
/** Represents the iPadOS client of host, which runs on iOS devices such as iPads. */
|
1305
1305
|
HostClientType["ipados"] = "ipados";
|
1306
|
+
/** The host is running on a macOS client, which runs on devices such as MacBooks. */
|
1307
|
+
HostClientType["macos"] = "macos";
|
1306
1308
|
/**
|
1307
1309
|
* @deprecated
|
1308
1310
|
* As of 2.0.0, please use {@link teamsRoomsWindows} instead.
|
@@ -2090,7 +2092,7 @@ var _minRuntimeConfigToUninitialize = {
|
|
2090
2092
|
* @hidden
|
2091
2093
|
* Package version.
|
2092
2094
|
*/
|
2093
|
-
var version = "2.
|
2095
|
+
var version = "2.15.0-beta.1";
|
2094
2096
|
|
2095
2097
|
;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
|
2096
2098
|
|
@@ -2317,6 +2319,7 @@ var authentication;
|
|
2317
2319
|
GlobalVars.hostClientType === HostClientType.android ||
|
2318
2320
|
GlobalVars.hostClientType === HostClientType.ios ||
|
2319
2321
|
GlobalVars.hostClientType === HostClientType.ipados ||
|
2322
|
+
GlobalVars.hostClientType === HostClientType.macos ||
|
2320
2323
|
GlobalVars.hostClientType === HostClientType.rigel ||
|
2321
2324
|
GlobalVars.hostClientType === HostClientType.teamsRoomsWindows ||
|
2322
2325
|
GlobalVars.hostClientType === HostClientType.teamsRoomsAndroid ||
|
@@ -2842,7 +2845,7 @@ var dialog;
|
|
2842
2845
|
var bot;
|
2843
2846
|
(function (bot) {
|
2844
2847
|
/**
|
2845
|
-
* Allows an app to open
|
2848
|
+
* Allows an app to open a dialog that sends submitted data to a bot.
|
2846
2849
|
*
|
2847
2850
|
* @param botUrlDialogInfo - An object containing the parameters of the dialog module including completionBotId.
|
2848
2851
|
* @param submitHandler - Handler that triggers when the dialog has been submitted or closed.
|
@@ -5737,7 +5740,7 @@ var appNotification;
|
|
5737
5740
|
return {
|
5738
5741
|
title: notificationDisplayParam.title,
|
5739
5742
|
content: notificationDisplayParam.content,
|
5740
|
-
|
5743
|
+
notificationIconAsString: (_a = notificationDisplayParam.icon) === null || _a === void 0 ? void 0 : _a.href,
|
5741
5744
|
displayDurationInSeconds: notificationDisplayParam.displayDurationInSeconds,
|
5742
5745
|
notificationActionUrlAsString: notificationDisplayParam.notificationActionUrl.href,
|
5743
5746
|
};
|
@@ -5823,7 +5826,7 @@ var appNotification;
|
|
5823
5826
|
throw errorNotSupportedOnPlatform;
|
5824
5827
|
}
|
5825
5828
|
validateNotificationDisplayParams(notificationDisplayParam);
|
5826
|
-
return sendAndHandleSdkError('appNotification.
|
5829
|
+
return sendAndHandleSdkError('appNotification.displayInAppNotification', serializeParam(notificationDisplayParam));
|
5827
5830
|
}
|
5828
5831
|
appNotification.displayInAppNotification = displayInAppNotification;
|
5829
5832
|
/**
|