@microsoft/teams-js 2.12.1-beta.0 → 2.13.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.
@@ -8017,150 +8017,176 @@ export namespace tasks {
8017
8017
  }
8018
8018
 
8019
8019
  /**
8020
- * @hidden
8021
- * Allowed roles during a meeting.
8022
- *
8023
- * @beta
8024
- */
8025
- export enum UserMeetingRole {
8026
- guest = "Guest",
8027
- attendee = "Attendee",
8028
- presenter = "Presenter",
8029
- organizer = "Organizer"
8030
- }
8031
- /**
8032
- * @hidden
8033
- * State of the current Live Share sessions backing fluid container.
8034
- *
8035
- * @beta
8036
- */
8037
- export enum ContainerState {
8038
- /**
8039
- * The call to `LiveShareHost.setContainerId()` successfully created the container mapping
8040
- * for the current Live Share session.
8041
- */
8042
- added = "Added",
8043
- /**
8044
- * A container mapping for the current Live Share Session already exists and should be used
8045
- * when joining the sessions Fluid container.
8046
- */
8047
- alreadyExists = "AlreadyExists",
8048
- /**
8049
- * The call to `LiveShareHost.setContainerId()` failed to create the container mapping due to
8050
- * another client having already set the container ID for the current Live Share session.
8051
- */
8052
- conflict = "Conflict",
8053
- /**
8054
- * A container mapping for the current Live Share session doesn't exist yet.
8055
- */
8056
- notFound = "NotFound"
8057
- }
8058
- /**
8059
- * @hidden
8060
- * Returned from `LiveShareHost.get/setFluidContainerId()` to specify the container mapping for the
8061
- * current Live Share session.
8020
+ * APIs involving Live Share, a framework for building real-time collaborative apps.
8021
+ * For more information, visit https://aka.ms/teamsliveshare
8062
8022
  *
8063
- * @beta
8023
+ * @see LiveShareHost
8064
8024
  */
