@microsoft/teams-js 2.0.0-beta.7-dev.6 → 2.0.0-beta.7-dev.9
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 +1 -1
- package/dist/MicrosoftTeams.d.ts +145 -109
- package/dist/MicrosoftTeams.js +178 -150
- 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 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Microsoft Teams JavaScript client SDK
|
|
2
2
|
|
|
3
|
-
Welcome to the Teams JavaScript client SDK! For breaking changes, please refer to our [changelog](./CHANGELOG.md) in the current `<root>/packages/teams-js` directory
|
|
3
|
+
Welcome to the Teams JavaScript client SDK! For breaking changes, please refer to our [changelog](./CHANGELOG.md) in the current `<root>/packages/teams-js` directory.
|
|
4
4
|
|
|
5
5
|
This JavaScript library is part of the [Microsoft Teams developer platform](https://docs.microsoft.com/en-us/microsoftteams/platform/overview?view=msteams-client-js-beta). See full [SDK reference documentation](https://docs.microsoft.com/en-us/javascript/api/overview/msteams-client?view=msteams-client-js-beta).
|
|
6
6
|
|
package/dist/MicrosoftTeams.d.ts
CHANGED
|
@@ -200,7 +200,7 @@ export function uploadCustomApp(manifestBlob: Blob, onComplete?: (status: boolea
|
|
|
200
200
|
/**
|
|
201
201
|
* @hidden
|
|
202
202
|
* Internal use only
|
|
203
|
-
* Sends a custom action MessageRequest to
|
|
203
|
+
* Sends a custom action MessageRequest to host or parent window
|
|
204
204
|
*
|
|
205
205
|
* @param actionName - Specifies name of the custom action to be sent
|
|
206
206
|
* @param args - Specifies additional arguments passed to the action
|
|
@@ -693,7 +693,7 @@ export namespace files {
|
|
|
693
693
|
* Hide from docs
|
|
694
694
|
* ------
|
|
695
695
|
*
|
|
696
|
-
* Open a cloud storage file in
|
|
696
|
+
* Open a cloud storage file in Teams
|
|
697
697
|
*
|
|
698
698
|
* @param file - cloud storage file that should be opened
|
|
699
699
|
* @param providerCode - Code of the cloud storage folder provider
|
|
@@ -735,45 +735,6 @@ export namespace files {
|
|
|
735
735
|
export {};
|
|
736
736
|
}
|
|
737
737
|
|
|
738
|
-
/**
|
|
739
|
-
* @internal
|
|
740
|
-
*/
|
|
741
|
-
export namespace legacy {
|
|
742
|
-
namespace fullTrust {
|
|
743
|
-
namespace joinedTeams {
|
|
744
|
-
/**
|
|
745
|
-
* @hidden
|
|
746
|
-
* Hide from docs
|
|
747
|
-
* ------
|
|
748
|
-
* Allows an app to retrieve information of all user joined teams
|
|
749
|
-
*
|
|
750
|
-
* @param teamInstanceParameters - OPTIONAL Flags that specify whether to scope call to favorite teams
|
|
751
|
-
* @returns Promise resolved containing information about the user joined teams or rejected with error
|
|
752
|
-
*/
|
|
753
|
-
function getUserJoinedTeams(teamInstanceParameters?: TeamInstanceParameters): Promise<UserJoinedTeamsInformation>;
|
|
754
|
-
function isSupported(): boolean;
|
|
755
|
-
}
|
|
756
|
-
/**
|
|
757
|
-
* @hidden
|
|
758
|
-
* Hide from docs
|
|
759
|
-
* ------
|
|
760
|
-
* Allows an app to get the configuration setting value
|
|
761
|
-
*
|
|
762
|
-
* @param key - The key for the config setting
|
|
763
|
-
* @returns Promise resolved containing the value for the provided config setting or rejected with error
|
|
764
|
-
*/
|
|
765
|
-
function getConfigSetting(key: string): Promise<string>;
|
|
766
|
-
/**
|
|
767
|
-
* Checks if teams.fullTrust capability is supported currently
|
|
768
|
-
*/
|
|
769
|
-
function isSupported(): boolean;
|
|
770
|
-
}
|
|
771
|
-
/**
|
|
772
|
-
* Checks if teams capability is supported currently
|
|
773
|
-
*/
|
|
774
|
-
function isSupported(): boolean;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
738
|
export namespace meetingRoom {
|
|
778
739
|
/**
|
|
779
740
|
* @hidden
|
|
@@ -1183,7 +1144,7 @@ export namespace appEntity {
|
|
|
1183
1144
|
interface AppEntity {
|
|
1184
1145
|
/**
|
|
1185
1146
|
* @hidden
|
|
1186
|
-
*
|
|
1147
|
+
* ID of the application
|
|
1187
1148
|
*/
|
|
1188
1149
|
appId: string;
|
|
1189
1150
|
/**
|
|
@@ -1213,14 +1174,19 @@ export namespace appEntity {
|
|
|
1213
1174
|
* --------
|
|
1214
1175
|
* Open the Tab Gallery and retrieve the app entity
|
|
1215
1176
|
* @param threadId ID of the thread where the app entity will be created
|
|
1216
|
-
* @param categories A list of
|
|
1177
|
+
* @param categories A list of application categories that will be displayed in the opened tab gallery
|
|
1217
1178
|
* @param subEntityId An object that will be made available to the application being configured
|
|
1218
|
-
* through the
|
|
1179
|
+
* through the Context's subEntityId field.
|
|
1219
1180
|
* @param callback Callback that will be triggered once the app entity information is available.
|
|
1220
1181
|
* The callback takes two arguments: an SdkError in case something happened (i.e.
|
|
1221
1182
|
* no permissions to execute the API) and the app entity configuration, if available
|
|
1222
1183
|
*/
|
|
1223
1184
|
function selectAppEntity(threadId: string, categories: string[], subEntityId: string, callback: (sdkError?: SdkError, appEntity?: AppEntity) => void): void;
|
|
1185
|
+
/**
|
|
1186
|
+
* Checks if appEntity capability is supported by the host
|
|
1187
|
+
* @returns true if the appEntity capability is enabled in runtime.supports.appEntity and
|
|
1188
|
+
* false if it is disabled
|
|
1189
|
+
*/
|
|
1224
1190
|
function isSupported(): boolean;
|
|
1225
1191
|
}
|
|
1226
1192
|
|
|
@@ -1263,7 +1229,64 @@ export namespace teams {
|
|
|
1263
1229
|
* provided, the threadId from route params will be used.
|
|
1264
1230
|
*/
|
|
1265
1231
|
function refreshSiteUrl(threadId: string, callback: (error: SdkError) => void): void;
|
|
1232
|
+
/**
|
|
1233
|
+
* @hidden
|
|
1234
|
+
* Checks if teams capability is supported by the host
|
|
1235
|
+
*
|
|
1236
|
+
* @returns true if the teams capability is enabled in runtime.supports.teams and
|
|
1237
|
+
* false if it is disabled
|
|
1238
|
+
*/
|
|
1266
1239
|
function isSupported(): boolean;
|
|
1240
|
+
/**
|
|
1241
|
+
* @hidden
|
|
1242
|
+
* Hide from docs
|
|
1243
|
+
* ------
|
|
1244
|
+
*
|
|
1245
|
+
* @internal
|
|
1246
|
+
*/
|
|
1247
|
+
namespace fullTrust {
|
|
1248
|
+
namespace joinedTeams {
|
|
1249
|
+
/**
|
|
1250
|
+
* @hidden
|
|
1251
|
+
* Hide from docs
|
|
1252
|
+
* ------
|
|
1253
|
+
* Allows an app to retrieve information of all user joined teams
|
|
1254
|
+
*
|
|
1255
|
+
* @param teamInstanceParameters - Optional flags that specify whether to scope call to favorite teams
|
|
1256
|
+
* @returns Promise that resolves with information about the user joined teams or rejects with an error when the operation has completed
|
|
1257
|
+
*/
|
|
1258
|
+
function getUserJoinedTeams(teamInstanceParameters?: TeamInstanceParameters): Promise<UserJoinedTeamsInformation>;
|
|
1259
|
+
/**
|
|
1260
|
+
* @hidden
|
|
1261
|
+
* Hide from docs
|
|
1262
|
+
* ------
|
|
1263
|
+
* Checks if teams.fullTrust.joinedTeams capability is supported by the host
|
|
1264
|
+
*
|
|
1265
|
+
* @returns true if the teams.fullTrust.joinedTeams capability is enabled in
|
|
1266
|
+
* runtime.supports.teams.fullTrust.joinedTeams and false if it is disabled
|
|
1267
|
+
*/
|
|
1268
|
+
function isSupported(): boolean;
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* @hidden
|
|
1272
|
+
* Hide from docs
|
|
1273
|
+
* ------
|
|
1274
|
+
* Allows an app to get the configuration setting value
|
|
1275
|
+
*
|
|
1276
|
+
* @param key - The key for the config setting
|
|
1277
|
+
* @returns Promise that resolves with the value for the provided configuration setting or rejects with an error when the operation has completed
|
|
1278
|
+
*/
|
|
1279
|
+
function getConfigSetting(key: string): Promise<string>;
|
|
1280
|
+
/**
|
|
1281
|
+
* @hidden
|
|
1282
|
+
* Hide from docs
|
|
1283
|
+
* ------
|
|
1284
|
+
* Checks if teams.fullTrust capability is supported by the host
|
|
1285
|
+
* @returns true if the teams.fullTrust capability is enabled in runtime.supports.teams.fullTrust and
|
|
1286
|
+
* false if it is disabled
|
|
1287
|
+
*/
|
|
1288
|
+
function isSupported(): boolean;
|
|
1289
|
+
}
|
|
1267
1290
|
}
|
|
1268
1291
|
|
|
1269
1292
|
/**
|
|
@@ -3012,17 +3035,17 @@ export namespace dialog {
|
|
|
3012
3035
|
*/
|
|
3013
3036
|
export namespace pages {
|
|
3014
3037
|
/**
|
|
3015
|
-
* Return focus to the host. Will move focus forward or backward based on where the
|
|
3016
|
-
* the F6/
|
|
3038
|
+
* Return focus to the host. Will move focus forward or backward based on where the application container falls in
|
|
3039
|
+
* the F6/tab order in the host.
|
|
3017
3040
|
* @param navigateForward - Determines the direction to focus in host.
|
|
3018
3041
|
*/
|
|
3019
3042
|
function returnFocus(navigateForward?: boolean): void;
|
|
3020
3043
|
/**
|
|
3021
3044
|
* @hidden
|
|
3022
3045
|
*
|
|
3023
|
-
* Registers a handler
|
|
3046
|
+
* Registers a handler for specifying focus when it passes from the host to the application.
|
|
3024
3047
|
*
|
|
3025
|
-
* @param handler - The handler
|
|
3048
|
+
* @param handler - The handler for placing focus within the application.
|
|
3026
3049
|
*
|
|
3027
3050
|
* @internal
|
|
3028
3051
|
*/
|
|
@@ -3039,7 +3062,7 @@ export namespace pages {
|
|
|
3039
3062
|
*
|
|
3040
3063
|
* @param frameInfo - Frame information containing the URL used in the iframe on reload and the URL for when the
|
|
3041
3064
|
* user clicks 'Go To Website'
|
|
3042
|
-
* @param callback - An optional
|
|
3065
|
+
* @param callback - An optional callback that is executed once the application has finished initialization.
|
|
3043
3066
|
* @param validMessageOrigins - An optional list of cross-frame message origins. They must have
|
|
3044
3067
|
* https: protocol otherwise they will be ignored. Example: https:www.example.com
|
|
3045
3068
|
*/
|
|
@@ -3079,19 +3102,19 @@ export namespace pages {
|
|
|
3079
3102
|
* Navigates the frame to a new cross-domain URL. The domain of this URL must match at least one of the
|
|
3080
3103
|
* valid domains specified in the validDomains block of the manifest; otherwise, an exception will be
|
|
3081
3104
|
* thrown. This function needs to be used only when navigating the frame to a URL in a different domain
|
|
3082
|
-
* than the current one in a way that keeps the
|
|
3105
|
+
* than the current one in a way that keeps the application informed of the change and allows the SDK to
|
|
3083
3106
|
* continue working.
|
|
3084
3107
|
* @param url - The URL to navigate the frame to.
|
|
3085
3108
|
* @returns Promise that resolves when the navigation has completed.
|
|
3086
3109
|
*/
|
|
3087
3110
|
function navigateCrossDomain(url: string): Promise<void>;
|
|
3088
3111
|
/**
|
|
3089
|
-
* Navigate to the given
|
|
3090
|
-
* be navigated to, such as if it is not installed), Channel ID (for
|
|
3091
|
-
*
|
|
3092
|
-
* a deep link with the above data, but does not require the
|
|
3112
|
+
* Navigate to the given application ID and page ID, with optional parameters for a WebURL (if the application
|
|
3113
|
+
* cannot be navigated to, such as if it is not installed), Channel ID (for applications installed as a channel tab),
|
|
3114
|
+
* and sub-page ID (for navigating to specific content within the page). This is equivalent to navigating to
|
|
3115
|
+
* a deep link with the above data, but does not require the application to build a URL or worry about different
|
|
3093
3116
|
* deep link formats for different hosts.
|
|
3094
|
-
* @param params Parameters for the navigation
|
|
3117
|
+
* @param params - Parameters for the navigation
|
|
3095
3118
|
* @returns a promise that will resolve if the navigation was successful
|
|
3096
3119
|
*/
|
|
3097
3120
|
function navigateToApp(params: NavigateToAppParams): Promise<void>;
|
|
@@ -3108,7 +3131,7 @@ export namespace pages {
|
|
|
3108
3131
|
*/
|
|
3109
3132
|
function registerFullScreenHandler(handler: (isFullScreen: boolean) => void): void;
|
|
3110
3133
|
/**
|
|
3111
|
-
* Checks if the
|
|
3134
|
+
* Checks if the pages capability is supported by the host
|
|
3112
3135
|
* @returns true if the pages capability is enabled in runtime.supports.pages and
|
|
3113
3136
|
* false if it is disabled
|
|
3114
3137
|
*/
|
|
@@ -3118,11 +3141,11 @@ export namespace pages {
|
|
|
3118
3141
|
*/
|
|
3119
3142
|
interface NavigateToAppParams {
|
|
3120
3143
|
/**
|
|
3121
|
-
* ID of the
|
|
3144
|
+
* ID of the application to navigate to
|
|
3122
3145
|
*/
|
|
3123
3146
|
appId: string;
|
|
3124
3147
|
/**
|
|
3125
|
-
* Developer-defined ID of the Page to navigate to within the
|
|
3148
|
+
* Developer-defined ID of the Page to navigate to within the application (Formerly EntityID)
|
|
3126
3149
|
*/
|
|
3127
3150
|
pageId: string;
|
|
3128
3151
|
/**
|
|
@@ -3131,47 +3154,48 @@ export namespace pages {
|
|
|
3131
3154
|
webUrl?: string;
|
|
3132
3155
|
/**
|
|
3133
3156
|
* Optional developer-defined ID describing the content to navigate to within the Page. This will be passed
|
|
3134
|
-
* back to the
|
|
3157
|
+
* back to the application via the Context object.
|
|
3135
3158
|
*/
|
|
3136
3159
|
subPageId?: string;
|
|
3137
3160
|
/**
|
|
3138
|
-
* Optional ID of the Teams Channel where the
|
|
3161
|
+
* Optional ID of the Teams Channel where the application should be opened
|
|
3139
3162
|
*/
|
|
3140
3163
|
channelId?: string;
|
|
3141
3164
|
}
|
|
3142
3165
|
/**
|
|
3143
|
-
*
|
|
3166
|
+
* Provides APIs for querying and navigating between contextual tabs of an application. Unlike personal tabs,
|
|
3167
|
+
* contextual tabs are pages associated with a specific context, such as channel or chat.
|
|
3144
3168
|
*/
|
|
3145
3169
|
namespace tabs {
|
|
3146
3170
|
/**
|
|
3147
|
-
* Navigates the hosted
|
|
3148
|
-
* @param tabInstance The tab instance
|
|
3171
|
+
* Navigates the hosted application to the specified tab instance.
|
|
3172
|
+
* @param tabInstance - The destination tab instance.
|
|
3149
3173
|
* @returns Promise that resolves when the navigation has completed.
|
|
3150
3174
|
*/
|
|
3151
3175
|
function navigateToTab(tabInstance: TabInstance): Promise<void>;
|
|
3152
3176
|
/**
|
|
3153
|
-
*
|
|
3154
|
-
* If no TabInstanceParameters are passed, the
|
|
3155
|
-
* @param tabInstanceParameters
|
|
3177
|
+
* Retrieves application tabs for the current user.
|
|
3178
|
+
* If no TabInstanceParameters are passed, the application defaults to favorite teams and favorite channels.
|
|
3179
|
+
* @param tabInstanceParameters - An optional set of flags that specify whether to scope call to favorite teams or channels.
|
|
3156
3180
|
* @returns Promise that resolves with the {@link TabInformation}. Contains information for the user's tabs that are owned by this application {@link TabInstance}.
|
|
3157
3181
|
*/
|
|
3158
3182
|
function getTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise<TabInformation>;
|
|
3159
3183
|
/**
|
|
3160
|
-
*
|
|
3161
|
-
* @param tabInstanceParameters
|
|
3184
|
+
* Retrieves the most recently used application tabs for the current user.
|
|
3185
|
+
* @param tabInstanceParameters - An optional set of flags. Note this is currently ignored and kept for future use.
|
|
3162
3186
|
* @returns Promise that resolves with the {@link TabInformation}. Contains information for the users' most recently used tabs {@link TabInstance}.
|
|
3163
3187
|
*/
|
|
3164
3188
|
function getMruTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise<TabInformation>;
|
|
3165
3189
|
/**
|
|
3166
|
-
* Checks if the
|
|
3190
|
+
* Checks if the pages.tab capability is supported by the host
|
|
3167
3191
|
* @returns true if the pages.tabs capability is enabled in runtime.supports.pages.tabs and
|
|
3168
3192
|
* false if it is disabled
|
|
3169
3193
|
*/
|
|
3170
3194
|
function isSupported(): boolean;
|
|
3171
3195
|
}
|
|
3172
3196
|
/**
|
|
3173
|
-
*
|
|
3174
|
-
* This object is usable only on the
|
|
3197
|
+
* Provides APIs to interact with the configuration-specific part of the SDK.
|
|
3198
|
+
* This object is usable only on the configuration frame.
|
|
3175
3199
|
*/
|
|
3176
3200
|
namespace config {
|
|
3177
3201
|
/**
|
|
@@ -3183,24 +3207,24 @@ export namespace pages {
|
|
|
3183
3207
|
*/
|
|
3184
3208
|
function initialize(): void;
|
|
3185
3209
|
/**
|
|
3186
|
-
* Sets the validity state for the
|
|
3187
|
-
* The initial value is false, so the user cannot save the
|
|
3188
|
-
* @param validityState Indicates whether the save or remove button is enabled for the user.
|
|
3210
|
+
* Sets the validity state for the configuration.
|
|
3211
|
+
* The initial value is false, so the user cannot save the configuration until this is called with true.
|
|
3212
|
+
* @param validityState - Indicates whether the save or remove button is enabled for the user.
|
|
3189
3213
|
*/
|
|
3190
3214
|
function setValidityState(validityState: boolean): void;
|
|
3191
3215
|
/**
|
|
3192
|
-
* Sets the
|
|
3216
|
+
* Sets the configuration for the current instance.
|
|
3193
3217
|
* This is an asynchronous operation; calls to getConfig are not guaranteed to reflect the changed state.
|
|
3194
|
-
* @param instanceConfig The desired
|
|
3218
|
+
* @param instanceConfig - The desired configuration for this instance.
|
|
3195
3219
|
* @returns Promise that resolves when the operation has completed.
|
|
3196
3220
|
*/
|
|
3197
3221
|
function setConfig(instanceConfig: InstanceConfig): Promise<void>;
|
|
3198
3222
|
/**
|
|
3199
|
-
* Registers a handler for when the user attempts to save the
|
|
3223
|
+
* Registers a handler for when the user attempts to save the configuration. This handler should be used
|
|
3200
3224
|
* to create or update the underlying resource powering the content.
|
|
3201
3225
|
* The object passed to the handler must be used to notify whether to proceed with the save.
|
|
3202
3226
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
3203
|
-
* @param handler The handler to invoke when the user selects the
|
|
3227
|
+
* @param handler - The handler to invoke when the user selects the Save button.
|
|
3204
3228
|
*/
|
|
3205
3229
|
function registerOnSaveHandler(handler: (evt: SaveEvent) => void): void;
|
|
3206
3230
|
/**
|
|
@@ -3208,12 +3232,12 @@ export namespace pages {
|
|
|
3208
3232
|
* to remove the underlying resource powering the content.
|
|
3209
3233
|
* The object passed to the handler must be used to indicate whether to proceed with the removal.
|
|
3210
3234
|
* Only one handler may be registered at a time. Subsequent registrations will override the first.
|
|
3211
|
-
* @param handler The handler to invoke when the user selects the
|
|
3235
|
+
* @param handler - The handler to invoke when the user selects the Remove button.
|
|
3212
3236
|
*/
|
|
3213
3237
|
function registerOnRemoveHandler(handler: (evt: RemoveEvent) => void): void;
|
|
3214
3238
|
/**
|
|
3215
3239
|
* Registers a handler for when the tab configuration is changed by the user
|
|
3216
|
-
* @param handler The handler to invoke when the user
|
|
3240
|
+
* @param handler - The handler to invoke when the user clicks on Settings.
|
|
3217
3241
|
*/
|
|
3218
3242
|
function registerChangeConfigHandler(handler: () => void): void;
|
|
3219
3243
|
/**
|
|
@@ -3231,7 +3255,7 @@ export namespace pages {
|
|
|
3231
3255
|
notifySuccess(): void;
|
|
3232
3256
|
/**
|
|
3233
3257
|
* Indicates that creation of the underlying resource failed and that the config cannot be saved.
|
|
3234
|
-
* @param reason Specifies a reason for the failure. If provided, this string is displayed to the user; otherwise a generic error is displayed.
|
|
3258
|
+
* @param reason - Specifies a reason for the failure. If provided, this string is displayed to the user; otherwise a generic error is displayed.
|
|
3235
3259
|
*/
|
|
3236
3260
|
notifyFailure(reason?: string): void;
|
|
3237
3261
|
}
|
|
@@ -3246,7 +3270,7 @@ export namespace pages {
|
|
|
3246
3270
|
notifySuccess(): void;
|
|
3247
3271
|
/**
|
|
3248
3272
|
* Indicates that removal of the underlying resource failed and that the content cannot be removed.
|
|
3249
|
-
* @param reason Specifies a reason for the failure. If provided, this string is displayed to the user; otherwise a generic error is displayed.
|
|
3273
|
+
* @param reason - Specifies a reason for the failure. If provided, this string is displayed to the user; otherwise a generic error is displayed.
|
|
3250
3274
|
*/
|
|
3251
3275
|
notifyFailure(reason?: string): void;
|
|
3252
3276
|
}
|
|
@@ -3260,33 +3284,32 @@ export namespace pages {
|
|
|
3260
3284
|
webhookUrl?: string;
|
|
3261
3285
|
}
|
|
3262
3286
|
/**
|
|
3263
|
-
* Checks if the
|
|
3287
|
+
* Checks if the pages.config capability is supported by the host
|
|
3264
3288
|
* @returns true if the pages.config capability is enabled in runtime.supports.pages.config and
|
|
3265
3289
|
* false if it is disabled
|
|
3266
3290
|
*/
|
|
3267
3291
|
function isSupported(): boolean;
|
|
3268
3292
|
}
|
|
3269
3293
|
/**
|
|
3270
|
-
*
|
|
3294
|
+
* Provides APIs for handling the user's navigational history.
|
|
3271
3295
|
*/
|
|
3272
3296
|
namespace backStack {
|
|
3273
3297
|
function _initialize(): void;
|
|
3274
3298
|
/**
|
|
3275
|
-
* Navigates back in the hosted
|
|
3276
|
-
* it's appropriate to use this method.
|
|
3299
|
+
* Navigates back in the hosted application. See {@link pages.backStack.registerBackButtonHandler} for notes on usage.
|
|
3277
3300
|
* @returns Promise that resolves when the navigation has completed.
|
|
3278
3301
|
*/
|
|
3279
3302
|
function navigateBack(): Promise<void>;
|
|
3280
3303
|
/**
|
|
3281
|
-
* Registers a handler for user presses of the
|
|
3282
|
-
* navigation stack should use this handler to navigate the user back within their frame. If an
|
|
3304
|
+
* Registers a handler for user presses of the host client's back button. Experiences that maintain an internal
|
|
3305
|
+
* navigation stack should use this handler to navigate the user back within their frame. If an application finds
|
|
3283
3306
|
* that after running its back button handler it cannot handle the event it should call the navigateBack
|
|
3284
|
-
* method to ask the
|
|
3285
|
-
* @param handler The handler to invoke when the user presses
|
|
3307
|
+
* method to ask the host client to handle it instead.
|
|
3308
|
+
* @param handler - The handler to invoke when the user presses the host client's back button.
|
|
3286
3309
|
*/
|
|
3287
3310
|
function registerBackButtonHandler(handler: () => boolean): void;
|
|
3288
3311
|
/**
|
|
3289
|
-
* Checks if the
|
|
3312
|
+
* Checks if the pages.backStack capability is supported by the host
|
|
3290
3313
|
* @returns true if the pages.backStack capability is enabled in runtime.supports.pages.backStack and
|
|
3291
3314
|
* false if it is disabled
|
|
3292
3315
|
*/
|
|
@@ -3296,7 +3319,7 @@ export namespace pages {
|
|
|
3296
3319
|
* @hidden
|
|
3297
3320
|
* Hide from docs
|
|
3298
3321
|
* ------
|
|
3299
|
-
*
|
|
3322
|
+
* Provides APIs to interact with the full-trust part of the SDK. Limited to 1P applications
|
|
3300
3323
|
*/
|
|
3301
3324
|
namespace fullTrust {
|
|
3302
3325
|
/**
|
|
@@ -3317,14 +3340,14 @@ export namespace pages {
|
|
|
3317
3340
|
* @hidden
|
|
3318
3341
|
* Hide from docs
|
|
3319
3342
|
* ------
|
|
3320
|
-
* Checks if the
|
|
3343
|
+
* Checks if the pages.fullTrust capability is supported by the host
|
|
3321
3344
|
* @returns true if the pages.fullTrust capability is enabled in runtime.supports.pages.fullTrust and
|
|
3322
3345
|
* false if it is disabled
|
|
3323
3346
|
*/
|
|
3324
3347
|
function isSupported(): boolean;
|
|
3325
3348
|
}
|
|
3326
3349
|
/**
|
|
3327
|
-
*
|
|
3350
|
+
* Provides APIs to interact with the app button part of the SDK.
|
|
3328
3351
|
*/
|
|
3329
3352
|
namespace appButton {
|
|
3330
3353
|
/**
|
|
@@ -3346,7 +3369,7 @@ export namespace pages {
|
|
|
3346
3369
|
*/
|
|
3347
3370
|
function onHoverLeave(handler: () => void): void;
|
|
3348
3371
|
/**
|
|
3349
|
-
* Checks if pages.appButton capability is supported
|
|
3372
|
+
* Checks if pages.appButton capability is supported by the host
|
|
3350
3373
|
* @returns true if the pages.appButton capability is enabled in runtime.supports.pages.appButton and
|
|
3351
3374
|
* false if it is disabled
|
|
3352
3375
|
*/
|
|
@@ -4401,6 +4424,11 @@ export namespace teamsCore {
|
|
|
4401
4424
|
* @internal
|
|
4402
4425
|
*/
|
|
4403
4426
|
function registerBeforeUnloadHandler(handler: (readyToUnload: () => void) => boolean): void;
|
|
4427
|
+
/**
|
|
4428
|
+
* Checks if teamsCore capability is supported by the host
|
|
4429
|
+
* @returns true if the teamsCore capability is enabled in runtime.supports.teamsCore and
|
|
4430
|
+
* false if it is disabled
|
|
4431
|
+
*/
|
|
4404
4432
|
function isSupported(): boolean;
|
|
4405
4433
|
}
|
|
4406
4434
|
|
|
@@ -4511,7 +4539,7 @@ export namespace video {
|
|
|
4511
4539
|
NV12 = 0
|
|
4512
4540
|
}
|
|
4513
4541
|
/**
|
|
4514
|
-
* Video frame configuration supplied to
|
|
4542
|
+
* Video frame configuration supplied to the host to customize the generated video frame parameters, like format
|
|
4515
4543
|
*/
|
|
4516
4544
|
interface VideoFrameConfig {
|
|
4517
4545
|
/**
|
|
@@ -4542,21 +4570,29 @@ export namespace video {
|
|
|
4542
4570
|
type VideoEffectCallBack = (effectId: string | undefined) => void;
|
|
4543
4571
|
/**
|
|
4544
4572
|
* Register to read the video frames in Permissions section
|
|
4573
|
+
* @param frameCallback - The callback to invoke when registerForVideoFrame has completed
|
|
4574
|
+
* @param config - VideoFrameConfig to customize generated video frame parameters
|
|
4545
4575
|
*/
|
|
4546
4576
|
function registerForVideoFrame(frameCallback: VideoFrameCallback, config: VideoFrameConfig): void;
|
|
4547
4577
|
/**
|
|
4548
|
-
* video extension should call this to notify
|
|
4549
|
-
* If it's pre-meeting,
|
|
4550
|
-
* in-meeting scenario, we will call videoEffectCallback when apply button clicked.
|
|
4578
|
+
* video extension should call this to notify host client that the current selected effect parameter changed.
|
|
4579
|
+
* If it's pre-meeting, host client will call videoEffectCallback immediately then use the videoEffect.
|
|
4580
|
+
* If it's the in-meeting scenario, we will call videoEffectCallback when apply button clicked.
|
|
4551
4581
|
*
|
|
4552
4582
|
* @param effectChangeType - the effect change type.
|
|
4553
4583
|
* @param effectId - Newly selected effect id.
|
|
4554
4584
|
*/
|
|
4555
4585
|
function notifySelectedVideoEffectChanged(effectChangeType: EffectChangeType, effectId: string | undefined): void;
|
|
4556
4586
|
/**
|
|
4557
|
-
* Register the video effect callback,
|
|
4587
|
+
* Register the video effect callback, host client uses this to notify the video extension the new video effect will by applied
|
|
4588
|
+
* @param callback - The VideoEffectCallback to invoke when registerForVideoEffect has completed
|
|
4558
4589
|
*/
|
|
4559
4590
|
function registerForVideoEffect(callback: VideoEffectCallBack): void;
|
|
4591
|
+
/**
|
|
4592
|
+
* Checks if video capability is supported by the host
|
|
4593
|
+
* @returns true if the video capability is enabled in runtime.supports.video and
|
|
4594
|
+
* false if it is disabled
|
|
4595
|
+
*/
|
|
4560
4596
|
function isSupported(): boolean;
|
|
4561
4597
|
}
|
|
4562
4598
|
|
|
@@ -4619,7 +4655,7 @@ export namespace stageView {
|
|
|
4619
4655
|
*/
|
|
4620
4656
|
interface StageViewParams {
|
|
4621
4657
|
/**
|
|
4622
|
-
* The
|
|
4658
|
+
* The ID of the Teams application to be opened.
|
|
4623
4659
|
*/
|
|
4624
4660
|
appId: string;
|
|
4625
4661
|
/**
|
|
@@ -4635,11 +4671,11 @@ export namespace stageView {
|
|
|
4635
4671
|
*/
|
|
4636
4672
|
title: string;
|
|
4637
4673
|
/**
|
|
4638
|
-
* The Teams
|
|
4674
|
+
* The Teams application website URL.
|
|
4639
4675
|
*/
|
|
4640
4676
|
websiteUrl?: string;
|
|
4641
4677
|
/**
|
|
4642
|
-
* The entity ID of the Teams
|
|
4678
|
+
* The entity ID of the Teams application content being opened.
|
|
4643
4679
|
*/
|
|
4644
4680
|
entityId?: string;
|
|
4645
4681
|
}
|
|
@@ -4647,9 +4683,9 @@ export namespace stageView {
|
|
|
4647
4683
|
* @hidden
|
|
4648
4684
|
* Feature is under development
|
|
4649
4685
|
*
|
|
4650
|
-
* Opens a stage view to display a Teams
|
|
4651
|
-
* @param stageViewParams The parameters to pass into the stage view.
|
|
4652
|
-
*
|
|
4686
|
+
* Opens a stage view to display a Teams application
|
|
4687
|
+
* @param stageViewParams - The parameters to pass into the stage view.
|
|
4688
|
+
* @returns Promise that resolves once the stage view is closed.
|
|
4653
4689
|
*/
|
|
4654
4690
|
function open(stageViewParams: StageViewParams): Promise<void>;
|
|
4655
4691
|
/**
|
|
@@ -4659,9 +4695,9 @@ export namespace stageView {
|
|
|
4659
4695
|
* @deprecated
|
|
4660
4696
|
* As of 2.0.0, please use {@link stageView.open stageView.open(): Promise\<void\>} instead.
|
|
4661
4697
|
*
|
|
4662
|
-
* Opens a stage view to display a Teams
|
|
4663
|
-
* @param stageViewParams The parameters to pass into the stage view.
|
|
4664
|
-
*
|
|
4698
|
+
* Opens a stage view to display a Teams application
|
|
4699
|
+
* @param stageViewParams - The parameters to pass into the stage view.
|
|
4700
|
+
* @param callback - Optional callback that will be triggered once the stage view is closed.
|
|
4665
4701
|
* The callback takes as an argument an SdkError in case something happened (i.e.
|
|
4666
4702
|
* no permissions to execute the API)
|
|
4667
4703
|
*/
|