@microsoft/teams-js 2.10.1 → 2.11.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 +582 -201
- package/dist/MicrosoftTeams.js +252 -33
- 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.js
CHANGED
@@ -843,6 +843,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
843
843
|
"getTabInstances": () => (/* reexport */ getTabInstances),
|
844
844
|
"initialize": () => (/* reexport */ initialize),
|
845
845
|
"initializeWithFrameContext": () => (/* reexport */ initializeWithFrameContext),
|
846
|
+
"isSupported": () => (/* reexport */ isSupported),
|
846
847
|
"location": () => (/* reexport */ location_location),
|
847
848
|
"logs": () => (/* reexport */ logs),
|
848
849
|
"mail": () => (/* reexport */ mail),
|
@@ -1181,8 +1182,11 @@ function v4(options, buf, offset) {
|
|
1181
1182
|
*/
|
1182
1183
|
var FileOpenPreference;
|
1183
1184
|
(function (FileOpenPreference) {
|
1185
|
+
/** Indicates that the user should be prompted to open the file in inline. */
|
1184
1186
|
FileOpenPreference["Inline"] = "inline";
|
1187
|
+
/** Indicates that the user should be prompted to open the file in the native desktop application associated with the file type. */
|
1185
1188
|
FileOpenPreference["Desktop"] = "desktop";
|
1189
|
+
/** Indicates that the user should be prompted to open the file in a web browser. */
|
1186
1190
|
FileOpenPreference["Web"] = "web";
|
1187
1191
|
})(FileOpenPreference || (FileOpenPreference = {}));
|
1188
1192
|
/**
|
@@ -1192,20 +1196,26 @@ var FileOpenPreference;
|
|
1192
1196
|
*/
|
1193
1197
|
var ActionObjectType;
|
1194
1198
|
(function (ActionObjectType) {
|
1199
|
+
/** Represents content within a Microsoft 365 application. */
|
1195
1200
|
ActionObjectType["M365Content"] = "m365content";
|
1196
1201
|
})(ActionObjectType || (ActionObjectType = {}));
|
1197
1202
|
/**
|
1198
|
-
* These correspond with field names in the MSGraph
|
1199
|
-
*
|
1203
|
+
* These correspond with field names in the MSGraph.
|
1204
|
+
* See (commonly accessed resources)[https://learn.microsoft.com/en-us/graph/api/resources/onedrive?view=graph-rest-1.0#commonly-accessed-resources].
|
1200
1205
|
* @beta
|
1201
1206
|
*/
|
1202
1207
|
var SecondaryM365ContentIdName;
|
1203
1208
|
(function (SecondaryM365ContentIdName) {
|
1209
|
+
/** OneDrive ID */
|
1204
1210
|
SecondaryM365ContentIdName["DriveId"] = "driveId";
|
1211
|
+
/** Teams Group ID */
|
1205
1212
|
SecondaryM365ContentIdName["GroupId"] = "groupId";
|
1213
|
+
/** SharePoint ID */
|
1206
1214
|
SecondaryM365ContentIdName["SiteId"] = "siteId";
|
1215
|
+
/** User ID */
|
1207
1216
|
SecondaryM365ContentIdName["UserId"] = "userId";
|
1208
1217
|
})(SecondaryM365ContentIdName || (SecondaryM365ContentIdName = {}));
|
1218
|
+
/** Error codes used to identify different types of errors that can occur while developing apps. */
|
1209
1219
|
var ErrorCode;
|
1210
1220
|
(function (ErrorCode) {
|
1211
1221
|
/**
|
@@ -1277,24 +1287,36 @@ var DevicePermission;
|
|
1277
1287
|
})(DevicePermission || (DevicePermission = {}));
|
1278
1288
|
|
1279
1289
|
;// CONCATENATED MODULE: ./src/public/constants.ts
|
1290
|
+
/** HostClientType represents the different client platforms on which host can be run. */
|
1280
1291
|
var HostClientType;
|
1281
1292
|
(function (HostClientType) {
|
1293
|
+
/** Represents the desktop client of host, which is installed on a user's computer and runs as a standalone application. */
|
1282
1294
|
HostClientType["desktop"] = "desktop";
|
1295
|
+
/** Represents the web-based client of host, which runs in a web browser. */
|
1283
1296
|
HostClientType["web"] = "web";
|
1297
|
+
/** Represents the Android mobile client of host, which runs on Android devices such as smartphones and tablets. */
|
1284
1298
|
HostClientType["android"] = "android";
|
1299
|
+
/** Represents the iOS mobile client of host, which runs on iOS devices such as iPhones. */
|
1285
1300
|
HostClientType["ios"] = "ios";
|
1301
|
+
/** Represents the iPadOS client of host, which runs on iOS devices such as iPads. */
|
1286
1302
|
HostClientType["ipados"] = "ipados";
|
1287
1303
|
/**
|
1288
1304
|
* @deprecated
|
1289
1305
|
* As of 2.0.0, please use {@link teamsRoomsWindows} instead.
|
1290
1306
|
*/
|
1291
1307
|
HostClientType["rigel"] = "rigel";
|
1308
|
+
/** Represents the client of host, which runs on surface hub devices. */
|
1292
1309
|
HostClientType["surfaceHub"] = "surfaceHub";
|
1310
|
+
/** Represents the client of host, which runs on Teams Rooms on Windows devices. More information on Microsoft Teams Rooms on Windows can be found [Microsoft Teams Rooms (Windows)](https://support.microsoft.com/office/microsoft-teams-rooms-windows-help-e667f40e-5aab-40c1-bd68-611fe0002ba2)*/
|
1293
1311
|
HostClientType["teamsRoomsWindows"] = "teamsRoomsWindows";
|
1312
|
+
/** Represents the client of host, which runs on Teams Rooms on Android devices. More information on Microsoft Teams Rooms on Android can be found [Microsoft Teams Rooms (Android)].(https://support.microsoft.com/office/get-started-with-teams-rooms-on-android-68517298-d513-46be-8d6d-d41db5e6b4b2)*/
|
1294
1313
|
HostClientType["teamsRoomsAndroid"] = "teamsRoomsAndroid";
|
1314
|
+
/** Represents the client of host, which runs on Teams phones. More information can be found [Microsoft Teams Phones](https://support.microsoft.com/office/get-started-with-teams-phones-694ca17d-3ecf-40ca-b45e-d21b2c442412) */
|
1295
1315
|
HostClientType["teamsPhones"] = "teamsPhones";
|
1316
|
+
/** Represents the client of host, which runs on Teams displays devices. More information can be found [Microsoft Teams Displays](https://support.microsoft.com/office/get-started-with-teams-displays-ff299825-7f13-4528-96c2-1d3437e6d4e6) */
|
1296
1317
|
HostClientType["teamsDisplays"] = "teamsDisplays";
|
1297
1318
|
})(HostClientType || (HostClientType = {}));
|
1319
|
+
/** HostName indicates the possible hosts for your application. */
|
1298
1320
|
var HostName;
|
1299
1321
|
(function (HostName) {
|
1300
1322
|
/**
|
@@ -1323,16 +1345,36 @@ var HostName;
|
|
1323
1345
|
*/
|
1324
1346
|
HostName["teamsModern"] = "TeamsModern";
|
1325
1347
|
})(HostName || (HostName = {}));
|
1326
|
-
|
1348
|
+
/**
|
1349
|
+
* FrameContexts provides information about the context in which the app is running within the host.
|
1350
|
+
* Developers can use FrameContexts to determine how their app should behave in different contexts,
|
1351
|
+
* and can use the information provided by the context to adapt the app to the user's needs.
|
1352
|
+
*
|
1353
|
+
* @example
|
1354
|
+
* If your app is running in the "settings" context, you should be displaying your apps configuration page.
|
1355
|
+
* If the app is running in the content context, the developer may want to display information relevant to
|
1356
|
+
* the content the user is currently viewing.
|
1357
|
+
*/
|
1327
1358
|
var FrameContexts;
|
1328
1359
|
(function (FrameContexts) {
|
1360
|
+
/**
|
1361
|
+
* App's frame context from where settings page can be accessed.
|
1362
|
+
* See [how to create a configuration page.]( https://learn.microsoft.com/microsoftteams/platform/tabs/how-to/create-tab-pages/configuration-page?tabs=teamsjs-v2)
|
1363
|
+
*/
|
1329
1364
|
FrameContexts["settings"] = "settings";
|
1365
|
+
/** The default context for the app where all the content of the app is displayed. */
|
1330
1366
|
FrameContexts["content"] = "content";
|
1367
|
+
/** Frame context used when app is running in the authentication window launched by calling {@link authentication.authenticate} */
|
1331
1368
|
FrameContexts["authentication"] = "authentication";
|
1369
|
+
/** The page shown when the user uninstalls the app. */
|
1332
1370
|
FrameContexts["remove"] = "remove";
|
1371
|
+
/** A task module is a pop-up window that can be used to display a form, a dialog, or other interactive content within the host. */
|
1333
1372
|
FrameContexts["task"] = "task";
|
1373
|
+
/** The side panel is a persistent panel that is displayed on the right side of the host and can be used to display content or UI that is relevant to the current page or tab. */
|
1334
1374
|
FrameContexts["sidePanel"] = "sidePanel";
|
1375
|
+
/** The stage is a large area that is displayed at the center of the host and can be used to display content or UI that requires a lot of space, such as a video player or a document editor. */
|
1335
1376
|
FrameContexts["stage"] = "stage";
|
1377
|
+
/** App's frame context from where meetingStage can be accessed in a meeting session, which is the primary area where video and presentation content is displayed during a meeting. */
|
1336
1378
|
FrameContexts["meetingStage"] = "meetingStage";
|
1337
1379
|
})(FrameContexts || (FrameContexts = {}));
|
1338
1380
|
/**
|
@@ -1341,10 +1383,15 @@ var FrameContexts;
|
|
1341
1383
|
*/
|
1342
1384
|
var TeamType;
|
1343
1385
|
(function (TeamType) {
|
1386
|
+
/** Represents a standard or classic team in host that is designed for ongoing collaboration and communication among a group of people. */
|
1344
1387
|
TeamType[TeamType["Standard"] = 0] = "Standard";
|
1388
|
+
/** Represents an educational team in host that is designed for classroom collaboration and communication among students and teachers. */
|
1345
1389
|
TeamType[TeamType["Edu"] = 1] = "Edu";
|
1390
|
+
/** Represents a class team in host that is designed for classroom collaboration and communication among students and teachers in a structured environment. */
|
1346
1391
|
TeamType[TeamType["Class"] = 2] = "Class";
|
1392
|
+
/** Represents a professional learning community (PLC) team in host that is designed for educators to collaborate and share resources and best practices. */
|
1347
1393
|
TeamType[TeamType["Plc"] = 3] = "Plc";
|
1394
|
+
/** Represents a staff team in host that is designed for staff collaboration and communication among staff members.*/
|
1348
1395
|
TeamType[TeamType["Staff"] = 4] = "Staff";
|
1349
1396
|
})(TeamType || (TeamType = {}));
|
1350
1397
|
/**
|
@@ -1352,8 +1399,11 @@ var TeamType;
|
|
1352
1399
|
*/
|
1353
1400
|
var UserTeamRole;
|
1354
1401
|
(function (UserTeamRole) {
|
1402
|
+
/** Represents that the user is an owner or administrator of the team. */
|
1355
1403
|
UserTeamRole[UserTeamRole["Admin"] = 0] = "Admin";
|
1404
|
+
/** Represents that the user is a standard member of the team. */
|
1356
1405
|
UserTeamRole[UserTeamRole["User"] = 1] = "User";
|
1406
|
+
/** Represents that the user does not have any role in the team. */
|
1357
1407
|
UserTeamRole[UserTeamRole["Guest"] = 2] = "Guest";
|
1358
1408
|
})(UserTeamRole || (UserTeamRole = {}));
|
1359
1409
|
/**
|
@@ -1361,8 +1411,11 @@ var UserTeamRole;
|
|
1361
1411
|
*/
|
1362
1412
|
var DialogDimension;
|
1363
1413
|
(function (DialogDimension) {
|
1414
|
+
/** Represents a large-sized dialog box, which is typically used for displaying large amounts of content or complex workflows that require more space. */
|
1364
1415
|
DialogDimension["Large"] = "large";
|
1416
|
+
/** Represents a medium-sized dialog box, which is typically used for displaying moderate amounts of content or workflows that require less space. */
|
1365
1417
|
DialogDimension["Medium"] = "medium";
|
1418
|
+
/** Represents a small-sized dialog box, which is typically used for displaying simple messages or workflows that require minimal space.*/
|
1366
1419
|
DialogDimension["Small"] = "small";
|
1367
1420
|
})(DialogDimension || (DialogDimension = {}));
|
1368
1421
|
|
@@ -1377,10 +1430,16 @@ var TaskModuleDimension = DialogDimension;
|
|
1377
1430
|
*/
|
1378
1431
|
var ChannelType;
|
1379
1432
|
(function (ChannelType) {
|
1433
|
+
/** The default channel type. Type of channel is used for general collaboration and communication within a team. */
|
1380
1434
|
ChannelType["Regular"] = "Regular";
|
1435
|
+
/** Type of channel is used for sensitive or confidential communication within a team and is only accessible to members of the channel. */
|
1381
1436
|
ChannelType["Private"] = "Private";
|
1437
|
+
/** Type of channel is used for collaboration between multiple teams or groups and is accessible to members of all the teams or groups. */
|
1382
1438
|
ChannelType["Shared"] = "Shared";
|
1383
1439
|
})(ChannelType || (ChannelType = {}));
|
1440
|
+
/** An error object indicating that the requested operation or feature is not supported on the current platform or device.
|
1441
|
+
* @typedef {Object} SdkError
|
1442
|
+
*/
|
1384
1443
|
var errorNotSupportedOnPlatform = { errorCode: ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
|
1385
1444
|
/**
|
1386
1445
|
* @hidden
|
@@ -1797,6 +1856,7 @@ var teamsRuntimeConfig = {
|
|
1797
1856
|
},
|
1798
1857
|
update: {},
|
1799
1858
|
},
|
1859
|
+
interactive: {},
|
1800
1860
|
logs: {},
|
1801
1861
|
meetingRoom: {},
|
1802
1862
|
menus: {},
|
@@ -1999,7 +2059,11 @@ var _minRuntimeConfigToUninitialize = {
|
|
1999
2059
|
};
|
2000
2060
|
|
2001
2061
|
;// CONCATENATED MODULE: ./src/public/version.ts
|
2002
|
-
|
2062
|
+
/**
|
2063
|
+
* @hidden
|
2064
|
+
* Package version.
|
2065
|
+
*/
|
2066
|
+
var version = "2.11.0-beta.1";
|
2003
2067
|
|
2004
2068
|
;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
|
2005
2069
|
|
@@ -3096,6 +3160,13 @@ var menus;
|
|
3096
3160
|
var navBarMenuItemPressHandler;
|
3097
3161
|
var actionMenuItemPressHandler;
|
3098
3162
|
var viewConfigItemPressHandler;
|
3163
|
+
/**
|
3164
|
+
* @hidden
|
3165
|
+
* Register navBarMenuItemPress, actionMenuItemPress, setModuleView handlers.
|
3166
|
+
*
|
3167
|
+
* @internal
|
3168
|
+
* Limited to Microsoft-internal use.
|
3169
|
+
*/
|
3099
3170
|
function initialize() {
|
3100
3171
|
registerHandler('navBarMenuItemPress', handleNavBarMenuItemPress, false);
|
3101
3172
|
registerHandler('actionMenuItemPress', handleActionMenuItemPress, false);
|
@@ -3345,10 +3416,15 @@ var app;
|
|
3345
3416
|
(function (app) {
|
3346
3417
|
var appLogger = getLogger('app');
|
3347
3418
|
// ::::::::::::::::::::::: MicrosoftTeams client SDK public API ::::::::::::::::::::
|
3419
|
+
/** App Initialization Messages */
|
3348
3420
|
app.Messages = {
|
3421
|
+
/** App loaded. */
|
3349
3422
|
AppLoaded: 'appInitialization.appLoaded',
|
3423
|
+
/** App initialized successfully. */
|
3350
3424
|
Success: 'appInitialization.success',
|
3425
|
+
/** App initialization failed. */
|
3351
3426
|
Failure: 'appInitialization.failure',
|
3427
|
+
/** App initialization expected failure. */
|
3352
3428
|
ExpectedFailure: 'appInitialization.expectedFailure',
|
3353
3429
|
};
|
3354
3430
|
/**
|
@@ -4121,16 +4197,16 @@ var pages;
|
|
4121
4197
|
}
|
4122
4198
|
config.registerOnRemoveHandlerHelper = registerOnRemoveHandlerHelper;
|
4123
4199
|
function handleSave(result) {
|
4124
|
-
var
|
4200
|
+
var saveEventType = new SaveEventImpl(result);
|
4125
4201
|
if (saveHandler) {
|
4126
|
-
saveHandler(
|
4202
|
+
saveHandler(saveEventType);
|
4127
4203
|
}
|
4128
4204
|
else if (Communication.childWindow) {
|
4129
4205
|
sendMessageEventToChild('settings.save', [result]);
|
4130
4206
|
}
|
4131
4207
|
else {
|
4132
4208
|
// If no handler is registered, we assume success.
|
4133
|
-
|
4209
|
+
saveEventType.notifySuccess();
|
4134
4210
|
}
|
4135
4211
|
}
|
4136
4212
|
/**
|
@@ -4172,16 +4248,16 @@ var pages;
|
|
4172
4248
|
return SaveEventImpl;
|
4173
4249
|
}());
|
4174
4250
|
function handleRemove() {
|
4175
|
-
var
|
4251
|
+
var removeEventType = new RemoveEventImpl();
|
4176
4252
|
if (removeHandler) {
|
4177
|
-
removeHandler(
|
4253
|
+
removeHandler(removeEventType);
|
4178
4254
|
}
|
4179
4255
|
else if (Communication.childWindow) {
|
4180
4256
|
sendMessageEventToChild('settings.remove', []);
|
4181
4257
|
}
|
4182
4258
|
else {
|
4183
4259
|
// If no handler is registered, we assume success.
|
4184
|
-
|
4260
|
+
removeEventType.notifySuccess();
|
4185
4261
|
}
|
4186
4262
|
}
|
4187
4263
|
/**
|
@@ -4204,7 +4280,7 @@ var pages;
|
|
4204
4280
|
};
|
4205
4281
|
RemoveEventImpl.prototype.ensureNotNotified = function () {
|
4206
4282
|
if (this.notified) {
|
4207
|
-
throw new Error('The
|
4283
|
+
throw new Error('The removeEventType may only notify success or failure once.');
|
4208
4284
|
}
|
4209
4285
|
};
|
4210
4286
|
return RemoveEventImpl;
|
@@ -4230,6 +4306,13 @@ var pages;
|
|
4230
4306
|
var backStack;
|
4231
4307
|
(function (backStack) {
|
4232
4308
|
var backButtonPressHandler;
|
4309
|
+
/**
|
4310
|
+
* @hidden
|
4311
|
+
* Register backButtonPress handler.
|
4312
|
+
*
|
4313
|
+
* @internal
|
4314
|
+
* Limited to Microsoft-internal use.
|
4315
|
+
*/
|
4233
4316
|
function _initialize() {
|
4234
4317
|
registerHandler('backButtonPress', handleBackButtonPress, false);
|
4235
4318
|
}
|
@@ -5605,6 +5688,11 @@ function createTeamsDeepLinkForAppInstallDialog(appId) {
|
|
5605
5688
|
|
5606
5689
|
var appInstallDialog;
|
5607
5690
|
(function (appInstallDialog) {
|
5691
|
+
/**
|
5692
|
+
* Displays a dialog box that allows users to install a specific app within the host environment.
|
5693
|
+
*
|
5694
|
+
* @param openAPPInstallDialogParams - See {@link OpenAppInstallDialogParams | OpenAppInstallDialogParams} for more information.
|
5695
|
+
*/
|
5608
5696
|
function openAppInstallDialog(openAPPInstallDialogParams) {
|
5609
5697
|
return new Promise(function (resolve) {
|
5610
5698
|
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
@@ -5660,6 +5748,9 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
5660
5748
|
|
5661
5749
|
|
5662
5750
|
|
5751
|
+
/**
|
5752
|
+
* Interact with media, including capturing and viewing images.
|
5753
|
+
*/
|
5663
5754
|
var media;
|
5664
5755
|
(function (media) {
|
5665
5756
|
/**
|
@@ -5667,7 +5758,9 @@ var media;
|
|
5667
5758
|
*/
|
5668
5759
|
var FileFormat;
|
5669
5760
|
(function (FileFormat) {
|
5761
|
+
/** Base64 encoding */
|
5670
5762
|
FileFormat["Base64"] = "base64";
|
5763
|
+
/** File id */
|
5671
5764
|
FileFormat["ID"] = "id";
|
5672
5765
|
})(FileFormat = media.FileFormat || (media.FileFormat = {}));
|
5673
5766
|
/**
|
@@ -5757,6 +5850,7 @@ var media;
|
|
5757
5850
|
this.getMediaViaHandler(callback);
|
5758
5851
|
}
|
5759
5852
|
};
|
5853
|
+
/** Function to retrieve media content, such as images or videos, via callback. */
|
5760
5854
|
Media.prototype.getMediaViaCallback = function (callback) {
|
5761
5855
|
var helper = {
|
5762
5856
|
mediaMimeType: this.mimeType,
|
@@ -5792,6 +5886,7 @@ var media;
|
|
5792
5886
|
}
|
5793
5887
|
sendMessageToParent('getMedia', localUriId, handleGetMediaCallbackRequest);
|
5794
5888
|
};
|
5889
|
+
/** Function to retrieve media content, such as images or videos, via handler. */
|
5795
5890
|
Media.prototype.getMediaViaHandler = function (callback) {
|
5796
5891
|
var actionName = generateGUID();
|
5797
5892
|
var helper = {
|
@@ -5890,9 +5985,11 @@ var media;
|
|
5890
5985
|
function VideoController() {
|
5891
5986
|
return _super !== null && _super.apply(this, arguments) || this;
|
5892
5987
|
}
|
5988
|
+
/** Gets media type video. */
|
5893
5989
|
VideoController.prototype.getMediaType = function () {
|
5894
5990
|
return MediaType.Video;
|
5895
5991
|
};
|
5992
|
+
/** Notify or send an event related to the playback and control of video content to a registered application. */
|
5896
5993
|
VideoController.prototype.notifyEventToApp = function (mediaEvent) {
|
5897
5994
|
if (!this.controllerCallback) {
|
5898
5995
|
// Early return as app has not registered with the callback
|
@@ -5915,7 +6012,9 @@ var media;
|
|
5915
6012
|
*/
|
5916
6013
|
var MediaControllerEvent;
|
5917
6014
|
(function (MediaControllerEvent) {
|
6015
|
+
/** Start recording. */
|
5918
6016
|
MediaControllerEvent[MediaControllerEvent["StartRecording"] = 1] = "StartRecording";
|
6017
|
+
/** Stop recording. */
|
5919
6018
|
MediaControllerEvent[MediaControllerEvent["StopRecording"] = 2] = "StopRecording";
|
5920
6019
|
})(MediaControllerEvent = media.MediaControllerEvent || (media.MediaControllerEvent = {}));
|
5921
6020
|
/**
|
@@ -5923,9 +6022,13 @@ var media;
|
|
5923
6022
|
*/
|
5924
6023
|
var CameraStartMode;
|
5925
6024
|
(function (CameraStartMode) {
|
6025
|
+
/** Photo mode. */
|
5926
6026
|
CameraStartMode[CameraStartMode["Photo"] = 1] = "Photo";
|
6027
|
+
/** Document mode. */
|
5927
6028
|
CameraStartMode[CameraStartMode["Document"] = 2] = "Document";
|
6029
|
+
/** Whiteboard mode. */
|
5928
6030
|
CameraStartMode[CameraStartMode["Whiteboard"] = 3] = "Whiteboard";
|
6031
|
+
/** Business card mode. */
|
5929
6032
|
CameraStartMode[CameraStartMode["BusinessCard"] = 4] = "BusinessCard";
|
5930
6033
|
})(CameraStartMode = media.CameraStartMode || (media.CameraStartMode = {}));
|
5931
6034
|
/**
|
@@ -5933,7 +6036,9 @@ var media;
|
|
5933
6036
|
*/
|
5934
6037
|
var Source;
|
5935
6038
|
(function (Source) {
|
6039
|
+
/** Image source is camera. */
|
5936
6040
|
Source[Source["Camera"] = 1] = "Camera";
|
6041
|
+
/** Image source is gallery. */
|
5937
6042
|
Source[Source["Gallery"] = 2] = "Gallery";
|
5938
6043
|
})(Source = media.Source || (media.Source = {}));
|
5939
6044
|
/**
|
@@ -5941,9 +6046,13 @@ var media;
|
|
5941
6046
|
*/
|
5942
6047
|
var MediaType;
|
5943
6048
|
(function (MediaType) {
|
6049
|
+
/** Media type photo or image */
|
5944
6050
|
MediaType[MediaType["Image"] = 1] = "Image";
|
6051
|
+
/** Media type video. */
|
5945
6052
|
MediaType[MediaType["Video"] = 2] = "Video";
|
6053
|
+
/** Media type video and image. */
|
5946
6054
|
MediaType[MediaType["VideoAndImage"] = 3] = "VideoAndImage";
|
6055
|
+
/** Media type audio. */
|
5947
6056
|
MediaType[MediaType["Audio"] = 4] = "Audio";
|
5948
6057
|
})(MediaType = media.MediaType || (media.MediaType = {}));
|
5949
6058
|
/**
|
@@ -5951,7 +6060,9 @@ var media;
|
|
5951
6060
|
*/
|
5952
6061
|
var ImageUriType;
|
5953
6062
|
(function (ImageUriType) {
|
6063
|
+
/** Image Id. */
|
5954
6064
|
ImageUriType[ImageUriType["ID"] = 1] = "ID";
|
6065
|
+
/** Image URL. */
|
5955
6066
|
ImageUriType[ImageUriType["URL"] = 2] = "URL";
|
5956
6067
|
})(ImageUriType = media.ImageUriType || (media.ImageUriType = {}));
|
5957
6068
|
/**
|
@@ -5959,7 +6070,9 @@ var media;
|
|
5959
6070
|
*/
|
5960
6071
|
var ImageOutputFormats;
|
5961
6072
|
(function (ImageOutputFormats) {
|
6073
|
+
/** Outputs image. */
|
5962
6074
|
ImageOutputFormats[ImageOutputFormats["IMAGE"] = 1] = "IMAGE";
|
6075
|
+
/** Outputs pdf. */
|
5963
6076
|
ImageOutputFormats[ImageOutputFormats["PDF"] = 2] = "PDF";
|
5964
6077
|
})(ImageOutputFormats = media.ImageOutputFormats || (media.ImageOutputFormats = {}));
|
5965
6078
|
/**
|
@@ -6657,6 +6770,10 @@ function getAdaptiveCardSchemaVersion() {
|
|
6657
6770
|
|
6658
6771
|
|
6659
6772
|
|
6773
|
+
/**
|
6774
|
+
* An object that application can utilize to establish communication
|
6775
|
+
* with the child window it opened, which contains the corresponding task.
|
6776
|
+
*/
|
6660
6777
|
var ChildAppWindow = /** @class */ (function () {
|
6661
6778
|
function ChildAppWindow() {
|
6662
6779
|
}
|
@@ -6685,10 +6802,16 @@ var ChildAppWindow = /** @class */ (function () {
|
|
6685
6802
|
return ChildAppWindow;
|
6686
6803
|
}());
|
6687
6804
|
|
6805
|
+
/**
|
6806
|
+
* An object that is utilized to facilitate communication with a parent window
|
6807
|
+
* that initiated the opening of current window. For instance, a dialog or task
|
6808
|
+
* module would utilize it to transmit messages to the application that launched it.
|
6809
|
+
*/
|
6688
6810
|
var ParentAppWindow = /** @class */ (function () {
|
6689
6811
|
function ParentAppWindow() {
|
6690
6812
|
}
|
6691
6813
|
Object.defineProperty(ParentAppWindow, "Instance", {
|
6814
|
+
/** Get the parent window instance. */
|
6692
6815
|
get: function () {
|
6693
6816
|
// Do you need arguments? Make it a regular method instead.
|
6694
6817
|
return this._instance || (this._instance = new this());
|
@@ -6848,6 +6971,11 @@ var __generator = (undefined && undefined.__generator) || function (thisArg, bod
|
|
6848
6971
|
|
6849
6972
|
|
6850
6973
|
|
6974
|
+
/**
|
6975
|
+
* Interact with meetings, including retrieving meeting details, getting mic status, and sharing app content.
|
6976
|
+
* This namespace is used to handle meeting related functionality like
|
6977
|
+
* get meeting details, get/update state of mic, sharing app content and more.
|
6978
|
+
*/
|
6851
6979
|
var meeting;
|
6852
6980
|
(function (meeting) {
|
6853
6981
|
/**
|
@@ -6879,18 +7007,28 @@ var meeting;
|
|
6879
7007
|
MeetingReactionType["surprised"] = "surprised";
|
6880
7008
|
MeetingReactionType["applause"] = "applause";
|
6881
7009
|
})(MeetingReactionType = meeting.MeetingReactionType || (meeting.MeetingReactionType = {}));
|
7010
|
+
/** Represents the type of a meeting */
|
6882
7011
|
var MeetingType;
|
6883
7012
|
(function (MeetingType) {
|
7013
|
+
/** Used when the meeting type is not known. */
|
6884
7014
|
MeetingType["Unknown"] = "Unknown";
|
7015
|
+
/** Used for ad hoc meetings that are created on the fly. */
|
6885
7016
|
MeetingType["Adhoc"] = "Adhoc";
|
7017
|
+
/** Used for meetings that have been scheduled in advance. */
|
6886
7018
|
MeetingType["Scheduled"] = "Scheduled";
|
7019
|
+
/** Used for meetings that occur on a recurring basis. */
|
6887
7020
|
MeetingType["Recurring"] = "Recurring";
|
7021
|
+
/** Used for live events or webinars. */
|
6888
7022
|
MeetingType["Broadcast"] = "Broadcast";
|
7023
|
+
/** Used for meetings that are created on the fly, but with a more polished experience than ad hoc meetings. */
|
6889
7024
|
MeetingType["MeetNow"] = "MeetNow";
|
6890
7025
|
})(MeetingType = meeting.MeetingType || (meeting.MeetingType = {}));
|
7026
|
+
/** Represents the type of a call. */
|
6891
7027
|
var CallType;
|
6892
7028
|
(function (CallType) {
|
7029
|
+
/** Represents a call between two people. */
|
6893
7030
|
CallType["OneOnOneCall"] = "oneOnOneCall";
|
7031
|
+
/** Represents a call between more than two people. */
|
6894
7032
|
CallType["GroupCall"] = "groupCall";
|
6895
7033
|
})(CallType = meeting.CallType || (meeting.CallType = {}));
|
6896
7034
|
/**
|
@@ -7360,8 +7498,16 @@ var monetization;
|
|
7360
7498
|
|
7361
7499
|
|
7362
7500
|
|
7501
|
+
/**
|
7502
|
+
* Interact with the user's calendar, including opening calendar items and composing meetings.
|
7503
|
+
*/
|
7363
7504
|
var calendar;
|
7364
7505
|
(function (calendar) {
|
7506
|
+
/**
|
7507
|
+
* Opens a calendar item.
|
7508
|
+
*
|
7509
|
+
* @param openCalendarItemParams - object containing unique ID of the calendar item to be opened.
|
7510
|
+
*/
|
7365
7511
|
function openCalendarItem(openCalendarItemParams) {
|
7366
7512
|
return new Promise(function (resolve) {
|
7367
7513
|
ensureInitialized(runtime, FrameContexts.content);
|
@@ -7375,6 +7521,11 @@ var calendar;
|
|
7375
7521
|
});
|
7376
7522
|
}
|
7377
7523
|
calendar.openCalendarItem = openCalendarItem;
|
7524
|
+
/**
|
7525
|
+
* Compose a new meeting in the user's calendar.
|
7526
|
+
*
|
7527
|
+
* @param composeMeetingParams - object containing various properties to set up the meeting details.
|
7528
|
+
*/
|
7378
7529
|
function composeMeeting(composeMeetingParams) {
|
7379
7530
|
return new Promise(function (resolve) {
|
7380
7531
|
ensureInitialized(runtime, FrameContexts.content);
|
@@ -7407,8 +7558,16 @@ var calendar;
|
|
7407
7558
|
|
7408
7559
|
|
7409
7560
|
|
7561
|
+
/**
|
7562
|
+
* Used to interact with mail capability, including opening and composing mail.
|
7563
|
+
*/
|
7410
7564
|
var mail;
|
7411
7565
|
(function (mail) {
|
7566
|
+
/**
|
7567
|
+
* Opens a mail message in the host.
|
7568
|
+
*
|
7569
|
+
* @param openMailItemParams - Object that specifies the ID of the mail message.
|
7570
|
+
*/
|
7412
7571
|
function openMailItem(openMailItemParams) {
|
7413
7572
|
return new Promise(function (resolve) {
|
7414
7573
|
ensureInitialized(runtime, FrameContexts.content);
|
@@ -7422,6 +7581,12 @@ var mail;
|
|
7422
7581
|
});
|
7423
7582
|
}
|
7424
7583
|
mail.openMailItem = openMailItem;
|
7584
|
+
/**
|
7585
|
+
* Compose a new email in the user's mailbox.
|
7586
|
+
*
|
7587
|
+
* @param composeMailParams - Object that specifies the type of mail item to compose and the details of the mail item.
|
7588
|
+
*
|
7589
|
+
*/
|
7425
7590
|
function composeMail(composeMailParams) {
|
7426
7591
|
return new Promise(function (resolve) {
|
7427
7592
|
ensureInitialized(runtime, FrameContexts.content);
|
@@ -7442,11 +7607,16 @@ var mail;
|
|
7442
7607
|
return ensureInitialized(runtime) && runtime.supports.mail ? true : false;
|
7443
7608
|
}
|
7444
7609
|
mail.isSupported = isSupported;
|
7610
|
+
/** Defines compose mail types. */
|
7445
7611
|
var ComposeMailType;
|
7446
7612
|
(function (ComposeMailType) {
|
7613
|
+
/** Compose a new mail message. */
|
7447
7614
|
ComposeMailType["New"] = "new";
|
7615
|
+
/** Compose a reply to the sender of an existing mail message. */
|
7448
7616
|
ComposeMailType["Reply"] = "reply";
|
7617
|
+
/** Compose a reply to all recipients of an existing mail message. */
|
7449
7618
|
ComposeMailType["ReplyAll"] = "replyAll";
|
7619
|
+
/** Compose a new mail message with the content of an existing mail message forwarded to a new recipient. */
|
7450
7620
|
ComposeMailType["Forward"] = "forward";
|
7451
7621
|
})(ComposeMailType = mail.ComposeMailType || (mail.ComposeMailType = {}));
|
7452
7622
|
})(mail || (mail = {}));
|
@@ -7654,6 +7824,7 @@ var video;
|
|
7654
7824
|
*/
|
7655
7825
|
var VideoFrameFormat;
|
7656
7826
|
(function (VideoFrameFormat) {
|
7827
|
+
/** Video format used for encoding and decoding YUV color data in video streaming and storage applications. */
|
7657
7828
|
VideoFrameFormat[VideoFrameFormat["NV12"] = 0] = "NV12";
|
7658
7829
|
})(VideoFrameFormat = video.VideoFrameFormat || (video.VideoFrameFormat = {}));
|
7659
7830
|
/**
|
@@ -7897,7 +8068,12 @@ var search;
|
|
7897
8068
|
*/
|
7898
8069
|
var sharing;
|
7899
8070
|
(function (sharing) {
|
8071
|
+
/** Type of message that can be sent or received by the sharing APIs */
|
7900
8072
|
sharing.SharingAPIMessages = {
|
8073
|
+
/**
|
8074
|
+
* Share web content message.
|
8075
|
+
* @internal
|
8076
|
+
*/
|
7901
8077
|
shareWebContent: 'sharing.shareWebContent',
|
7902
8078
|
};
|
7903
8079
|
function shareWebContent(shareWebContentRequest, callback) {
|
@@ -8075,14 +8251,23 @@ var webStorage;
|
|
8075
8251
|
|
8076
8252
|
|
8077
8253
|
|
8254
|
+
/**
|
8255
|
+
* Used to interact with call functionality, including starting calls with other users.
|
8256
|
+
*/
|
8078
8257
|
var call;
|
8079
8258
|
(function (call) {
|
8259
|
+
/** Modalities that can be associated with a call. */
|
8080
8260
|
var CallModalities;
|
8081
8261
|
(function (CallModalities) {
|
8262
|
+
/** Indicates that the modality is unknown or undefined. */
|
8082
8263
|
CallModalities["Unknown"] = "unknown";
|
8264
|
+
/** Indicates that the call includes audio. */
|
8083
8265
|
CallModalities["Audio"] = "audio";
|
8266
|
+
/** Indicates that the call includes video. */
|
8084
8267
|
CallModalities["Video"] = "video";
|
8268
|
+
/** Indicates that the call includes video-based screen sharing. */
|
8085
8269
|
CallModalities["VideoBasedScreenSharing"] = "videoBasedScreenSharing";
|
8270
|
+
/** Indicates that the call includes data sharing or messaging. */
|
8086
8271
|
CallModalities["Data"] = "data";
|
8087
8272
|
})(CallModalities = call.CallModalities || (call.CallModalities = {}));
|
8088
8273
|
/**
|
@@ -8256,7 +8441,7 @@ function getContext(callback) {
|
|
8256
8441
|
}
|
8257
8442
|
/**
|
8258
8443
|
* @deprecated
|
8259
|
-
* As of 2.0.0, please use {@link app.registerOnThemeChangeHandler app.registerOnThemeChangeHandler(handler:
|
8444
|
+
* As of 2.0.0, please use {@link app.registerOnThemeChangeHandler app.registerOnThemeChangeHandler(handler: registerOnThemeChangeHandlerFunctionType): void} instead.
|
8260
8445
|
*
|
8261
8446
|
* Registers a handler for theme changes.
|
8262
8447
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
@@ -8268,7 +8453,7 @@ function registerOnThemeChangeHandler(handler) {
|
|
8268
8453
|
}
|
8269
8454
|
/**
|
8270
8455
|
* @deprecated
|
8271
|
-
* As of 2.0.0, please use {@link pages.registerFullScreenHandler pages.registerFullScreenHandler(handler:
|
8456
|
+
* As of 2.0.0, please use {@link pages.registerFullScreenHandler pages.registerFullScreenHandler(handler: registerFullScreenHandlerFunctionType): void} instead.
|
8272
8457
|
*
|
8273
8458
|
* Registers a handler for changes from or to full-screen view for a tab.
|
8274
8459
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
@@ -8280,7 +8465,7 @@ function registerFullScreenHandler(handler) {
|
|
8280
8465
|
}
|
8281
8466
|
/**
|
8282
8467
|
* @deprecated
|
8283
|
-
* As of 2.0.0, please use {@link pages.appButton.onClick pages.appButton.onClick(handler:
|
8468
|
+
* As of 2.0.0, please use {@link pages.appButton.onClick pages.appButton.onClick(handler: callbackFunctionType): void} instead.
|
8284
8469
|
*
|
8285
8470
|
* Registers a handler for clicking the app button.
|
8286
8471
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
@@ -8292,7 +8477,7 @@ function registerAppButtonClickHandler(handler) {
|
|
8292
8477
|
}
|
8293
8478
|
/**
|
8294
8479
|
* @deprecated
|
8295
|
-
* As of 2.0.0, please use {@link pages.appButton.onHoverEnter pages.appButton.onHoverEnter(handler:
|
8480
|
+
* As of 2.0.0, please use {@link pages.appButton.onHoverEnter pages.appButton.onHoverEnter(handler: callbackFunctionType): void} instead.
|
8296
8481
|
*
|
8297
8482
|
* Registers a handler for entering hover of the app button.
|
8298
8483
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
@@ -8304,7 +8489,7 @@ function registerAppButtonHoverEnterHandler(handler) {
|
|
8304
8489
|
}
|
8305
8490
|
/**
|
8306
8491
|
* @deprecated
|
8307
|
-
* As of 2.0.0, please use {@link pages.appButton.onHoverLeave pages.appButton.onHoverLeave(handler:
|
8492
|
+
* As of 2.0.0, please use {@link pages.appButton.onHoverLeave pages.appButton.onHoverLeave(handler: callbackFunctionType): void} instead.
|
8308
8493
|
*
|
8309
8494
|
* Registers a handler for exiting hover of the app button.
|
8310
8495
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
@@ -8316,7 +8501,7 @@ function registerAppButtonHoverLeaveHandler(handler) {
|
|
8316
8501
|
}
|
8317
8502
|
/**
|
8318
8503
|
* @deprecated
|
8319
|
-
* As of 2.0.0, please use {@link pages.backStack.registerBackButtonHandler pages.backStack.registerBackButtonHandler(handler:
|
8504
|
+
* As of 2.0.0, please use {@link pages.backStack.registerBackButtonHandler pages.backStack.registerBackButtonHandler(handler: registerBackButtonHandlerFunctionType): void} instead.
|
8320
8505
|
*
|
8321
8506
|
* Registers a handler for user presses of the Team client's back button. Experiences that maintain an internal
|
8322
8507
|
* navigation stack should use this handler to navigate the user back within their frame. If an app finds
|
@@ -8342,7 +8527,7 @@ function registerOnLoadHandler(handler) {
|
|
8342
8527
|
}
|
8343
8528
|
/**
|
8344
8529
|
* @deprecated
|
8345
|
-
* As of 2.0.0, please use {@link teamsCore.registerBeforeUnloadHandler teamsCore.registerBeforeUnloadHandler(handler: (readyToUnload:
|
8530
|
+
* As of 2.0.0, please use {@link teamsCore.registerBeforeUnloadHandler teamsCore.registerBeforeUnloadHandler(handler: (readyToUnload: callbackFunctionType) => boolean): void} instead.
|
8346
8531
|
*
|
8347
8532
|
* @hidden
|
8348
8533
|
* Registers a handler to be called before the page is unloaded.
|
@@ -8367,7 +8552,7 @@ function registerFocusEnterHandler(handler) {
|
|
8367
8552
|
}
|
8368
8553
|
/**
|
8369
8554
|
* @deprecated
|
8370
|
-
* As of 2.0.0, please use {@link pages.config.registerChangeConfigHandler pages.config.registerChangeConfigHandler(handler:
|
8555
|
+
* As of 2.0.0, please use {@link pages.config.registerChangeConfigHandler pages.config.registerChangeConfigHandler(handler: callbackFunctionType): void} instead.
|
8371
8556
|
*
|
8372
8557
|
* Registers a handler for when the user reconfigurated tab.
|
8373
8558
|
*
|
@@ -8454,7 +8639,7 @@ function setFrameContext(frameContext) {
|
|
8454
8639
|
}
|
8455
8640
|
/**
|
8456
8641
|
* @deprecated
|
8457
|
-
* As of 2.0.0, please use {@link pages.initializeWithFrameContext pages.initializeWithFrameContext(frameInfo: FrameInfo, callback?:
|
8642
|
+
* As of 2.0.0, please use {@link pages.initializeWithFrameContext pages.initializeWithFrameContext(frameInfo: FrameInfo, callback?: callbackFunctionType, validMessageOrigins?: string[],): void} instead.
|
8458
8643
|
*
|
8459
8644
|
* Initialize with FrameContext
|
8460
8645
|
*
|
@@ -8473,9 +8658,6 @@ function initializeWithFrameContext(frameContext, callback, validMessageOrigins)
|
|
8473
8658
|
|
8474
8659
|
|
8475
8660
|
|
8476
|
-
/**
|
8477
|
-
* Navigation specific part of the SDK.
|
8478
|
-
*/
|
8479
8661
|
/**
|
8480
8662
|
* @deprecated
|
8481
8663
|
* As of 2.0.0, please use {@link pages.returnFocus pages.returnFocus(navigateForward?: boolean): void} instead.
|
@@ -8618,7 +8800,7 @@ var settings;
|
|
8618
8800
|
settings.setSettings = setSettings;
|
8619
8801
|
/**
|
8620
8802
|
* @deprecated
|
8621
|
-
* As of 2.0.0, please use {@link pages.config.registerOnSaveHandler pages.config.registerOnSaveHandler(handler:
|
8803
|
+
* As of 2.0.0, please use {@link pages.config.registerOnSaveHandler pages.config.registerOnSaveHandler(handler: registerOnSaveHandlerFunctionType): void} instead.
|
8622
8804
|
*
|
8623
8805
|
* Registers a handler for when the user attempts to save the settings. This handler should be used
|
8624
8806
|
* to create or update the underlying resource powering the content.
|
@@ -8633,7 +8815,7 @@ var settings;
|
|
8633
8815
|
settings.registerOnSaveHandler = registerOnSaveHandler;
|
8634
8816
|
/**
|
8635
8817
|
* @deprecated
|
8636
|
-
* As of 2.0.0, please use {@link pages.config.registerOnRemoveHandler pages.config.registerOnRemoveHandler(handler:
|
8818
|
+
* As of 2.0.0, please use {@link pages.config.registerOnRemoveHandler pages.config.registerOnRemoveHandler(handler: registerOnRemoveHandlerFunctionType): void} instead.
|
8637
8819
|
*
|
8638
8820
|
* Registers a handler for user attempts to remove content. This handler should be used
|
8639
8821
|
* to remove the underlying resource powering the content.
|
@@ -8843,6 +9025,7 @@ var ContainerState;
|
|
8843
9025
|
ContainerState["notFound"] = "NotFound";
|
8844
9026
|
})(ContainerState || (ContainerState = {}));
|
8845
9027
|
/**
|
9028
|
+
* @hidden
|
8846
9029
|
* Live Share host implementation for O365 and Teams clients.
|
8847
9030
|
*
|
8848
9031
|
* @beta
|
@@ -8857,8 +9040,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8857
9040
|
* @beta
|
8858
9041
|
*/
|
8859
9042
|
LiveShareHost.prototype.getFluidTenantInfo = function () {
|
9043
|
+
ensureSupported();
|
8860
9044
|
return new Promise(function (resolve) {
|
8861
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8862
9045
|
resolve(sendAndHandleSdkError('interactive.getFluidTenantInfo'));
|
8863
9046
|
});
|
8864
9047
|
};
|
@@ -8872,8 +9055,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8872
9055
|
* @beta
|
8873
9056
|
*/
|
8874
9057
|
LiveShareHost.prototype.getFluidToken = function (containerId) {
|
9058
|
+
ensureSupported();
|
8875
9059
|
return new Promise(function (resolve) {
|
8876
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8877
9060
|
// eslint-disable-next-line strict-null-checks/all
|
8878
9061
|
resolve(sendAndHandleSdkError('interactive.getFluidToken', containerId));
|
8879
9062
|
});
|
@@ -8885,8 +9068,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8885
9068
|
* @beta
|
8886
9069
|
*/
|
8887
9070
|
LiveShareHost.prototype.getFluidContainerId = function () {
|
9071
|
+
ensureSupported();
|
8888
9072
|
return new Promise(function (resolve) {
|
8889
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8890
9073
|
resolve(sendAndHandleSdkError('interactive.getFluidContainerId'));
|
8891
9074
|
});
|
8892
9075
|
};
|
@@ -8903,8 +9086,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8903
9086
|
* @beta
|
8904
9087
|
*/
|
8905
9088
|
LiveShareHost.prototype.setFluidContainerId = function (containerId) {
|
9089
|
+
ensureSupported();
|
8906
9090
|
return new Promise(function (resolve) {
|
8907
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8908
9091
|
resolve(sendAndHandleSdkError('interactive.setFluidContainerId', containerId));
|
8909
9092
|
});
|
8910
9093
|
};
|
@@ -8915,8 +9098,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8915
9098
|
* @beta
|
8916
9099
|
*/
|
8917
9100
|
LiveShareHost.prototype.getNtpTime = function () {
|
9101
|
+
ensureSupported();
|
8918
9102
|
return new Promise(function (resolve) {
|
8919
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8920
9103
|
resolve(sendAndHandleSdkError('interactive.getNtpTime'));
|
8921
9104
|
});
|
8922
9105
|
};
|
@@ -8930,8 +9113,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8930
9113
|
* @beta
|
8931
9114
|
*/
|
8932
9115
|
LiveShareHost.prototype.registerClientId = function (clientId) {
|
9116
|
+
ensureSupported();
|
8933
9117
|
return new Promise(function (resolve) {
|
8934
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8935
9118
|
resolve(sendAndHandleSdkError('interactive.registerClientId', clientId));
|
8936
9119
|
});
|
8937
9120
|
};
|
@@ -8945,11 +9128,26 @@ var LiveShareHost = /** @class */ (function () {
|
|
8945
9128
|
* @beta
|
8946
9129
|
*/
|
8947
9130
|
LiveShareHost.prototype.getClientRoles = function (clientId) {
|
9131
|
+
ensureSupported();
|
8948
9132
|
return new Promise(function (resolve) {
|
8949
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8950
9133
|
resolve(sendAndHandleSdkError('interactive.getClientRoles', clientId));
|
8951
9134
|
});
|
8952
9135
|
};
|
9136
|
+
/**
|
9137
|
+
* @hidden
|
9138
|
+
* Returns the `IClientInfo` associated with a client ID.
|
9139
|
+
*
|
9140
|
+
* @param clientId The Client ID the message was received from.
|
9141
|
+
* @returns The info for a given client. Returns `undefined` if the client ID hasn't been registered yet.
|
9142
|
+
*
|
9143
|
+
* @beta
|
9144
|
+
*/
|
9145
|
+
LiveShareHost.prototype.getClientInfo = function (clientId) {
|
9146
|
+
ensureSupported();
|
9147
|
+
return new Promise(function (resolve) {
|
9148
|
+
resolve(sendAndHandleSdkError('interactive.getClientInfo', clientId));
|
9149
|
+
});
|
9150
|
+
};
|
8953
9151
|
/**
|
8954
9152
|
* Returns a host instance for the client that can be passed to the `LiveShareClient` class.
|
8955
9153
|
*
|
@@ -8959,12 +9157,33 @@ var LiveShareHost = /** @class */ (function () {
|
|
8959
9157
|
* @beta
|
8960
9158
|
*/
|
8961
9159
|
LiveShareHost.create = function () {
|
8962
|
-
|
9160
|
+
ensureSupported();
|
8963
9161
|
return new LiveShareHost();
|
8964
9162
|
};
|
8965
9163
|
return LiveShareHost;
|
8966
9164
|
}());
|
8967
9165
|
|
9166
|
+
/**
|
9167
|
+
* @hidden
|
9168
|
+
*
|
9169
|
+
* Checks if the interactive capability is supported by the host
|
9170
|
+
* @returns boolean to represent whether the interactive capability is supported
|
9171
|
+
*
|
9172
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
9173
|
+
*
|
9174
|
+
* @internal
|
9175
|
+
* Limited to Microsoft-internal use
|
9176
|
+
*/
|
9177
|
+
function isSupported() {
|
9178
|
+
return ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel) && runtime.supports.interactive
|
9179
|
+
? true
|
9180
|
+
: false;
|
9181
|
+
}
|
9182
|
+
function ensureSupported() {
|
9183
|
+
if (!isSupported()) {
|
9184
|
+
throw new Error('LiveShareHost Not supported');
|
9185
|
+
}
|
9186
|
+
}
|
8968
9187
|
|
8969
9188
|
;// CONCATENATED MODULE: ./src/public/index.ts
|
8970
9189
|
|