8065
- export interface IFluidContainerInfo {
8066
- /**
8067
- * State of the containerId mapping.
8068
- */
8069
- containerState: ContainerState;
8025
+ export namespace liveShare {
8070
8026
  /**
8071
- * ID of the container to join for the meeting. Undefined if the container hasn't been
8072
- * created yet.
8027
+ * @hidden
8028
+ * The meeting roles of a user.
8029
+ * Used in Live Share for its role verification feature.
8030
+ * For more information, visit https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/teams-live-share-capabilities?tabs=javascript#role-verification-for-live-data-structures
8073
8031
  */
8074
- containerId: string | undefined;
8032
+ enum UserMeetingRole {
8033
+ /**
8034
+ * Guest role.
8035
+ */
8036
+ guest = "Guest",
8037
+ /**
8038
+ * Attendee role.
8039
+ */
8040
+ attendee = "Attendee",
8041
+ /**
8042
+ * Presenter role.
8043
+ */
8044
+ presenter = "Presenter",
8045
+ /**
8046
+ * Organizer role.
8047
+ */
8048
+ organizer = "Organizer"
8049
+ }
8075
8050
  /**
8076
- * If true, the local client should create the container and then save the created containers
8077
- * ID to the mapping service.
8051
+ * @hidden
8052
+ * State of the current Live Share session's Fluid container.
8053
+ * This is used internally by the `LiveShareClient` when joining a Live Share session.
8078
8054
  */
8079
- shouldCreate: boolean;
8055
+ enum ContainerState {
8056
+ /**
8057
+ * The call to `LiveShareHost.setContainerId()` successfully created the container mapping
8058
+ * for the current Live Share session.
8059
+ */
8060
+ added = "Added",
8061
+ /**
8062
+ * A container mapping for the current Live Share session already exists.
8063
+ * This indicates to Live Share that a new container does not need be created.
8064
+ */
8065
+ alreadyExists = "AlreadyExists",
8066
+ /**
8067
+ * The call to `LiveShareHost.setContainerId()` failed to create the container mapping.
8068
+ * This happens when another client has already set the container ID for the session.
8069
+ */
8070
+ conflict = "Conflict",
8071
+ /**
8072
+ * A container mapping for the current Live Share session does not yet exist.
8073
+ * This indicates to Live Share that a new container should be created.
8074
+ */
8075
+ notFound = "NotFound"
8076
+ }
8080
8077
  /**
8081
- * If `containerId` is undefined and `shouldCreate` is false, the container isn't ready but
8082
- * another client is creating it. The local client should wait the specified amount of time and
8083
- * then ask for the container info again.
8078
+ * @hidden
8079
+ * Returned from `LiveShareHost.getFluidContainerId()` and `LiveShareHost.setFluidContainerId`.
8080
+ * This response specifies the container mapping information for the current Live Share session.
8084
8081
  */
8085
- retryAfter: number;
8086
- }
8087
- /**
8088
- * @hidden
8089
- * Returned from `LiveShareHost.getNtpTime()` to specify the global timestamp for the current
8090
- * Live Share session.
8091
- *
8092
- * @beta
8093
- */
8094
- export interface INtpTimeInfo {
8082
+ interface IFluidContainerInfo {
8083
+ /**
8084
+ * State of the containerId mapping.
8085
+ */
8086
+ containerState: ContainerState;
8087
+ /**
8088
+ * ID of the container to join for the meeting. Undefined if the container hasn't been
8089
+ * created yet.
8090
+ */
8091
+ containerId: string | undefined;
8092
+ /**
8093
+ * If true, the local client should create the container and then save the created containers
8094
+ * ID to the mapping service.
8095
+ */
8096
+ shouldCreate: boolean;
8097
+ /**
8098
+ * If `containerId` is undefined and `shouldCreate` is false, the container isn't ready
8099
+ * but another client is creating it. In this case, the local client should wait the specified
8100
+ * amount of time before calling `LiveShareHost.getFluidContainerId()` again.
8101
+ */
8102
+ retryAfter: number;
8103
+ }
8095
8104
  /**
8096
- * ISO 8601 formatted server time. For example: '2019-09-07T15:50-04:00'
8105
+ * @hidden
8106
+ * Returned from `LiveShareHost.getNtpTime()` to specify the global timestamp for the current
8107
+ * Live Share session.
8097
8108
  */
8098
- ntpTime: string;
8109
+ interface INtpTimeInfo {
8110
+ /**
8111
+ * ISO 8601 formatted server time. For example: '2019-09-07T15:50-04:00'
8112
+ */
8113
+ ntpTime: string;
8114
+ /**
8115
+ * Server time expressed as the number of milliseconds since the ECMAScript epoch.
8116
+ */
8117
+ ntpTimeInUTC: number;
8118
+ }
8099
8119
  /**
8100
- * Server time expressed as the number of milliseconds since the ECMAScript epoch.
8120
+ * @hidden
8121
+ * Returned from `LiveShareHost.getFluidTenantInfo()` to specify the Fluid service to use for the
8122
+ * current Live Share session.
8101
8123
  */
8102
- ntpTimeInUTC: number;
8103
- }
8104
- /**
8105
- * @hidden
8106
- * Returned from `LiveShareHost.getFluidTenantInfo()` to specify the Fluid service to use for the
8107
- * current Live Share session.
8108
- *
8109
- * @beta
8110
- */
8111
- export interface IFluidTenantInfo {
8124
+ interface IFluidTenantInfo {
8125
+ /**
8126
+ * The Fluid Tenant ID Live Share should use.
8127
+ */
8128
+ tenantId: string;
8129
+ /**
8130
+ * The Fluid service endpoint Live Share should use.
8131
+ */
8132
+ serviceEndpoint: string;
8133
+ }
8112
8134
  /**
8113
- * The Fluid Tenant ID Live Share should use.
8135
+ * @hidden
8136
+ * Returned from `LiveShareHost.getClientInfo()` to specify the client info for a
8137
+ * particular client in a Live Share session.
8114
8138
  */
8115
- tenantId: string;
8139
+ interface IClientInfo {
8140
+ /**
8141
+ * The host user's `userId` associated with a given `clientId`
8142
+ */
8143
+ userId: string;
8144
+ /**
8145
+ * User's meeting roles associated with a given `clientId`
8146
+ */
8147
+ roles: UserMeetingRole[];
8148
+ /**
8149
+ * The user's display name associated with a given `clientId`.
8150
+ * If this returns as `undefined`, the user may need to update their host client.
8151
+ */
8152
+ displayName?: string;
8153
+ }
8116
8154
  /**
8117
- * The Fluid service endpoint Live Share should use.
8155
+ * Checks if the interactive capability is supported by the host
8156
+ * @returns boolean to represent whether the interactive capability is supported
8157
+ *
8158
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
8118
8159
  */
8119
- serviceEndpoint: string;
8120
- }
8121
- /**
8122
- * @hidden
8123
- * Returned from `LiveShareHost.getClientInfo()` to specify the client info for a
8124
- * particular client in a Live Share session.
8125
- *
8126
- * @beta
8127
- */
8128
- export interface IClientInfo {
8129
- userId: string;
8130
- roles: UserMeetingRole[];
8131
- displayName?: string;
8160
+ function isSupported(): boolean;
8132
8161
  }
8133
8162
  /**
8134
- * @hidden
8135
- * Live Share host implementation for O365 and Teams clients.
8163
+ * Live Share host implementation for connecting to real-time collaborative sessions.
8164
+ * Designed for use with the `LiveShareClient` class in the `@microsoft/live-share` package.
8165
+ * Learn more at https://aka.ms/teamsliveshare
8136
8166
  *
8137
- * @beta
8167
+ * @remarks
8168
+ * The `LiveShareClient` class from Live Share uses the hidden API's to join/manage the session.
8169
+ * To create a new `LiveShareHost` instance use the static `LiveShareHost.create()` function.
8138
8170
  */
8139
8171
  export class LiveShareHost {
8140
8172
  /**
8141
8173
  * @hidden
8142
8174
  * Returns the Fluid Tenant connection info for user's current context.
8143
- *
8144
- * @beta
8145
8175
  */
8146
- getFluidTenantInfo(): Promise<IFluidTenantInfo>;
8176
+ getFluidTenantInfo(): Promise<liveShare.IFluidTenantInfo>;
8147
8177
  /**
8148
8178
  * @hidden
8149
8179
  * Returns the fluid access token for mapped container Id.
8150
8180
  *
8151
8181
  * @param containerId Fluid's container Id for the request. Undefined for new containers.
8152
8182
  * @returns token for connecting to Fluid's session.
8153
- *
8154
- * @beta
8155
8183
  */
8156
8184
  getFluidToken(containerId?: string): Promise<string>;
8157
8185
  /**
8158
8186
  * @hidden
8159
8187
  * Returns the ID of the fluid container associated with the user's current context.
8160
- *
8161
- * @beta
8162
8188
  */
8163
- getFluidContainerId(): Promise<IFluidContainerInfo>;
8189
+ getFluidContainerId(): Promise<liveShare.IFluidContainerInfo>;
8164
8190
  /**
8165
8191
  * @hidden
8166
8192
  * Sets the ID of the fluid container associated with the current context.
@@ -8170,69 +8196,47 @@ export class LiveShareHost {
8170
8196
  * `getFluidContainerId()` to get the ID of the container being used.
8171
8197
  * @param containerId ID of the fluid container the client created.
8172
8198
  * @returns A data structure with a `containerState` indicating the success or failure of the request.
8173
- *
8174
- * @beta
8175
8199
  */
8176
- setFluidContainerId(containerId: string): Promise<IFluidContainerInfo>;
8200
+ setFluidContainerId(containerId: string): Promise<liveShare.IFluidContainerInfo>;
8177
8201
  /**
8178
8202
  * @hidden
8179
8203
  * Returns the shared clock server's current time.
8180
- *
8181
- * @beta
8182
8204
  */
8183
- getNtpTime(): Promise<INtpTimeInfo>;
8205
+ getNtpTime(): Promise<liveShare.INtpTimeInfo>;
8184
8206
  /**
8185
8207
  * @hidden
8186
8208
  * Associates the fluid client ID with a set of user roles.
8187
8209
  *
8188
8210
  * @param clientId The ID for the current user's Fluid client. Changes on reconnects.
8189
8211
  * @returns The roles for the current user.
8190
- *
8191
- * @beta
8192
8212
  */
8193
- registerClientId(clientId: string): Promise<UserMeetingRole[]>;
8213
+ registerClientId(clientId: string): Promise<liveShare.UserMeetingRole[]>;
8194
8214
  /**
8195
8215
  * @hidden
8196
8216
  * Returns the roles associated with a client ID.
8197
8217
  *
8198
8218
  * @param clientId The Client ID the message was received from.
8199
8219
  * @returns The roles for a given client. Returns `undefined` if the client ID hasn't been registered yet.
8200
- *
8201
- * @beta
8202
8220
  */
8203
- getClientRoles(clientId: string): Promise<UserMeetingRole[] | undefined>;
8221
+ getClientRoles(clientId: string): Promise<liveShare.UserMeetingRole[] | undefined>;
8204
8222
  /**
8205
8223
  * @hidden
8206
8224
  * Returns the `IClientInfo` associated with a client ID.
8207
8225
  *
8208
8226
  * @param clientId The Client ID the message was received from.
8209
8227
  * @returns The info for a given client. Returns `undefined` if the client ID hasn't been registered yet.
8210
- *
8211
- * @beta
8212
8228
  */
8213
- getClientInfo(clientId: string): Promise<IClientInfo | undefined>;
8229
+ getClientInfo(clientId: string): Promise<liveShare.IClientInfo | undefined>;
8214
8230
  /**
8215
- * Returns a host instance for the client that can be passed to the `LiveShareClient` class.
8231
+ * Factories a new `LiveShareHost` instance for use with the `LiveShareClient` class
8232
+ * in the `@microsoft/live-share` package.
8216
8233
  *
8217
8234
  * @remarks
8218
- * The application must first be initialized and may only be called from `meetingStage` or `sidePanel` contexts.
8219
- *
8220
- * @beta
8235
+ * `app.initialize()` must first be called before using this API.
8236
+ * This API can only be called from `meetingStage` or `sidePanel` contexts.
8221
8237
  */
8222
8238
  static create(): LiveShareHost;
8223
8239
  }
8224
- /**
8225
- * @hidden
8226
- *
8227
- * Checks if the interactive capability is supported by the host
8228
- * @returns boolean to represent whether the interactive capability is supported
8229
- *
8230
- * @throws Error if {@linkcode app.initialize} has not successfully completed
8231
- *
8232
- * @internal
8233
- * Limited to Microsoft-internal use
8234
- */
8235
- export function isSupported(): boolean;
8236
8240
 
8237
8241
  /**
8238
8242
  * @hidden
@@ -805,7 +805,6 @@ __webpack_require__.d(__webpack_exports__, {
805
805
  "ActionObjectType": () => (/* reexport */ ActionObjectType),
806
806
  "ChannelType": () => (/* reexport */ ChannelType),
807
807
  "ChildAppWindow": () => (/* reexport */ ChildAppWindow),
808
- "ContainerState": () => (/* reexport */ ContainerState),
809
808
  "DialogDimension": () => (/* reexport */ DialogDimension),
810
809
  "ErrorCode": () => (/* reexport */ ErrorCode),
811
810
  "FileOpenPreference": () => (/* reexport */ FileOpenPreference),
@@ -818,7 +817,6 @@ __webpack_require__.d(__webpack_exports__, {
818
817
  "SecondaryM365ContentIdName": () => (/* reexport */ SecondaryM365ContentIdName),
819
818
  "TaskModuleDimension": () => (/* reexport */ TaskModuleDimension),
820
819
  "TeamType": () => (/* reexport */ TeamType),
821
- "UserMeetingRole": () => (/* reexport */ UserMeetingRole),
822
820
  "UserSettingTypes": () => (/* reexport */ UserSettingTypes),
823
821
  "UserTeamRole": () => (/* reexport */ UserTeamRole),
824
822
  "ViewerActionTypes": () => (/* reexport */ ViewerActionTypes),
@@ -843,7 +841,7 @@ __webpack_require__.d(__webpack_exports__, {
843
841
  "getTabInstances": () => (/* reexport */ getTabInstances),
844
842
  "initialize": () => (/* reexport */ initialize),
845
843
  "initializeWithFrameContext": () => (/* reexport */ initializeWithFrameContext),
846
- "isSupported": () => (/* reexport */ isSupported),
844
+ "liveShare": () => (/* reexport */ liveShare),
847
845
  "location": () => (/* reexport */ location_location),
848
846
  "logs": () => (/* reexport */ logs),
849
847
  "mail": () => (/* reexport */ mail),
@@ -2090,7 +2088,7 @@ var _minRuntimeConfigToUninitialize = {
2090
2088
  * @hidden
2091
2089
  * Package version.
2092
2090
  */
2093
- var version = "2.12.1-beta.0";
2091
+ var version = "2.13.0-beta.0";
2094
2092
 
2095
2093
  ;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
2096
2094
 
@@ -9367,51 +9365,88 @@ var tasks;
9367
9365
 
9368
9366
 
9369
9367
  /**
9370
- * @hidden
9371
- * Allowed roles during a meeting.
9372
- *
9373
- * @beta
9374
- */
9375
- var UserMeetingRole;
9376
- (function (UserMeetingRole) {
9377
- UserMeetingRole["guest"] = "Guest";
9378
- UserMeetingRole["attendee"] = "Attendee";
9379
- UserMeetingRole["presenter"] = "Presenter";
9380
- UserMeetingRole["organizer"] = "Organizer";
9381
- })(UserMeetingRole || (UserMeetingRole = {}));
9382
- /**
9383
- * @hidden
9384
- * State of the current Live Share sessions backing fluid container.
9368
+ * APIs involving Live Share, a framework for building real-time collaborative apps.
9369
+ * For more information, visit https://aka.ms/teamsliveshare
9385
9370
  *
9386
- * @beta
9371
+ * @see LiveShareHost
9387
9372
  */
9388
- var ContainerState;
9389
- (function (ContainerState) {
9373
+ var liveShare;
9374
+ (function (liveShare) {
9390
9375
  /**
9391
- * The call to `LiveShareHost.setContainerId()` successfully created the container mapping
9392
- * for the current Live Share session.
9393
- */
9394
- ContainerState["added"] = "Added";
9395
- /**
9396
- * A container mapping for the current Live Share Session already exists and should be used
9397
- * when joining the sessions Fluid container.
9376
+ * @hidden
9377
+ * The meeting roles of a user.
9378
+ * Used in Live Share for its role verification feature.
9379
+ * For more information, visit https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/teams-live-share-capabilities?tabs=javascript#role-verification-for-live-data-structures
9398
9380
  */
9399
- ContainerState["alreadyExists"] = "AlreadyExists";
9381
+ var UserMeetingRole;
9382
+ (function (UserMeetingRole) {
9383
+ /**
9384
+ * Guest role.
9385
+ */
9386
+ UserMeetingRole["guest"] = "Guest";
9387
+ /**
9388
+ * Attendee role.
9389
+ */
9390
+ UserMeetingRole["attendee"] = "Attendee";
9391
+ /**
9392
+ * Presenter role.
9393
+ */
9394
+ UserMeetingRole["presenter"] = "Presenter";
9395
+ /**
9396
+ * Organizer role.
9397
+ */
9398
+ UserMeetingRole["organizer"] = "Organizer";
9399
+ })(UserMeetingRole = liveShare.UserMeetingRole || (liveShare.UserMeetingRole = {}));
9400
9400
  /**
9401
- * The call to `LiveShareHost.setContainerId()` failed to create the container mapping due to
9402
- * another client having already set the container ID for the current Live Share session.
9401
+ * @hidden
9402
+ * State of the current Live Share session's Fluid container.
9403
+ * This is used internally by the `LiveShareClient` when joining a Live Share session.
9403
9404
  */
9404
- ContainerState["conflict"] = "Conflict";
9405
+ var ContainerState;
9406
+ (function (ContainerState) {
9407
+ /**
9408
+ * The call to `LiveShareHost.setContainerId()` successfully created the container mapping
9409
+ * for the current Live Share session.
9410
+ */
9411
+ ContainerState["added"] = "Added";
9412
+ /**
9413
+ * A container mapping for the current Live Share session already exists.
9414
+ * This indicates to Live Share that a new container does not need be created.
9415
+ */
9416
+ ContainerState["alreadyExists"] = "AlreadyExists";
9417
+ /**
9418
+ * The call to `LiveShareHost.setContainerId()` failed to create the container mapping.
9419
+ * This happens when another client has already set the container ID for the session.
9420
+ */
9421
+ ContainerState["conflict"] = "Conflict";
9422
+ /**
9423
+ * A container mapping for the current Live Share session does not yet exist.
9424
+ * This indicates to Live Share that a new container should be created.
9425
+ */
9426
+ ContainerState["notFound"] = "NotFound";
9427
+ })(ContainerState = liveShare.ContainerState || (liveShare.ContainerState = {}));
9405
9428
  /**
9406
- * A container mapping for the current Live Share session doesn't exist yet.
9429
+ * Checks if the interactive capability is supported by the host
9430
+ * @returns boolean to represent whether the interactive capability is supported
9431
+ *
9432
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
9407
9433
  */
9408
- ContainerState["notFound"] = "NotFound";
9409
- })(ContainerState || (ContainerState = {}));
9434
+ function isSupported() {
9435
+ return ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel) &&
9436
+ runtime.supports.interactive
9437
+ ? true
9438
+ : false;
9439
+ }
9440
+ liveShare.isSupported = isSupported;
9441
+ })(liveShare || (liveShare = {}));
9410
9442
  /**
9411
- * @hidden
9412
- * Live Share host implementation for O365 and Teams clients.
9443
+ * Live Share host implementation for connecting to real-time collaborative sessions.
9444
+ * Designed for use with the `LiveShareClient` class in the `@microsoft/live-share` package.
9445
+ * Learn more at https://aka.ms/teamsliveshare
9413
9446
  *
9414
- * @beta
9447
+ * @remarks
9448
+ * The `LiveShareClient` class from Live Share uses the hidden API's to join/manage the session.
9449
+ * To create a new `LiveShareHost` instance use the static `LiveShareHost.create()` function.
9415
9450
  */
9416
9451
  var LiveShareHost = /** @class */ (function () {
9417
9452
  function LiveShareHost() {
@@ -9419,8 +9454,6 @@ var LiveShareHost = /** @class */ (function () {
9419
9454
  /**
9420
9455
  * @hidden
9421
9456
  * Returns the Fluid Tenant connection info for user's current context.
9422
- *
9423
- * @beta
9424
9457
  */
9425
9458
  LiveShareHost.prototype.getFluidTenantInfo = function () {
9426
9459
  ensureSupported();
@@ -9434,8 +9467,6 @@ var LiveShareHost = /** @class */ (function () {
9434
9467
  *
9435
9468
  * @param containerId Fluid's container Id for the request. Undefined for new containers.
9436
9469
  * @returns token for connecting to Fluid's session.
9437
- *
9438
- * @beta
9439
9470
  */
9440
9471
  LiveShareHost.prototype.getFluidToken = function (containerId) {
9441
9472
  ensureSupported();
@@ -9447,8 +9478,6 @@ var LiveShareHost = /** @class */ (function () {
9447
9478
  /**
9448
9479
  * @hidden
9449
9480
  * Returns the ID of the fluid container associated with the user's current context.
9450
- *
9451
- * @beta
9452
9481
  */
9453
9482
  LiveShareHost.prototype.getFluidContainerId = function () {
9454
9483
  ensureSupported();
@@ -9465,8 +9494,6 @@ var LiveShareHost = /** @class */ (function () {
9465
9494
  * `getFluidContainerId()` to get the ID of the container being used.
9466
9495
  * @param containerId ID of the fluid container the client created.
9467
9496
  * @returns A data structure with a `containerState` indicating the success or failure of the request.
9468
- *
9469
- * @beta
9470
9497
  */
9471
9498
  LiveShareHost.prototype.setFluidContainerId = function (containerId) {
9472
9499
  ensureSupported();
@@ -9477,8 +9504,6 @@ var LiveShareHost = /** @class */ (function () {
9477
9504
  /**
9478
9505
  * @hidden
9479
9506
  * Returns the shared clock server's current time.
9480
- *
9481
- * @beta
9482
9507
  */
9483
9508
  LiveShareHost.prototype.getNtpTime = function () {
9484
9509
  ensureSupported();
@@ -9492,8 +9517,6 @@ var LiveShareHost = /** @class */ (function () {
9492
9517
  *
9493
9518
  * @param clientId The ID for the current user's Fluid client. Changes on reconnects.
9494
9519
  * @returns The roles for the current user.
9495
- *
9496
- * @beta
9497
9520
  */
9498
9521
  LiveShareHost.prototype.registerClientId = function (clientId) {
9499
9522
  ensureSupported();
@@ -9507,8 +9530,6 @@ var LiveShareHost = /** @class */ (function () {
9507
9530
  *
9508
9531
  * @param clientId The Client ID the message was received from.
9509
9532
  * @returns The roles for a given client. Returns `undefined` if the client ID hasn't been registered yet.
9510
- *
9511
- * @beta
9512
9533
  */
9513
9534
  LiveShareHost.prototype.getClientRoles = function (clientId) {
9514
9535
  ensureSupported();
@@ -9522,8 +9543,6 @@ var LiveShareHost = /** @class */ (function () {
9522
9543
  *
9523
9544
  * @param clientId The Client ID the message was received from.
9524
9545
  * @returns The info for a given client. Returns `undefined` if the client ID hasn't been registered yet.
9525
- *
9526
- * @beta
9527
9546
  */
9528
9547
  LiveShareHost.prototype.getClientInfo = function (clientId) {
9529
9548
  ensureSupported();
@@ -9532,12 +9551,12 @@ var LiveShareHost = /** @class */ (function () {
9532
9551
  });
9533
9552
  };
9534
9553
  /**
9535
- * Returns a host instance for the client that can be passed to the `LiveShareClient` class.
9554
+ * Factories a new `LiveShareHost` instance for use with the `LiveShareClient` class
9555
+ * in the `@microsoft/live-share` package.
9536
9556
  *
9537
9557
  * @remarks
9538
- * The application must first be initialized and may only be called from `meetingStage` or `sidePanel` contexts.
9539
- *
9540
- * @beta
9558
+ * `app.initialize()` must first be called before using this API.
9559
+ * This API can only be called from `meetingStage` or `sidePanel` contexts.
9541
9560
  */
9542
9561
  LiveShareHost.create = function () {
9543
9562
  ensureSupported();
@@ -9546,24 +9565,8 @@ var LiveShareHost = /** @class */ (function () {
9546
9565
  return LiveShareHost;
9547
9566
  }());
9548
9567
 
9549
- /**
9550
- * @hidden
9551
- *
9552
- * Checks if the interactive capability is supported by the host
9553
- * @returns boolean to represent whether the interactive capability is supported
9554
- *
9555
- * @throws Error if {@linkcode app.initialize} has not successfully completed
9556
- *
9557
- * @internal
9558
- * Limited to Microsoft-internal use
9559
- */
9560
- function isSupported() {
9561
- return ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel) && runtime.supports.interactive
9562
- ? true
9563
- : false;
9564
- }
9565
9568
  function ensureSupported() {
9566
- if (!isSupported()) {
9569
+ if (!liveShare.isSupported()) {
9567
9570
  throw new Error('LiveShareHost Not supported');
9568
9571
  }
9569
9572
  }